Mitsubishi Electric M800VW Series Programming Manual page 163

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

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
7 Basic Instructions
7.3 Output Instructions
 Arithmetic errors
 There are no arithmetic errors associated with the "OUT C □ " instruction.
 Program example
 The following program turns Y30 ON after X0 has gone ON 10 times, and resets the counter when X1 goes ON.
X0
0
C10
4
X1
6
9
 The following program sets the value for C10 at 10 when X0 goes ON, and at 20 when X1 goes ON
X0
X1
MOVP K10 D0
0
X1
X0
MOVP K20 D0
5
X3
10
C10
14
16
[List mode]
Steps
Inst.
Device
0
LD
1
ANI
X1
2
MOVP
K10
5
LD
6
ANI
X0
7
MOVP
K20
10
LD
11
OUT
C10
14
LD
15
OUT
Y30
16
END
IB-1501667-B
[Ladder mode]
K10
C10
Y30
RST C10
END
[Ladder mode]
D0
C10
Y30
END
X0
D0
X1
D0
X3
D0
C10
142
[List mode]
Steps
Inst.
Device
0
LD
X0
1
OUT
C10
K10
4
LD
C10
5
OUT
Y30
6
LD
X1
7
RST
C10
9
END
Stores 10 at D0 when X0 goes ON
Stores 20 at D0 when X1 goes ON
C10 takes data stored at D0 as set value, and
counts it.
Y30 goes ON when C10 reaches count up
state

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents