<< to CrossControl homepage

Support & Service Center

Booting the display to a CODESYS application

Printer-friendly versionPrinter-friendly versionPDF versionPDF version

Booting the display to a custom CODESYS application can easily be accomplished by following the steps below.

Step 1: Create a CODESYS boot application

  • In CODESYS log into the device
  • In the CODESYS development environment there is a menu on the top menu bar named 'Online'.  Select this and when logged into the device the 'Create boot application' menu item should be selectable.  Select it.

That's it!  If you are logged into the device a bootable version of your project was created in the '/opt/CoDeSysControl' directory on the device.  If you are not logged into the device you can still create and save the bootable files to your local machine and copy them over to the '/opt/CoDeSysControl' directory on the device.  This is helpful for updating applications in the field where you may not have the ability to connect to the device directly.

 

Step 2: Disable the Qt Startup script

On the displays a default Qt application is booted which shows some display settings as well as the IP address.  To have the CODESYS application boot we must disable the Qt application from booting.  How we do this is a bit dependent on the device you are using.

ARM (iMX5) Devices (VC / VA / XS / XA)

  • Log into the device through the Linux terminal or an ssh client
  • Once logged in type 'chmod -x /opt/etc/init.d/StartupGui'

ARM (iMX6) Devices (VS / VI)

  • Log into the device through the Linux terminal or an ssh client
  • Once logged in type 'ln -sf /dev/null /opt/etc/rc5.d/S10cclauncher'

x86 Devices (XM2)

  • Log into the device through the Linux terminal or an ssh client
  • Once logged in type 'chmod -x /opt/etc/rc3.d/S50StartupLauncher'

Note: Once the default settings screen is disabled you will no longer be able to see the display IP address.

 

That should do it.  Once complete you should be able to reboot the display and your CODESYS application should boot.

 

whatever