Hej,
I am trying to figure out how to built a standard block in Codesys (new to this) and Wago’s documentation isn’t the best. I have a list of channels and want to use the same FB for all channel configurations. The then configured raw value is to go to aChVal (part of DWORD structure) and the status of the channel (underflow/overflow etc) is to go to bChVal.
How do I get the status bit using this setup? Thank you in advance.
Good afternoon, I’m not sure what the problem is.
Judging by your question, your problem isn’t with the PLC but with your knowledge of Codesys.
I would recommend that you use the ST language; it’s easier to use. Please tell us what you want, starting with the PLC model and firmware version. I can help you.