![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262492.webp)
Appendices
A-32
CP2E CPU Unit Software User’s Manual(W614)
A-1-14
Table Data Processing Instructions
Instruction
Mnemonic
Variations
Symbol/Operand
Function
SWAP BYTES
SWAP
@
Switches the leftmost and rightmost bytes in all of the words in the
range.
FIND MAXI-
MUM
MAX
@
Finds the maximum value in the range.
FIND MINI-
MUM
MIN
@
Finds the minimum value in the range.
FRAME
CHECKSUM
FCS
@
Calculates the FCS value for the specified range and outputs the
result in ASCII.
C: First control word
N
R1
SWAP(6
3
7)
N
: Number of words
R1
: 1st word in range
N
R1
Byte position is swapped.
MAX(182)
C
R1
D
C
: Fir
s
t control word
R1
: Fir
s
t word in r
a
nge
D
: De
s
tin
a
tion word
R1+(W–1)
C
W
M
a
x.
W word
s
PC memory
a
ddre
ss
v
a
l
u
e
MIN(183)
C
R1
D
C
: Fir
s
t control word
R1
: Fir
s
t word in r
a
nge
D
: De
s
tin
a
tion word
R1+(W–1)
R1
C
W
W word
s
Min. v
a
l
u
e
PC memory
a
ddre
ss
C
: First control word
R1
: First word in range
D
: First destination word
FCS(1
8
0)
C
R1
D
R1
Calculation
W (Table length)
ASCII conversion
FCS value
D
15
0
C
15
0
14
0
C+1
13 12 11
0000
0000
0000
00
0
Calculation units
W: Number of words/bytes in range
&1 to &65535 (decimal) or
#0001 to #FFFF (hex)
Starting byte (
V
alid only when bit 13 is 1.)
0: Leftmost byte
1: Rightmost byte
0: Words
1: Bytes
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......