Cmp; Mov; Mvn; Bin - Omron C500-LDP01-V1 Operation Manual

Ladder program i/o unit
Table of Contents

Advertisement

Name
Mnemonic
COMPARE

CMP(20)

MOVE

MOV(21)

MOVE NOT

MVN(22)

BCD TO BINARY

BIN(23)

BINARY TO BCD

BCD(24)

ARITHMETIC
SHIFT LEFT

ASL(25)

Symbol
Compares
hexadecimal words (Cp1 and Cp2) and
outputs result to the GR, EQ, or LE Flags.
CMP(20)
Cp1
Cp2
Transfers data from source word, (S) to
destination word (D).
MOV(21)
S
D
Transfers the inverse of the data in the
source word (S) to destination word (D).
MVN(22)
S
D
Converts 4-digit, BCD data in source word
(S) into 16-bit binary data, and outputs
converted data to result word (R).
BIN(23)
S
R
(BCD
Converts binary data in source word (S)
into BCD, and outputs converted data to
BCD(24)
result word (R).
S
R
(
BIN)
Each bit within a single word of data (Wd)
is shifted one bit to the left, with zero written
to bit 00 and bit 15 moving to CY.
ASL(25)
Wd
Function
the
data
in
two
4-digit
S
R
)
(
)
BIN
0
x16
x10
1
x10
x16
2
x16
x10
3
x10
x16
S
R
)
(BCD
0
x16
0
x10
1
1
x10
x16
2
2
x16
x10
3
3
x10
x16
15
00
CY
0
Wd
Appendix C
Operand Data Areas
Cp1/Cp2:
IR
SR
Work bits
TC
DM
#
S:
D:
IR
IR
SR
Work bits (ex-
Work
cept word 12)
bits
DM
TC
DM
#
S:
D:
IR
IR
SR
Work bits (ex-
Work
cept word 12)
bits
DM
TC
DM
#
S:
R:
IR
IR
SR
Work bits (ex-
Work
cept word 12)
bits
DM
TC
DM
0
1
2
3
S:
R:
IR
IR
SR
Work bits (ex-
Work
cept word 12)
bits
DM
DM
Wd:
IR
Work bits (except word 12)
DM

Advertisement

Table of Contents
loading

Table of Contents