![IDEC MICROSmart FC5A Series User Manual Download Page 137](http://html.mh-extra.com/html/idec/microsmart-fc5a-series/microsmart-fc5a-series_user-manual_617369137.webp)
11:
P
ROGRAM
B
RANCHING
I
NSTRUCTIONS
FC5A
M
ICRO
S
MART
U
SER
’
S
M
ANUAL
FC9Y
‐
B1273
11
‐
13
COMRF
(Communication
Refresh)
Applicable
CPU
Modules
Example:
COMRF
The
following
example
demonstrates
a
program
to
execute
COMRF
instructions
among
other
instructions.
COMRF
Execution
Time
While
the
expansion
RS232C/RS485
communication
module
sends
or
receives
communication,
the
CPU
module
requires
the
execution
time
to
execute
the
COMRF
instruction
as
shown
in
the
table
below.
Note
1:
The
values
are
the
maximum
execution
time
when
one
expansion
RS232C/RS485
communication
module
performs
commu
‐
nication.
When
multiple
expansion
RS232C/RS485
communication
modules
perform
communication
at
the
same
time,
the
execution
time
is
multiplied
by
the
quantity
of
the
expansion
RS232C/RS485
communication
modules.
Note
2:
To
use
FC5A
‐
SIF4
expansion
RS485
communication
module,
CPU
modules
with
system
program
version
220
or
higher
is
required.
Communication
Refresh
for
Port
3
through
port
7
The
expansion
communication
buffers
can
also
be
refreshed
automatically
every
10
ms
without
using
the
COMRF
instruction.
Select
Every
10
ms
under
Communication
Refresh
for
Port
3
through
Port
7
in
the
Function
Area
Settings.
For
details,
see
page
(Basic
Vol.).
FC5A
‐
C10R2/C/D
FC5A
‐
C16R2/C/D
FC5A
‐
C24R2D
FC5A
‐
C24R2/C
FC5A
‐
D16RK1/RS1
FC5A
‐
D32K3/S3
FC5A
‐
D12K1E/S1E
—
—
X
X
X
X
Expansion
RS232C/RS485
Communication
Module
COMRF
Maximum
Execution
Time
(Note
1)
FC5A
‐
SIF2
Approx.
4
ms
FC5A
‐
SIF4
(Note
2)
Approx.
10
ms
The
COMRF
instruction
refreshes
the
send
and
receive
data
in
the
expansion
communication
buffers
for
port
3
through
port
7
in
real
time.
The
send
data
in
the
buffer
are
usually
sent
out
in
the
END
processing.
The
receive
data
in
the
buffer
are
usually
sent
to
MicroSmart
devices
in
the
END
processing.
The
COMRF
can
be
used
in
any
place
in
the
lad
‐
der
diagram
where
you
want
to
execute
the
TXD
instruction
immediately
or
to
update
the
received
data
in
a
period
shorter
than
the
scan
time.
Note:
The
COMRF
instruction
cannot
be
used
in
interrupt
programs.
If
used,
a
user
program
execution
error
will
result,
turning
on
special
internal
relay
M8004
and
the
ERR
LED
on
the
CPU
module.
This
instruction
is
available
on
upgraded
CPU
modules
with
system
program
version
110
or
higher.
COMRF
Before
executing
the
RXD
instruction,
COMRF
refreshes
send
and
receive
data
of
the
expansion
communication
ports.
After
executing
the
TXD
instruction,
COMRF
refreshes
send
and
receive
data
of
the
expansion
communication
ports.
M0
S1
100
D1
M1
RXD
3
D2
D498
M1
S1
D0
N
‐
W
100
BMOV(W)
D1
D500
COMRF
S1
100
D1
M0
TXD
4
D2
D502
COMRF
M1
R
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 ...