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

Ladder diagrams
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Comparison Instructions
0000
00
(310)
<
D00100
0000
01
(312)
<S
D00110

5-16-8 SIGNED BINARY COMPARE: CPS(026)

Ladder Symbol
(
)
026
CPS S
1
Variations
! CPS(026)
Description
Flags
When CIO 000001 is OFF, CIO 005001 is turned OFF.
0050
00
D00200
0050
01
D00210
Comparison
S
: D00100
1
without sign (<)
8714
Decimal: 34580
Comparison
S
: D00110
1
with sign (<S)
8714
Decimal: -30956
Operand Data Areas
S
1
S
2
S
2
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
S
S
S
The range that can be specified for comparison is 8000 to 7FFF (i.e., -32,768 to
32,767 in decimal).
Content of *DM word is not BCD when set for BCD.
ER (A50003):
GR (A40213), EQ (A50006), LE (A50007):
S
: D00200
2
3A1C
Decimal: 14876
34580 > 14876
(Will not proceed to next line.)
S
: D00210
2
3A1C
Decimal: 14876
-30956 > 14876
(Will proceed to next line.)
: Comparison word 1
: Comparison word 2
> S
1
2
= S
1
2
< S
1
2
Section 5-16
Address Instruction
00000
LD
00001
<(310)
00002
LD
00003
<S(312)
(CVM1 V2)
CIO, G, A, T, C, #, DM, DR, IR
CIO, G, A, T, C, #, DM, DR, IR
A50005
A50006
(GR)
(EQ)
ON
OFF
OFF
ON
OFF
OFF
(Refer to tables above.)
Operands
000000
D00100
D00200
000001
D00110
D00210
A50007
(LE)
OFF
OFF
ON
215

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cv2000Cvm1Cv500Cv1000

Table of Contents