101
FINS Commands and Responses
Section 5-1
The MRES codes are shown in the following table along with the results they
indicate. Refer to
Communications Commands Reference Manual (W342)
for
details on response codes including the SRES.
5-1-4
Sending FINS using CMND
The CMND instruction can be executed from the user program in a CS/CJ-
series PLC. CMND sends “n” bytes of command data beginning with S (the
beginning send word for storing command data at the source node) to desti-
nation node N. In return, “m” bytes of response data are stored at the source
node beginning with D (the beginning receive word for storing response data).
MRES
Execution results
00
Normal completion
01
Master unit error
02
Slave station error
04
Service not supported
10
Command format error
11
Parameter error
20
Read not possible
22
Status error
CMND
S
D
C
"n" bytes
of com-
mand
data
"m" bytes
of
response
data
S
15
0
S: Source node beginning send word
D: Destination node beginning receive word
C: Source node first control data word
Source node
Destination node N
(S –1)
+
n
2
D
(D –1)
+
m
2
Command
Response
Analysis
Execution
Destination node N
00 to 20 (Hex): 0 to 32
The same data can be broadcast to all nodes
on the network by setting the destination node address
to FF (Hex).
The range of node addresses will vary for networks
other than Controller Link Networks.
C+1
C+4
0
0
Number of retries
0 to F (Hex): 0 to 15 retries
0: Response required
1: Response not required
C
"n" bytes of command data
0000 to 07C6 (Hex): 0 to 1,990 words
0
"m" bytes of response data
0000 to 07C6 (Hex): 0 to 1,990 words
15
0
C+3
15
8 7
0
Destination unit address
00 (Hex):
PC's CPU Unit
01 (Hex):
Computer (user program)
10 to 1F (Hex): Unit nos. 0 to 15
E1 (Hex):
Inner Board
FE (Hex):
Unit connected to network
15
10 8 7
3
0
15
10 8 7
3
0
Response monitor time
0000 (Hex): 2 s
0001 to FFFF (Hex): 0.1 to 6,553.5 s
(Unit: 0.1 s)
If the baud rate is slow, then setting a
small value may generate an error. The
standard is approximately 4 seconds at
1 Mbps or 8 seconds at 500 Kbps.
C+2
0
0
15
11
8 7
0
Destination network address
00 (Hex): Local network
01 to 7F (Hex): 1 to 127
C+5
15
0
…
…
…
Summary of Contents for SYSMAC CJ1W-PRM21
Page 2: ...iv...
Page 36: ...22 Basic Operating Procedure Section 1 5...
Page 52: ...38 Defining PROFIBUS DP in the Software Section 2 5...
Page 112: ...98 Allocated CIO Area Words Section 4 2...
Page 122: ...108 Command Response Reference Section 5 2...
Page 160: ...146 Replacing the Unit Section 7 8...
Page 174: ...160 Appendix...
Page 180: ...166 I O Data Conversions Appendix D...
Page 186: ...172 Configurator Error and Warning Messages Appendix E...
Page 187: ...173 Index...
Page 188: ...174 Index...
Page 190: ...176 Revision History...