![Omron SYSMAC C200HE Скачать руководство пользователя страница 252](http://html1.mh-extra.com/html/omron/sysmac-c200he/sysmac-c200he_operation-manual_742434252.webp)
234
Flags
ER:
Mi, M+1,Su, and Su+1 are not BCD.
Indirectly addressed DM word is non-existent. (Content of
DM word is
not BCD, or the DM area boundary has been exceeded.)
CY:
ON when the result is negative, i.e., when Mi is less than Su.
EQ
:
ON when the result is 0.
The following example works much like that for single-word subtraction. In this
example, however, BSET(71) is required to clear the content of DM 0000 and
DM 0001 so that a negative result can be subtracted from 0 (inputting an 8-digit
constant is not possible).
Example
CLC(41)
@SUBL(55)
HR 20
120
DM 0100
CLC(41)
@SUBL(55)
DM 0000
DM 0100
DM 0100
TR 0
25504
HR 2100
00003
25504
HR 2100
First
subtraction
Second
subtraction
Turned ON to indicate
negative result.
@BSET(71)
#0000
DM 0000
DM 0001
00000
LD
00003
00001
OUT
TR
0
00002
CLC(41)
00003
@SUBL(55)
HR
20
120
DM
0100
00004
AND
25504
00005
@BSET(71)
#
0000
DM
0000
DM
0001
00006
CLC(41)
00007
@SUBL(55)
DM
0000
DM
0100
DM
0100
00008
LD
TR
0
00009
AND
25504
00010
OR
HR
2100
00011
OUT
HR
2100
Address
Instruction
Operands
Address
Instruction
Operands
BCD Calculations
Section 5-19
Содержание SYSMAC C200HE
Страница 1: ...Cat No W303 E1 09 OPERATION MANUAL Programmable Controllers C200HX C200HG C200HE ...
Страница 2: ......
Страница 3: ...C200HX C200HG C200HE Programmable Controllers Operation Manual Revised August 2004 ...
Страница 6: ...vi ...
Страница 10: ......
Страница 12: ......
Страница 380: ......
Страница 410: ......
Страница 438: ......
Страница 464: ......
Страница 474: ......
Страница 522: ......
Страница 538: ......
Страница 552: ...534 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage ...
Страница 554: ......
Страница 560: ......
Страница 584: ......
Страница 585: ......
Страница 586: ...W303 E1 09 ...