ST Function Block Call¶
Syntax
<FB-instance>(<FB input variable>:=<value or address>
\|, <other FB input variables>);
Example
TMR:TON;
TMR (IN:=%OX5, PT:=T#300ms);
varA:=TMR.Q;
The timer function block TON
is instanced 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
.
See also