May 9, 2020

Autoload TwinCAT 3 Different Modes

When the operation system is loading TwinCAT 3 may load either in a Run Mode or in a Config Mode. Same things happen with an old version number 2. So important, you can choose the working mode only if you create a new empty project or open already existed. Then you have to connect to the local or remote system, choose working mode and finally press the Apply button. Too long way, need a short cut. Illustration next:


Actually, on loading mode stored and defined through the windows registry. This option is just necessary in the traybar menu next by the system clock. Till we are waiting for this option we will use regedit or write registry scripts for defining a working mode. So, this option already present in TwinCAT 2. Why it absent in the third one?

For the x32 systems:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Beckhoff\TwinCAT3\System]
"SysStartupState"=dword:00000005

For the x64 systems the path is a little longer. Just added a magic voodoo word WOW6432Node:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Beckhoff\TwinCAT3\System]
"SysStartupState"=dword:0000000F

This blog post is about TwinCAT 3.1 but we still remember about the oldest one TwinCAT 2. Everything is exactly the same. Just remove the version number from the path key and voila: HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Beckhoff\TwinCAT\System. Still need remember of the voodoo magic WOW6432Node and a bit depth of the operating system.

The working mode is defined by value of the registry key SysStartupState:
  • 05 - Run Mode | green icon.
  • 0F - Config Mode | blue icon. Equal = 15 in decimal system.

The last but not the least make a .reg file then click it by mouse on the target system or send through e-mail. For desktop systems oonly.

No comments

Post a Comment

Note: Only a member of this blog may post a comment.