data exchange at the end of each CoDeSys cycle
CODESYS Forge
talk
(Thread)
data exchange at the end of each CoDeSys cycle
Last updated: 2010-07-12
Read PLC cycle time and change freewheeling sleep time
CODESYS Forge
talk
(Thread)
Read PLC cycle time and change freewheeling sleep time
Last updated: 2018-10-11
how to determine the cycle time of a POU?
CODESYS Forge
talk
(Thread)
how to determine the cycle time of a POU?
Last updated: 2010-03-01
Turck HMI needs to reload program on every power cycle
CODESYS Forge
talk
(Thread)
Turck HMI needs to reload program on every power cycle
Last updated: 2022-09-22
High Cycle Times for SoftMotion_PlanningTask when using AxisGroup
CODESYS Forge
talk
(Thread)
High Cycle Times for SoftMotion_PlanningTask when using AxisGroup
Last updated: 2024-03-22
EtherCAT drive going into fault mode require power cycle everytime
CODESYS Forge
talk
(Thread)
EtherCAT drive going into fault mode require power cycle everytime
Last updated: 2024-09-11
Post by acc00 on Main Task cycle too long leading to PLC Fail
CODESYS Forge
talk
(Post)
I have 2 Wago PFC200 PLC, running with Runtime SP19 Patch 5, with the Redundant application. The PLC communicates as Modbus Master with at this moment 15 Modbus Slaves -later there will be 28 in total- (Drives, Power management units,...). These devices are connected in 2 rings (1 ring of Drives, 1 ring of Power Management units), with 2 Managed Moxa Switches being part of the ring. Each PLC is connected to one of these switches. The issue I'm encountering is that the Cycle time of the Active PLC goes very high when I'm closing the Drive ring (simulating an issue on one Cabinet supply, resulting in that one Drive shut down, which can happen on field quite often). As a result of this long cycle, the PLC fails and goes to Exception, and the Passive PLC does not take control of the system. A normal cycle is around 30ms for the Main task, and a few ms for the Ethercat task. When I monitor with Profiler, I see that in this Maximum Cycle, the main Task is only taking 13ms, so I'm not sure where the PLC is hanging for so long. Is the remaining cycle time the Redundant management/sync or something else? Thank you in advance.
Last updated: 2024-03-08
Post by davidbo on RPI can system operation like rm in a shell have an impact on a Task cycle time
CODESYS Forge
talk
(Post)
CODESYS Control for Raspberry Pi MC SL v4.4.0.0 CANopen_Manager 4.2.0.0 I did not call rm directly from my TASK-i2c, it was trough the attached python script. It is not always a problem happens, but sometimes a rm takes a long time. I reduced the amount of calls to logi2c.py but I don't understand why TASK-i2c sometimes can cause problems for TASK-CAN
Last updated: 2024-09-27
Post by davidbo on RPI can system operation like rm in a shell have an impact on a Task cycle time
CODESYS Forge
talk
(Post)
CODESYS Control for Raspberry Pi MC SL v4.4.0.0 CANopen_Manager 4.2.0.0 I did not call rm directly from my TASK-i2c, it was trough the attached python script. It is not always a problem happens, but sometimes a rm takes a long time. I reduced the amount of calls to logi2c.py but I don't understand why TASK-i2c sometimes can cause problems for TASK-CAN
Last updated: 2024-09-27
Post by manuknecht on High Cycle Times for SoftMotion_PlanningTask when using AxisGroup
CODESYS Forge
talk
(Post)
Hi, we did install the real-time kernel patch on the RPI and also performed the additional optimizations including isolating the cores. Changing the configuration of the planning task e.g. running it on a separate core, changing the cycle times and mode from cyclic to freewheeling did not show any improvements.
Last updated: 2024-03-14
Post by alex-at-xana on EThercat Dynamic configuration
CODESYS Forge
talk
(Post)
Ah - forgot another question as it may be related to the PLL problem: I am executing a 4ms cycle. I do not call (from what I know) the Ethercat_MAster periodically in my program. The bus cycle task is set to the Ethercat task. I would assume that the master should send 250 frames per second. Yet, the status of the master says it transmits 500 frames per second which would indicate that the master is called twice. Any ideas there?
Last updated: 2024-09-10
Post by tk096 on High Cycle Times for SoftMotion_PlanningTask when using AxisGroup
CODESYS Forge
talk
(Post)
Hi, under this circumstances the performance of a Raspberry Pi 4 should be sufficient to run a Softmotion robotics application. A closer look at the project would be required. Maybe you could contact the codesys support? Usually it is recommended to run the planning task cyclically every 2ms with task priority of 0 on a dedicated core. In the task configuration you can have a look at the average and maximum execution time of the planning task. You could use the function block SMC_TuneCPKernel (https://content.helpme-codesys.com/en/libs/SM3_Robotics/Current/SM3_Robotics/POUs/AdministrativeConfiguration/Computation/SMC_TuneCPKernel.html) to define suitable values for the parameters 'fSyncBufferDuration' and 'fPlanningInterval'. However, as previously mentioned, the performance of a Raspberry Pi 4 with realtime patch should be sufficient. The 'fPlanningInterval' parameter specifies the maximum planning step width in seconds. The cycle time of the planning task should not permanently exceed this value. A higher value reduces the computational effort, but can lead to a violation or no full utilization of the set limit values for velocity, acceleration and jerk. From a starting value of 0.016 seconds, the value should be increased gradually until the performance is acceptable. The parameter 'fSyncBufferDuration' specifies the size (in seconds) of the buffer between the planning and fieldbus task. The cycle time of the planning task must not exceed this value at peak times (this will lead to the error SMC_CP_QUEUE_UNDERRUN). A higher value can compensate for peaks in the cycle time of the planning task. At the same time, however, this also increases the latency for executing interrupts and aborting movements.
Last updated: 2024-03-22
Get Variables from GVL
CODESYS Forge
talk
(Thread)
Get Variables from GVL
Last updated: 2017-02-08
HTTP Get
CODESYS Forge
talk
(Thread)
HTTP Get
Last updated: 2017-06-08
Webvisu get mac address
CODESYS Forge
talk
(Thread)
Webvisu get mac address
Last updated: 2019-06-27
Get string from enum
CODESYS Forge
talk
(Thread)
Get string from enum
Last updated: 2018-09-21
Get Package GUID? How
CODESYS Forge
talk
(Thread)
Get Package GUID? How
Last updated: 2019-03-05
Get/Set project information
CODESYS Forge
talk
(Thread)
Get/Set project information
Last updated: 2012-04-23
Get Current Visualization
CODESYS Forge
talk
(Thread)
Get Current Visualization
Last updated: 2022-11-16
Get rid of SoftMotion?
CODESYS Forge
talk
(Thread)
Get rid of SoftMotion?
Last updated: 2018-09-14
sysfile get size
CODESYS Forge
talk
(Thread)
sysfile get size
Last updated: 2022-09-15
Get vendor name
CODESYS Forge
talk
(Thread)
Get vendor name
Last updated: 2020-05-10
Get function block size
CODESYS Forge
talk
(Thread)
Get function block size
Last updated: 2017-12-15
How to get IScriptDeviceObject
CODESYS Forge
talk
(Thread)
How to get IScriptDeviceObject
Last updated: 2016-11-02
get actual time
CODESYS Forge
talk
(Thread)
get actual time
Last updated: 2011-12-29
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
.