158
Command Codes and Response Codes Section 7-1
7-1 Command Codes and Response Codes
7-1-1 Command Code List
The command codes listed in the following table can be sent to an Ethernet
Unit.
7-1-2 Response Code List
Response codes are 2-byte codes which indicate the results of command
execution. They are returned in the response following the command code.
The first byte of a response code is the MRES (main response code), which
categorizes the results of command execution. The second byte is the SRES
(sub-response code) which specifies the results.
Command code Name Page
MRC SRC
04 03 RESET 161
05 01 CONTROLLER DATA READ 162
06 01 CONTROLLER STATUS READ 163
08 01 INTERNODE ECHO TEST 165
02 BROADCAST TEST RESULTS READ 166
03 BROADCAST DATA SEND 166
21 02 ERROR LOG READ 167
03 ERROR LOG CLEAR 168
27 01 UDP OPEN REQUEST 169
02 UDP RECEIVE REQUEST 170
03 UDP SEND REQUEST 172
04 UDP CLOSE REQUEST 173
10 PASSIVE TCP OPEN REQUEST 174
11 ACTIVE TCP OPEN REQUEST 177
12 TCP RECEIVE REQUEST 180
13 TCP SEND REQUEST 181
14 TCP CLOSE REQUEST 183
20 PING 184
30 FINS/TCP CONNECTION REMOTE
NODE CHANGE REQUEST
185
31 FINS/TCP CONNECTION STATUS
READ
186
50 IP ADDRESS TABLE WRITE 187
57 IP ADDRESS WRITE (CJ Series only) 189
60 IP ADDRESS TABLE READ 189
61 IP ROUTER TABLE READ 191
62 PROTOCOL STATUS READ 192
63 MEMORY STATUS READ 196
64 SOCKET STATUS READ 198
65 ADDRESS INFORMATION READ 199
67 IP ADDRESS READ 200
Command
code
Response
code
MRC: Main request code
SRC: Sub-request code
MRES: Main response code
SRES: Sub-response code
MRC SRC MRES SRES