Changing the AMS NetID
This work step shows how you can change the AMS NetID of the industrial PC. Note that in doing so you will also change the address of the industrial PC in the TwinCAT network. The AMS NetID consists of 6 bytes and is represented in dot notation and in the hexadecimal system.
Requirements:
- Access rights to the file TcRegistry.xml
Proceed as follows:
- 1. Stop the TcSystemService with the command
doas service TcSystemService stop
- 2. Enter the command
doas ee /usr/local/etc/TwinCAT/3.1/TcRegistry.xml
in the console.
The fileTcRegistry.xml
opens.
<Value Name="CurrentVersion" Type="SZ">3.1</Value>
<Key Name="System">
<Value Name="RunAsDevice" Type="DW">1</Value>
<Value Name="AmsNetId" Type="BIN">053B151A0101</Value>
</Key>
- 3. Change the AMS NetID under the entry
<Value Name="AmsNetId" Type="BIN">053B151A0101</Value>.
The entry - 4. Press [Esc] and save the changes.
- You have successfully changed the AMS NetID. Restart the TcSystemService with the command
doas service
TcSystemService start