32-bit and 64-bit process

The TwinCAT OPC UA Server is available as a 32-bit and 64-bit process. The corresponding files are installed automatically via the setup or package.

Which variant is active on your system?

A little trick in the Windows Task Manager allows you to easily recognize which variant is currently active on your system.
1. Open the Task Manager.
2. Navigate to the "TwinCAT OPC UA Server" process.
3. Open the file location via the context menu.
In the address bar of the File Explorer you can now see which variant of TcOpcUaServer.exe is currently registered on your system and is therefore active:
32-bit and 64-bit process 1:
32-bit and 64-bit process 2:

Register/unregister

To register or unregister another variant of the TwinCAT OPC UA Server, please follow the steps below.

32-bit and 64-bit process 3:

Before changing the variant, please note that you must first end the running process.

Switch from 32-bit to 64-bit process:

TcOpcUaServer.exe /UnRegTcServer2

A dialog box informs you that the TwinCAT system service must be restarted for unregistration. Confirm this dialog box with Yes.

32-bit and 64-bit process 4:

As a result of this command, the TwinCAT OPC UA Server is no longer started automatically with TwinCAT.

In the next step, you will learn how to register the 64-bit variant of the server with the TwinCAT system service.

TcOpcUaServer.exe /RegTcServer2

A dialog box informs you once again that the TwinCAT system service must be restarted for unregistration. Confirm this dialog box with "Yes".

32-bit and 64-bit process 5:

As a result of this command, the TwinCAT OPC UA Server is registered with the TwinCAT system service and starts automatically together with TwinCAT. If you get the error message when entering this command, make sure that you are not inadvertently trying to register the 64-bit process on a 32-bit system.

32-bit and 64-bit process 6:

Conversely, the 32-bit process can of course be registered on a 64-bit system.