![background image](http://html1.mh-extra.com/html/omron/sysmac-c20p/sysmac-c20p_installation-manual_742249082.webp)
Appendix C
Programming Instructions
77
Name
Mnemonic
Operands
Function
Symbol
Move
MOV(21)
MOV(21)
S
D
Transfers source data (S) (word or four-
digit constant) to destination word (D).
S:
IR
SR
HR
AR
LR
TC
DM
#
D:
IR
HR
AR
LR
DM
Move NOT
MVN(22)
MVN(22)
S
D
Inverts source data (S) (word or four-digit
constant) and then transfers it to destina-
tion word (D).
S:
IR
SR
HR
AR
LR
TC
DM
#
D:
IR
HR
AR
LR
DM
BCD to
Binary
BIN(23)
BIN(23)
S
R
Converts four-digit, BCD data in source
word (S) into 16-bit binary data, and out-
puts converted data to result word (R).
S R
x10
0
x10
1
x10
2
x10
3
x16
0
x16
1
x16
2
x16
3
(BCD
) (
BIN
)
S:
IR
SR
HR
AR
LR
TC
DM
R:
IR
HR
AR
LR
DM
Binary to
BCD
BCD(24)
BCD(24)
S
R
Converts binary data in source word (S)
into BCD, and outputs converted data to
result word (R).
x16
0
x16
1
x16
2
x16
3
x10
1
x10
2
x10
3
S R
(
BIN) (BCD
)
x10
0
S:
IR
SR
HR
AR
LR
DM
R:
IR
HR
AR
LR
DM
BCD Add
ADD(30)
ADD(30)
Au
Ad
R
CY CY
Adds two four-digit BCD values (Au and
Ad) and content of CY, and outputs result
to specified result word (R).
Au + Ad +
R
Au/Ad:
IR
SR
HR
AR
LR
TC
DM
#
R:
IR
HR
AR
LR
DM
BCD
Subtract
SUB(31)
SUB(31)
Mi
Su
R
Subtracts both four-digit BCD subtrahend
(Su) and content of CY from four-digit BCD
minuend (Mi) and outputs result to speci-
fied result word (R).
CY CY
Mi – Su
R
Mi/Su:
IR
SR
HR
AR
LR
TC
DM
#
R:
IR
HR
AR
LR
DM
Содержание SYSMAC C20P
Страница 1: ...Cat No W167 E1 4A C20P C28P C40P C60P SYSMAC Programmable Controllers...
Страница 2: ...P type Programmable Controllers Installation Guide Revised July 1994 C20P C60P C60P C20P...
Страница 3: ...iv...
Страница 5: ...vi...