Asr; Rol; Ror; Com - Omron C500-LDP01-V1 Operation Manual

Ladder program i/o unit
Table of Contents

Advertisement

Name
Mnemonic
ARITHMETIC
SHIFT RIGHT

ASR(26)

ROTATE LEFT

ROL(27)

ROTATE RIGHT

ROR(28)

COMPLEMENT

COM(29)

BCD ADD

ADD(30)

BCD SUBTRACT

SUB(31)

AND WORD
ANDW(34)
OR WORD
ORW(35)
Symbol
Each bit within a single word of data (Wd)
is shifted one bit to the right, with zero
written to bit 15 and bit 00 moving to CY.
ASR(26)
Wd
0
Each bit within a single word of data (Wd)
is moved one bit to the left, with bit 15
moving to carry (CY), and CY moving to bit
ROL(27)
00.
Wd
Each bit within a single word of data (Wd)
is moved one bit to the right, with bit 00
moving to carry (CY), and CY moving to bit
ROR(28)
15.
Wd
Inverts bit status of one word (Wd) of data,
changing 0s to 1s, and vice versa.
COM(29)
Wd
Adds two 4-digit BCD values (Au and Ad)
and content of CY, and outputs the result to
ADD(30)
the specified result word (R).
Au
Ad
Au + Ad +
R
Subtracts both the 4-digit BCD subtrahend
(Su) and content of CY, from the 4-digit
SUB(31)
BCD minuend (Mi) and outputs the result to
Mi
the specified result word (R).
Su
R
Mi -- Su --
Logically ANDs two 16-bit input words (I1
and I2) and sets the bits in the result word
ANDW(34)
(R) if the corresponding bits in the input
words are both ON.
I1
I2
R
Logically ORs two 16-bit input words (I1
and I2) and sets the bits in the result word
ORW(35)
(R) when one or both of the corresponding
I1
bits in the input words is/are ON.
I2
R
Function
15
00
Wd
CY
15
00
CY
Wd
15
00
CY
Wd
Wd
Wd
CY
CY
R
CY
R CY
Appendix C
Operand Data Areas
Wd:
IR
Work bits (except word 12)
DM
Wd:
IR
Work bits (except word 12)
DM
Wd:
IR
Work bits (except word 12)
DM
Wd:
IR
Work bits (except word 12)
DM
Au/Ad:
R:
IR
IR
SR
Work bits (ex-
Work
cept word 12)
bits
DM
TC
DM
#
Mi/Su:
R:
IR
IR
SR
Work bits (ex-
Work
cept word 12)
bits
DM
TC
DM
#
I1/I2:
R:
IR
IR
SR
Work bits (ex-
Work
cept word 12)
bits
DM
TC
DM
#
I1/I2:
R:
IR
IR
SR
Work bits (ex-
Work
cept word 12)
bits
DM
TC
DM
#

Advertisement

Table of Contents
loading

Table of Contents