![Omron CVM1D Скачать руководство пользователя страница 208](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532208.webp)
203
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).
Note The immediate-refresh variation of CPS(026) can be used in simplex mode only;
it cannot be used in duplex mode.
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
Comparison Instructions
Section 5-16
(312)
<S
D00110
D00210
(310)
<
D00100
D00200
0000
00
0000
01
0050
00
0050
01
Содержание CVM1D
Страница 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Страница 463: ...iv...
Страница 465: ...vi...