Paradigm_shift
Member
Good afternoon sirs,
I'm developing a library for Beckhoff PLCs using TwinCAT 2. What I need is to check if the input of the FB (declared in VAR_INPUT inside de FB) has any variable.
For a better explanation: I have some fault monitoring that can only occur if it's enabled. In some old FBs there was an input on the FB to enable the monitoring and another for the sensor that trigger the fault.
I want to eliminate the enable input from my FB and check the sensor input, if there's something on that field, then I'd monitore that fault.
Thanks in advance.
I'm developing a library for Beckhoff PLCs using TwinCAT 2. What I need is to check if the input of the FB (declared in VAR_INPUT inside de FB) has any variable.
For a better explanation: I have some fault monitoring that can only occur if it's enabled. In some old FBs there was an input on the FB to enable the monitoring and another for the sensor that trigger the fault.
I want to eliminate the enable input from my FB and check the sensor input, if there's something on that field, then I'd monitore that fault.
Thanks in advance.