6 F 3 B 0 3 6 2

8.2 Status (error status)

The status indicates the status during SEND/RECV instruction execution or after execution completes. If a SEND/RECV instruction does not complete normally, refer to the detailed information (Ethernet Port error response) and the status and review the instruction word format at the T2N and Ethernet Port states (operating modes).

The detailed information is stored in the register following the completion status when the completion status TermSTS value indicates a transmission error (0BH).

Figure 8.1 shows the structure of the status information. Tables 8.4 and 8.5 list the TermSTS values, and table 8.6 lists the contents of the detailed information.

The status (error status) has the following structure.

B

B + 1

Status

Detailed information

F E D C B A 9 8 7 6 5 4 3 2 1 0

B

 

 

 

 

Sport NO

TermSTS

 

 

 

Only on an error

0: Error occurred at local station.

 

 

 

1: Error occurred at remote station.

 

Socket identifier: Only valid for socket interface transmission

 

 

instructions. ("0" for other instructions)

 

 

status

0: Initial state

busy

0: Initial state

 

1: While send requesting

 

1: Transmission port busy

2: Send complete and while

abn

0: Normal complete

 

waiting response

 

3: Receive complete

 

1: Error complete

 

 

 

 

 

Figure 8.1

Status Structure

 

Table 8.4 TermSTS (Part 1)

TermSTS

Status

 

 

00H

Normal complete

 

 

01H

Register specification error

02H

Response timeout

Meaning

Occurs if a register other than XW, YW, W, LW, RW, D, F, T, C, or SW is specified as the data storage register in one of the following requests. Requests: RAS information readout, remote port loopback, UDP send/receive,

TCP send/receive, register read/write.

In a register read or write request, the request specified a read or write from a T register to a register other than a T register.

(This also applies to C registers.)

Occurs if a response is not received within the specified time for a remote port loopback or register read/write request.

143

Page 144
Image 144
Toshiba T2N instruction manual Status error status, TermSTS Part Status