EasyManua.ls Logo

Vector VEC-VA Series

Vector VEC-VA Series
649 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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
description
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 )
IL
programming language
LD, FBD
programming language
Function: The MOD instruction is used to determine the remainder of the division of two
values.
LD IN1
MOD IN2
ST OUT
ST programming
language
OUT:=MOD ( IN1 , IN2 )
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
Input and
output
type of
data
description
IN1
ANY_INT
Divisor
IN2
ANY_INT
divisor
OUT
ANY_INT
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 .
description

Table of Contents

Related product manuals