{"id":226,"date":"2021-06-08T09:42:15","date_gmt":"2021-06-08T07:42:15","guid":{"rendered":"https:\/\/disorder.dk\/wonderware\/?p=226"},"modified":"2021-06-08T09:42:40","modified_gmt":"2021-06-08T07:42:40","slug":"codesys-3-5-16-20-to-3-5-16-40-upgrade-on-a-beckhoff-cx-5130","status":"publish","type":"post","link":"https:\/\/disorder.dk\/wonderware\/2021\/06\/08\/codesys-3-5-16-20-to-3-5-16-40-upgrade-on-a-beckhoff-cx-5130\/","title":{"rendered":"Codesys 3.5.16.20 to 3.5.16.40 upgrade on a Beckhoff CX-5130"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This is a guide on how to upgrade a already installed Codesys 3.5.16.20 runtime, on a Beckhoff CX-5130 Industrial PC, to Codesys version 3.5.16.40.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Download the runtime and package from codesys.com where you need the <a href=\"https:\/\/store.codesys.com\/codesys-control-rte-sl-cx.html?___store=en\">CODESYS Control RTE SL (for Beckhoff CX)<\/a> files. This zip contains both the runtime for the PLC, drivers for the EtherCat bus and the package for the <a href=\"https:\/\/store.codesys.com\/codesys.html\">Codesys IDE Development System V3<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the CX-5130 controller, run the installation of the runtime environment by either installing CODESYS Control RTE 3.5.16.40.exe or CODESYS Control RTE 64 3.5.16.40.exe depending on if you want a 32- og 64-bit installation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I use a CX-5130-0150 controller, 0150 which means it comes with Windows 10 and without a pre-installed TwinCat license.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For additional information, read the short introduction in the document: &#8220;First Steps for RTE on CX2xxx.pdf&#8221; that is in the zip file, for additional questions consult the manual in CODESYSControlRTEV3_Manual.pdf.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"441\" height=\"160\" src=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade2.jpg\" alt=\"\" class=\"wp-image-228\" srcset=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade2.jpg 441w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade2-300x109.jpg 300w\" sizes=\"auto, (max-width: 441px) 100vw, 441px\" \/><figcaption>Do you want to upgrade Codesys Runtime?<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The installation is guided by a standard InstallShield Wizard and the installation is a lot of &#8220;Click Next&#8221;.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"381\" src=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade3.jpg\" alt=\"\" class=\"wp-image-229\" srcset=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade3.jpg 500w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade3-300x229.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><figcaption>Click Next&#8230;<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The installation stops all running PLC services before upgrading. Notice that there seems to be some spelling errors with the version numbers, its all mixed up and dots are missing.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"381\" src=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade4.jpg\" alt=\"\" class=\"wp-image-230\" srcset=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade4.jpg 500w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade4-300x229.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><figcaption>Stopping services&#8230;<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Go to the Task Manager with CTRL+ALT+DELETE if you are locally on the IPC or use CTRL+ALT+END if you are using remote desktop.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"666\" height=\"593\" src=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade5.jpg\" alt=\"\" class=\"wp-image-231\" srcset=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade5.jpg 666w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade5-300x267.jpg 300w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><figcaption>Kill the SysTray proces if its not showing in the traybar<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Since the EtherCat device drivers are included, Windows want you to accept the installation of these.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"381\" src=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade6.jpg\" alt=\"\" class=\"wp-image-232\" srcset=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade6.jpg 500w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade6-300x229.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><figcaption>EtherCat device drivers<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">The backup files with controller and user configuration are given with path to the folders.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"381\" src=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade7.jpg\" alt=\"\" class=\"wp-image-233\" srcset=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade7.jpg 500w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade7-300x229.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><figcaption>Backup of Codesys configuration<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Restart the computer before downloading a project with the new version, else you will face a fatal error and the PLC will not go in Run mode.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"381\" src=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade8.jpg\" alt=\"\" class=\"wp-image-234\" srcset=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade8.jpg 500w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade8-300x229.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Before rebooting the PLC, check if all your custom settings to f.ex. CODESYSControl_User.cfg has been transferred to the upgraded version. I personally checked for the security settings of the CmpOPCUAServer.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade9-1024x576.jpg\" alt=\"\" class=\"wp-image-235\" srcset=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade9-1024x576.jpg 1024w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade9-300x169.jpg 300w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade9-768x432.jpg 768w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade9-1536x864.jpg 1536w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade9.jpg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>CODESYSControl_User.cfg configuration for CmpOPCUAServer<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Click the tray icon on the IPC and select &#8220;Start PLC&#8221;. Shortly after the PLC is running and we can inspect that the new target version is 3.5.16.40.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"553\" height=\"632\" src=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade10.jpg\" alt=\"\" class=\"wp-image-236\" srcset=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade10.jpg 553w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade10-263x300.jpg 263w\" sizes=\"auto, (max-width: 553px) 100vw, 553px\" \/><figcaption>Codesys 3.5.16.40 Runtime is working.<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Now fetch some coffee and read this article next <a href=\"https:\/\/disorder.dk\/wonderware\/2020\/08\/11\/codesys-3-5-16-10-runtime-on-a-beckhoff-cx-5130\/\">https:\/\/disorder.dk\/wonderware\/2020\/08\/11\/codesys-3-5-16-10-runtime-on-a-beckhoff-cx-5130\/<\/a> on how to program your Beckhoff CX controller with Codesys.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a guide on how to upgrade a already installed Codesys 3.5.16.20 runtime, on a Beckhoff CX-5130 Industrial PC, to Codesys version 3.5.16.40. Download the runtime and package from codesys.com where you need the CODESYS Control RTE SL (for Beckhoff CX) files. This zip contains both the runtime for the PLC, drivers for the<\/p>\n<p class=\"excert-link-wrapper\"><a href=\"https:\/\/disorder.dk\/wonderware\/2021\/06\/08\/codesys-3-5-16-20-to-3-5-16-40-upgrade-on-a-beckhoff-cx-5130\/\" class=\"excerpt-more-link\" >Continue Reading<span class=\"screen-reader-text\"> &#8220;Codesys 3.5.16.20 to 3.5.16.40 upgrade on a Beckhoff CX-5130&#8221;<\/span><span class=\"meta-nav\"> &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":227,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[37],"tags":[38,34,39,32,25],"class_list":["post-226","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codesys","tag-beckhoff","tag-codesys","tag-ipc","tag-plc","tag-upgrade"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack_featured_media_url":"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2021\/06\/beckhoff_cx5130_codesys351640_upgrade1.jpg","_links":{"self":[{"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/posts\/226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/comments?post=226"}],"version-history":[{"count":2,"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/posts\/226\/revisions"}],"predecessor-version":[{"id":238,"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/posts\/226\/revisions\/238"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/media\/227"}],"wp:attachment":[{"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/media?parent=226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/categories?post=226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/tags?post=226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}