Calling a Subroutine
In FBD, subroutines are called using the following blocks.

If the status of EN
is 1, the respective
subroutine (variable name inSR_Name
) is called.
The output ENO
is not used to display the error
status for this type of block. The output ENO
is
always 1 for this type of block and is used to call multiple subroutines
simultaneously.
The following construction makes it possible to call multiple subroutines simultaneously.

The subroutine to be called must be located in the same task as the FBD section called.
Subroutines can also be called from within subroutines.
Subroutine calls are a supplement to IEC 61131-3 and must be enabled explicitly.
In SFC action sections, subroutine calls are only allowed when Multitoken Operation is enabled.