Mitsubishi Electronics FX Home Theater Server User Manual


 
FX Series Programmable Controllers Basic Program Instructions 2
2-9
2.9 And Pulse, And Trailing Pulse
Program example:
Basic points to remember:
- Use the ANDP and ANDF instructions for the serial connection of pulse contacts.
-Usa
g
e is the same as for AND and ANI; see earlier.
- ANP is active for one pro
g
ram scan after the associated device switches from OFF to
ON.
- ANF is active for one pro
g
ram scan after the associated device switches from ON to
OFF.
Mnemonic Function Format Devices Program steps
ANP
(ANd Pulse)
Serial connection
of Risin
g
ed
g
e
pulse
X, Y, M, S, T, C 2
ANF
(ANd Fallin
g
pulse)
Serial connection
of Fallin
g
/
trailin
g
ed
g
e
pulse
X, Y, M, S, T, C 2
ANP
T10
Y4
M100
X1
X0
0LD M40
1OR X 1
2 ANP T 10
4 OUT M 100
5LDF X 0
6ANF C 0
8 OUT Y 4
M40
ANF
C0
Single operation flags M2800 to M3071:
When used with fla
g
s M2800 to M3071 onl
y
the first instruction will activate. For
details see pa
g
e 2-8