When R0621 is set to ON, 100 data words are received from the sender (IP address = 192.0.0.5, Port number = 5000) and are stored in D2000 to D2099. When the operation is finished, R0621 is reset to OFF automatically.

UDP Socket Close SEND instruction is used. [ A SEND B ]▬

A: H3100 (fixed)

B: Result status

A+1: UDP close command (H0034)

B+1: Error code

A+2: Socket number (1 to 12)

 

Sample program

 

12544 = H3100

52 = H0034 Socket number =1

When R0623 is set to ON, the UDP socket is closed. When the operation is finished, R0623 is reset to OFF automatically.

Page 8

Page 8
Image 8
Toshiba S2T installation instructions