Comrf (Communication Refresh) - IDEC MICROSmart FC6A Series Ladder Programming Manual

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

Advertisement

COMRF (Communication Refresh)

COMRF
Example: COMRF
The following example demonstrates a program to execute COMRF instructions among other instructions.
RXD
3
M0
BMOV(W)
M1
TXD
4
Execute reading of received data and writing of send data for port 2 and 3 (communication port refresh) during user
program processing.
When implementing an application that requires a communication response from the communication cartridge in a
time interval that is shorter than the scan time of FC6A Series MICROSmart, program it with the COMRF instruction.
Regardless of the presence of the COMRF instruction, reading received data and writing send data for expanded
communication port is executed in END processing.
Note: This instruction cannot be used in interrupt programs. If this instruction is used in an interrupt program, a user
program execution error will occur.
For user program execution errors, see "User Program Execution Errors" on page 3-10.
COMRF
S1
D1
D2
100
M1
D498
S1
N-W
D1
D0
100
D500
S1
D1
D2
100
M0
D502
R
M1
COMRF
FC6A S
MICROS
ERIES
MART
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.
L
P
M
ADDER
ROGRAMMING
ANUAL
14: R
EFRESH
FC9Y-B1726
I
NSTRUCTIONS
14-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents