Tech Note: CODESYS (Error : Version Mismatch)

When connecting to a PLC in CODESYS, you may encounter the following error message:

Error: Selected target system is different from the connected device.
Version mismatch: Selected = x.x.x.x, Online = x.x.x.x

This message indicates that the firmware version of the connected PLC does not match the version configured in CODESYS.

How to Resolve:

You have two options to fix this issue:

  1. Update the PLC Firmware
    Load the correct firmware version onto the controller so that it matches the target version selected in CODESYS.

  2. Change the Target Version in CODESYS

    1. Check the Firmware Version running on the device:

    2. Modify the device configuration in your CODESYS project to match the firmware version currently running on the controller.

3 Likes

Here is a list of the recommended version for each Firmware (for a PFC200):

Version (Index) Target Version Codesys Version Devices/Libraries Package
04.01.10 (23) 6.0.0.15 3.5.17.3 2.0.0.9
04.02.13 (24) 6.1.0.17 3.5.18.2 2.0.1.8
04.03.03 (25) 6.1.1.11 3.5.18.5 2.0.2.10
04.04.03 (26) 6.2.0.1 3.5.19.2 2.0.4.4
04.05.10 (27) 6.3.0.12 3.5.19.7 2.0.5.6
04.06.01 (28) 6.3.1.5 3.5.19.7 2.0.6.2
04.07.03 (29) 6.4.2.12 3.5.21.1 2.0.7.5
4 Likes

Can you please add similar information for PFC300 controllers? I am currently testing a 750-8302 FW28, using Codesys 3.5.19.7 and device descriptions 2.0.6.14. Upon connecting with the PFC300, a message pops up saying the device version ‘6.3.1.5’ in the project is older than the connected device, a PFC300 version ‘6.3.1.9’. I can ignore this message, connect anyway and download a program to the PLC. It is not clear to me if I am running the correct Codesys version and/or device descriptions for the PFC300.

When downloaded and started, the PLC program mostly works fine. However I see no images in web visualisations. I.e. Button objects configured to display an image, Image objects. Not sure if this is related.

1 Like

Weird, i haven’t got this error. what FW have you used ?
Are you using a clean FW or an WAGO Solution FW (Like the EDM) ?

The controller is a PFC300, 750-8302 on FW28. It has the additional ipk applied which resolves issues on PFC300 with retain variables.

Upon downloading a new application to the controller, all the way at the end of the download it stops on an error message. Right when transferring of the application is done. All that is left to copy is txt textlists and images. The error would also disconnect the controller, so I had not been able to actually start the program. Upon connecting again, no more files get downloaded to the controller. However I can now hit START and run the program. This seems related to the issue with missing images and also translation, as the global textlist and other text lists did not get downloaded to the controller.

The error message shows a failure to create some file in the folder “C:\Program Files\CODESYS 3.5.19.70\CODESYS\Common“. The filename would be different each time, seeming like a random string, in 8.3 format. So an 8 character filename with a 3 character extension. The characters themselves appear to be totally random, a different name every time.

I have uninstalled and reinstalled CoDeSys 3.5.19.70, which did not make a difference. It has the Wago Codesys Download server, v1.0.1.0 and Wago Devices & libraries, v2.0.6.14.

Host is Windows 11, regular user account with no administrator priviliges. I have added my user account to the security settings for this specific folder, with full control. As a workaround this seems to do the trick. It should however not be necessary for a normal user account to have full control on a subdirectory under Program Files.