Post by sturmghost on Find visualization elements that require a lot of computing time
CODESYS Forge
talk
(Post)
I found out that the Codesys simulation mode is not good to measure performance. As soon as I upload the code onto the hardware PLC I can see that my visu-task needs around 60 ms to complete. I'm wondering if there is a possibility to find out which visualization/visualization element takes a lot of computing time? Then I would look for ways to decrease the long computing time.
Last updated: 2024-01-22
Post by swe-hob on call of a method of a function block in another program
CODESYS Forge
talk
(Post)
Hi, Let's assume following: PRG_1 fb_1 : fbExample1; fb_1.method_1 do something... PRG_2 fb_2 : fbExample2; fb_2.method_2 if xTest then PRG_1.fb_1.method_1(); end_if; Is there a reason why runtime hangs when I call the method_1 in PRG_1 from a method in PRG_2? Both programs run in the same task. No chance that any other program calls the method. What I practically do there is that in the program PRG_2 I add a structed object into a buffer. In PRG_1 I just process the items in the buffer.
Last updated: 2024-06-03
Post by swe-hob on call of a method of a function block in another program
CODESYS Forge
talk
(Post)
Hi, Let's assume following: PRG_1 fb_1 : fbExample1; fb_1.method_1 do something... PRG_2 fb_2 : fbExample2; fb_2.method_2 if xTest then PRG_1.fb_1.method_1(); end_if; Is there a reason why runtime hangs when I call the method_1 in PRG_1 from a method in PRG_2? Both programs run in the same task. No chance that any other program calls the method. What I practically do there is that in the program PRG_2 I add a structed object into a buffer. In PRG_1 I just process the items in the buffer.
Last updated: 2024-06-03
Post by opineiro on Stack overflow with really simple function
CODESYS Forge
talk
(Post)
Hi, I have an issue with a function which sends a message through API Rest. I'm using a function from httpCLient library. I have tested this function inside a program and it works fine. But when I want to use it inside a function (so I can call it simultaneously from 2 different points on the main program) it gives a stack overflow error. In detail it says: "C0297 Stack Overflow on Main Task. Stack sizes... Call hierarchy:" I have simplified as much as I can the function, but I'm hitting a wall with this. Anybody has an idea of what's wrong? Thanks!
Last updated: 2024-09-16
Post by vformanek on irq-set piority is not working in plc-shell
CODESYS Forge
talk
(Post)
Hello, I am currently having issues on CODESYS Control for linux SL with DTH expiring. I have followed several tutorials of creating a proper RT linux. Then I further configured the linux based on this tutorial: https://content.helpme-codesys.com/en/CODESYS%20Control/_rtsl_performance_optimization.html Currently I am getting DHT expires in the communication and I am trying to increase of the priority of the network task which manages the PROFINET network adapter. I am following this tutorial: https://content.helpme-codesys.com/en/CODESYS%20PROFINET/_pnio_trouble_connection_failure.html But the irq-set is not changing the priority. See the image bellow....
Last updated: 2024-01-05
Post by timvh on CODESYS V3.5 SP15 Patch 2 won't open
CODESYS Forge
talk
(Post)
This is almost always related to previously working with an additonal monitor. If you have placed CODESYS on that monitor, later start your laptop again and open CODESYS without that monitor, then Windows still places it in the previous position, but then it is not visible. So the solution by cehermanstad can be used to move it to the main screen to make it visible again. PS, another way to move it, is by pressing SHIFT and then right-click on the icon in the task bar, then select move. You can then move it with the arrow keys or your mouse.
Last updated: 2024-02-27
Hard shutdown: no code on device after power on
CODESYS Forge
talk
(Thread)
Hard shutdown: no code on device after power on
Last updated: 2024-10-03
EtherCAT Master on RaspberryPi with EtherCAT Slave on Beckhoff
CODESYS Forge
talk
(Thread)
EtherCAT Master on RaspberryPi with EtherCAT Slave on Beckhoff
Last updated: 2025-07-16
Rpi: backup persistant on files and select files on webvisu
CODESYS Forge
talk
(Thread)
Rpi: backup persistant on files and select files on webvisu
Last updated: 2020-01-20
Managing files on s:\ on Wago 880 CPU
CODESYS Forge
talk
(Thread)
Managing files on s:\ on Wago 880 CPU
Last updated: 2015-08-27
Limitation on OPC UA Variable 100+ variables on raspberry pi
CODESYS Forge
talk
(Thread)
Limitation on OPC UA Variable 100+ variables on raspberry pi
Last updated: 2023-02-05
Post by zoronoa on J1939.ReceiveWatchdog & J1939.ReceiveParameterGroup
CODESYS Forge
talk
(Post)
Hi, I'm trying to monitor a specific PGN which I have it sending a pulse every 500mS Problem: Using the Watchdog for the ECU does not really help me as I have multiple instances with separate PGNs, if a PGN goes ghost, the ECU watchdog won't be flagged as the others will be running. I found the J1939.ReceiveWatchdog & J1939.ReceiveParameterGroup function blocks and they seem like a good solution for my problem, I just can't get them to work from my understanding you just build the J1939.ReceiveParameterGroup once and then connect it's output to the J1939.ReceiveWatchdog, here's my CODE for the setup HEARTBEAT_TIMER(IN:= TRUE, PT:= T#1000MS); //turn-on delay because of initialization race IF HEARTBEAT_TIMER.Q= TRUE THEN Glob_Var.DisplayReceive.xExecute:= TRUE; Glob_Var.DisplayReceive.itfECU:= Valve_X; Glob_Var.DisplayReceive.dwPGN:= 65511; Glob_Var.DisplayWatchdog.xEnable:= TRUE; Glob_Var.DisplayWatchdog.itfParameterGroup:= Glob_Var.DisplayReceive.itfParameterGroup; Glob_Var.DisplayWatchdog.tTimeout:= T#1500MS; END_IF Notes: Glob_Var.DisplayReceive is of type J1939.ReceiveParameterGroup Glob_Var.DisplayWatchdog is of type J1939.ReceiveWatchdog The above code is done once and not cyclically I'm monitoring Glob_Var.DisplayWatchdog.xError cyclically
Last updated: 2024-03-13
web visu on IFM
CODESYS Forge
talk
(Thread)
web visu on IFM
Last updated: 2023-08-18
WebVisu on mobile devices
CODESYS Forge
talk
(Thread)
WebVisu on mobile devices
Last updated: 2023-09-13
Operation on Alarm History
CODESYS Forge
talk
(Thread)
Operation on Alarm History
Last updated: 2018-05-09
ProfiNET on WAGO PFC200
CODESYS Forge
talk
(Thread)
ProfiNET on WAGO PFC200
Last updated: 2017-01-24
LTIME variable on visualisation
CODESYS Forge
talk
(Thread)
LTIME variable on visualisation
Last updated: 2014-02-20
Semaphores on Linux target
CODESYS Forge
talk
(Thread)
Semaphores on Linux target
Last updated: 2012-09-18
Codesys 3.5.17.20 on Wine.
CODESYS Forge
talk
(Thread)
Codesys 3.5.17.20 on Wine.
Last updated: 2022-01-18
Jitter problems on imx8
CODESYS Forge
talk
(Thread)
Jitter problems on imx8
Last updated: 2023-10-19
creationg on dynamic widgets
CODESYS Forge
talk
(Thread)
creationg on dynamic widgets
Last updated: 2023-10-20
Save Recipe on Paspberry
CODESYS Forge
talk
(Thread)
Save Recipe on Paspberry
Last updated: 2024-08-06
TargetVisu on Raspberry?
CODESYS Forge
talk
(Thread)
TargetVisu on Raspberry?
Last updated: 2024-08-28
Retain Variables on fRAM
CODESYS Forge
talk
(Thread)
Retain Variables on fRAM
Last updated: 2024-09-03
SysProcessCreate2 on Linux runtime
CODESYS Forge
talk
(Thread)
SysProcessCreate2 on Linux runtime
Last updated: 2025-03-17
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.