EasyManua.ls Logo

Omron SYSMAC CV Series - Page 543

Omron SYSMAC CV Series
636 pages
Print Icon
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 AInstruction Set
533
Name, mnemonic, variations,
and symbol
PageOperand data
areas
Function
SHIFT DIGIT LEFT
SLD, jSLD
(068)
SLD St E
Shifts all data between the starting word (St)
and ending word (E) one digit (four bits) to the
left, writing zero into the rightmost digit of the
starting word. St and E must be in the same
data area.
E
St
St+1
0
Lost data
St:
CIO
G
A
DM
E:
CIO
G
A
DM
185
SHIFT DIGIT RIGHT
SRD, jSRD
(069)
SRD St E
Shifts all data between starting word (St) and
ending word (E) one digit (four bits) to the
right, writing zero into the leftmost digit of the
ending word. St and E must be in the same
data area.
E
St
St+1
0
Lost data
St:
CIO
G
A
DM
E:
CIO
G
A
DM
186
BCD ADD
ADD, jADD
(070)
ADD Au Ad R
Adds two 4-digit BCD values (Au and Ad) and
the content of CY, and outputs the result to the
specified result word (R).
Au + Ad + CY CY R
Au:
CIO
G
A
T/C
#
DM
DR
IR
Ad:
CIO
G
A
T/C
#
DM
DR
IR
R:
CIO
G
A
DM
DR
IR
250
BCD SUBTRACT
SUB, jSUB
(071)
SUB Mi Su R
Subtracts both the 4-digit BCD subtrahend
(Su) and the content of CY from the 4-digit
BCD minuend (Mi) and outputs the result to
the specified result word (R).
Mi Su CY CY R
Mi:
CIO
G
A
T/C
#
DM
DR
IR
Su:
CIO
G
A
T/C
#
DM
DR
IR
R:
CIO
G
A
DM
DR
IR
251
BCD MULTIPLY
MUL, jMUL
(072)
MUL 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:
CIO
G
A
T/C
#
DM
DR
IR
Mr:
CIO
G
A
T/C
#
DM
DR
IR
R:
CIO
G
A
DM
253

Table of Contents

Related product manuals