WagoAppSiemensS7Protocol

Has anyone used this library/ function in Codesys?
I can add the library and initialize the function block but nothing happens when running the software.
The trigger is not reset, no status given, no error, no busy, …

I’ve set up a S7-read block in Node-RED just to make sure that everything is set on the Siemens-side and it works.



Hello bjornidar,
as there is no active connection in your screenshot (see xConnected), the xTrigger is probably not handled any further. Please note that the put and get function must be activated, unfortunately I can’t tell you how to do this in Note-Red. With a 1500 or 300 Siemens controller, it works for me without any problems. I would therefore first concentrate on making sure that you have an active connection.

Cannot believe it took me this long to realize I didn’t call the action/ sub-function :exploding_head:

Thanks for the reply anyway!

Have you been able to write to S7 with type “REAL” (8)?
The function block “Fb_DB_ReadWrite” returns xError no matter what I try when writing to the Siemens PLC.

I’ve successfully read/ written BYTE, WORD and DWORD but for REAL-values I am only able to READ.

you have to use conversion functions from library, check application note WAGO Global | 15941

Yes, I’ve tried that - both versions of the converter but still get “WriteCommandFailed”, “Error”, “uiID 1”.

Do you have a program example where you write REAL values?