CODESYS FAQ

License

I have problems restoring a CODESYS license, what can I do?

Update the CODESYS runtime to 4.11.0.0.

https://revolutionpi.com/forum/viewtopic.php?p=15576#p15576

I would like to try out CODESYS, do I need a license?

No, there is a demo mode that runs about 1 hour until the runtime is stopped - take a look at this FAQ:

  • Q: Why will the Raspberry Pi MC SL licenses be discontinued next year, but not Raspberry Pi SL

Where did the Raspberry Pi MC SL license go, or is there an alternative?

Take a look here at: Why will the Raspberry Pi MC SL licenses be discontinued next year, but not Raspberry Pi SL?

Which CODESYS license can I use for my Revolution Pi device?

CODESYS changed the license model for the start of 2024. The new application-based licenses apply to all CODESYS Control SL products. They are based on the software function used and no longer on the performance of the device. This means that the licenses can be used equally on all CODESYS Control SL-capable devices.

Division into performance classes
The function of a control system is largely determined by the software, whereas the hardware is responsible for providing the required resources. For this very reason, the application-based licenses no longer refer to the hardware, but to the software used in the IEC application.
For this purpose, all applications are divided into different performance classes based on suitable characteristics. Behind this are use cases that are covered. The limits of a class are derived from the use cases:

CODESYS Application Based Licenses-20240221-133844.jpg

You can see more information here:

Runtime

I have a RevPi DIO and the channels above 8 are switched incorrectly, what can I do?

I notice that outputs flicker when operating with CODESYS, what can I do?

Would it be possible to use a Revolution Pi with CODESYS as a Real-Time Soft-PLC, with the CODESYS Soft-Motion-Bundle?

  • Here is a discussion

Would it be possible to use the CODESYS Control for Linux ARM SL runtime?

  • No

RevPi Connect 4 with CODESYS does not seem to work right away - what could be the reason?

The module is shipped with the 64 Bit image but currently, CODESYS does not deliver a 64 bit runtime.

Please use a 32 bit image.

I cannot see data of an I/O module via CODESYS – what can I do?

Disable CODESYS, connect an output to an input pin, and run the commands on the shell. See here: https://revolutionpi.com/forum/viewtopic.php?t=3920#p13994

Would it be possible to implement a PROFIBUS master with a Revolution Pi module under CODESYS?

Yes, this is technically possible, see here:https://de.codesys.com/produkte/codesys-fieldbus/profibus.html

How could I point Revolution Pi IO as DWORD value?

Another variable can be used for converting to the required type instead of direct mapping. This can then be called in Main task cyclically to update required RevPi I/O variables accordingly.

https://help.codesys.com/api-content/2/codesys/3.5.16.0/en/_cds_operator_convert_integer/

How can I use the CODESYS Redundancy Configuration module?

  • There are discussions about this in the Revolution Pi forum

What is a difference between Standard and Multicore CODESYS runtime?

Are RevPi Core S or SE 32 CodesBytesys? Compatible with CodesyBytess? What model do you sugestCurrently,

suggest?ently there is no RevPi Core S as an option in the hardware selection of Codesys, but you can select RevPi Core 3. The Core S is 100% compatible with the Core 3, so it is sufficient if you select the Core 3 in CODESYS.

Does Revolution PI hardware's support Retain and Persistence Variables in Codesys?

Retain Persistent variable is not supported with RevPi since it requires a separate EEPROM interface to store the variables.
As a workaround, the variable status could be saved to a file and read again on startup.

Write and Read File using Codesys

https://forge.codesys.com/forge/talk/Engineering/thread/d5550f2e37/

Is it possible with CODESYS runtime for raspberry MC to use WebVisu via Ethernet (web server) and Connect an HDMI monitor to RevPi and open a browser to show the Webvisu in kiosk like mode?

CODESYS runtime for raspberry MC supports webvisu on RevPi devices. The default browser on RevPi device could be used with webvisu with an HDMI connection; however, you will have to look out if somfunctionalitieses are not curtailed in that browser. CODESYS Target visu works well with remote browser, but may have limitations with inbuilt browser. I suggest you also to install the Chrome browser on RevPi if you have issues with the inbuilt browser.

You can perhaps check on CODESYS webvisu forum for possible solution or post a query on the CODESYS forum.

Does CODESYS override the configuration of PiCtory?

Yes, that's right. If you use Codesys, this is the leading system.

How can I configure a DIO module under Codesys, is there a manual?

Yes, look here at the example Blinking Light

Would it be possible to run CODESYS in RevPi Core S?

Currently, there is no RevPi Core S as an option in the hardware selection of Codesys, but you can select RevPi Core 3. The Core S is 100% compatible with the Core 3, so it is sufficient if you select the Core 3 in CODESYS.

How to order the devices in Codesys

In the following video, you can see how the devices are to be arranged in codesys.

Sort device arrangement

The outputs are behaving strangely in my application. What can be the cause of this.

Please verify the execution sequence.

Can we use simulation mode with CODESYS for RevPi without real hardware?

The simulation mode in CODESYS for the RevolutionPi is not supported.

I would like to control the RS485 interface of the RevPi Connect under Codesys.

Edit the file “/etc/codesyscontrol.cfg” to set the value “/dev/ttyRS48” (without 5!). Then in CODESYS set the RS485 to port 6.

I have a RevPi Connect with Codesys. Now I would like to set up a Modbus master on the RS485 interface on the device. Do you have a tutorial for this?

I have a revolution PI Core where I want to install codesys. I did this in the past without any problems, but now it doesn't seem to work.

Problem: When I use the Tools → Update Raspberry Pi option in CODESYS, I get the following msg:”The target CPU architecture is not supported: ARMV6l”

Solution: ARMV6l is for single core support in Codesys. If the multicore version is installed, then the architecture is automatically set to ARMV7l and the error can be avoided.

I have a connection issue RevPi Connect+ MIO Codesys, what can I do?

Please follow the instructions in the Forum: Verbindungsprobleme RevPi Connect + mit CODESYS - Revolution Pi Forum

I am unable to install device configuration in CODESYS for RevPi DIO Module, What can I do?

There is an example in Forum: unable to install device configuration in CODESYS for RevPiDIO Module - Revolution Pi Forum

I have an issue with my RevPi with Codesys. We get the error message that a driver for the PiBridge is missing.

Always place the RevPi device at the root of the CODESYS device tree.

For example:
The RevPi device should be placed at the root of the device (CODESYS Control for Raspberry Pi MC SL) in the CODESYS device tree. Other devices such as Ethernet (see image below) should be placed after the basic RevPi device (Core/Connect/Compact/Flat) in the CODESYS device tree.



I am unable to find any option within CODESYS to set the parameters for Analog outputs. How can I configure it?

To configure the Analog outputs, you must log into PiCtory and make the changes there.

If I am using RevPi+CODESYS to control PROFINET slave, for example PROFINET IO, what is the fastest control cycle I can do?

The default PROFINET IO task cycle in the CODESYS control for the Raspberry Pi MC runtime is 1 ms.
This is the recommended task cycle. Faster task cycles below 1 ms may cause PROFINET communication errors.

The connection via CODESYS to my RevolutionPi device does not work.

This error message appears:

There may be a problem with the user management:

  1. Reinstall the CODESYS runtime environment on RevolutionPi Connect.

  2. Check the configured gateway in the Devices→Communication Settings tab.

  3. Click Scan Network and select the RevPi CODESYS device found and click the OK button.

  4. The first time you log in, you will be asked again to configure username and password,

  5. then try to go online again.

Please install a suitable version of https://store.codesys.com/codesys-control-for-raspberry-pi-mc-sl.html the CODESYS Runtime

Where can I find documentation about the RevolutionPi CODESYS library?

Please look at your PC under your administrator profile for this file:

C:\Users\[USERNAME]\Revolution Pi\Help\RevPi CodesysLibHelp.chm

Can the CODESYS licence of a RevPi Connect+ feat. CODESYS be transferred to another device?

No, the licence is bound to the device.

We have bought a RevPi Core 3 and would now like a licence for the CODESYS Runtime.

You can buy the Licence on the CODESYS Website. https://store.codesys.com/codesys-control-for-raspberry-pi-mc-sl.html

Can RevPi S/SE install CODESYS runtime?

Yes, the RevPi S / SE will be compatible with the upcoming CODESYS Release.

I would like to clone a RevPi Connect+ feat. CODESYS. What do I have to consider?

You have to buy a new licence for the target device.

Is it possible to install CODESYS on the RevPi Core device?

No, it is not possible

I get an error message when installing components such as “Revolution Pi Library for Codesys” that access has been denied.

Run your application as administrator

Is there please a tutorial on how to set the safety module in Codesys?

There is a module from Codesys, see here:

Please contact the support and the community of Codesys. Original discussion:

The LEDs on the RevPi Connect are controlled, although my program does not use them, what can I do?

This issue has been reported here

Please disable the GPIO’s in the CODESYS device tree like so:

I get error messages that indicate version conflicts in Codesys. What can I do?

There may be several reasons for this. Please have a look at the following article:

I have purchased a RevPi feat. Codesys. Now I lost the CODESYS licence because I reflashed the image, what can I do?

Please send us the following information to support@kunbus.com

  • Your invoice copy

  • Serial number of the device. You can find this information here.

We will restore your CODESYS licence. Have a look here about the licence import handling:

I get an error “Field bus lost synchronicity” with an EtherCAT master following

After a random time, the EtherCAT stops working and the log shows this error “Field bus lost synchronicity”.

Please have a look at the following post on our forum:

I get an error in the RevPi library when compiling. Even the code example does not work. How can this be, and what can I do?

Here is a typical error message:


The problem occurs with older CODESYS project when trying to use this project in a new CODESYS Runtime version. For Example, load project from CODESYS 3.5.16.0 to 3.5.17.0. The solution to this is to rebuild the project with 3.5.17.0 and reconfigure the CODESYS device tree as in the previous project.

In the next version of the CODESYS Revolution Pi Package, the examples will default to CODESYS Runtime V3.5.17.0.

Here already in advance the modified examples for download:

I’m trying to use the RevPi with Codesys, but I can’t communicate with it. Once I try to login, after the download there’s a message that says, “Connection to device closed”.

  • There might be some Application code in Codesys, breaking the SSH connection.

  • The CODESYS control runtime might be getting stopped when the application is downloaded.

  • Try initially by downloading an empty CODESYS application to see if the problem exists

The menu Update Raspberry Pi seems missing, what can I do?

I would like to use the WebVisu on an HDMI monitor, does that work?

Yes, this works – check out the included tutorials, e.g. the traffic light. These are installed in the form of a Windows help file together with the RevPi CODESYS Library. Also, have a look at these helpful links:

How can I check or install a CODESYS Licence?

I do not see any information about the licence in the licence manager.

There is a message with green: licence available, yellow licence available but invalid and red no licence. Does not show any of the three icons for the product.

Is there a CODESYS support for the X2 input of the RevPi Connect devices and outputs? How?

  • Yes, you just have to download the Revolution Pi Library for CODESYS.

  • Together with the instructions on the page, you can make a configuration for your expansion modules.
    This way you can also access the X2 input. Have a look at the help file in CODESYS after you have installed everything. There you will find more interesting code examples that can support you during commissioning.

Which RevPiproducts are supported in CODESYS with the “Revolution Pi library for CODESYS”?

 

I am getting errors when compiling my CODESYS project that originate from the Revolution Pi Library. What can I do?

  • Please update the Revolution Pi Library. You can find it in the Downloads section, see here:

How can I modify the CODESYS bus cycle task priority?

 

I can no longer log into Codesys, what can I do?

  1. Verify which CODESYS control for Raspberry Pi is installed on RevPi Connect

    GoTo Tools → update Raspberry Pi
    enter username password, IP address and click System info

    This version should be the same as the one configured in CODESYS application project in IDE.

  2. For first login, CODESYS user management asks for configuring user/password. If that was not asked, uninstall CODESYS runtime on RevPi Connect and install it again.

    (Same version as the one configured in CODESYS project)
    Installing CODESYS Runtime


  3. If login does not work, try disabling user management.
    Edit /etc/CODESYSControl_User.cfg and add the following:

    [CmpSecureChannel] CertificateHash=5ab21d81c63a48b3410f1f3e95bd463645986590 SECURITY.CommunicationMode=PLAIN_AND_ENCRYPTED

     

    [CmpUserMgr] AsymmetricAuthKey=c6c2a088595c3fe17cf23ff5705a134b3e9cff9f SECURITY.UserMgmtEnforce=NO



    Save and exit. Restart CODESYS control or do a system reboot
    sudo systemctl codesyscontrol restart

  4. Install new Image

I want to use the RevPi Con CAN Module with CODESYS to implement CANopen communication. However, things didn't go so smoothly. What can I do?

I have bought a RevPi Connect+ feat CODESYS and I would like to use it as a soft PLC and I would like to communicate with a sensor via CANopen. How can I implement something like this?

You can use a" RevPi Con Can” for your project to read and process sensor values with CODESYS via the this CON extension module.
Information on the “Con Can” can be found under the following links:

https://revolutionpi.com/tutorials/uebe ... i-con-can/

Forum Entry:

Docker

Is there a docker image of CODESYS runtime (“CODESYS Control for Raspberry Pi MC SL”)?

Docker image on Docker Hub that might be interesting. You can find it at the following link: .

 

Verwandte Artikel