
B-63983EN/02 4.LADDER LANGUAGE
- 401 -
Table 4.13.1 Mnemonic of ROT instruction
Mnemonic format Status of operation result
Step
number
Instruction
Address
No.
Bit No. Remarks ST5 ST4 ST3 ST2 ST1 ST0
1RD ¡¡¡¡ .¡ RN0 RN0
2 RD. STK ¡¡¡¡ .¡ BYT RN0 BYT
3 RD. STK ¡¡¡¡ .¡ DIR RN0 BYT DIR
4 RD. STK ¡¡¡¡ .¡ POS RN0 BYT DIR POS
5 RD. STK ¡¡¡¡ .¡ INC RN0 BYT DIR POS INC
6 RD. STK ¡¡¡¡ .¡ ACT RN0 BYT DIR POS INC ACT
7SUB 6 ROT
8(PRM) ¡¡¡¡ Rotor indexing
number
9(PRM) ¡¡¡¡ Current position
address
10 (PRM) ¡¡¡¡ Goal position
address
11 (PRM) ¡¡¡¡ Operation result
output address
12 WRT ¡¡¡¡ .¡ Output of rotation
direction
W1
Control conditions
(a) Specify the starting number of the rotor. (RN)
RN0=0: Begins the number of the position of the rotor with 0.
RN0=1: Begins the number of the position of the rotor with 1.
(b) Specify the number of digits of the process data (position data).
(BYT)
BYT=0: BCD two digits
BYT=1: BCD four digits
(c) Select the rotation direction via the shorter path or not. (DIR)
DIR=0: No direction is selected. The direction of rotation is
only forward.
DIR=1: Selected. See rotating direction output (W1) described
below for details on the rotation direction.
(d) Specify the operating conditions. (POS)
POS=0: Calculates the goal position.
POS=1: Calculates the position one position before the goal
position.