EasyManua.ls Logo

Omron SYSMAC CV Series - Signed Binary Compare: Cps(026)

Omron SYSMAC CV Series
636 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
215
When CIO 000001 is OFF, CIO 005001 is turned OFF.
Address Instruction Operands
00000 LD 000000
00001 <(310)
D00100
D00200
00002 LD 000001
00003 <S(312)
D00110
D00210
8714
S
1
: D00100
Decimal: 34580
3A1C
S
2
: D00200
Decimal: 14876
34580 > 14876
(Will not proceed to next line.)
Comparison
without sign (<)
Comparison
with sign (<S)
8714
S
1
: D00110
Decimal: -30956
3A1C
S
2
: D00210
Decimal: 14876
-30956 > 14876
(Will proceed to next line.)
5-16-8 SIGNED BINARY COMPARE: CPS(026)
(
026
)
CPS S
1
S
2
Ladder Symbol
Variations
! CPS(026)
Operand Data Areas
S
1
: Comparison word 1 CIO, G, A, T, C, #, DM, DR, IR
S
2
: Comparison word 2 CIO, G, A, T, C, #, DM, DR, IR
When the execution condition is OFF, CPS(026) is not executed. When the ex-
ecution condition is ON, CPS(026) compares constants and/or the contents of
specified words as signed 16-bit binary data and changes the status of compari-
son flags according to the results.
After CPS(026) execution, the A50005 (GR), A50006 (EQ), and A50007 (LE)
Flags will turn ON and OFF as shown in the following table.
Comparison result A50005
(GR)
A50006
(EQ)
A50007
(LE)
S
1
> S
2
ON OFF OFF
S
1
= S
2
OFF ON OFF
S
1
< S
2
OFF OFF ON
The range that can be specified for comparison is 8000 to 7FFF (i.e., -32,768 to
32,767 in decimal).
Flags ER (A50003): Content of *DM word is not BCD when set for BCD.
GR (A40213), EQ (A50006), LE (A50007): (Refer to tables above.)
Description
(CVM1 V2)
Comparison Instructions Section 5-16
(312)
<S D00110 D00210
(310)
< D00100 D00200
0000
00
0000
01
0050
00
0050
01

Table of Contents

Related product manuals