Справочник Пользователя для Omron CS1W-ETN11

Скачать
Страница из 317
214
Command Codes and Response Codes
Section 11-1
11-1 Command Codes and Response Codes
11-1-1 Command Code List
The command codes listed in the following table can be sent to an Ethernet
Unit.
11-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
05
01
CONTROLLER DATA READ
06
01
CONTROLLER STATUS READ
08
01
INTERNODE ECHO TEST
02
BROADCAST TEST RESULTS READ
03
BROADCAST DATA SEND
21
02
ERROR LOG READ
03
ERROR LOG CLEAR
27
01
UDP OPEN REQUEST
02
UDP RECEIVE REQUEST
03
UDP SEND REQUEST
04
UDP CLOSE REQUEST
10
PASSIVE TCP OPEN REQUEST
11
ACTIVE TCP OPEN REQUEST
12
TCP RECEIVE REQUEST
13
TCP SEND REQUEST
14
TCP CLOSE REQUEST
20
PING
50
IP ADDRESS TABLE WRITE
57
IP ADDRESS WRITE (CJ Series only)
60
IP ADDRESS TABLE READ
61
IP ROUTER TABLE READ
62
PROTOCOL STATUS READ
63
MEMORY STATUS READ
64
SOCKET STATUS READ
65
ADDRESS INFORMATION READ
67
IP ADDRESS READ (CJ Series only)
Command 
code
Response 
code
MRC: Main 
request 
code
SRC: Sub-request 
code
MRES: Main response code
SRES: Sub-response code
MRC SRC MRES SRES