Set the Station ID of a device
- Last UpdatedSep 16, 2024
- 1 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
The station ID must use the following syntax:
<AMS Net ID>:<runtime or port number>
The following syntax diagram shows all of the possible options:
AMS Net ID :{ runtime or port number | 301 | 800 | 801 | 811 | 821 | 831 | 851 }
where,
AMS Net ID: The AMS Net ID of the TwinCAT PLC or runtime. This ID consists of six numeric values separated by periods (e.g., 5.7.46.126.1.1), and although it can be based on the target's IP address, it is not the same. If you have properly created an AMS route between the computer and the target, you should know the target's ID. For more information, see "Installing and Configuring the TwinCAT ADS Software" at the end of this document.
runtime or port number: The PLC/NC/IO port used to do the communication.
TwinCAT 3 uses fully configurable port numbers. The default value is 851 for TwinCAT PLC, but you can specify anything as long as it matches the port number that has been configured in the TwinCAT 3 programming software.
For TwinCAT 2, the following values have been implemented and tested:
|
Value |
Description |
|
1, 2, 3, 4 301 |
Runtime number TwinCAT I/O |
|
800 |
BC9000 or BX9000 |
|
801, 811, 821, 831 |
Equivalent to runtime numbers 1,2,3,4 |
Examples of valid station IDs:
5.7.46.126.1.1:1
192.168.1.72.1.1:301
28.39.5.87.1.1:851