The AdsHosts worksheet is used to define the communication parameters for the communication channels to Beckhoff TwinCAT PLCs.
Example:
#Hostname
|
AdsServer IP
|
Delay[ms]
|
Timeout[s]
|
Reserved
|
DelayOnError[s]
|
Reserved
|
AdsServer Port
|
AmsNetId
|
AmsPort
|
Reserved
|
Path symbol file
|
PLC1
|
192.168.0.99
|
|
|
|
|
|
|
|
|
|
|
Driver DLL: drvAds.dll
Communication with Beckhoff TwinCAT PLCs
Parameters
|
M/O
|
Default
|
Description
|
Hostname
|
M
|
|
Unique name
|
AdsServer IP
|
M
|
|
IP address of the Ads server
|
Delay[ms]
|
O
|
200
|
Delay between two read operations
|
Timeout[s]
|
O
|
3
|
Maximum time that must not be exceeded during communication. (Connect, Read, Write)
|
Reserved
|
|
|
|
DelayOnError[s]
|
O
|
3
|
Delay after an error. Prevents, for example, too fast reconnections during an online change
|
Reserved
|
|
|
|
AdsServer Port
|
O
|
48898
|
TCP port of the Ads server
|
AmsNetId
|
O
|
<AdsServer IP>.1.1
|
"Ams Net Id" of TwinCAT
If no AmsNetId is specified, the Ads server IP is used and extended with ".1.1"
|
AmsPort
|
O
|
801
|
|
Reserved
|
|
|
|
Path symbol file
|
O
|
|
Path and name of the imported symbol file
|
Configuration of the TwinCAT system
In order for the EPAM4-RTS to communicate with a TwinCAT PLC, the EPAM4-RTS must be made known to the AMS router on the TwinCAT system.

|
Adding EPAM4 RTS to the AMS router:

Name:
|
Any unique name
|
Ams Net Id:
|
IP address of the EPAM4 device + ".1.1"
|
Address:
|
IP address of the EPAM4 device
|
Transport:
|
TCP/IP
|
Slow connection:
|
Does not normally have to be set
|
|
|