Hello every one! After digging about PLC conection, could find this "strange" problem here or in google. Thank you for taking the time to read!
I created a simple flow to control a PLC digital input (I0.0).
I use "inject" to enter the "true" value into the PLC. Works, but I need to press 3-4 times to make it work. Sometimes it will work at the first atempt. So it hard to investigate as it randomly works.
Im on win 10, PLC S/ 1200, ethernet direct connection, put/get allowed, disabled optimized access.
The code:
[{"id":"11e16088.8ea65f","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"4a7fc439.439e2c","type":"s7 out","z":"11e16088.8ea65f","endpoint":"98c0118e.a1148","variable":"DIN1","name":"escritura_PLC_1200","x":860,"y":360,"wires":[]},{"id":"71217c4c.7c1c94","type":"inject","z":"11e16088.8ea65f","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":360,"wires":[["4a7fc439.439e2c","401f79be.d9d9a8"]]},{"id":"401f79be.d9d9a8","type":"debug","z":"11e16088.8ea65f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":650,"y":560,"wires":[]},{"id":"b97d2639.d7c068","type":"inject","z":"11e16088.8ea65f","name":"RESET","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":370,"y":420,"wires":[["d11c295a.59a6c8","401f79be.d9d9a8"]]},{"id":"d11c295a.59a6c8","type":"s7 out","z":"11e16088.8ea65f","endpoint":"98c0118e.a1148","variable":"Reset","name":"escritura_PLC_1200","x":860,"y":420,"wires":[]},{"id":"98c0118e.a1148","type":"s7 endpoint","z":"","transport":"iso-on-tcp","address":"192.168.0.192","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":"default","name":"plc_s7_1200","vartable":[{"addr":"I0.0","name":"DIN1"},{"addr":"I0.4","name":"Reset"}]}]
I attach a pic of the s7 node´s configuration
Any suggestions?