# S7 Read from a Data block of S7-300 and S7-1500

**URL:** <https://discourse.nodered.org/t/s7-read-from-a-data-block-of-s7-300-and-s7-1500/44987>\
**Category:** General\
**Created:** [30 April 2021 12:29 UTC](https://discourse.nodered.org/t/s7-read-from-a-data-block-of-s7-300-and-s7-1500/44987 "2021-04-30T12:29:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iotred3307](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iotred3307/32/35716_2.png) [@iotred3307](https://discourse.nodered.org/u/iotred3307)\
**Post date:** [30 April 2021 12:29 UTC](https://discourse.nodered.org/t/s7-read-from-a-data-block-of-s7-300-and-s7-1500/44987/1 "2021-04-30T12:29:54Z")

</div>

Hello,

I have been trying to read different datatypes set on data blocks of S7-300 and S7 1500 PLCs. Stuggling to get the actual values of Date, Date and Time, S5 time, and TimeOfDay values in a proper format. Used the data time formatter but couldn't get the info in a proper format.

Attached are some pictures for further info.

Could anyone please help me with it?

Additionally, would like to know from you guys if it's possible to read a variable with type **array**.

Regards,  
Amaresh

 ![Date&TimeFormatter](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/e/eec3bb66c4e71b073aa5f3cda8135e4d56154790.png) ![Debug](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/d/ad01c1d4dbf3932c3ada2e62de0c66f0a3ba87db.png) ![Variables](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/4/94c1bef2fecc9c6ad58733f0c03f6da51548d30e.png) ![Datablock](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/7/b70c0306877b676fa52736921ba6f064e482d0a4.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 June 2021 12:30 UTC](https://discourse.nodered.org/t/s7-read-from-a-data-block-of-s7-300-and-s7-1500/44987/2 "2021-06-29T12:30:52Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
