204
B*, B*P, B/, B/P
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Program Example
(1) The following program adds the BCD data at D3 and D4 to the BCD data at Z1 and Z2 when X20 goes ON, and stores
the result at R10 and R11.
[Ladder Mode]
[List Mode]
: Data to be multiplied/divided or head number of the devices where the data to be multiplied/divided is stored (BCD 4 digits)
: Data for multiplying/dividing or head number of the devices where the data for multiplying/dividing is stored (BCD 4 digits)
:
Head number of the devices where the multiplication/division operation result will be stored (BCD 8 digits)
Function
B*
(1) Multiplies BCD data designated by and BCD data designated by , and stores the result in the device designated by
.
(2) 0 to 9999 (BCD 4 digits) can be assigned to and .
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The , or BCD data is outside the 0 to 99999999 range.
B*, B*P, B/, B/P
BCD 4-digit multiplication and division operations
6.2.7
B*, B*P, B/, B/P
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
S1
S2
D
Step
Instruction
Device
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
P
B*
*
, B/
P, B/P
B
S1
S2
D
S1
S2
D
B
,
B/
indicates an instruction s
y
mbol of
*
.
S1
S2
D
S1
S2
D
S1
S2
D
4
0
9
7
8
0
7
6
6
5
7
8
(U
pper 4 digits
)
+1
9
3
2
8
(
Lower 4 digits
)
S1
S2
D
D
S1
S2