A function block is called in ST by writing the name of the instance of the function block and then assigning the values of the parameters in parentheses⮫ “Function block”⮫ “Function block instances”. In the following example a timer is called with assignments for the parameters IN and PT. Then the result variable Q is assigned to the variable A.
CMD_TMR(IN := %IX5, PT := 300); A:=CMD_TMR.Q