725
Table Data Processing Instructions Section 3-17
If the table length is specified as &10 (10 decimal) or A hexadecimal, the num-
ber of matches will not be output to the data register DR00.
3-17-9 SWAP BYTES: SWAP(637)
Purpose Switches the leftmost and rightmost bytes in all of the words in the range.
In CS1D CPU Units for Single-CPU Systems and CS1-H, CJ1-H, and CJ1M
CPU Units, this instruction can be run in the background. Refer to CS/CJ
Series Programmable Controllers Programming Manual for details on back-
ground execution.
Ladder Symbol
Variations
Applicable Program Areas
Operands N: Number of words
N specifies the number of words in the range and must be 0001 to FFFF
hexadecimal (or &1 to &65,535).
R1: First word in range
R1 specifies the first word in the range. R1 and R1+(N–1) must be in the
same data area.
D00200
#8000000A
R1
Cd
10067
00010067
0003
Search
Number of matches
Number of matches
PC memory
address
SWAP(637)
N
R1
N: Number of words
R1: First word in range
Variations Executed Each Cycle for ON Condition SWAP(637)
Executed Once for Upward Differentiation @SWAP(637)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification Not supported.
Block program areas Step program areas Subroutines Interrupt tasks
OK OK OK OK
R1
R1+(N–1)
15 087
to
Leftmost byte Rightmost byte