Omron CJ - REFERENCE MANUAL 07-2009 Reference Manual page 116

Communications commands
Hide thumbs Also See for CJ - REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

Communications Frames
Response
Operand
Offset
Value
D:
+0:
2804 hex
D02000
+1:
0000 hex
+2:
0210 hex
+3:
0002 hex
+4:
0001 hex
Sending Host Link FINS Commands
Example of Sending Host Link FINS Commands Using CMND(490)
94
Conversion to Modbus-RTU (FINS command code: 2804 hex)
FINS end code: 0000 hex (normal)
Modbus-RTU slave address: 02 hex, FUNCTION code: 10 hex (DATA WRITE)
Write data register No.: 0002 hex (frequency reference)
Number of write data registers: 0001 hex (1 register)
• Set any FINS command code in S.
• Be sure to set the Host Link unit number (0 to 31) incremented by one (1
to 32) for the PC slave corresponding to the send destination node
address in C+3 bits 08 to 15.
The following example is for sending FINS commands to a CS/CJ/CP-series
PLC or an NSJ Controller connected to the Serial Communications Unit
through an RS-422A/485 communications path via an Ethernet network.
Example: The CMND(490) instruction is executed in the PC on the Ethernet.
The FINS command (e.g., OPERATING MODE CHANGE STOP: 0402 hex) is
sent to the CS/CJ/CP-series PLC or NSJ Controller (Host Link unit number =
1) that is connected to port 2 (unit address = 81 hex + 4 hex
= 99 hex = 153 decimal, corresponding to network address 5 in the routing
tables) of the Serial Communications Unit (unit number 6) that is connected to
the PC on the Ethernet. Routing is performed between the networks, so use
the setting for routing tables.
Network (Ethernet)
Ethernet unit
node address: 4
Protocol
conversion
Port 2 unit address:
81 hex + 4 hex × unit
Unit No. for Host Link = 0
No. 6 = 99 hex
(153 decimal), which
corresponds to network
address 5.
Meaning
FINS command
Serial Communications Unit
E.g., Operation mode change
Unit No. 6, port 2
(operation stopped): 0402 hex
CPU Unit
Unit No.
Network address
Serial port unit
Serial port network
address: 153
address: 5
Local
network
table
Host Link
FINS
Terminator
header
command
Unit No. for Host Link = 1
CS/CJ-series or
CVM1/CV-series PC
(Host Link slave)
Section 3-7
×
unit number 6
CMND
instruction
FINS message
RS-422A/485 (Host Link)
Unit No. for Host Link = 2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents