IDEC MICROSmart FC6A Series Ladder Programming Manual page 287

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

Advertisement

Example: DI and EI
The following example demonstrates a program that will disable and enable interrupt inputs and timer interrupt selectively. For the
interrupt input and timer interrupt functions, see Chapter 5 "Functions and Settings" - "Interrupt Input" and "Timer Interrupt" in
the "FC6A Series MICROSmart User's Manual". In this example, inputs I1 and I3 are designated as interrupt inputs and timer
interrupt is used with interrupt intervals of 100 ms.
MOV(W)
S1 –
M8120
MOV(W)
S1 –
MOV(W)
S1 –
I10
I11
I10
I12
I10
M8125
M8125
M8125
M8125
M8125
M8125
D1 –
REP
0
D8032
D1 –
REP
1
D8033
D1 –
REP
2
D8036
DI
S1
22
EI
S1
6
EI
S1
16
END
LABEL
0
ALT
D1
Q2
IOREF
S1
Q2
LRET
LABEL
1
ALT
D1
Q3
IOREF
S1
Q3
LRET
LABEL
2
ALT
D1
Q4
IOREF
S1
Q4
LRET
FC6A S
MICROS
ERIES
MART
M8120 is the initialize pulse special internal relay.
D8032 stores jump destination label number 0 for interrupt input I1.
D8033 stores jump destination label number 1 for interrupt input I3.
D8036 stores jump destination label number 2 for timer interrupt.
When input I10 is on, DI disables interrupt inputs I1, I3, and timer interrupt, then
M8140, M8141, and M8144 turn off.
When input I11 is on and I10 is off, EI enables interrupt inputs I1 and I3, then M8140
and M8141 turn on.
When input I12 is on and I10 is off, EI enables timer interrupt, then M8144 turns on.
End of the main program.
When input I1 is on, program execution jumps to label 0.
M8125 is the in-operation output special internal relay.
ALT turns on or off the output Q2 internal memory.
IOREF immediately writes the output Q2 internal memory status to actual output Q2.
Program execution returns to the main program.
When input I3 is on, program execution jumps to label 1.
M8125 is the in-operation output special internal relay.
ALT turns on or off the output Q3 internal memory.
IOREF immediately writes the output Q3 internal memory status to actual output Q3.
Program execution returns to the main program.
Timer interrupt occurs every 100 ms, then program execution jumps to label 2.
M8125 is the in-operation output special internal relay.
ALT turns on or off the output Q4 internal memory.
IOREF immediately writes the output Q4 internal memory status to actual output Q4.
Program execution returns to the main program.
L
P
M
ADDER
ROGRAMMING
ANUAL
15: I
C
NTERRUPT
ONTROL
FC9Y-B1726
I
NSTRUCTIONS
15-3

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents