Chapter 16 PLC Function Applications
MS300
(High Speed Model)
16-61
API
ROL
D
n
Left rotation
31
D
P
Bit device
Word device
16-bit command (5 STEP)
ROL
Continuous
execution type
ROLP
Pulse
execution type
32-bit command (9 STEP)
DROL
Continuous
execution type
DROLP Pulse
execution type
Flag signal: M1022 Carry flag
X Y M K H KnX
KnY
KnM
T
C
D
D
*
*
*
*
*
n
*
*
Notes on operand usage:
Only K4 (16-bit) will be valid if the operand D is designated as KnY
or KnM.
n operand n=1 to 16 (16-bit)
D
: Device to be rotated.
n
: Number of bits for one rotation.
Rotates the device designated by
D
to the left
n
bits.
This command is ordinarily used as a pulse execution type command (ROLP).
When
X0=Off
→
On, 4 of the 16 bits in D10 specify a left rotation; the content of the
bit indicated with * (see figure below) will be sent to the carry flag signal M1022.
X0
D10
K4
1 1 1
1 1
1 0 0
0
0 0
1
1
0 0
0
1
1 0 0 0
0 0
1 1
0
0
1
1
0
1
1 1
16 bits
Rotate to the left
After one rotation
to the left
Carry
flag
Carry
flag
D10
D10
upper bit
upper bit
lower bit
lower bit
Summary of Contents for VFD11AMS21AFSHA
Page 5: ...IV This page intentionally left blank...
Page 8: ...Chapter 1 Introduction MS300 High Speed Model 1 3 1 2 Model Name 1 3 Serial Number...
Page 20: ...Chapter 3 Installation MS300 High Speed Model 3 3...
Page 21: ...Chapter 3 Installation MS300 High Speed Model 3 4 This page intentionally left blank...
Page 24: ...Chapter 4 Wiring MS300 High Speed Model 4 3 4 1 Wiring...
Page 25: ...Chapter 4 Wiring MS300 High Speed Model 4 4 Figure 1...
Page 27: ...Chapter 4 Wiring MS300 High Speed Model 4 6 4 2 System Wiring Diagram...
Page 43: ...Chapter 6 Control Terminals MS300 High Speed Model 6 6 This page intentionally left blank...
Page 91: ...Chapter 8 Optional Cards MS300 High Speed Model 8 8 Frame F Fig 8 16...
Page 115: ...Chapter 9 Specification MS300 High Speed Model 9 10 This page intentionally left blank...
Page 123: ...Chapter 10 Digital Keypad MS300 High Speed Model 10 8 This page intentionally left blank...
Page 293: ...Chapter 13 Warning Codes MS300 High Speed Model 13 6 This page intentionally left blank...
Page 303: ...Chapter 14 Error Codes MS300 High Speed Model 14 10 This page intentionally left blank...