Omron CJ1W-ETN21 Network Card User Manual


 
139
Using Socket Services with CMND(490) Section 6-8
Note If there is more than one Communications Unit mounted to the PLC, the FINS
network address must be set as a parameter for CMND(490) and a local net-
work table must be created in the routing tables from the CX-Programmer.
6-8-4 Response Codes in the Command Response
A response code is returned in the command response as a 2-byte code that
indicates the results of command execution. The response code is returned
just after the command code in the response. The first byte of the response
code provides the overall result of command execution and is called the main
response code (MRES). The second byte provides details and is called the
sub-response code (SRES).
6-8-5 Response Codes in the Results Storage Areas
The response code stored in the Results Storage Area is a 2-byte code that
indicates the processing results of the socket service requested by the com-
mand. This response code is stored in the Results Storage Area when pro-
cessing has been completed.
6-8-6 Communications Timing Chart
The timing of the status changes of the bits in the socket status area and the
Port Enabled Flag is shown in the following diagram.
6-8-7 Socket Service Timing Chart
The timing of the socket service open, send, receive, and close request com-
mands are shown in the following diagrams.
OPEN REQUEST
Open request
received
Open complete
Receive request
received
Receive
complete
Send request
received
Send complete
Close request
received
Close complete
1
0
1
0
1
0
1
0
1
0
1
0
Port Enabled Flag
Opening Flag (bit 0)
Receiving Flag (bit 1)
Sending Flag (bit 2)
Closing Flag (bit 3)
Open Flag (bit 15)
OPEN REQUEST
command received
Error
end
OPEN REQUEST
command received
Normal
end
Open complete
(normal end)
Store normal response code
1
0
1
0
1
0
Normal response codeError response code
RunningRunning
CMND(490) response code
Results storage area
Port Enabled Flag
Open Flag
Opening Flag