ST call function block

Syntax:

<FB-instance>(<FB input variable>:=<value or adress>|, <other FB input variables>);

Example:

fbTMR : TON;
fbTMR (IN := %OX5, PT := T#300ms);
bVarA := fbTMR.Q;

The timer function block TON is instantiated in fbTMR : TON; and called with assignments for the parameters IN and PT.

Output Q is addressed with fbTMR.Q and assigned to the variable bVarA.

See also: