Hi! I'm 99% sure I'm running CoDeSys on a raspberry pi 4b. just be aware that there is a separate license for running it on multiple cores. https://store.codesys.com/en/codesys-control-for-raspberry-pi-mc-sl.html
Do I need to do something more to enable the logging? I've done as you said but I can't see any file named PlcLog.csv in the folder. [CmpLog] Logger.0.Name=PlcLog ;Logger.0.Filter=0xFFFFFFFF Logger.0.Enable=1 Logger.0.MaxEntries=10000 Logger.0.MaxFileSize=50000 Logger.0.MaxFiles=10 ;Logger.0.Backend.0.ClassId=0x0000010B ;sends logger messages to SysOut Logger.0.Backend.1.ClassId=0x00000104 ;writes logger messages in a file ;Logger.0.Backend.2.ClassId=0x00000135 ;sends logger messages as UDP syslog...
My PLC had stopped some time during the last few days. When I went to check in my PLC log it was full of these errors in the attached picture. I'm guessing they had overwritten the actual exception that stopped my PLC. I'm not sure what these log entries are. I'm guessing that they are a bi product of the PLC being stopped but I don't know. Does anyone have any more information about the errors? Thanks in advance!
Problem solved! I had to remove the codesys installation and some files via command line on the pi. Then when I installed it again I got the prompt to set new user and password. Now I can log in!
Any ideas? I can't log into the device at all because of this. I don't know what to do since the device is in a different country so it's not that easy to replace the image on the SD card.
Hi! I can't log into one of my CoDeSys controllers running on Raspberry Pi 3 Model B Plus Rev 1.3 After I install the runtime(4.2.0.0) I try to log into the controller to download the program. I then get the prompt to login as the screenshot shows. It doesn't matter what username and password I write here the next window say "No device is responding to the scan request." I can't get past this point. I've tried to disable device user management via SSH to the target. It doesn't help and the device...
Hi! The issue was resolved with your help! Thank you very much! I tried deleting the folder via the codesys file interface. But that didn't work. Thanks to the FAQ I saw that you should use the sudo rm /var/opt/codesys/.cmact_licenses/** command. After doing that and rebooting the raspberry the license was gone. After that I could restore it from the file. I checked the log file now and it says license found. Thanks again Edwin for your help!
This log did not get all the entries since startup either. I got copied the log entries after startup and that showed what my problem is. It doesn't recognize the license and runs in demo mode. How do I fix this? this is the new log ;**************************************************************** ;<loggername>/tmp/codesyscontrol.log</loggername> ;<logoptions> ; <enable>1</enable> ; <type>normal</type> ; <timestamp>rtc</timestamp> ; <deactivatable>0</deactivatable> ; <dump>always</dump> ; <filter>0x0000000f<filter>...
The raspberry pi model is: Model : Raspberry Pi 4 Model B Rev 1.1 Here is the new log ;**************************************************************** ;<loggername>/tmp/codesyscontrol.log</loggername> ;<logoptions> ; <enable>1</enable> ; <type>normal</type> ; <timestamp>rtc</timestamp> ; <deactivatable>0</deactivatable> ; <dump>always</dump> ; <filter>0x0000000f<filter> ; <maxentries>100000</maxentries> ; <maxfiles>1</maxfiles> ; <maxfilesize>1000000</maxfilesize> ;</logoptions> ;<entries> ;Timestamp,...
Version 4.2.0.0 of the runtime. raspberry pi 3 b+ it runs for about 2 hours I just increased the max entries to 100000. I will send the new log file when it stops the next time. Thanks for the quick response!
Hi! I'm having problems with my runtime shutting down on my raspberry pi. It sounds like an issue with the license but I can't find anything about it in the log. I can't seem to find anything about demo mode. I've tried re-installed the license. I'm running a "CODESYS Control for Raspberry Pi MC SL" license and I'm running the controller in MC mode. I'm not sure what to do. Thanks in advance! Here is the log file ;**************************************************************** ;<loggername>/tmp/codesyscontrol.log</loggername>...
The reference to the instance is not 0 either. This only happens when I download the project. If it doesn't appear then the project runs fine. I should mention that the project contains a tree of applications. this is a "Child application" that is having the issue. No idea if that is related or not, just mentioning it.
Hi I'm sometimes getting a access violation exception when downloading my program. The image shows the log entries. I'm having problems with finding what in my code goes wrong. What tools do I have at my disposal. The call stack shows me the function that is the problem and what instance of the function. If I go online all the values seems ok. Is it the function it self that is getting an access violation. I'm passing the instance of it through as an in out variable to the function that uses it....
Hi! Thanks for the response. My problem also originates from unreliable power with regular outages. The best solution would be a working UPS but we have tried to get the customer to use it but with no success. This is a work around more or less. If I can save the data in regular intervals then the problem would be solved. I will try to save it to a different file name. but to my original question of the return value of the function. what does 2 mean? is it ERR_PARAMETER UDINT 16#2 Invalid parameter...
Can you post your code and I can see if I can help. I think my problem is related to the functions having issues with child applications.
Hi Matthew! If I interpret the code right. The example from the ApplicationManager program saves the persistant to a file when it detects "firstscan". This is not what I want of the program and I think it's not the function you are looking for either. I wan't it to run the restore from file when it detects that persistant vars has been lost. I've made it so my program tries to save to file each 10 sec or so. that way the data should be quite fresh when I want to restore from file. If this is a good...
Hello! sorry about the late answer. I have not gotten it to work yet. however it sounds like it is working for you. if the function returns 0 then it should mean that it works. To get the saved values back you have to use the "AppRestoreRetainsFromFile" function as far as I know. Try using that.
I'm having problems with using the "AppStoreRetainsInFile" function. specificity using the function in a program with multiple applications. when I use it on the main application it works and returns 0 in the result tag. but when I use it on one of the child application it doesn't seem to work and return 2. What does the return code mean? does it correspond to the table in the "CmpErrors2 interfaces" library? then it means "Invalid parameter for this operation" but I can't figure out what I am doing...