Programming language, User's manual – Toshiba T2N User Manual
Page 248
User's manual
235
5. Programming Language
RLC 1 (A)
(A) RRC n
→
(B)
(A) RLC n
→
(B)
(A) TRRC (m) (B)
(A) TRLC (m) (B)
(A) MPX (n) (B)
→
(C)
Ladder Diagram Instructions (Function Instructions)
Group
FUN
No.
Name
Representation
Summary
Number of
steps
required
Execution
time
required
(
µ
s)
Remarks
Rotate
85
1 bit rotate left with carry
Rotates the data in (A) 1 bit to the left (MSB
direction) including the carry flag. The carry flag
changes according to the result.
2
102
86
n bits rotate right with carry
Rotates the data in (A) n bits to the right (LSB
direction) including the carry flag, and stores the
result in (B). The carry flag changes according to the
result.
4~5
109
87
n bits rotate left with carry
Rotates the data in (A) n bits to the left (MSB
direction), including the carry flag, and stores the
result in (B). The carry flag changes according to the
result.
4~5
109
88
m-bit file n bits rotate right
with carry
If (B) is a register:
Takes the table of m words headed by (B) and
rotates it to the right (low address direction) by the
number of words indicated by (A). (Same as register
specification in FUN82.)
If (B) is a device:
Takes the bit file of m bits headed by (B), including
the carry flag, and rotates it to the right (LSB
direction) by the number of bits indicated by (A). The
carry flag changes according to the result.
4~5
✻
89
m-bit file n bits rotate left
with carry
If (B) is a register:
Takes the table of m words headed by (B) and
rotates it to the left (high address direction) by the
number of words indicated by (A). (Same as register
specification in FUN83.)
If (B) is a device:
Takes the bit file of m bits headed by (B), including
the carry flag, and rotates it to the left (MSB
direction) by the number of bits indicated by (A). The
carry flag changes according to the result.
4~5
✻
90
Multiplexer
Takes the contents of the (B)th register in the table of
size n headed by the register (A), and stores them in
the register (C).
7~9
139