M8120
END
Main Program
M8125
Q0
REPS1 –
0
D1 –
D8033
MOV(W)
IOREF S1
I0
M300
M8125
IOREF S1
Q0
LRET
LABEL
0
M8120 is the initialize pulse special internal relay.
D8033 stores 0 to designate jump destination label 0 for interrupt input I3.
When input I3 is on, program execution jumps to label 0.
M8125 is the in-operation output special internal relay.
IOREF immediately reads input I0 status to internal relay M300.
M300 turns on or off the output Q0 internal memory.
Another IOREF immediately writes the output Q0 internal memory status to actual
output Q0.
Program execution returns to the main program.