11:
P
ROGRAM
B
RANCHING
I
NSTRUCTIONS
11
‐
8
FC5A
M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y
‐
B1273
Example:
DI
and
EI
The
following
example
demonstrates
a
program
to
disable
and
enable
interrupt
inputs
and
timer
interrupt
selectively.
For
the
interrupt
input
and
timer
interrupt
functions,
see
pages
and
(
Basic
Vol.)
.
In
this
example,
inputs
I2
and
I3
are
designated
as
interrupt
inputs
and
timer
interrupt
is
used
with
interrupt
intervals
of
100
ms.
M8120
is
the
initialize
pulse
special
internal
relay.
D8032
stores
jump
destination
label
number
0
for
interrupt
input
I2.
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
I2,
I3,
and
timer
interrupt,
then
M8140,
M8141,
and
M8144
turn
off.
When
input
I11
is
on
and
I10
is
off,
EI
enables
interrupt
inputs
I2
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
I2
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
out
‐
put
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
out
‐
put
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
out
‐
put
Q4.
Program
execution
returns
to
the
main
program.
M8120
END
I10
REP
S1
–
0
D1
–
D8032
MOV(W)
DI
S1
19
LABEL
0
REP
S1
–
1
D1
–
D8033
MOV(W)
REP
S1
–
2
D1
–
D8036
MOV(W)
I10
EI
S1
3
EI
S1
16
I11
I12
I10
M8125
ALT
D1
Q2
M8125
IOREF
S1
Q2
LRET
LABEL
1
M8125
ALT
D1
Q3
M8125
IOREF
S1
Q3
LRET
LABEL
2
M8125
ALT
D1
Q4
M8125
IOREF
S1
Q4
LRET
Summary of Contents for MICROSmart FC5A Series
Page 1: ...FC5A SERIES FC9Y B1273 1 User s Manual Advanced Volume ...
Page 2: ......
Page 8: ...Preface 6 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 14: ...TABLE OF CONTENTS vi FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 52: ...4 DATA COMPARISON INSTRUCTIONS 4 10 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 72: ...5 Binary Arithmetic Instructions 5 20 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 88: ...7 SHIFT ROTATE INSTRUCTIONS 7 12 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 112: ...8 DATA CONVERSION INSTRUCTIONS 8 24 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 138: ...11 PROGRAM BRANCHING INSTRUCTIONS 11 14 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 178: ...13 PULSE INSTRUCTIONS 13 32 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 202: ...14 PID INSTRUCTION 14 24 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 206: ...15 DUAL TEACHING TIMER INSTRUCTIONS 15 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 214: ...16 INTELLIGENT MODULE ACCESS INSTRUCTIONS 16 8 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 248: ...21 COMPUTER LINK COMMUNICATION 21 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 272: ...23 MODBUS TCP COMMUNICATION 23 10 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 332: ...25 EXPANSION RS232C RS485 COMMUNICATION 25 16 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 341: ...NOTE FC5A MICROSMART USER S MANUAL FC9Y B1273 1 ...
Page 342: ...NOTE 2 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...