6F8C0904
105
6.4 Using the EN311 Socket Interface
6
• Values in the range 1024 to 65535 can be specified as the object socket UDP port
number for the transmission destination. An error will be returned if a value outside
that range is specified.
Error status: Port number error ••• 2929(16#B71)
• An error will be returned if a value of 0 words or 1001 or more words is specified as the
transmission data size.
Error status: Transmission word count error ••• 5059(16#EC3D)
• The S controller performs an area check for the register area based on the
transmission data storage register type and number, and if an error is found it returns
an error.
Error status: Boundary error ••• 5060(16#EC3C)
• If the S controller internal completion wait time limit (2 seconds) is exceeded for this
request, the error listed below is returned.
Error status: Send completion timeout ••• 5002(16#EC76)
In this case, first verify that the module is not in the down state by checking the station
status, and then verify the open/close by checking the socket status.
• The EN311 uses a priority ordering in processing sockets 1 through 8. Therefore,
systems constructed so that socket 1 is activated frequently may not be able to
process socket 8, resulting in the following error response:
Error status: Send completion timeout ••• 5002(16#EC76)
When constructing a system, take the socket utilization conditions into account when
allocating sockets.
Since the send/receive processing for each socket requires about 50 ms, applications
that issue send or receive requests to a given socket should leave an interval of at
least 50 ms times the number of sockets used between each request.
Interval between send (receive)requests to the same socket >= Number of
sockets used ¥ 50 ms
Similarly, the above intervals averaging 50 ms should be left between transmissions
from remote nodes to the local node.
Interval between remote node transmissions >= Number of remote nodes ¥ 50
ms
• If a transmission request is issued to a nonexistent remote station, an error will occur.
Error status: Timeout ••• 2848(16#B20)
(4) Broadcast transmission
It is possible to broadcast to all nodes on the network using UDP sockets.
Send side: Set the transmission destination address to "255.255.255.255",
("FF.FF.FF.FF" in hexadecimal).
The "0.0.0.0" used by some UNIX versions (in particular, 4.2 BSD)
cannot be used.
Specify the UDP port number for the socket to which you want to issue a
broadcast as the transmission destination object socket UDP port
number.
Summary of Contents for V Series
Page 1: ...6F8C0904 Integrated Controller V Series Ethernet module EN311 User s Manual Sep 30 2004 ...
Page 12: ......
Page 16: ......
Page 34: ......
Page 40: ......
Page 106: ......
Page 180: ......
Page 199: ...6F8C0904 179 7 5 RAS Information Readout 7 Figure 7 1 Packet Format IP Datagram ...
Page 200: ...180 Ethernet module User s Manual Chapter 7 RAS Information 7 ...
Page 224: ......
Page 240: ......
Page 244: ......
Page 248: ......
Page 250: ......
Page 256: ......
Page 258: ......