Mitsubishi Electric A800 Programming Manual page 166

800 series, plc function
Hide thumbs Also See for A800:
Table of Contents

Advertisement

Operation error
An operation error occurs in the following cases, and the error flag turns ON.
• When A1 or V is specified in
S2
• When the divisor
is 0.
Program example
D*
Program that stores the results of multiplying D7 and D8 BIN data with D18 and D19 BIN data in D1 to D4 when X5 turns ON.
X005
0
D/
Program that outputs the result of multiplying M0 to 7 by 3.14 to D3 when X3 turns ON.
X003
0
S1
or
S2
, or A0, A1, Z or V are specified in
P
D*
D7
D18
D1
P K2
K
*
D0
M0
314
P
K
D/
D0
100
D2
P
MOV
D2
D3
D
.
Coding
0
LD
X005
1
D*P
D7
D18
12
END
Coding
0
LD
X003
1
*P
K2M0
K314
8
D/P
D0
19
MOVP
D2
D3
24
END
Sequence program
Basic instruction (32-bit)
D1
D0
K100
D2
165
3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

F800

Table of Contents