116
D320 PLC User's Manual
Rotation Instruction Details
Instruction
Mnemonic
Rotate to the Left Without Carry
Range
Bit
■
Word
RLC
DRLC
Rotate specified address to the
left (low to high)
■
Double words
Ladder
D = Register address
N = Number of bits to rotate
Description
1. Order:
Shift by N bits to the left (from low-order bit to high-order bit).
Fill the carry bit (F1.8) with the MSB (most significant bit).
Shift the MSB to the LSB (least significant bit).
2. Shift the register specified as D to the left by N bits. Each bit will move one bit position
higher in the register.
3.
The D register is either a word or a double word. For RLC (word), N = 0 to 15. For DRLC
(double word), N = 0 to 31.
4. This operation will occur on every scan for which the input condition is true (On). To perform
the operation only on a change of input condition, use the rising/falling edge contact.
Example
Program Expression
Operation Results
Initial condition:
M0000 = $0F0F
M0001 = $0F0F
M0002 = $0F0F
Operation results:
M0 = $1E1E
M1 = $3C3C
M2 = $3C3C
RLC
D =
N =
R
MSB
LSB
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
carry
(F1.8)
C
p o n m l k j i h g f e d c b a
p
RLC
D = M0000
N = 1
DRLC
D = M0001
N = 2
R0.0
R
0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1
0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0
0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0
Содержание D320 PLC
Страница 1: ...D320 PLC User s Manual...
Страница 18: ...6 D320 PLC User s Manual...
Страница 28: ...16 D320 PLC User s Manual...
Страница 34: ...22 D320 PLC User s Manual...
Страница 78: ...66 D320 PLC User s Manual...
Страница 176: ...164 D320 PLC User s Manual...
Страница 210: ...198 D320 PLC User s Manual...
Страница 258: ...246 D320 PLC User s Manual...