VA Motion Controller Programming Manual
156
When
IN1 <= IN2
,
OUT
is
IN1;
When
IN1 >= IN2
,
OUT
is
IN2;
Funtion and Action examples
An integer of 5 to 10 output the most
small in value
When the contact
is
ON
, the instruction is executed
to compare the values of
the addresses
V49 7
and
V49 8.
The larger
output exists in the address
V49 9
:
Execution result :
5<10
output
5
10.1.25 MOD (modulo instruction )
LD, FBD
programming language
Function: The MOD instruction is used to determine the remainder of the division of two
values.
Note : IL, ST language programming needs to insert variables IN1, IN2 and OUT or use
constants in the current POU variable worksheet
Data type processed by
MOD
instruction
As a result, the remainder of
IN1
divided by
IN2
Funtion and Action examples
Find the value of the remainder
of the integer 31 divided by 5 .