Mitsubishi Electric MELDAS C6 Programming Manual page 128

Hide thumbs Also See for MELDAS C6:
Table of Contents

Advertisement

Program example
(1) Program containing a subroutine program using an EGP command.
M400
10
21
P0
X0Z0
V0Z0
23
32
END processing
*1
END処理
ON
X0
OFF
OFF
X1
ON
V0
OFF
V1 OFF
D0
D1
Points
(1) Because the EGP and EGF commands operate with the operation results immediately prior to
the EGP and EGF commands, the AND instruction should be used at the same position.
The EGP and EGF commands cannot be used at the LD or OR position.
7. Basic Commands
EGP, EGF
MOV
K0
Z0
*1
CALL
P0
MOV
K1
Z0
*2
CALL
P0
FEND
INC
D0Z0
RET
*2
*1
*2
OFF
ON
X0がON  ONのためOFFする
Turns OFF because X0 is from ON to ON.
X0の立上りでONする
ON
Turns ON at the leading edge of X0.
X1の立上りでONする
Turns ON at the leading edge of X1.
1
1
Operation of EGP and EGF commands
- 119 -
Get other manuals https://www.bkmanuals.com
Coding
No. of
Com-
steps
mand
10
LD
11
MOV
14
CALL
16
MOV
19
CALL
21
FEND
22
23
LD
24
EGP
30
INC
32
RET
33
*1
*2
*1
*2
ON
ON
X1がON  ONのためOFFする
Turns OFF because X1 is from ON to ON.
2
Device
M400
K0
Z0
P0
K1
Z0
P0
P0
X0Z0
V0Z0
D0Z0
*1
*2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64

Table of Contents