The Hosts worksheet contains the communication parameters for the PLC handler communication driver for Codesys PLCs. This communication driver can be used to communicate via Ethernet TCP/IP with all V2.3 and V3 Codesys PLCs that support this protocol.
#Hostname
|
Interface type
|
Delay[ms]
|
Timeout[s]
|
Retry
|
DelayOnError[s]
|
LogLevel
|
IP address
|
Port
|
Codesys address
|
Application prefix
|
Path symbol file
|
PLC1
|
Gateway3
|
200
|
3
|
0
|
3
|
0
|
EPAM4-PLCHOST
|
1200
|
|
|
|
Driver DLL: drvplch.dll
Communication with Codesys V2.3 PLCs
ARTI interface type is used for communication with V2.x PLCs.
Parameters
|
M/O
|
Default
|
Description
|
Hostname
|
M
|
|
Unique name
|
Interface type
|
M
|
|
ARTI for (Codesys 2.x)
|
Delay[ms]
|
O
|
200
|
Delay between two read operations
|
Timeout[s]
|
O
|
3
|
Maximum time that must not be exceeded when accessing the PLC. (Connect, Read, Write)
|
Retry
|
O
|
|
Not implemented
|
DelayOnError[s]
|
O
|
3
|
Delay after an error has occurred. Prevents, for example, too fast connections during an online change
|
Loglevel
|
O
|
|
Levels of error output. Not implemented.
|
IP address
|
M
|
|
IP address of the PLC or EPAM4-PLCHOST (=Localhost: 127.0.0.1)
If the RTS is to communicate with the local PLC and the Ethernet cable is not plugged in, communication is only possible via Localhost. EPAM4-PLCHOST should therefore be set as IP address so that the communication also functions from the simulation.
|
port
|
O
|
1200
|
IP port of the PLC
|
Codesys-adr.
|
O
|
|
Not relevant
|
App. prefix
|
O
|
|
A prefix can be defined that is placed before any variable name. For example for global variables an '.'. If there is no prefix configured at this position, the variable name must be configured everywhere with this prefix.
|
HW-Type
|
O
|
|
ElauMax
To connect to an Elau MAX4 PLC set Port to 5000
|
Path symbol file
|
O
|
|
Path and name of the imported symbol file
|
Communication with Codesys V3 PLCs
Gateway3 interface type is used for communication with V3.x PLCs.
Parameters
|
M/O
|
Default
|
Description
|
Hostname
|
M
|
|
Unique name
|
Interface type
|
M
|
|
GATEWAY3 for (Codesys 3.x)
|
Delay[ms]
|
O
|
200
|
Delay between two read operations (=cycle time of the communication task)
|
Timeout[s]
|
O
|
3
|
Timeout when accessing the PLC (Connect, Read, Write)
|
Retry
|
O
|
|
Not implemented
|
DelayOnError[s]
|
O
|
3
|
Delay after an error has occurred. Prevents, for example, too fast connections during an online change
|
Loglevel
|
O
|
|
Levels of error output. Not implemented.
|
IP address
|
M
|
|
IP address of the PLC or EPAM4-PLCHOST (=Localhost: 127.0.0.1)
|
port
|
O
|
1217
|
IP port of the PLC
|
Codesys-adr.
|
O
|
Device-name
|
Codesys address of the PLC
If empty the RTS uses the device name
|
App. prefix
|
O
|
|
A prefix can be defined that is placed before any variable name. For example for global variables an '.'. If a prefix is not configured, the variable must be configured everywhere with a prefix.
|
Path symbol file
|
O
|
|
Path and name of the imported symbol file
|
|