Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 955

Table of Contents

Advertisement

Function
RECV(098) requests the number of words specified in C beginning at word S to be transferred from the
designated device to the local PLC. The data is received through the PLC's CPU Bus or over the
network and written to the PLC's data area beginning at D.
Number of words
to receive
• If the Communications Port Enabled Flag is ON for the communications port specified in C+3 when
SEND(090) is executed, the corresponding Communications Port Enabled Flag (ports 00 to 07:
A202.00 to A202.07) and Communications Port Error Flag (ports 00 to 07: A219.00 to A219.07) will
be turned OFF and 0000 will be written to the word that contains the completion code (ports 00 to 07:
A203 to A210). Data will be received from the destination node once the flags have be set.
• When an address in the current bank of the EM Area is specified for D, the transmitted data will be
written to the current EM bank of the destination node.
• When data will be transmitted outside of the local network, the user must register routing tables in the
PLCs (CPU Units) in each network. (Routing tables indicate the routes to other networks in which
destination nodes are connected.)
• A response is required with RECV(098) because the response contains the data being received. If
the response has not been received within the response monitoring time set in C+4, the request for
data transfer will be retransmitted up to 15 times (retries set in bits 0 to 3 of C+3).
• RECV(098) can be used to request a data transmission from a particular serial port in the source
device as well as the device itself.
Data can be received from a host computer connected to the PLC's serial port (when set to host link
mode) as well as a PLC or computer connected through a Controller Link or Ethernet network.
Transmission through the Network
RECV(098) can be used to receive data transmitted
the specified data area in a PLC or computer
connected by a Controller Link network or Ethernet
link and write that data to the specified data area in
the local PLC.
Transmission through Host Link
When the CPU Unit's built-in serial port, a Serial
Communications Board (CS Series only), or Serial
Communications Unit is in host link mode and
connected
one-to-one
RECV(098) can be executed to receive data from the
host computer the next time that the PLC has the
right to transmit commands. It is also possible to
receive data from other host computers connected to
other PLCs elsewhere in the network.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Local node
Source node (remote node)
with
a
host
computer,
PLC
Network
Data
Host computer
Host Link
Data
3. Instructions
3
PLC
PLC
Serial port
919

Advertisement

Table of Contents
loading

Table of Contents