FPΣ
13.8 Table of Instructions
13 - 57
No. Name Boolean Operand Description Steps
Basic function instructions
F118 UP/DOWN
counter
UDC S, D Counts up or down from the value preset in “S” and
stores the elapsed value in “D”.
5
F119 Left/right shift
register
LRSR D1, D2 Shifts one bit to the left or right with the area between
“D1” and “D2” as the register.
5
Data rotation instructions
F120 16-bit data
right rotation
ROR D, n Rotate the “n” bits in data of “D” to the right. 5
F121 16-bit data left
rotation
ROL D, n Rotate the “n” bits in data of “D” to the left. 5
F122 16-bit data
right rotation
with carry flag
data
RCR D, n Rotate the “n” bits in 17-bit area consisting of “D” plus
the carry flag (R9009) data to the right.
5
F123 16-bit data left
rotation with
carry flag data
RCL D, n Rotate the “n” bits in 17-bit area consisting of “D” plus
the carry flag (R9009) data to the left.
5
F125 32-bit data
right rotation
DROR D, n Rotate the number of bits specified by “n” of the double
words data (32 bits) specified by (D+1, D) to the right.
5
F126 32-bit data left
rotation
DROL D, n Rotate the number of bits specified by “n” of the double
words data (32 bits) specified by (D+1, D) to the left.
5
F127 32-bit data
right rotation
with carry flag
data
DRCR D, n Rotate the number of bits specified by “n” of the double
words data (32 bits) specified by (D+1, D) to the right
together with carry flag (R9009) data.
5
F128 32-bit data left
rotation with
carry flag data
DRCL D, n Rotate the number of bits specified by “n” of the double
words data (32 bits) specified by (D+1, D) to the left
together with carry flag (R9009) data.
5
Bit manipulation instructions
F130 16-bit data bit
set
BTS D, n Set the value of bit position “n” of the data of “D” to 1. 5
F131 16-bit data bit
reset
BTR D, n Set the value of bit position “n” of the data of “D” to 0. 5
F132 16-bit data bit
invert
BTI D, n Invert the value of bit position “n” of the data of “D”. 5
F133 16-bit data bit
test
BTT D, n Test the value of bit position “n” of the data of “D” and
output the result to R900B.
5
F135 Number of on
(1) bits in 16-bit
data
BCU S, D Store the number of on (1) bits in the data of “S” in “D”. 5
F136 Number of on
(1) bits in 32-bit
data
DBCU S, D Store the number of on (1) bits in the data of (S+1, S)
in “D”.
7
Basic function instruction
F137 Auxiliary timer
(16-bit)
STMR S, D Turn on the specified output and R900D after set value
“S” × 0.01 sec..
5