Post by martinlithlith on CODESYS Control for Raspberry Pi SL on Raspberry Pi 4b
CODESYS Forge
talk
(Post)
Feedback: I have a raspberry pi 4 (not + as in original question). It works fine to run the CODESYS Control for Raspberry Pi SL license on a pi 4.
Last updated: 2023-10-17
Post by janber0206 on RPI is license server down
CODESYS Forge
talk
(Post)
I had the same problem. Problem solved: all licences purchased before October 2022 must be updated by Codesys. To do so, simply contact the support in the Codesys Store.
Last updated: 2023-10-30
Post by gurke258 on Codesys Safety EtherCAT with Beckhoff
CODESYS Forge
talk
(Post)
Okay, the solution was so simple... In my case, you first have to add the EL1918 and then the EL2904... then the connection is made automatically. I probably had something else before and then added the EL1918... then it doesn't catch the connection :/
Last updated: 2023-11-08
Post by davidredondo on Send file from codesys to...... ftp, cloud, etc
CODESYS Forge
talk
(Post)
Hi all, I am also looking for a solution to transfer a csv file from ifm HMI-PLC to some cloud and finally to node-red, for example. Do any of you advise me how to do it? Thanks
Last updated: 2023-11-08
Post by riccardo on VisuElems.CurrentUserGroupId is not stable
CODESYS Forge
talk
(Post)
GoodMorning everyone. I have a system that, in case of alarm, have to block. When the operator logs in must have to acknoledge the alarm and should operate in the system freely. To perform this I detect the logged User by (VisuElems.CurrentUserGroupID <> 0) with a similar code to the the following: PROGRAM AlarmMngt VAR alarm : BOOL:= FALSE; Ack : BOOL:= TRUE; PushBottonOpening : BOOL:= FALSE; Valve : BOOL := FALSE; Flag: BOOL := FALSE; END_VAR IF alarm AND Ack AND (NOT Flag) THEN valve := FALSE; PushBottonOpening := FALSE; Ack := FALSE flag := TRUE; ELSIF (NOT alarm) AND Ack THEN flag := FALSE; END_IF (* if the system is in alarm but there is a logged operator that acknowledge the alarm the system allows the valve opening.*) IF (VisuElems.CurrentUserGroupID <> 0) AND Ack AND Alarm AND PushBottonOpening THEN Valve := TRUE; ELSIF (VisuElems.CurrentUserGroupID = 0) AND Alarm THEN valve := FALSE; END_IF The problem I have is in the last 5 lines of the code: Even if there is a logged in user, the GroupID variable is subjected to a refresh that cyclically set for an instant it to 0 and this close the valve making difficult to the user to work Now I solved it creating a time hysteresys cycle but it is not a good solution. Someone is able to explane me why the GroupID variable is sobjected to this refresh and how to stabilize to avoiding it? Thank you in advance, Riccardo
Last updated: 2023-11-10
Post by awatson on User Management (Configuration Dialog)
CODESYS Forge
talk
(Post)
Hello I have just posted on a topic - about the reference for the element you have taken a screen shot for - "REFERENCE TO VisuUserMgmtProvider" https://forge.codesys.com/forge/talk/Visualization/thread/0591457fe4/ - do you know anything about it?
Last updated: 2023-11-17
Post by awatson on How to change keyboard layout on the virtual keyboard?
CODESYS Forge
talk
(Post)
I got it all working nicely based on the demo templates - edit my own numpad and screen keyboards - plus go the keyboard working on the login dialog (didn't work before!)
Last updated: 2023-11-17
Post by srigan1986 on SP8 - New scriptengine feature - open:VersionUpdateFlags
CODESYS Forge
talk
(Post)
Is this issue of idling before loading libraries resolved in Codesys 3.5.18.40 ? I am also curious about this version as there seem to be huge difference in the compiler versions which don't recognize the versions with older storage format.
Last updated: 2023-11-24
Post by simotion on Axis variable indicating modulo of finite setting
CODESYS Forge
talk
(Post)
What variable of the axis indicates it is a modulo of finite axis? I want to check that in the code, to adopt my motion code between the two types.
Last updated: 2023-11-24
Post by riccardo on How to allow a user to handle certificates without access to sourcecode?
CODESYS Forge
talk
(Post)
It would be usefull to me too, I would need to manage HTTPS and OPC UA certificate without perform the access to the whole sorce code project
Last updated: 2023-11-27
Post by nathant on Easiest RevPi PLC to configure HMI visualization with?
CODESYS Forge
talk
(Post)
I'm worried that the Core SE (which I was originally going to go with) will not be straight foward in terms of setting up the HMI visualization. This is for an offline application, if that matters.
Last updated: 2023-11-28
Post by nathant on Easiest RevPi PLC to configure HMI visualization with?
CODESYS Forge
talk
(Post)
I'm worried that the Core SE (which I was originally going to go with) will not be straightfoward in terms of setting up the HMI visualization. This is for an offline application, if that matters.
Last updated: 2023-11-28
Post by shabroz-gill on Unable to load boot application on ARMv7 device restart
CODESYS Forge
talk
(Post)
The boot application already exists on the device, i can see the MPC.app file in the proper place. It is not able to load it on startup though
Last updated: 2023-12-01
Post by andrax on Raspberry 4 I²C with Arduino UNO R3
CODESYS Forge
talk
(Post)
Moin, Die Kommunikation sollte kein Problem sein. Die Struktur hast du ja schon als python vorliegen und musst sie nur nachbauen. Entweder als Programm oder als gerätetreiber. Beispiele wie die i2c Kommunikation abläuft, findest du hier jede Menge.
Last updated: 2023-12-04
Post by nathant on Saving variable values on power cycle (RevPi Connect)
CODESYS Forge
talk
(Post)
Hello, this seems to be a known issue, but persistent/retain variables don't seem to work properly on RevPi devices. Is there a workaround to this? All I need is for a few configuration variables to be remembered through power cycle.
Last updated: 2023-12-03
Post by speme on Download missing Libraries fails with 3.5patch 14 1+, sm3_basic
CODESYS Forge
talk
(Post)
It like that older version codesys can't download libraries in codesys. but I have a device using 3.5.14.0, the newer verion codesys can download libraries, but not works well in the device.
Last updated: 2023-12-06
Post by voffi on CODESYS Custom Build Step
CODESYS Forge
talk
(Post)
Good morning! Is there a way to run a python script or something else automatically after CODESYS (3.5) did its build or before download? I am searching for something like the Custom Build steps in Visual Studio. Thank you! Voffi
Last updated: 2023-12-07
Post by open on How to create a stopwatch?
CODESYS Forge
talk
(Post)
Hi @ph0010421, I tried the program the TimeTaken is calculated when stop is triggered. I want the TimeTaken to be continuously calculated and counting when a BOOL variable is true. I tried to program this way: Declaration: PROGRAM PLC_PRG VAR bStartStop: BOOL := FALSE; // Start/Stop button bReset: BOOL := FALSE; // Reset button bRunning: BOOL := FALSE; // Flag indicating whether the stopwatch is running tStartTime: TIME; // Variable to store the start time tElapsedTime: TIME; // Variable to store the elapsed time END_VAR Implementation: // Main program logic IF bReset THEN // Reset button pressed, reset the stopwatch bRunning := FALSE; tElapsedTime := T#0s; ELSIF bStartStop THEN // Start/Stop button pressed, toggle the running state IF bRunning THEN // Stop the stopwatch bRunning := FALSE; ELSE // Start the stopwatch bRunning := TRUE; tStartTime := tElapsedTime; END_IF; END_IF // Update the elapsed time when the stopwatch is running IF bRunning THEN tElapsedTime := tElapsedTime + T#1s; // Adjust the time increment as needed END_IF However counting of the seconds is not accurate. I tried changing the main task cycle time interval to 1000ms. The counting of seconds become slower. (see attached) Please help
Last updated: 2023-12-08
Post by damian177 on Persistence variables PFC200
CODESYS Forge
talk
(Post)
Hi, I using persistence variables like below: VAR_GLOBAL PERSISTENT RETAIN id_worker1: ARRAY [0..3] OF INT := [231,234,176,222]; id_worker2: ARRAY [0..3] OF INT := [211,129,125,221]; Initial values can cause some problems?
Last updated: 2023-12-08
Post by arrotek on Visualisation Toolbox not displaying Alarm Manager Objects
CODESYS Forge
talk
(Post)
After upgrading to 3.5 SP19 Patch 4 I can no longer see the Alarm Manager Tab in the Visualisation Toolbox. Anyone had this error? Can anyone assist?
Last updated: 2023-12-09
Post by snhatton on Visu - changing auto-logout time
CODESYS Forge
talk
(Post)
You could try using the VUM_UserGroup struct from the VisuUserManagement library. I haven't tried this, but there is a variable for tAutoLogout to set the logout time.
Last updated: 2023-12-11
Post by ph0010421 on Device Reader option from 'Tools' menu
CODESYS Forge
talk
(Post)
Hello I've just seen this feature: very nice. Using the 'DeviceReader' project previously, I could see the SL possibility too (Dongle or Softkey). Is it possible to get this status too please?
Last updated: 2023-12-12
Post by ton on How to create a stopwatch?
CODESYS Forge
talk
(Post)
Hi, i guess you want to make a hour counter. You need to store the measured value. Try to use a retain variable, but need a graceful shutdown, or save it your self. see https://forge.codesys.com/forge/talk/Runtime/thread/278e325579/ Succes.
Last updated: 2023-12-12
Post by eschwellinger on Possibility to deactivate CmpBlkDrvUdp
CODESYS Forge
talk
(Post)
you could give this a try - just an idea, I did not try it because have no device in my hands: [CmpBlkDrvUdp] MaxInterfaces=1 itf.0.ipadress=192.168.10.1
Last updated: 2023-12-12
Post by open on How to create a stopwatch?
CODESYS Forge
talk
(Post)
Thanks everyone for your input, I am using persistent variables to retain the timer value after machine shutdown, and main task to be as low as possible for the seconds TON to be accurate.
Last updated: 2023-12-14
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND
or OR
.