IDEC FC4A-C10R2 User Manual page 320

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

18: P
B
ROGRAM
RANCHING
Example: IOREF
The following example demonstrates a program to transfer the input I0 status to output Q0 using the IOREF instruction.
Input I2 is designated as an interrupt input. For the interrupt input function, see page 5-20.
MOV(W)
S1 –
M8120
Main Program
M8125
M300
M8125
18-6
I
NSTRUCTIONS
D1 –
REP
0
D8032
END
LABEL
0
IOREF
S1
I0
Q0
IOREF
S1
Q0
LRET
« FC4A M
M8120 is the initialize pulse special internal relay.
D8032 stores 0 to designate jump destination label 0 for interrupt input
I2.
When input I2 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.
S
U
'
M
ICRO
MART
SER
S
ANUAL
»

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents