Unexpected realtime delay error message
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23162
- Thank you received: 4860
14 Jul 2022 23:11 #247331
by andypugh
Did the machine stop executing G-code? Lock up? reboot? Turn into a frog?
Replied by andypugh on topic Unexpected realtime delay error message
Typically this is just a warning, and the machine just carries on.This is a makerspace with many users and has been running tens of hours since upgrading, and this is something reported, I'm not aware of any unusual circumstances. It threw this error once, and they had to restart their job:
"Unexpected realtime delay on task 0 with period 1000000
This message will only display once per session. Run the latency test and resolve before continuing. "
Did the machine stop executing G-code? Lock up? reboot? Turn into a frog?
The following user(s) said Thank You: EraDim
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19460
- Thank you received: 6529
15 Jul 2022 01:19 #247332
by tommylight
Replied by tommylight on topic Unexpected realtime delay error message
If that number is correct, it is the servo period missing the timings, so i would first see if the RT kernel is in use:
uname -a
uname -a
Please Log in or Create an account to join the conversation.
- dannym
- Offline
- Elite Member
Less
More
- Posts: 212
- Thank you received: 1
04 Aug 2022 23:38 - 04 Aug 2022 23:40 #249088
by dannym
Replied by dannym on topic Unexpected realtime delay error message
I got reports it threw Following Errors at some point- not right away.
Is it possible the NUC, being fanless, is silently overheating and the BIOS throttles it back and it can't keep up with the delays? It was in an air-conditioned shop, probably 78F.
Is there any way to check what the status is, like processor temp?
Is it possible the NUC, being fanless, is silently overheating and the BIOS throttles it back and it can't keep up with the delays? It was in an air-conditioned shop, probably 78F.
Is there any way to check what the status is, like processor temp?
Last edit: 04 Aug 2022 23:40 by dannym.
Please Log in or Create an account to join the conversation.
- dannym
- Offline
- Elite Member
Less
More
- Posts: 212
- Thank you received: 1
05 Aug 2022 07:50 - 05 Aug 2022 07:56 #249099
by dannym
Replied by dannym on topic Unexpected realtime delay error message
OK, it did reoccur, and gave this while interpreting g-code. This stopped it and put in the unpowered state, but they were able to Toggle Machine Power and get it going again. At least that's the account I heard. It looks like they were surfacing a board, I saw them running a similar thing when I came by. I believe they said it happened when making an aggressive turn, but these are just regular right angle turns from like 200 ipm.
When I did come by, they had been using the machine for awhile, and I felt the NUC box- it didn't seem especially warm. Different job, but I don't think it's running hot and declocking to protect itself.
When I did come by, they had been using the machine for awhile, and I felt the NUC box- it didn't seem especially warm. Different job, but I don't think it's running hot and declocking to protect itself.
Attachments:
Last edit: 05 Aug 2022 07:56 by dannym.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23162
- Thank you received: 4860
05 Aug 2022 21:36 #249162
by andypugh
Replied by andypugh on topic Unexpected realtime delay error message
Realtime delay won't stop the machine, but a following error (also seem on screen, before the delay) will.
If you get an f-error and then the realtime delay it feels like something might be temporarily locking the machine? I assume that this is a stepper machine? Possibly the STEPGEN_MAXACCEL is too low (it needs to be 25% higher than the axis limit)
If you get an f-error and then the realtime delay it feels like something might be temporarily locking the machine? I assume that this is a stepper machine? Possibly the STEPGEN_MAXACCEL is too low (it needs to be 25% higher than the axis limit)
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17940
- Thank you received: 4811
06 Aug 2022 00:11 #249167
by PCW
Replied by PCW on topic Unexpected realtime delay error message
Can you run this command (in a terminal):
halcmd show param *.tmax
After LinuxCNC has been running for a long time
and post the results here (along with the CPU clock speed)
halcmd show param *.tmax
After LinuxCNC has been running for a long time
and post the results here (along with the CPU clock speed)
Please Log in or Create an account to join the conversation.
- dannym
- Offline
- Elite Member
Less
More
- Posts: 212
- Thank you received: 1
07 Aug 2022 16:23 #249284
by dannym
Replied by dannym on topic Unexpected realtime delay error message
Hmm yes I had max accel at 50 and stepgen max accel at 60, which isn't 25% margin.
However, when I bumped up the axis to stepgen max accel to 70, then it immediately threw JOINT 0 FOLLOWING ERROR when trying to home. That's why I had it set low.
What's causing the following error from stepgen being set too high? With the prior install I had an optional parameter set that ran lower speeds but much, much higher max accel and stepgen max and never saw following errors.
However, when I bumped up the axis to stepgen max accel to 70, then it immediately threw JOINT 0 FOLLOWING ERROR when trying to home. That's why I had it set low.
What's causing the following error from stepgen being set too high? With the prior install I had an optional parameter set that ran lower speeds but much, much higher max accel and stepgen max and never saw following errors.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17940
- Thank you received: 4811
07 Aug 2022 16:39 #249285
by PCW
Replied by PCW on topic Unexpected realtime delay error message
You might try setting this higher:
setp hm2_[HOSTMOT2](BOARD).0.dpll.01.timer-us -50
say to -100 or -200 usec, because your system may have relatively
poor latencyso the DPLL baseline wander is more than -50 usec.
The following error limit is set low enough (0.0002 inches) that
a small timing error (~133 usec at 15 IPS) will trigger a following error
Too low of a DPLL sample time setting can trigger cause this timing error
setp hm2_[HOSTMOT2](BOARD).0.dpll.01.timer-us -50
say to -100 or -200 usec, because your system may have relatively
poor latencyso the DPLL baseline wander is more than -50 usec.
The following error limit is set low enough (0.0002 inches) that
a small timing error (~133 usec at 15 IPS) will trigger a following error
Too low of a DPLL sample time setting can trigger cause this timing error
Please Log in or Create an account to join the conversation.
- dannym
- Offline
- Elite Member
Less
More
- Posts: 212
- Thank you received: 1
07 Aug 2022 17:11 - 07 Aug 2022 17:12 #249287
by dannym
Replied by dannym on topic Unexpected realtime delay error message
Anything to see here? It had been running awhile, but just slow linear passes to cut cabinets
Last edit: 07 Aug 2022 17:12 by dannym.
Please Log in or Create an account to join the conversation.
- dannym
- Offline
- Elite Member
Less
More
- Posts: 212
- Thank you received: 1
07 Aug 2022 17:14 #249288
by dannym
Replied by dannym on topic Unexpected realtime delay error message
OK what's a better following error limit?
Please Log in or Create an account to join the conversation.
Time to create page: 0.109 seconds