B-63983EN/02 4.LADDER LANGUAGE
- 405 -
Table 4.13.2 Mnemonic of ROTB instruction
Mnemonic format Status of operation result
Step
number
Instruction
Address
No.
Bit No. Remarks ST4 ST3 ST2 ST1 ST0
1RD ¡¡¡¡ .¡ RN0 RN0
3 RD. STK ¡¡¡¡ .¡ DIR RN0 DIR
4 RD. STK ¡¡¡¡ .¡ POS RN0 BYT POS
5 RD. STK ¡¡¡¡ .¡ INC RN0 BYT DIR INC
6 RD. STK ¡¡¡¡ .¡ ACT RN0 BYT DIR POS ACT
7 SUB 26 ROTB
8(PRM) ¡¡¡¡ Rotating element indexed
position address
9(PRM) ¡¡¡¡ Current position address
10 (PRM) ¡¡¡¡ Target position address
11 (PRM) ¡¡¡¡ Arithmetic result output
address
12 WRT ¡¡¡¡ .¡ Output of rotation direction W1
Control conditions
The control conditions do not differ basically from those for ROT
command. However, BYT has been eliminated from ROTB (it forms
part of the ROTB parameters).
For the reset, see ROT.
Parameters
(a) Format
Specifies data length (1, 2, or 4 bytes). Use the first digit of the
parameter to specify the number of bytes.
1: 1 byte
2: 2 bytes
4: 4 bytes
All numerical data (number of indexed positions for the rotating
elements, current address, etc.) are in the binary format.
Therefore, they require the memory space specified by data
length.
(b) Rotating element indexed position address
Specifies the address containing the number of rotary element
positions to be indexed.
(c) Other parameters
For the functions and use of the other parameters, see the ROT
instruction.