96
Communications Frames Section 3-7
Command Details
Response
Note 1. The method used to set the remote destination network address, node ad-
dress, and unit address for sending data to or receiving data from the PC
connected serially via Host Link to another PC on the network (to which
the Serial Communications Board/Unit is mounted) using the SEND(090)/
RECV(098) instructions is the same as for the CMND(490) instruction.
2. When creating Host Link FINS command frames using the CMND(490) in-
struction, always set the unit number for Host Link incremented by one (1
to 32) for the remote destination (send destination) node address (word
C+3, bits 08 to 15 of the CMND(490) instruction). Do not set the unit num-
ber of the actual Host Link slave (0 to 31). Using the Host Link unit number
without incrementing by one will access the PC with the entered Host Link
unit number less one.
For example, specify remote PC with Host Link unit number 2 by entering
3 for the remote destination node address. If the 2 is entered, the PC with
Host Link unit number 1 will be accessed.
To access a PC on a Host Link FINS network using the Serial Gateway
from CX-Programmer, however, enter the actual Host Link unit number,
without incrementing by one. (Select Change PLC, click the Display Seri-
al Gateway Guide Button, and set unit number in the Host Link SYSWAY
Settings field of the Serial Gateway Guide dialog box.
Sending Modbus-ASCII Commands
• Set the FINS command code of 2805 hex in S, indicating conversion to
Modbus-RTU.
• In S+1 onwards, set the slave address (2 bytes ASCII) + FUNCTION code
(2 bytes ASCII) + communications data (2
× n bytes ASCII) from leftmost
bytes to rightmost bytes using ASCII.
Sending CompoWay/F Commands
• Set the FINS command code of 2803 hex in S, indicating conversion to
CompoWay/F.
• In S+1 onwards, set the CompoWay/F node number (2 bytes ASCII) +
sub-address (2 bytes ASCII) + SID (1 byte ASCII) + CompoWay/F com-
mand MRC (2 bytes ASCII) + CompoWay/F command SRC (2 bytes
Operand Offset Value Meaning
S: D01000 +0: 0402 hex Change operating mode (stop operation) (FINS command code: 0402 hex)
+1: FFFF hex Change operating mode (stop operation): Always FFFF hex
D: D02000 First response storage word
C: D00000 +0: 000C hex Command data bytes: 0004 hex (4 bytes decimal)
+1: 000A hex Response data bytes: 0004 hex (4 bytes decimal)
+2: 0005 hex Send destination network address: 05 hex; Serial port number: 0 hex (not used)
+3: 0200 hex Send destination node address: 02 hex (set the unit number for Host Link + 1); Send
destination unit address: 00 hex
+4: 0000 hex Response required; Communications port number: 0; Resends: 0 hex
+5: 0000 hex Response monitoring time: 2 s
Operand Offset Value Meaning
D: D02000 +0: 0402 hex Change operating mode (stop operation) (FINS command code: 0402 hex)
+1: FFFF hex FINS end code: FFFF hex (normal end)