Beckhoff TwinCAT Frequently Asked Questions (Part16)

Q: How to use the TC3 Inforsys (the search bar in the offline version of the help information shows "No results found")?

A: There are two ways to open the TC3 offline version of the help after successful installation:

  1. After launching TwinCAT3 software, click "View Help" in the last item of the top taskbar labeled "HELP", or use the shortcut key Ctrl+F1.

(If a webpage pops up after the operation, please click "set help preference" below "View Help" and set it to "launch in Help View".)

  1. Find the Beckhoff folder in the Windows taskbar and click "Information System English".

Steps to use the search bar: For the first time, you need to click to display the title, switch to the search bar, and enter the full name of the search keyword. Then, select the result to view.


Q: After installing TwinCAT3 software on a Beckhoff controller, how do I read the routing information in the controller?

A:Method 1: You can view the corresponding files on the Beckhoff controller via remote desktop.

For specific steps, please refer to the link: TwinCAT FAQs (beckhoff.com.cn)

Method 2: You can use the GetRemotePCInfo command to achieve this.

For specific instructions on the command, please refer to the link: Beckhoff Information System - English

Method 3: You can use MDP commands to achieve this.

For more information, please refer to the link: Beckhoff Information System - English

Method 4: You can view the routing information of the TwinCAT3 icon on the Beckhoff controller via remote desktop.

Q: The USB dongle (C9900-L100) can be detected, but when executing "Search USB Dongle," it prompts that the dongle status is "no connection."


A:In the TwinCAT3.1.4024 version, the USB dongle can be scanned under "Device," but after clicking "Search USB Dongle on Target" under "License Device," although some dongle information is read, the "Status" always displays "No connection." Clicking "Reload Info" is also ineffective, and it will prompt "Function Failed," as shown in the following image:



The correct approach is: Instead of clicking "Search USB Dongle on Target" in "License Device," you should click "Search in I/O configuration," and then you can proceed with normal operations on the dongle, as shown in the image below:



Q: How to handle the issue of inability to communicate via Modbus TCP after enabling the firewall on an industrial PC for a TC3 system?

A: Modbus TCP typically uses port 502 by default. It is necessary to configure the firewall to allow access to port 502.

Q: TwinCAT System' (10000): Sending amscommand > > Init28(IO: Download Symbols: Symbols downloaded >>AdsError: 1798 (0x706, Sorry, no error description...) << failed!

The error message "ads error 1798 (0x706)" indicates an error caused by an incorrect parameter, although it does not specify which parameter specifically. Generally speaking, it could be related to system configuration parameters such as task, port, routing, etc.

In this case, the error was caused because the plctask port was changed to 851, which conflicted with the plcport set to 851. Therefore, it's important to be cautious and avoid changing the task's port unless necessary.


A newly created blank project encounters an error 1798 during scanning, as shown in the following image:


There are many devices actually connected, including EK1122, multiple EK1100s, EP modules, and third-party slaves. After disconnecting all the Ethernet cables and reconnecting them one by one, and performing multiple scans, it was finally determined that the issue was caused by the reversed In and Out ports of EtherCAT on one of the slaves.

Q: I have already defined the interface resolution in the Size mode of TC3 PLC-HMI, but when running in full-screen mode, only half of the table is displayed on the screen.

A: The interface resolution has been defined in the Size mode of TC3 PLC-HMI, but after running in full-screen mode, only half of the table is displayed on the screen (as shown in the figure below).



You can modify the scaling options in the target Visulization:
Change from Isotropic to Anisotropic, and then reactivate it.



Q: What is the function of the 'monitoring' attribute?

A: By default, after writing the Properties for a function block, when we declare and call the Get method of the function block's properties in the PLC program, we are unable to see the current values returned by the Properties in the variable monitoring area when expanding the function block online (as shown in the figure below). We can only observe through fMytime.


And if we add a line {attribute 'monitoring' := 'variable'} above the Properties declaration section,


During online operation, the program will create an implicit variable for the Properties. When the PLC program calls the Set or Get method, the return value of the property will be directly displayed in the monitoring bar (as shown in the figure below). This also makes it convenient for users to add it to the watchlist for observation.


Q: How to display floating-point numbers in scientific notation on the TC3 PLC HMI?

A:To achieve this, you can set the display format to %e.



Q: How do I read the name and type of a specified variable in TwinCAT3?

A:You can add the Tc3_JsonXml library and use the GetSymbolNameByAddress and GetDatatypeNameByAddress methods of the FB_JsonReadWriteDatatype block to retrieve the specified variable's name and datatype.

Q: Cannot create target file 'C:\TwinCAT\3.1\Boot\Plc\Port_851.app'

A: This error often occurs together with Activation Error 1804, typically appearing after the program has been started.

Solution: You need to navigate to the local path of the controller at C:\TwinCAT\3.1\Boot, and delete the entire previous program files (if files are in use and cannot be deleted during the deletion process, you can shut down the machine, remove the memory card, and use a card reader to delete them). Please note that only the files inside the Boot folder should be deleted, not the Boot folder itself. After deletion, re-activate and download the program.



Like my work? Consider a donation! 👇