![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268765.webp)
726
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
Содержание SYSMAC CS1D-CPU**
Страница 3: ...iv...
Страница 29: ...xxx...
Страница 185: ...146 List of Instructions by Function Code Section 2 4...
Страница 193: ...154 3 35 4 MOVE BIT MOVBC 568 1274 3 35 5 BIT COUNTER BCNTC 621 1276 3 35 6 GET VARIABLE ID GETID 286 1278...
Страница 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Страница 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Страница 1391: ...1352 ASCII Code Table Appendix A...