Mitsubishi Electric M800VW Series Programming Manual page 154

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.2 Connection Instructions
 Arithmetic errors
 There are no arithmetic errors associated with the EGP or EGF instructions.
 Program example
 Program which uses EGF instruction in sub routine program.
SM400
0
11
P0
X0Z0 V0Z0
12
17
18
ENDprocessing
X0
OFF
X1
OFF
V0
OFF
V1
OFF
D0
D1
POINT
(1) Because the EGP and EGF instructions operate with the operation results immediately prior to the EGP and EGF
instructions, the AND instruction should be used at the same position.
The EGP and EGF instructions cannot be used at the LD or OR position.
[Ladder mode]
MOV K0
CALL P0
MOV K1
CALL P0
INC
[Operation]
ON
ON
1
Z0
Steps
0
1
Z0
4
6
9
11
FEND
12
13
D0Z0
14
15
17
RET
18
END
ON
ON
133
[List mode]
Inst.
Device
LD
SM400
MOV
K0
Z0
CALL
P0
MOV
K1
Z0
CALL
P0
FEND
P0
LD
X0Z0
EGP
V0Z0
INC
D0Z0
RET
END
1
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents