IDEC MICROSmart FC6A Series Ladder Programming Manual page 280

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

14: R
I
EFRESH
NSTRUCTIONS
Example: IOREF
The following example demonstrates a program that transfers the input I0 status to output Q0 using the IOREF instruction. Input
I3 is designated as an interrupt input. For the interrupt input function, see Chapter 5 "Functions and Settings" - "Interrupt Input"
in the "FC6A Series MICROSmart User's Manual".
MOV(W)
M8120
Main Program
M8125
M300
M8125
14-2
S1 –
D1 –
REP
0
D8033
END
LABEL
0
IOREF
S1
I0
Q0
IOREF
S1
Q0
LRET
FC6A S
MICROS
ERIES
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.
L
P
MART
ADDER
ROGRAMMING
M
FC9Y-B1726
ANUAL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents