Mitsubishi MELSEC-A Series Programming Manual page 130

Type acpu/qcpu-a (a mode)
Hide thumbs Also See for MELSEC-A Series:
Table of Contents

Advertisement

6. BASIC INSTRUCTIONS
Program Examples
0
0
0
*
(1) Program which stores the multiplication result of 5678 and 1234 in BIN to D3
and 4 when X5 turns on.
X005
P K
*
5678
(2) Program which outputs the multiplication result of the BIN data of X8 to F and
the BIN data of X10 to 1B to Y30 to 3F.
M9038
K2
*
X008
/
Program which outputs the quotient, obtained by dividing the data of X8 to F by
3.14, to Y30 to 3F when X3 turns on.
X003
P K2
*
X008
P
/
D0
• Coding
0
K
1234
D3
1
8
• Coding
K3
K4
0
X010
Y030
1
8
• Coding
K
0
100
D0
1
K
K4
8
314
Y030
15
6 − 18
MELSEC-A
LD
X005
*P
K5678
K1234
END
LD
M9038
*
K2X008 K3X010
END
LD
X003
*P
K2X008 K100
/P
D0
K314
END
D3
K4Y030
D0
K4Y030

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acpu-common-p-e13j741AcpuQcpu-a

Table of Contents