# Writing char array to S7 PLC Datablock

**URL:** <https://discourse.nodered.org/t/writing-char-array-to-s7-plc-datablock/88039>\
**Category:** Industrial\
**Created:** [16 May 2024 21:39 UTC](https://discourse.nodered.org/t/writing-char-array-to-s7-plc-datablock/88039 "2024-05-16T21:39:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cassus](https://avatars.discourse-cdn.com/v4/letter/c/3be4f8/32.png) [@cassus](https://discourse.nodered.org/u/cassus)\
**Post date:** [16 May 2024 21:39 UTC](https://discourse.nodered.org/t/writing-char-array-to-s7-plc-datablock/88039/1 "2024-05-16T21:39:38Z")

</div>

Hi I'm new to node red. Currently I have flows set up to read and write to datablocks on a Siemens PLC using node-red-contrib-s7comm. I'm able to read the DBs without issue but I can't figure out how to write multiple values at once. For example I'm trying to write a 32 character char array but I can't figure out how to write all the values at once. The only way I've managed to get it to work is by writing each char separately, which is taking forever to setup and there's over 700 variables in the DB. Can anyone advise how I can write multiple variables at once to a DB?

Thanks

---

<div class="post-metadata">

**Author:** ![benefit\_union](https://avatars.discourse-cdn.com/v4/letter/b/ba9def/32.png) [@benefit\_union](https://discourse.nodered.org/u/benefit_union)\
**Post date:** [14 June 2024 04:27 UTC](https://discourse.nodered.org/t/writing-char-array-to-s7-plc-datablock/88039/2 "2024-06-14T04:27:39Z")

</div>

there have string address and maybe can write string to plc.

---

<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:** [12 September 2024 04:27 UTC](https://discourse.nodered.org/t/writing-char-array-to-s7-plc-datablock/88039/3 "2024-09-12T04:27:58Z")

</div>

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