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
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: ......