Swap Bytes: Swap(637) - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Table Data Processing Instructions
#8000000A
R1
Cd

3-17-9 SWAP BYTES: SWAP(637)

Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
726
PC memory
address
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.
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.
SWAP(637)
N: Number of words
N
R1: First word in range
R1
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
OK
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.
R1+(N–1)
Search
10067
D00200
Number of matches
00010067
0003
Step program areas
Subroutines
OK
Leftmost byte Rightmost byte
15
8 7
R1
to
Section 3-17
Number of matches
SWAP(637)
@SWAP(637)
Not supported.
Interrupt tasks
OK
0

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 01-2008 and is the answer not in the manual?

Questions and answers

Table of Contents