700
12
12 Subprogram12.4 Application of a Subprogram with Parameters
●
Example: During an arithmetical operation, if SEL = ON, Sin(X) is output; otherwise, Cos(X) is output.
X and Y are 32-bit oating-point numbers. SEL is a bit variable. As a subprogram with parameters supports
transmission of only 16-bit data, two word elements need to be input. The case of data output is similar.
The following shows the
Call Subprogram
window.