6 F 3 B 0 3 6 2

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.

Status: Transmission error (TermSTS = 0BH)

Detailed information: Port number error (0071H)

An error will be returned if a value of 0 words or 1001 or more words is specified as the transmission data size.

Status: Transmission word count error (TermSTS = 09H)

The T2N 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.

Status: Boundary error (TermSTS = 0AH)

If the T2N internal completion wait time limit (2 seconds) is exceeded for this request, the error listed below is returned.

Status: Send completion timeout (TermSTS = 06H)

In this case, first verify that the Ethernet Port is not in the down state by checking the station status, and then perform the required error handling (the send request etc.).

The Ethernet Port 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:

Status: Send completion timeout (TermSTS = 06H)

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 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 ports to the local port.

(Interval between remote port transmissions) (Number of remote ports × 50 ms)

When PC link transmission or the UDP socket interface is used, if an application transmits to a nonexistent remote port, an transmission error (TermSTS = 0BH, detailed information = 0020H) occurs.

e.Broadcast transmission

It is possible to broadcast to all ports 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.

88

Page 89
Image 89
Toshiba T2N instruction manual Broadcast transmission