Good morning, I'm using a raspberry pi3 as plc with the runtime 4.9.0.0. My program has many of retrain variables but when an update is performed the retrain variables comes back to default values. Is the a way to backups the retrain variables n a csv file? Is still the way to restore them from the csv? Thank you for helping Luca
Hello to All, On the raspberry 3B+ model is installed a 4.0.1.0 codesys runtime version. I purchased the licence and it has been installed succesfully. The runtime stops randomly (maybe 1 month at time) and I am forced to restart the raspberry. So I would like see some logfiles but in the online mode the logfile starts from last reboot. - Where can I find the hitorical log file from the source downloaded? - Is there a way to cougth the exception? Thanks for help me Luca
Dear All, I'm using a raspberry pi 3b+ with intalled the 4.0.1.0 package. In My PC the codesys version installed is the 3.5 SP 16. I need to trace the real power caming from electrical meter and the "TraceExample" from codesys store has been downloaded for helping me. I would like to copy the example in my project but I can not find the Trace element in the Tool Box. In attached you can find the menΓΉ differences from my project to the example project. How can I get the object missing? Thank you for...
Hi, I'm realy sorry for my late feedback. Below, You can find the resut command abouut "plcload" command plcload plcload PLC load average: 7% CoreID: 0 --------------------------- PLC Core load: 7%
Hi to all, I'm using a raspberry pi 3 b+ with runtime version 4.0.1.0. Program has four different task: one with higt performace running at 1 milli second; one with the main program running at 10 milli seconds, once able to manage the TCP/IP connetions running at 50 milli seconds; and the otherone with visualization running at 10 milli seconds with the update requency fixed at 40 milliseconds. When I try to connect with a browser the visualization goes very slow. How can I fix it? Thanks Luca
Dear, I don't think that the problem is the same to the previous topic. So, is there a possibility to export these variables to a usb memory? Thank you and happy new year Luca
Not with me... What do You mean with "shutdown of the network adapter"?
The codesys runtime. The variables declared as PERSISTENT RETAIN loose their values.
Hi to All, The hardware of my project is consisting with a raspberry pi3 b+ and a pico ups 3.0. As suggested in many thread the grateful shutdown is managed by the ups. A simple codesys application manage some automations in my home. When the power is down the ups runs the "sudo shutdown" and all persistent variables keep their values. The system freezes when voltage fluctuations occur. Is there any solutions to avoid this trouble? There are other solution able to cooperate with ups to avoid the...
What is it? I have the following items: Tiket number with original licence The licence file whit the "WibuCmRaU" extension I can not update, the licence manager don't find the pi that is running in my private network. Can you help me? Thanks
Hello, The licence has been purchaged and installed sice 2018 but the sd card is now burned. The new sd card has been put in Raspbery pi 3 and the last program has been downloaded by codesys V3.5 Service pack 16 with raspberrian os updated. The old licence has been transfer following the https://faq.codesys.com/pages/viewpage.action?pageId=1310825 guide but program is still running with 120 minutes limit. Is possible to restore old licence? Thanks Luca
Hi to all, I've a little problem with the operator sizeof that is not working with in_out vars. In my case the code is very simple like below: FUNCTION_BLOCK fb1 VAR_IN_OUT my_array :ARRAY[*] OF STRING; END_VAR VAR_OUTPUT dimension :UINT; END_VAR VAR END_VAR dimension := sizeof(my_array)/sizeof(my_array[0]); PROGRAM PLC_PRG VAR array1 :ARRAY[0..100] OF STRING; pi :fb1; dim1, dim2 :UINT; END_VAR pi(my_array := array1, dimension=>dim1); dim2 := SIZEOF(array1)/SIZEOF(array1[0]); In this case the result...
Hi to all, I've a little problem with the operator sizeof that is not working with in_out vars. In my case the code is very simple like below: FUNCTION_BLOCK fb1 VAR_IN_OUT my_array :ARRAY[*] OF STRING; END_VAR VAR_OUTPUT dimension :UINT; END_VAR VAR END_VAR dimension := sizeof(my_array)/sizeof(my_array[0]); PROGRAM PLC_PRG VAR array1 :ARRAY[0..100] OF STRING; pi :fb1; dim1, dim2 :UINT; END_VAR pi(my_array := pi, dimension=>dim1); dim2 := SIZEOF(array1)/SIZEOF(array1[0]); In this case the result...
Hi to All, I have a textList linked in a combo box as follow: "SelectionA" "SelectionB" "SelectionC" When the code is running and one of last three option is selected, the variable change its value from 0 to 2 as well. For example: if the "SelectionC" is active the variable value is 2 but it is not enough. I would like have back the selection name and not the position. In this case "SelectionC". Is it possible? Thank Luca
Hi, I'm thinking that putbit function is what I need. Another question: If I want to use physical address with AT instruction, how can I avoid overlap address? Many PLC have a tool able to show which physical addresses are free o busy. Does codesys too? Thanks Luca
Hi to all, I'm searching a way to do something like that: PROGRAM PLC_PRG VAR wOutputs :WORD iMyBit :UINT; END_VAR iMyBit := 2; wOutputs.iMyBit := TRUE; If I try to build this code, the compiler give me errors. Any suggestion to do it? Thanks to all Luca
Hi to all, In the visualization management, there is a section able to set some users and groups. My project needs to implement: 1. user authentication 2. user change password 3. user management 4. add new user from hmi The points 1, 2 and 3 have been implemented following the example called "Simple Webvisu Login". Its has been downloaded from codesys store. Is it possible to add new user from hami? If yes is there an example? Thank You Luca
Dear, from your last linked, I follow the step called "Restore the license via the server" coping the license from the my private area from codesys store without success. In attached You can find the xml log file. Hoping to have your feedback, Thank you
Good moring at all, The SD card of my pi3 is burned, and I'm forced to prepare a new sd card with the same project inside. At the time from the codesys store, I bought the license, but its backup was never done. Is there a way to recover it? Thank You
Hi to all, In my project I need to use a memory dynamic allocation, able to use an oriented object program. I have enabled the right option doing the following steps: Right click on the application properties Dynamic memory settings Enable "Use dynamic memory allocation" and set the maximum size of memory after that I am able to use the __NEW operator in this way: VAR n_token :UDINT; init :BOOL :=FALSE; END_VAR IF(NOT init) THEN token := __NEW(STRING, 4); init := TRUE; END_IF In this way the code...