![background image](http://html.mh-extra.com/html/omron/sysmac-cp-series/sysmac-cp-series_user-manual_742262481.webp)
A-21
Appendices
CP2E CPU Unit Software User’s Manual(W614)
A
-1 In
struction
Fu
nctio
n
s
App
A-1-9 Symbol Math In
str
uctions
SIGNED
BINARY SUB-
TRACT WITH
CARRY
−
C
@
Subtracts 4-digit (single-word) hexadecimal data and/or constants
with the Carry Flag (CY).
DOUBLE
SIGNED
BINARY WITH
CARRY
−
CL
@
Subtracts
8
-digit (double-word) hexadecimal data and/or con-
stants with the Carry Flag (CY).
BCD SUB-
TRACT WITH-
OUT CARRY
−
B
@
Subtracts 4-digit (single-word) BCD data and/or constants.
DOUBLE BCD
SUBTRACT
WITHOUT
CARRY
−
BL
@
Subtracts
8
-digit (double-word) BCD data and/or constants.
BCD SUB-
TRACT WITH
CARRY
−
BC
@
Subtracts 4-digit (single-word) BCD data and/or constants with the
Carry Flag (CY).
DOUBLE BCD
SUBTRACT
WITH CARRY
−
BCL
@
Subtracts
8
-digit (double-word) BCD data and/or constants with
the Carry Flag (CY).
Instruction
Mnemonic
Variations
Symbol/Operand
Function
−
C(412)
Mi
Su
R
Mi
: Minuend word
Su
: Subtrahend word
R
: Result word
CY
Mi
Su
R
CY
(Signed binary)
(Signed binary)
(Signed binary)
CY will turn
ON when
there is a
borrow.
−
−
CL(413)
Mi
Su
R
Mi
: Minuend word
Su
: Subtrahend word
R
: Result word
Mi+1
Su+1
R+1
CY
Mi
Su
R
CY
(Signed binary)
(Signed binary)
(Signed binary)
CY will turn
ON when
there is a
borrow.
−
−
B(414)
Mi
Su
R
Mi
: Minuend word
Su
: Subtrahend word
R
: Result word
Mi
Su
R
CY
(BCD)
(BCD)
(BCD)
CY will turn ON
when there is a
carry.
−
−
BL(415)
Mi
Su
R
Mi
: 1st minuend word
Su
: 1st subtrahend word
R
: 1st result word
Mi +1
Su+1
R+1
CY
Mi
Su
R
(BCD)
(BCD)
(BCD)
CY will turn
ON when
there is a
borrow.
−
−
BC(416)
Mi
Su
R
Mi
: Minuend word
Su
: Subtrahend word
R
: Result word
CY
Mi
Su
R
CY
(BCD)
(BCD)
(BCD)
CY will turn
ON when
there is a
borrow.
−
−
BCL(417)
Mi
Su
R
Mi
: 1st minuend word
Su
: 1st subtrahend word
R
: 1st result word
Mi +1
Su+1
R+1
CY
Mi
Su
R
CY
(BCD)
(BCD)
(BCD)
CY will turn
ON when
there is a
borrow.
−
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......