EasyManuals Logo

IDEC MICROSmart FC6A Series Ladder Programming Manual

IDEC MICROSmart FC6A Series
604 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 #191 background imageLoading...
Page #191 background image
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726 9-11
9: S
HIFT
/ R
OTATE
I
NSTRUCTIONS
Example: ROTR
•Data Type: Word
•Data Type: Double Word
M8120 is the initialize pulse special internal relay.
When the CPU starts operation, the MOV (move) instruction sets 13 to data register
D20.
Each time input I1 is turned on, 16-bit data of data register D20 is rotated to the right by
2 bits as assigned by device bits.
The last bit status rotated out is set to special internal relay M8003 (carry or borrow).
M8120
REP
SOTU
I1
S1 –
13
D1 –
D20
S1
D20
bits
2
ROTR(W)
MOV(W)
Before rotation: D20 = 13
0 0 0000 0 0 0 0 0100 1 1
CY
M8003
MSB LSB
D20
After first rotation: D20 = 16387
Bits to rotate = 2
After second rotation: D20 = 53248
00 0 0001 0 0 0 0 1000 0 1
CY
M8003
MSB LSB
D20
11 0 0011 0 0 0 0 0000 0 0
CY
M8003
MSB LSB
D20
Each time input I1 is turned on, 32-bit data of data registers D20 and D21 is rotated to
the right by 1 bit as assigned by device bits.
The last bit status rotated out is set to special internal relay M8003 (carry or borrow).
SOTU
I1
S1
D20
bits
1
ROTR(D)
Bits to rotate = 1
Before rotation: D20·D21 = 851,981
After rotation: D20·D21 = 2,147,909,638
0 0 0000 0 0 0 0 0100 1 1
CY
M8003
MSB LSB
D20·D21
1
CY
M8003
MSB LSB
D20·D21
Rotate to the right
0 0 0000 0 0 0 0 0100 1 1
0 0001 0 0 0 0 1000 0 1 0 0 0001 0 0 0 0 1000 0 1 0

Table of Contents

Other manuals for IDEC MICROSmart FC6A Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC MICROSmart FC6A Series and is the answer not in the manual?

IDEC MICROSmart FC6A Series Specifications

General IconGeneral
BrandIDEC
ModelMICROSmart FC6A Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals