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

Table of Contents

Advertisement

3. Instructions
Sending Data to a Host Link Slave PLC Connected by Serial Gateway
The serial gateway function can be used to send data
to a PLC connected as a host link Slave to a Serial
Communications Board or Unit. In this case, the
destination node address must be set to the host link
unit number + 1.
Hint
Sending data to a host computer connected by Host Link (non-solicited
communications)
If SEND(090) is sent to the serial port of the CPU Unit, a Serial Communications Board (CS Series
only), or Serial Communications Unit, a command is sent from the serial port to the host computer. The
command is a FINS message enclosed between a host link header and terminator. The FINS
command is a MEMORY AREA WRITE command (command code 0102) and the host link header
code is 0F hexadecimal.
A program must be created in the host computer to process the received command (the FINS
command enclosed in the host link header and terminator).
If the destination serial port is in the local PLC, set the network address to 00 (local network) in C+1, set
the node address to 00 (local PLC) in C+2, and set the unit address to 00 (CPU Unit), E1 (Inner Board
(CS Series only), or unit number + 10 hexadecimal (Serial Port Unit).
• SEND instruction (sending data to a host computer):
When the input condition and A202.00 (the Communications Port Enabled Flag for port 0) are ON in the
following example, the ten words from CIO 100 to CIO 109 are transmitted to the host computer
connected to port 1 of the Serial Communications Unit with unit address 10 (hex) at node number 3 in
network 0.
Note It is necessary create a program at the host computer to receive the data and send a response.
Input
condition
A202.00
Logical port number 0
Communications Port
Enabled Flag
910
@SEND
100
C D200
0 0 0 A
0000
C+1 D201
0 1 0 0
D200
C+2 D202
0 0 1 0
C+3 D203
0 0 0 0
C+4 D204
0 0 0 0
SEND
PLC
Set the destination node address to the
host link unit number + 1 = S+1.
Data
Serial cable
Number of words to send: 10 words
Transmit to network 0 and port 1 of Serial Communications Board
Node number 0, unit address 10
Response requested, port number 0, no retries
Response monitoring time: 2 seconds (0000: default value)
CS/CJ/NSJ Series Instructions Reference Manual (W474)
PLC
Host Link Slave
Host link unit number: S

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - REFERENCE MANUAL 02-2010 and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents