ST Function Block Call
Calling a function block in ST
Syntax
<FB instance>(<FB input variable>:=<value or address>\|, <other FB input variables>);
Example 79. Example
TMR:TON; TMR (IN:=%OX5, PT:=T#300ms); varA:=TMR.Q;
The timer function block TON is instantiated in TMR:TON and called with assignments for the parameters IN and PT.
The output Q is addressed with TMR.Q and assigned to the variable varA.