11:
P
ROGRAM
B
RANCHING
I
NSTRUCTIONS
FC5A
M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y
‐
B1273
11
‐
11
HSCRF
(High
‐
speed
Counter
Refresh)
Applicable
CPU
Modules
Example:
HSCRF
The
following
example
demonstrates
a
program
to
update
the
current
value
of
high
‐
speed
counter
HSC1
using
the
HSCRF
instruction.
For
the
timer
interrupt,
see
page
(Basic
Vol.)
.
FC5A
‐
C10R2/C/D
FC5A
‐
C16R2/C/D
FC5A
‐
C24R2/C/D
FC5A
‐
D16RK1/RS1
FC5A
‐
D32K3/S3
FC5A
‐
D12K1E/S1E
X
X
X
X
X
X
When
input
is
on,
the
HSCRF
instruction
refreshes
the
high
‐
speed
counter
current
values
in
special
data
registers
in
real
time.
The
current
values
of
four
high
‐
speed
counters
HSC1
through
HSC4
are
usually
updated
in
every
scan.
The
HSCRF
can
be
used
in
any
place
in
the
ladder
diagram
where
you
want
to
read
the
updated
high
‐
speed
counter
current
value.
For
the
high
‐
speed
counter
function,
see
page
7(Basic
Vol.).
HSCRF
*
M8120
is
the
initialize
pulse
special
internal
relay.
D8036
stores
0
to
designate
jump
destination
label
0
for
timer
inter
‐
rupt.
The
interrupt
program
is
separated
from
the
main
program
by
the
END
instruction.
While
the
CPU
is
running,
program
execution
jumps
to
label
0
repeat
‐
edly
at
intervals
selected
in
the
Function
Area
Settings.
M8125
is
the
in
‐
operation
output
special
internal
relay.
HSCRF
updates
the
HSC1
current
value
in
data
registers
D8210
and
D8211.
When
D8210/D8211
exceeds
150000,
Q1
is
turned
on.
IOREF
immediately
writes
the
output
Q0
internal
memory
status
to
actual
output
Q0.
Each
time
the
interrupt
program
is
completed,
program
execution
returns
to
the
main
program
at
the
address
where
timer
interrupt
occurred.
M8120
END
Main
Program
M8125
REP
S1
–
0
D1
–
D8036
MOV(W)
M8125
M8125
IOREF
S1
Q1
LRET
LABEL
0
HSCRF
1
REP
S1
–
D8210
D1
–
Q1
CMP>(D)
S2
–
150000
Содержание 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 ...