![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030117.webp)
77
Instruction Functions
Section 2-2
SWAP BYTES
SWAP
@SWAP
637
Output
Required
725
FIND MAXIMUM
MAX
@MAX
182
Output
Required
727
FIND MINIMUM
MIN
@MIN
183
Output
Required
731
SUM
SUM
@SUM
184
Output
Required
735
FRAME CHECK-
SUM
FCS
@FCS
180
Output
Required
738
Instruction
Mnemonic
Code
Symbol/Operand
Function
Location
Execution
condition
Page
SWAP(637)
N
R1
N: Number of
words
R1: 1st word in
range
N
R1
Switches the leftmost and rightmost bytes in all of the words in the
range.
Byte position is swapped.
MAX(182)
C
R1
D
C: 1st control
word
R1: 1st word in
range
D: Destination
word
R1+(W
−
1)
R1
Finds the maximum value in the range.
Internal I/O
memory address
C words
Max.
value
MIN(183)
C
R1
D
C
: 1st control
word
R1
: 1st word in
range
D
: Destination
word
R1+(W
−
1)
R1
Finds the minimum value in the range.
Internal I/O
memory address
C words
Min. value
SUM(184)
C
R1
D
C
: 1st control
word
R1
: 1st word in
range
D
: 1st destination
word
R1+(W
−
1)
R1
)
Adds the bytes or words in the range and outputs the result to two
words.
FCS(180)
C
R1
D
C
: 1st control
word
R1
: 1st word in
range
D
: 1st destination
word
C units
Calculation
R1
Calculates the ASCII FCS value for the specified range.
ASCII conversion
FCS value
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...