EasyManua.ls Logo

Mitsubishi MELSEC-A series - Page 133

Mitsubishi MELSEC-A series
508 pages
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...
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

Table of Contents

Other manuals for Mitsubishi MELSEC-A series

Related product manuals