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
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 |
---|---|---|
|
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