Download Print this page

Toshiba S2T Setup Manual page 5

Programmable controllers ethernet module

Advertisement

To use UDP/IP transmission, it is necessary to create a small program in the S2T. The
program will utilize the SEND and RECV instructions. The general procedure is as follows:
1. Execute UDP socket open: The Specified Port number must be different from the Port
number for T-PDS connection. If the Port number for T-PDS is 2000, the Port number for
UDP socket must be other than 2000 to 2002. It is recommended that 2 UDP sockets be
opened. One for data send and one for data receive respectively.
2. Execute UDP send and/or UDP receive to exchange data via Ethernet.
3. UDP socket close.
The instruction information on these functions is shown as follows.
UDP Socket Open: SEND instruction is used.
A: H3100 (fixed)
A+1: UDP open command (H0031)
A+2: Socket number (1 to 12)
A+3: UDP Port number
Sample Program
12544 = H3100
49 = H0031
Socket number =1
Port number = 4000
When R0620 is set to ON, the UDP open operation is executed. When the operation is finished
R0620 is reset to OFF automatically.
UDP/IP Socket Interface:
▬[ A SEND B ]▬.
Page
5
B: Result status
B+1: Error code

Advertisement

loading

This manual is also suitable for:

Gen651a