Toshiba S2T A+1 UDP close command H0034, Sample program, A H3100 fixed, B Result status

Models: S2T

1 8
Download 8 pages 34.6 Kb
Page 8
Image 8
A+1: UDP close command (H0034)

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 A+1 UDP close command H0034, Sample program, A H3100 fixed, B Result status, B+1 Error code