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.

Command code

Name

Page

 

 

 

 

MRC

SRC

 

 

 

 

 

 

04

03

RESET

159

 

 

 

 

05

01

CONTROLLER DATA READ

160

 

 

 

 

06

01

CONTROLLER STATUS READ

161

 

 

 

 

08

01

INTERNODE ECHO TEST

163

 

 

 

 

 

02

BROADCAST TEST RESULTS READ

164

 

 

 

 

 

03

BROADCAST DATA SEND

164

 

 

 

 

21

02

ERROR LOG READ

165

 

 

 

 

 

03

ERROR LOG CLEAR

166

 

 

 

 

27

01

UDP OPEN REQUEST

167

 

 

 

 

 

02

UDP RECEIVE REQUEST

168

 

 

 

 

 

03

UDP SEND REQUEST

169

 

 

 

 

 

04

UDP CLOSE REQUEST

171

 

 

 

 

 

10

PASSIVE TCP OPEN REQUEST

172

 

 

 

 

 

11

ACTIVE TCP OPEN REQUEST

174

 

 

 

 

 

12

TCP RECEIVE REQUEST

177

 

 

 

 

 

13

TCP SEND REQUEST

178

 

 

 

 

 

14

TCP CLOSE REQUEST

180

 

 

 

 

 

20

PING

181

 

 

 

 

 

30

FINS/TCP CONNECTION REMOTE

182

 

 

NODE CHANGE REQUEST

 

 

 

 

 

 

31

FINS/TCP CONNECTION STATUS

183

 

 

READ

 

 

 

 

 

 

50

IP ADDRESS TABLE WRITE

184

 

 

 

 

 

57

IP ADDRESS WRITE (CJ Series only)

185

 

 

 

 

 

60

IP ADDRESS TABLE READ

186

 

 

 

 

 

61

IP ROUTER TABLE READ

187

 

 

 

 

 

62

PROTOCOL STATUS READ

189

 

 

 

 

 

63

MEMORY STATUS READ

193

 

 

 

 

 

64

SOCKET STATUS READ

195

 

 

 

 

 

65

ADDRESS INFORMATION READ

196

 

 

 

 

 

67

IP ADDRESS READ

197

 

 

 

 

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.

 

 

 

 

 

 

MRC:

Main request code

Command

Response

SRC:

Sub-request code

code

 

 

code

 

 

MRES: Main response code

 

 

SRES: Sub-response code

MRC SRC MRES SRES

156

Page 181
Image 181
Omron CS1W-ETN21 Command Codes and Response Codes, Command Code List, Response Code List, Command code Name