Mitsubishi Electric M800VW Series Programming Manual page 228

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.2 Arithmetic Operation Instructions
 Program example
 The following program adds 1 to the data at D0 and D1 when X0 is ON.
X0
0
3
 The following program adds 1 to the data set at X10 to X27 when X0 goes ON, and stores the result at D3 and D4.
X0
0
6
 The following program subtracts "1" from the data at D0 and D1 when X0 goes ON.
X0
0
3
 The following program subtracts 1 from the data set at X10 to X27 when X0 goes ON, and stores the result at D3 and D4.
X0
0
6
[Ladder mode]
DINCP
D0
END
[Ladder mode]
DMOVP
K6X10 D3
DINCP D3
END
[Ladder mode]
DDECP
D0
END
[Ladder mode]
DMOVP
K6X10 D3
DDECP D3
END
207
[List mode]
Steps
Inst.
Device
0
LD
X0
1
DINCP
D0
3
END
[List mode]
Steps
Inst.
Device
0
LD
X0
1
DMOVP
K6X10
D3
4
DINCP
D3
6
END
[List mode]
Steps
Inst.
Device
0
LD
X0
1
DDECP
D0
3
END
[List mode]
Steps
Inst.
Device
0
LD
X0
1
DMOVP
K6X10
D3
4
DDECP
D3
6
END
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents