Beckhoff TwinCAT Frequently Asked Questions (Part19)

Q: What is the default factory account and password for the Beckhoff CE system controller in version 4024?
A: Administrator, 1

Q: The error "DB not found" is prompted when opening a TwinCAT3 project.

A:

When opening a TwinCAT3 project and encountering an error as shown in the figure, it indicates that the project has been protected by OEMkey encryption. To open the project, you need to contact the program author to provide the DB file. Specific operation steps can be found in the relevant documentation on OEMkey protection.

Q: Does Beckhoff controller support virtual serial communication?

A: When connecting a USB-to-serial converter to the controller, the first requirement is that the controller must be able to recognize the serial port. Under this premise, you can refer to the Serial Communication's sample3 in the information System and use SerialLineControlAds to implement data reading and writing to the serial port device.

Q: What function block can be used to obtain the IP address information of the network card?
A: FB_GetAdaptersInfo

Q: Exchange of high and low bytes in a WORD
A: Manually add the CAA library in TC3

Then call the FUNCTION: ReverseWORDsInWORD

Q: Twincat C++ suppressing false alarms (related to .h size_t)
A: After installing Twincat C++ and directly creating a new project, there are errors such as unrecognized header files. These errors are generally false alarms.



The external C++ IntelliSense feature falsely alarms on Twincat C++ programs, which can be turned off through VS settings.

Setting "disable intellisense" to true will disable it.

Q: Can fb_NovRamReadwrite access the NovRam of CX9020 to achieve power-off retention functionality?


A:This function block cannot be used for this purpose. It is recommended to use fb_NovRamReadwriteEx instead, which is suitable for FCxxxx-0002 fieldbus cards and CX9000 NOV-RAM.

The fb_NovRamReadwrite is only designed for use with FCxxxx-0002.

Like my work? Consider a donation! 👇