VA Motion Controller Programming Manual
136
1 0.1 function
A function is a program organization unit POU with multiple input parameters and one output
parameter . They do not have any internal memory. Calling a function with the same value always
returns the same result. The return value is a single variable, or a multi-element variable such as
an array or structure. The abbreviation for function is FU .
The following functions can be used during MULTIPROG programming
▲ type conversion function
▲ numerical function
▲ arithmetic operation function
▲ Bit Boolean function
▲ bit string function
▲ Select computing function
▲ Comparative computing function
▲ string function
Instructions contained in the function ( in the Edit Wizard, select " Features " from the
drop-down list )
In the following LDAnd FBD instruction description, only when the input pin EN is 1 when the
command is active , when the instruction is executed successfully, the output pin ENO set to 1 ,
otherwise the pin ENO set 0
10.1.1 ABS (absolute value instruction )
LD, FBD programming language
Function:
ABS
instruction is used to find the absolute value of negative number