EasyManuals Logo

IDEC OpenNet series User Manual

IDEC OpenNet series
427 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 #193 background imageLoading...
Page #193 background image
13: BIT SHIFT / ROTATE INSTRUCTIONS
13-10 OPENNET CONTROLLER USERS MANUAL
Examples: ROTLC
• Data Type: Word
• Data Type: Double Word
0
Before rotation: D10 = 40966
1 1 0000 0 0 0 0 1100 0 0
CY
M8003
MSB LSB
D10
After first rotation: D10 = 16396
Bits to rotate = 1
After second rotation: D10 = 32793
1 0 0 0001 0 0 0 0 0100 1 0
CY
M8003
MSB LSB
D10
0 1 0 0000 0 0 0 0 0010 1 1
CY
M8003
MSB LSB
D10
M8120
REP
M8120 is the initialize pulse special internal relay.
When the CPU starts operation, the MOV (move) instruction sets 40966
to data register D10.
Each time input I0 is turned on, 16-bit data of data register D10 is
rotated to the left by 1 bit as designated by operand bits.
The status of the MSB is set to a carry (special internal relay M8003),
and the carry status is set to the LSB.
SOTU
I0
S1
40966
D1
D10
S1
D10
bits
1
ROTLC(W)
MOV(W)
Each time input I1 is turned on, 32-bit data of data registers D10 and
D11 is rotated to the left by 1 bit as designated by operand bits.
The status of the MSB is set to a carry (special internal relay M8003),
and the carry status is set to the LSB.
Bits to rotate = 1
SOTU
I1
S1
D10
bits
1
ROTLC(D)
Before rotation: D10·D11 = 2,684,788,742
After rotation: D10·D11 = 1,074,610,188
0 1 1 0000 0 0 0 0 1100 0 0
CY
M8003
MSB LSB
D10·D11
1 01 0000 0 0 0 0 1100 0 0
CY
M8003
MSB LSB
D10·D11
Rotate to the left
11 0000 0 0 0 0 1100 0 0
1 1 0000 0 0 0 0 1100 0 0
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC OpenNet series and is the answer not in the manual?

IDEC OpenNet series Specifications

General IconGeneral
BrandIDEC
ModelOpenNet series
CategoryController
LanguageEnglish

Related product manuals