Calling Functions from Transitions

Any function written in Structured Text (ST), Ladder Diagram (LD), Function Block Diagram (FBD), or a "C" function can be called to evaluate the condition attached to a transition, according to this syntax in ST:
< function > ( ) ;
The value returned by the function must be Boolean and yield the resulting condition:
Value
Condition
return value = FALSE
condition is FALSE
return value = TRUE
condition is TRUE
Example
(* SFC program with function call for transitions *)
iec_cft
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal