EasyManuals Logo

Vector VEC-VA Series User Manual

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
Page #161 background imageLoading...
Page #161 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Vector VEC-VA Series and is the answer not in the manual?

Vector VEC-VA Series Specifications

General IconGeneral
BrandVector
ModelVEC-VA Series
CategoryController
LanguageEnglish

Related product manuals