Toshiba S2T User Manual

Page 6

Advertising
background image

Page

6


UDP Send:

SEND instruction is used.

▬[ A SEND B ]▬

A

: H3100 (fixed)

B

: Result status

A+1

: UDP send command (H0032)

B+1: Error code

A+2

: Socket number (1 to 12)

A+3

: Receiver IP address (note 1)

A+4

: Ditto

A+5

: Receiver Port number

A+6

: Transmit data word size (1 to 1000)

A+7

: Source data table register type (note 2)

A+8

: Source data table register starting address

Note 1
If receiver IP address is 192.0.0.5 (HC0.0.0.5), set as follows.

A+3 = H0005
A+4 = HC000

Note 2

RW register = 3
D register = 4


Sample Program












12544 = H3100
50 = H0032
Socket number = 1
Receiver IP address = 192.0.0.5 (-16384 = HC000)
Receiver Port number = 4000
Transmit ward size = 200
Source data table is D1000 and after


When R0622 is set to ON, 200 data words D1000 to D1199 are transmitted to the destination
(IP address = 192.0.0.5, Port number = 4000). When the operation is finished, R0622 is reset
to OFF automatically.

Advertising