EasyManuals Logo
Home>Vector>Controller>VEC-VA Series

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 #170 background imageLoading...
Page #170 background image
VA Motion Controller Programming Manual
165
Funtion and Action examples
The value
16 #01
(
BYTE
)
is shifted to the left by three digits
description
When the contact C300 is ON when this
instruction is executed,
Move all bits of address V525 to the left
by 3 bits:
Execution result: . 1 6 # 01 moves to the
left . 3 bit stored to V527 in
10.1.35 ROR (cyclic right shift instruction )
IL programming
language
LD, FBD programming language
Function: The ROR instruction is used to cyclically shift the input value to the right.
LD IN1
ROR IN2
ST OUT
ST programming language
OUT:=ROR ( 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 ROR instruction
Input and
output
type of data
description
IN1
(
IN
)
ANY_BIT
Input
IN2 ( N )
ANY_INT
Number of bits shifted right
OUT
ANY_BIT
As a result, when the value of the pin IN or N changes,
it is shifted to the right. As follows : shift two bits to the
right
1
1
0
0
0
1
1
1
Value after moving right
0
0
1
1
0
0
0
1

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