698
12
12 Subprogram12.4 Application of a Subprogram with Parameters
12.4 Application of a Subprogram with Parameters
Subprograms
with parameters
can be called on an H3U PLC. A subprogram
with parameters
provides local
variables (VM and VD variables), allows parameter transmission, and denes I/O parameters.
12.4.1 Creating a Subprogram with Parameters
12.4.2 Dening I/O Parameters
3) Variable address
A maximum of 32 VM elements and 96 VD elements are supported. Apart from I/O parameters, VM and VD
variables can be used as temporary variables.
4) Syntax rule for naming variables
●
A variable name consists of letters, digits, and underlines. The rst character cannot be a digit.
●
A keyword, for example, IN, OUT, LD, and ADD, cannot be used as a variable name.
●
A symbol name consists of a maximum of eight characters (or four Chinese characters).