6 F 3 B 0 3 6 2

2.UDP send request/broadcast send request (using the SEND instruction)

a.Function

This request sends local port register data using an open UDP socket.

Amount of data sent: 1 to 1000 words

b.Transfer parameters

A A+1 A+2 A+3 A+4

A+5

A+6

A+7

A+8

3100H

CMD = 0032H

SportNO

DIPAddress

D_UDP_PORTNO

WordSize

SRID

StreqNOD

Module designation, 1: channel number Command number

Socket identifier (1 to 8) Transmission destination IP address

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

Transmission destination object socket UDP port number Transmission data length: 1 to 1000 words Transmission data storage register type code Transmission data storage register number

Transmission data storage register type code:

Type code for the register that holds the

 

transmission data. (See Figure 5.1)

Transmission data storage register number:

Starting number of the registers that hold the

 

transmission data.

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

 

 

 

 

SportNO

TermSTS

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

SportNO: Socket identifier (1 to 8)

TermSTS: See tables 4.3 and 4.4.

Detail information: See table 4.5.

d.Important items

The T/C register flag data is not transmitted if the T/C registers are not specified as storage registers for transmitted data.

An error is returned if a send request is issued for a socket that is not yet opened.

Status: Transmission error (TermSTS = 0BH)

Detailed information: Unopened (0081H)

An error is returned if a value other than 1 to 8 is specified as the socket identifier. Status: Transmission error (TermSTS = 0BH)

Detailed information: Illegal socket identifier (0082H)

If the IP address of the local port is specified as the transmission destination IP address, it will be possible to send data, but it will not be possible to receive that data with a receive request.

87

Page 88
Image 88
Toshiba T2N instruction manual Transmission data