Supported platforms: CODESYS 2.3, CODESYS 3.5

 

Updating Firmware (5050)

CODESYS 2.3

Updating the firmware through CODESYS

  1. Login to the control unit: Online > Login

  2. Reset the control unit: Online > Reset

  3. Write FIRMWARE.BIN file to the control unit: Online > Write file to PLC

  4. Power reset the control unit.

  5. When the control unit starts up, the LED light flashes red and green alternately as an indicator that the new firmware is taken into use. The first boot-up after downloading the new firmware can take 15-25 seconds.

Updating the firmware through CANopen

The firmware can be updated through CAN by another CANopen device.

  1. Check that you have a valid firmware binary which typically is FIRMWARE.BIN

  2. Send an SDO message to stop the CODESYS runtime. Write 4 (1 byte) to index 1025h sub1.

  3. Write firmware image to index 1F50h sub-index 2h. It is recommended to use SDO block transfer which is faster than the segmented transfer for a large set of data.

  4. Power reset the control unit.

  5. When the control unit starts up, the LED light flashes red and green alternately as an indicator that the new firmware is taken into use.  The first boot-up after downloading the new firmware can take 15-25 seconds.

 

For more information about SDO block transfer, refer to CiA DS301 (chapter 9.2.2 Service Data Object (SDO)).

 

CODESYS 3.5

Updating the firmware through CANopen

The firmware can be updated through CAN by another CANopen device (SDO block transfer and normal (segmented) transfer supported).

 

Downloading binaries

Step

CANopen data

Description

1

Download firmware binary file

Available indices:

index 1F50h sub-index 2h (encrypted firmware)

index 1f50h sub-index 3h (application)

index 1f50h sub-index 7h (secondary application)

Stops unit and makes possible to download binaries to unit. It is possible to exit this state only by rebooting unit.

2

After downloading wanted binaries, reboot unit.

Two possibilities for reboot:

Make power on boot (or)

For firmware 1.3.0.0 or newer, it is possible to reboot unit by writing string ResetUnit to index 1f50 sub-index FCh

If new firmware is downloaded, it is taken into use in the next reboot. During this process, the led blinks red/green in startup after which it starts to blink green with 5Hz / 2Hz, depending on the application state.  

 

For more information about SDO block transfer, refer to CiA DS301 (chapter 9.2.2 Service Data Object (SDO)).

 

 

Source file topic10030793.htm

Last updated 4-Sep-2025