EasyManua.ls Logo

Omron C200H - Page 303

Omron C200H
374 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix BProgramming Instructions
295
IR SR HR TR AR LR TC DM #
00000 to 23515 23600 to 25507 HR 0000 to 9915 TR 0 to 7 AR 0000 to 2715 LR 0000 to 6315 TC 000 to 511 Read/Wr: DM 0000 to DM 0999
Rd only: DM 1000 to DM 1999
0000 to 9999
or 0000 to FFFF
These footnote tables show the actual ranges of all data areas. Bit numbers are provided (except for DM and TC areas); remove the rightmost two digits for word numbers.
Data Areas
Name
Mnemonic
Operand Data AreasFunctionSymbol
ARITHMETIC SHIFT
RIGHT
(@)ASR(26)
ASR(26)
Wd
Each bit within a single word of data (Wd)
is shifted one bit to the right, with zero writ-
ten to bit 15 and bit 00 moving to CY.
0
Wd CY
15 00
Wd:
IR
HR
AR
LR
DM
ROTATE LEFT
(@)ROL(27)
ROL(27)
Wd
Each bit within a single word of data (Wd)
is moved one bit to the left, with bit 15 mov-
ing to carry (CY), and CY moving to bit 00.
15 00
CY
Wd
Wd:
IR
HR
AR
LR
DM
ROTATE RIGHT
(@)ROR(28)
ROR(28)
Wd
15 00
CY 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
15.
Wd:
IR
HR
AR
LR
DM
COMPLEMENT
(@)COM(29)
COM(29)
Wd
Inverts bit status of one word (Wd) of data,
changing 0s to 1s, and vice versa.
Wd Wd
Wd:
IR
HR
AR
LR
DM
BCD ADD
(@)ADD(30)
ADD(30)
Au
Ad
R
CY CY
Adds two 4-digit BCD values (Au and Ad)
and content of CY, and outputs the result to
the 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 the 4-digit BCD subtrahend
(Su) and content of CY, from the 4-digit
BCD minuend (Mi) and outputs the result
to the specified result word (R).
CYMi – Su – R CY
Mi/Su:
IR
SR
HR
AR
LR
TC
DM
#
R:
IR
HR
AR
LR
DM
BCD MULTIPLY
(@)MUL(32)
MUL(32)
Md
Mr
R
Multiplies the 4-digit BCD multiplicand
(Md) and 4-digit BCD multiplier (Mr), and
outputs the result to the specified result
words (R and R + 1). R and R + 1 must be
in the same data area.
Md x Mr
R + 1 R
Md/Mr:
IR
SR
HR
AR
LR
TC
DM
#
R:
IR
HR
AR
LR
DM

Table of Contents

Related product manuals