EasyManua.ls Logo

Ghisalba VFD-E Series - Page 263

Default Icon
268 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix D How to Use PLC Function
_
VFD-E Series
D-50 Revision August 2006, 01EE, SW--PW V1.03/CTL V2.03
API Mnemonic Operands Function
30 ROR P D, n Rotate to the Right
Bit Devices Word devices Program Steps
Type
OP
X Y M K H KnX KnY KnM T C D
D * * * * *
ROR, RORP: 5 steps
n
* *
Explanations:
1. If operand D is specified as KnY, KnM, only K4 (16-bit) is valid.
2. Essential condition: 1n16 (16-bit).
3. D: Rotation device (destination device) n: Bit places of one time rotation.
4. The bit pattern of device D is rotated n bit places to the right on every operation of the
command.
5. M1022 (Carry flag).
Program Example:
When X0 goes from OFF to ON, the 16 bit data of D10 will rotate 4 bits to the right, as shown in the
diagram, and b3 that located at D10 originally will then be moved to the carry flag (CY) M1022.
01110101 00111 001
010111001111001 0
0
upper bit lower bit
upper bit lower bit
*
X0
RORP
D10 K4
Rotate to the right
16 bits
Carry
flag
Carry
flag
After one rotation
to the right
D10
D10