
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
0
8 7
to
Leftmost byte Rightmost byte
Summary of Contents for SYSMAC CS Series
Page 2: ......
Page 4: ...iv ...
Page 30: ...xxx ...
Page 186: ...146 List of Instructions by Function Code Section 2 4 ...
Page 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Page 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Page 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Page 1392: ...1352 ASCII Code Table Appendix A ...
Page 1404: ...1364 Revision History ...