# Sending Data to S7-1200 with S7 out Node \[solved\]

**URL:** https://discourse.nodered.org/t/sending-data-to-s7-1200-with-s7-out-node-solved/26895
**Category:** Industrial
**Created:** [19 May 2020 07:15 UTC](https://discourse.nodered.org/t/sending-data-to-s7-1200-with-s7-out-node-solved/26895 "2020-05-19T07:15:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![digidax](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@digidax](https://discourse.nodered.org/u/digidax)
#### Post date: [19 May 2020 07:15 UTC](https://discourse.nodered.org/t/sending-data-to-s7-1200-with-s7-out-node-solved/26895/1 "2020-05-19T07:15:16Z")

</div>

Hi,  
I would like to send some integer values to a S7-1200, reading from it works perfect but can't write.  
This is my test flow to write:

```auto
[{"id":"b1743b10.6060c8","type":"s7 out","z":"b46347df.05287","endpoint":"4be02903.4c3c18","variable":"TxTimestamp","name":"Kühlsystem","x":502.95001220703125,"y":1471.933349609375,"wires":[]},{"id":"95dbda8f.07cb68","type":"inject","z":"b46347df.05287","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":295.95001220703125,"y":1405,"wires":[["b1743b10.6060c8"]]},{"id":"4be02903.4c3c18","type":"s7 endpoint","z":"","transport":"iso-on-tcp","address":"192.168.130.23","port":"102","rack":"0","slot":"1","localtsaphi":"01","localtsaplo":"00","remotetsaphi":"01","remotetsaplo":"00","connmode":"rack-slot","adapterauto":true,"adapterport":"","busaddr":"2","adapteraddr":"0","cycletime":"500","timeout":"1500","verbose":"on","name":"Kühlsystem","vartable":[{"addr":"DB26,INT52.0","name":"RunningPresses"},{"addr":"DB26,WORD54.0","name":"WaterFlow"},{"addr":"DB26,DWORD56.0","name":"TxTimestamp"}]}]

```

Inside the S7, it's the same DB where I do reading successful data from. For writing on it, the var's are defined as follows:

```auto
52.0 SInt
54.0 Int
56.0 UDInt

```

Is my test injection wrong? Watching the DB, no changes are done after injection:

![grafik](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/c/9c29a63612fcc95855203a5f5595e47cabbb748b.png)

Thanks for help, Frank

---

<div class="post-metadata">

### Author: ![digidax](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@digidax](https://discourse.nodered.org/u/digidax)
#### Post date: [19 May 2020 13:14 UTC](https://discourse.nodered.org/t/sending-data-to-s7-1200-with-s7-out-node-solved/26895/2 "2020-05-19T13:14:33Z")

</div>

The Problem seems to be the connection to the S7. The debug log shows: "Keine Antwort, Neustart der Kommunikation" - No answer - restart communication. With exactly the same paramteres in the endpoint , I can read from the CPU. Are there any more debug infos to figure out the problem? The CPU has no protection mechanism set.

Thanks, Frank

---

<div class="post-metadata">

### Author: ![digidax](https://avatars.discourse-cdn.com/v4/letter/d/edb3f5/32.png) [@digidax](https://discourse.nodered.org/u/digidax)
#### Post date: [20 May 2020 05:59 UTC](https://discourse.nodered.org/t/sending-data-to-s7-1200-with-s7-out-node-solved/26895/3 "2020-05-20T05:59:54Z")

</div>

Solved, have used for writing to PLC the "S7comm:write" node.

---

<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: [3 June 2020 05:59 UTC](https://discourse.nodered.org/t/sending-data-to-s7-1200-with-s7-out-node-solved/26895/4 "2020-06-03T05:59:58Z")

</div>

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