ملخص المحتوى في الصفحة رقم 1
Rev 051115
Programmable Controllers
Ethernet Setup for the S2T
Ethernet communications with the S2T CPU is done through the GEN651A Ethernet module.
Prior to using this module, it must be configured using the EtherSetup_E setup software. The
EtherSetup_E software is used to configure the network parameters (IP Address, Subnet
Mask, and Multicast Addresses) in the GEN651A Ethernet module. When all the following
setup steps described belo
ملخص المحتوى في الصفحة رقم 2
2.6 Click the Option button. Set the required parameters, then click the Write button to write into GEN651A module. 2.7 Close the EtherSetup_E software. DIP Switches 7 and 8 must be left in the ON position for T-PDS to work through the GEN651A module. 2.8 Cycle Power on the GEN651A module. The new IP address will not be valid until power is cycled on the module. This completes setup of the GEN651A Ethernet module. If the EtherSetup_E can not establish commun
ملخص المحتوى في الصفحة رقم 3
Computer Ethernet Card Setup: The computer’s Ethernet card must be setup first. Go to the Control Panel and double click on Network Connections. Find the Ethernet card, alternate click on it and then click on Properties. Note that the IP Address and Subnet Mast must be the same as set in T-PDS & the GEN651A (the last digit of the IP Address must be different however, it cannot be .1 The address of the GEN651A module is 172. 1
ملخص المحتوى في الصفحة رقم 4
T-PDS Setup: In T-PDS under the Option Menu, select Communications. Set as follows: Using T-PDS, set the following in special register SW63: This setting can also be made in the ladder logic with a MOV instruction. This completes the T-PDS setup. T-PDS can now be connected to the S2E via Ethernet through the GEN651A Ethernet module. Note: If an attempt is made to assign an IP address in T-PDS before the computer’s Ethernet card i
ملخص المحتوى في الصفحة رقم 5
UDP/IP Socket Interface: 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
ملخص المحتوى في الصفحة رقم 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 r
ملخص المحتوى في الصفحة رقم 7
UDP Receive: RECV instruction is used, ▬[ A RECV B ] ▬ A: H3100 (fixed) B: Result status A+1: UDP receive command (H0033) B+1: Error code A+2: Socket number (1 to 12) A+3: Sender IP address (note 1) A+4: Ditto A+5: Sender Port number A+6: Receive data word size (1 to 1000) A+7: Destination data table register type (note 2) A+8: Destination data table register starting address A+9: Timeout setting (0.1s units, see note 3) Note 1: If sender IP address is 192.0.0.5 (HC0.0.0.5),
ملخص المحتوى في الصفحة رقم 8
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 R06