6 F 3 B 0 3 6 2

7.4 Remote Port Loopback (for an Ethernet Port)

This request sends test data to the specified remote Ethernet Port (T2N/T3H) and verifies that transmission is being performed correctly by receiving that data looped back from the remote port. A user program must compare the transmitted and received data for equivalence.

Remote port loopback request (using the SEND instruction)

a.Function

This request sends test data to the specified remote Ethernet Port (T2N/T3H) and verifies that transmission is being performed correctly by receiving that data looped back from the remote port. The T2N OS creates the test data.

b.Transfer parameters

A

3100H

A+1

CMD = 000FH

A+2

WordSize

A+3

SRID

A+4

SRegNO

A+5

DRID

A+6

DRegNO

A+7

Timecnt

A+8

D-IPAddress

A+9

 

 

 

A+10

D-UDP PortNO

Module designation CMD number

Loopback data length: 1 to 485 words Send data storage register type code Send data storage register number Loopback data storage register type code Loopback data storage register number Timer count

Loopback destination IP address

(The input procedure is the same as that for the parameter setup request.)

Loopback destination message transmission UDP port number

c.Status (See figure 4.3 for details on bits C, D, E and F.)

B B+1

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

 

 

 

 

0

0

0

0

TermSTS

Detailed information (Only valid when TermSTS = 0BH.)

d.Important items

This request cannot be executed unless message transmission is enabled with an operating mode control request.

In response to a request from a user program, the T2N OS performs the processing using the Ethernet Port PC link protocol.

User programs on the loopback destination do not take part in this operation.

A user program must compare the transmitted and loopback data for equivalence.

A transfer word count error (TermSTS = 09H) occurs if the loopback data length exceeds the range 1 to 485 words (or 1 to 323 words for the T and C registers).

A register specification error (TermSTS = 01H) occurs if a value other than a stipulated value is specified for the register type codes (SRID/DRID).

A register specification error (TermSTS = 01H) occurs if 0007H (the T register) is specified for the send data storage register type code and a register other than the T register is specified for the loopback data storage register type code. This also holds for the C register.

A boundary error (TermSTS = 0AH) occurs if a range spanning both the base T registers (0 to 511) and the expansion T registers (512 to 999) is specified for the T register.

128

Page 129
Image 129
Toshiba T2N Remote Port Loopback for an Ethernet Port, Remote port loopback request using the Send instruction