Q: The application 'port_851' does not exist on the device.
A: This prompt will appear when downloading a program via login, typically on a device that is being used for the first time, has just had its BOOT folder cleared, or if the check box below is not ticked during activation.
Q: Static Analyzer Tool for Duplicate Memory Addresses and Compilation Detection
A: The Static Analyzer Tool assists in identifying approximately 100 common errors and helps recognize non-standard or disallowed definition specifications in the program. Pre-set markers are a necessary process for code compilation/release, preventing potential bugs from being unintentionally introduced into the actual production line.
unused variable: Detects variables that are not being used
overlapping memory areas: Detects duplicate memory addresses
Write access from several tasks: Detects whether variables are being assigned values within multiple tasks
Multiple write access on output: Detects duplicate assignments to output variables
Multiple usage of name: Detects the reuse of names (e.g., ton: int;
where ton
is already a function block and cannot be used as a name)
Report temporary FunctionBlock instances: Reports the instantiation of temporary function blocks (e.g., instantiating a function block within another function block, which will not cause an error but will be displayed in the message log)
For example, MB10 and MW5 have overlapping memory addresses in some parts. Typically, the compilation will pass and the program can be downloaded, but there may be potential bugs during actual operation.
If "overlapping memory areas" is checked, it will detect duplicate addresses in the program and prevent it from compiling successfully.
Q: Is there any other way to insert images into the TC3 PLC HMI besides the image method?
A: Yes, please refer to the following diagram.
Q: Install nupkg file in TwinCAT HMI version 1.12 through NuGet Package Manager
A: NuGet Package Manager can be used to install packages in TwinCAT HMI.
Note: This operation requires an internet connection for downloading. Please ensure your computer has access to an external network.
- Right-click on "References" and select "Manage NuGet Packages"
- Open the main interface, select "Browse," and on the right side, choose "TwinCAT HMI Official" for the "Package source."
- As shown in the figure, the packages with green downward arrows indicate that they have been successfully installed. Here, select a package that has not been downloaded and installed, and click "Install" on the right side.
- A dialog box will pop up. Click to confirm installation.
- The installation status will be displayed in the output box below, and a new package will appear under "Reference" after successful installation.
A: It can be achieved through the Move function block, as shown in the figure below.
A: 1) It needs to be confirmed first if the issue is caused by the absence of source code (execute source code download). You can check if there is source code by looking for TCPLC_S_X.wbp in the controller path C:\TwinCAT\Boot.
- If the source code has been downloaded but the error persists, check if the path setting is a valid path. You can try changing to another path for testing.
Q: Error 1406 occurred when installing software.
A: This error is generally caused by antivirus software. Please ensure that the antivirus software is closed before installation.
If the software becomes abnormal due to antivirus software and prompts appear when using the installation package to repair, it means that the registry has been tampered with. It is recommended to reinstall the operating system or use a virtual machine to install our software.
Q: How to obtain the hardware information, system information: Type, HardwareSerialNo, TwinCATVersion... of a CX controller?A: You can use the FB_CxGetDeviceIdentification instruction from the TC2_SystemCX or TC_SystemCX library to read this data:
strTargeType: Target system type, e.g. 'CX1000 CE', ....
strHardwareModel: Hardware model, e.g. ‘1001’
strHardwareSerialNo: Hardware serial number, e.g. ‘123’
strHardwareVersion: Hardware version, e.g. ‘1.7’
strHardwareDate: Hardware production date, e.g. ‘18.8.06‘
strHardwareCPU: Hardware CPU architecture, e.g. ‘INTELx86‘, ‘ARM‘, ‘UNKNOWN‘ or ‘ ‘ (empty string).
strImageDevice: Software platform, e.g. 'CX1000', ....
strImageVersion: Software platform version, e.g. '2.15'.
strImageLevel: Software platform level, e.g. 'HMI'.
strImageOsName: Name of operating system, e.g. 'Windows CE'.
strImageOsVersion: Operating system version, e.g. '5.0'.
strTwinCATVersion: TwinCAT version, e.g. for TwinCAT 2.10.1307: '2'.
strTwinCATRevision: TwinCAT revision, e.g. for TwinCAT 2.10.1307: '10'.
strTwinCATBuild: TwinCAT build, e.g. for TwinCAT 2.10.1307: '1307'.
strTwinCATLevel: Registered TwinCAT level, e.g. 'PLC', 'NC-PTP', 'NC-I', ....
strAmsNetId: TwinCAT AMS-NetID, e.g. '5.0.252.31.1.1'
Q: How to modify the default storage path for new TwinCAT3 projects?
A:
Under the "Projects and Solutions" tab, you can find "Locations" to modify the default save directory. After making the changes, creating a new project will look like this (taking VS2019 as an example):
Like my work? Consider a donation! 👇