![IDEC MICROSmart FC5A Series Скачать руководство пользователя страница 126](http://html.mh-extra.com/html/idec/microsmart-fc5a-series/microsmart-fc5a-series_user-manual_617369126.webp)
11:
P
ROGRAM
B
RANCHING
I
NSTRUCTIONS
11
‐
2
FC5A
M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y
‐
B1273
Example:
LJMP
and
LABEL
The
following
example
demonstrates
a
program
to
jump
to
three
different
portions
of
program
depending
on
the
input.
Using
the
Timer
Instruction
with
Program
Branching
When
the
timer
start
input
of
the
TML,
TIM,
TMH
or
TMS
instruction
is
already
on,
timedown
begins
immediately
at
the
location
jumped
to,
starting
with
the
timer
current
value.
When
using
a
program
branch,
it
is
important
to
make
sure
that
timers
are
initialized
when
desired,
after
the
jump.
If
it
is
necessary
to
initialize
the
timer
instruction
(set
to
the
preset
value)
after
the
jump,
the
timer’s
start
input
should
be
kept
off
for
one
or
more
scan
cycles
before
initialization.
Other
‐
wise,
the
timer
input
on
will
not
be
recognized.
Using
the
SOTU/SOTD
Instructions
with
Program
Branching
Check
that
pulse
inputs
of
counters
and
shift
registers,
and
input
of
single
outputs
(SOTU
and
SOTD)
are
maintained
dur
‐
ing
the
jump,
if
required.
Hold
the
input
off
for
one
or
more
scan
cycles
after
the
jump
for
the
rising
or
falling
edge
transi
‐
tion
to
be
recognized.
When
input
I0
is
on,
program
execution
jumps
to
label
0.
When
input
I1
is
on,
program
execution
jumps
to
label
1.
When
input
I2
is
on,
program
execution
jumps
to
label
2.
M8121
is
the
1
‐
sec
clock
special
internal
relay.
When
jump
occurs
to
label
0,
output
Q0
oscillates
in
1
‐
sec
increments.
M8122
is
the
100
‐
ms
clock
special
internal
relay.
When
jump
occurs
to
label
1,
output
Q1
oscillates
in
100
‐
ms
increments.
M8123
is
the
10
‐
ms
clock
special
internal
relay.
When
jump
occurs
to
label
2,
output
Q2
oscillates
in
10
‐
ms
increments.
LABEL
0
I0
LJMP
S1
0
END
I1
LJMP
S1
1
I2
LJMP
S1
2
M8121
END
M8122
END
M8123
END
Q0
Q1
Q2
LABEL
1
LABEL
2
I1
SOTU
M0
LJMP
S1
0
Although
normally,
the
SOTU
instruction
produces
a
pulse
for
one
scan,
when
used
in
a
program
branch
the
SOTU
pulse
will
last
only
until
the
next
time
the
same
SOTU
instruction
is
executed.
In
the
example
on
the
left,
the
program
branch
will
loop
as
long
as
internal
relay
M0
remains
on.
However,
the
SOTU
produces
a
pulse
output
only
during
the
first
loop.
Q1
Internal
ON
OFF
Q1
Output
ON
OFF
Memory
END
END
Q1
LABEL
0
Since
the
END
instruction
is
not
executed
as
long
as
M0
remains
on,
output
Q1
is
not
turned
on
even
if
input
I1
is
on.
Содержание MICROSmart FC5A Series
Страница 1: ...FC5A SERIES FC9Y B1273 1 User s Manual Advanced Volume ...
Страница 2: ......
Страница 8: ...Preface 6 FC5A MicroSmart User s Manual FC9Y B1273 ...
Страница 14: ...TABLE OF CONTENTS vi FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 52: ...4 DATA COMPARISON INSTRUCTIONS 4 10 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 72: ...5 Binary Arithmetic Instructions 5 20 FC5A MicroSmart User s Manual FC9Y B1273 ...
Страница 88: ...7 SHIFT ROTATE INSTRUCTIONS 7 12 FC5A MicroSmart User s Manual FC9Y B1273 ...
Страница 112: ...8 DATA CONVERSION INSTRUCTIONS 8 24 FC5A MicroSmart User s Manual FC9Y B1273 ...
Страница 138: ...11 PROGRAM BRANCHING INSTRUCTIONS 11 14 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 178: ...13 PULSE INSTRUCTIONS 13 32 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 202: ...14 PID INSTRUCTION 14 24 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 206: ...15 DUAL TEACHING TIMER INSTRUCTIONS 15 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 214: ...16 INTELLIGENT MODULE ACCESS INSTRUCTIONS 16 8 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 248: ...21 COMPUTER LINK COMMUNICATION 21 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 272: ...23 MODBUS TCP COMMUNICATION 23 10 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 332: ...25 EXPANSION RS232C RS485 COMMUNICATION 25 16 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Страница 341: ...NOTE FC5A MICROSMART USER S MANUAL FC9Y B1273 1 ...
Страница 342: ...NOTE 2 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...