Skip to content

Instantly share code, notes, and snippets.

@jozefchmelar
Last active January 12, 2022 14:32
Show Gist options
  • Save jozefchmelar/a0223a3d288d5907525c5538c171f471 to your computer and use it in GitHub Desktop.
Save jozefchmelar/a0223a3d288d5907525c5538c171f471 to your computer and use it in GitHub Desktop.
Change AMS ID on TcBSD TwinCAT/BSD

Change AMS ID on TcBSD TwinCAT/BSD

Login to your TcBSD and type following

cat /usr/local/etc/TwinCAT/3.1/TcRegistry.xml

Note : be careful when copying commands from the internet!

You should see something like this. We will change the AmsId property

image

You'll notice that it's not in the format you're used to. It's in HEX format.

HEX Decimal
05 3B 15 1A 0101 5.59.21.26.1.1
05 5
3B 59
15 21
1A 26
01 1
01 1

I wanted to change it to 172.20.10.2.1.1 so I opened up the calc.exe on Windows. Switch to Programmer mode, select DEC, write your IP number by number and write down the result in HEX

172 20 10
image image image

|

This way you'll end up with AC140A020101

Open the editor and change the number to the one you want. Press ESC to exit and then save changes.

doas ee /usr/local/etc/TwinCAT/3.1/TcRegistry.xml

Reset TwinCAT

doas TcSysExe.exe -config

Or reset OS

doas reboot

source : https://download.beckhoff.com/download/Document/ipc/embedded-pc/embedded-pc-cx/TwinCAT_BSD_en.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment