6. BASIC INSTRUCTIONS
6
−
21
MELSEC-A
Program Examples D*
Program which stores the multiplication result of the BIN data of D7 and D8 and the
BIN data of D18 and D19 to D1 to D4 when X5 turns on.
D/
Program which outputs a value, obtained by multiplying the data of X8 to F by 3.14,
to Y30 to 3F when X3 turns on.
X005
D* D7 D18 D1
0
P
•
Coding
0 LD
X005
1 D*P
D7
D18
D1
12
END
•
Coding
0 LD
X003
1 *P
K2X008 K314
D0
8 D/P
D0
K100
D2
19
MOVP
D2
K4Y030
24
END
MOV D2 Y030
* X008 314 D0
D/ D0 100 D2
P K2
K
P
P K4
0
X003
K
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......