Delta DVP-ES2 User Manual Page 210

  • Download
  • Add to my manuals
  • Print
  • Page
    / 702
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 209
DVP-ES2/EX2/SS2/SA2/SX2/SE Operation Manual - Programming
3-94
API Mnemonic Operands Function
33
D RCL P
Rotation Left with Carry
Controllers
ES2/EX2 SS2
SA2
SE
SX2
Bit Devices Word devices Program Steps Type
OP
X Y M S K H KnX KnY KnM KnS T C D E F
D
* * * * * ***
n * *
RCL, RCLP: 5 steps
DRCL, DRCLP: 9 steps
PULSE 16-bit 32-bit
ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2
Operands:
D: Device to be rotated n: Number of bits to be rotated in 1 rotation
Explanations:
1. This instruction rotates bit status of the device D together with M1022 to the left for n bits.
2. The status of the last bit rotated (marked with) is moved to the carry flag M1022.
3. This instruction is generally used in pulse execution mode (RCLP, DRCLP).
4. If operand D uses index F, only a 16-bit instruction is available.
5. If operand D is specified as KnY, KnM or KnS, only K4 (16-bit) or K8 (32-bit) is valid.
6. Valid range of operand n: 1 n 16 (16-bit), 1 n 32 (32-bit)
Program Example:
When X0 goes from OFF to ON, the 16 bits (4 bits as a group) in D10 together with carry flag
M1022 (total 17 bits) will rotate to the left, as shown in the figure below. The bit marked with will
be sent to carry flag M1022.
X0
D10 K4
11111100 00011 000
1100000 10000111 1
16 bits
Rotate to the left
After one rotation
to the left
Carry
flag
Carry
flag
Upper bit
Lower bit
Upper bit
Lower bit
D10
D10
RCLP
M1022
M1022
Page view 209
1 2 ... 205 206 207 208 209 210 211 212 213 214 215 ... 701 702

Comments to this Manuals

No comments