Set the Station ID of a device
- Last UpdatedSep 02, 2024
- 2 minute read
Set the station ID for a selected device so that the Communication Driver can identify and communicate with it on the network.
Syntax
To connect to a CODESYS V3.x device using ARTI3, use the following syntax:
ARTI3,<runtime address or device name>
To connect to CODESYS V3.x device via Gateway, use the following syntax:
[gateway IP address:]<runtime address or device address>[:Gateway port number]
To connect to a CODESYS V2.x device using TCP/IP communication via CODESYS Gateway, use the following syntax:
[gateway IP address:]TCP,<runtime IP address>[:runtime port number][,protocol (L4 or L2)]
To connect to a CODESYS V2.x device in simulation mode using an exported symbol file, use the following syntax:
SIM,<symbol file>
The following syntax diagrams show all of the possible options:
For CODESYS V3.x device:
{ { | gateway IP address: }runtime address or device name{ | :gateway port number } | ARTI3,runtime address or device address }
For CODESYS V2.x device:
{ { | gateway IP address: }{ TCP{ | ,{ | runtime IP address{ | :runtime port number } }{ | ,{ L4 | L2 } } } }
| SIM,symbol file }
Where,
gateway IP address: The IP address of the CODESYS Gateway server that is managing communication with the CODESYS device(s). For CODESYS V3.x, if no address is specified, the default is 127.0.0.1 (i.e., localhost). For CODESYS V2.x, if no address is specified, it will connect directly using ARTI.
runtime address or device name: The name (case sensitive) or hexadecimal address of the CODESYS device.
gateway port number: The port number of the CODESYS Gateway server that is managing communication with the CODESYS device(s). If no port is specified, the default is 1217.
runtime IP address: The IP address of the CODESYS device. If no address is specified, the default is 127.0.0.1 (i.e., localhost).
runtime port number: The port number of the CODESYS device. If no port is specified, the default is 1200.
protocol: Protocol to be used to communicate with the CODESYS device. The valid options are L4 (Level 4) and L2 (Level 2). If no protocol is specified, the default is L4.
symbol file: The file path to a symbol file (*.sym or *.xml) that has been exported from the CODESYS programming software. For more information, see the original CODESYS documentation, as well as the appendices at the end of this document.