{"id":540,"date":"2025-03-31T11:01:27","date_gmt":"2025-03-31T09:01:27","guid":{"rendered":"https:\/\/disorder.dk\/wonderware\/?p=540"},"modified":"2025-03-31T11:01:27","modified_gmt":"2025-03-31T09:01:27","slug":"codesys-runtime-plc-logfiles","status":"publish","type":"post","link":"https:\/\/disorder.dk\/wonderware\/2025\/03\/31\/codesys-runtime-plc-logfiles\/","title":{"rendered":"Codesys Runtime PLC Logfiles"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A PLC running a Codesys runtime has multiply logifles, all depending on where you look for them. Generally there is 3 places to find logfiles.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Codesys IDE online on a PLC<\/li>\n\n\n\n<li>Codesys WBM Web Based Management<\/li>\n\n\n\n<li>Secure shell access to the Linux OS<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Codesys IDE Logfiles<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Doubleclick on your PLC device in the IDE. Enter communication settings and go online. Go to tab Log and hit the small green refresh icon. You now get a list of messages from different Codesys components.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"536\" src=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles1-1024x536.jpg\" alt=\"codesys ide runtime log\" class=\"wp-image-541\" srcset=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles1-1024x536.jpg 1024w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles1-300x157.jpg 300w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles1-768x402.jpg 768w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles1-1536x804.jpg 1536w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles1.jpg 1725w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Codesys WBM Logfiles<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Enter the IP adress or hostname of your PLC, in a web browser. Log into the Web Based Management (WBM). Go to the diagnostics tab and hit the red Refresh button. This logfile is limited to a higher level of reporting, than the logfile found in the IDE. Less lines. Less details.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"406\" src=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles2-1024x406.jpg\" alt=\"\" class=\"wp-image-542\" srcset=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles2-1024x406.jpg 1024w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles2-300x119.jpg 300w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles2-768x304.jpg 768w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles2-1536x609.jpg 1536w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles2.jpg 1847w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Linux OS logfiles<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A range of different logfiles is saved in the Linux OS and saved on disk. To access these files you need to use a FTP client or SCP, to download the files through Secure Shell (SSH).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I normally use <a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\">PuTTY<\/a> for accessing SSH services in different devices. PuTTY has a built in command, to download files through SSH. This is not a command in PuTTY program itself, but has to be called in a Windows commando prompt.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First set up the environmental variable, to be able to call the PSCP command. Navigate to the folder of your PuTTY isntalaation.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>set PATH=C:\\Program Files\\PuTTY;%PATH%<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now enter the following command, with PASSWORD, USER and folders adjusted to your local credentials and settings.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pscp -pw PASSWORD USER@IPADDRESS:\/var\/log\/* c:\\temp<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"774\" height=\"344\" src=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles3.jpg\" alt=\"\" class=\"wp-image-543\" srcset=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles3.jpg 774w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles3-300x133.jpg 300w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles3-768x341.jpg 768w\" sizes=\"auto, (max-width: 774px) 100vw, 774px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This will download the contents of the \/var\/log\/ folder to your local c:\\temp folder.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"494\" src=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles4-1024x494.jpg\" alt=\"\" class=\"wp-image-544\" srcset=\"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles4-1024x494.jpg 1024w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles4-300x145.jpg 300w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles4-768x370.jpg 768w, https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles4.jpg 1194w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>A PLC running a Codesys runtime has multiply logifles, all depending on where you look for them. Generally there is 3 places to find logfiles. Codesys IDE Logfiles Doubleclick on your PLC device in the IDE. Enter communication settings and go online. Go to tab Log and hit the small green refresh icon. You now<\/p>\n<p class=\"excert-link-wrapper\"><a href=\"https:\/\/disorder.dk\/wonderware\/2025\/03\/31\/codesys-runtime-plc-logfiles\/\" class=\"excerpt-more-link\" >Continue Reading<span class=\"screen-reader-text\"> &#8220;Codesys Runtime PLC Logfiles&#8221;<\/span><span class=\"meta-nav\"> &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":541,"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":[34,74,32,75],"class_list":["post-540","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codesys","tag-codesys","tag-log","tag-plc","tag-putty"],"jetpack_featured_media_url":"https:\/\/disorder.dk\/wonderware\/wp-content\/uploads\/2025\/03\/codesyslogfiles1.jpg","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/posts\/540","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=540"}],"version-history":[{"count":1,"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/posts\/540\/revisions"}],"predecessor-version":[{"id":545,"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/posts\/540\/revisions\/545"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/media\/541"}],"wp:attachment":[{"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/media?parent=540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/categories?post=540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/disorder.dk\/wonderware\/wp-json\/wp\/v2\/tags?post=540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}