156
Using FINS Message Communications Section 6-3
6-3 Using FINS Message Communications
Execute CMND(490) to send a FINS command.
6-3-1 Instructions for Sending FINS Commands
CMND(490) Control operations, such as reading or writing I/O memory data at another
node, reading status information, and changing operating modes, can be per-
formed by executing CMND(490) in the user program in a CS/CJ-series CPU
Unit to send a FINS command.
Command data (n bytes) is sent from local node S to address N. The
response data (m bytes) is stored from local node address D onwards.
Note If the remote node is a CompoNet Slave Unit, CompoNet explicit messages
can be sent by setting “28 02" as the FINS command code.
When doing so, set the response monitoring time in C+5 to a value no lower
than the message monitoring timer value (default: 2 s). If it is set to a lower
value, the next command sent after a timeout may encounter a busy signal.
(@)CMND(490)
S
D
C
Command
data
n bytes
Response
data
m bytes
S
15
0
S: First command word
D: First response word
C: First control word (below)
Local node
Local (destination)
node address N
+ n/2
D
(D−1)
+ m/2
Command
Response
Interpretation
Execution
Remote (destination)
node address N
00 hex
C+1
If the transfer speed is slow, setting a
small value will result in an error.
C+4
00
Number of retries 0 to F hex: 0 to 15
Communications port number
0 to 7
Response required/not required
0: Required
1: Not required
C+5
C
Number of bytes of control data n
0000 to 021E hex: 0 to 542 bytes
15 0
Number of bytes of response data m
15 0
C+3
15 8 7 0
Remote (destination) unit address
20 to 7F hex: Unit number 0 to 95
15 10 8 7 3 0
15 10 8 7 3 0
Response monitoring time
0000 hex: 2 s
0001 to FFFF hex: 0.1 to 6553.5 s (Unit: 0.1 s)
Note:
C+2
00
15 118 7 0
Remote (destination) network address
00 hex: Local network
...
...
...
(S−1)
0000 to 021E hex: 0 to 542 bytes