EasyManua.ls Logo

Mitsubishi MELSEC-A series - Page 127

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 15
MELSEC-A
Execution Conditions
Program Examples D+
Program which adds the 28-bit data of X10 to 2B and the date of D9 and 10, and
outputs the result to Y30 to 4B when X0 turns on.
D-
The following Program subtracts M0 to 23data from A1 data and stores to D10, D11
when XB is switched on.
Addition/subtraction
command
Executed
per scan
Executed
per scan
Executed
only once
Coding
0 LD X000
1 D+P K7X010 D9 K7Y030
12 END
0
X000
P K7 K7
D+ X010 D9 Y030
Coding
0 LD X00B
1 D-P A0 K6M0 D10
12 END
0
X00B
P K6
D- A0 M0 D10
P
ON
OFF
Executed
only once

Table of Contents

Other manuals for Mitsubishi MELSEC-A series

Related product manuals