- Posts: 169
- Thank you received: 103
LinuxCNC python
- Donb9261
- Offline
- Elite Member
-
Less
More
6 months 4 weeks ago #345158
by Donb9261
Replied by Donb9261 on topic LinuxCNC python
Tommy,
The replies demo what is actually happening in hopes I may get some guidance to fix it. My question is above them.
The replies demo what is actually happening in hopes I may get some guidance to fix it. My question is above them.
- Donb9261
- Offline
- Elite Member
-
Less
More
- Posts: 169
- Thank you received: 103
6 months 4 weeks ago #345161
by Donb9261
Replied by Donb9261 on topic LinuxCNC python
I made this work around that seems to be robust.
if cur_task_mode_mon == 1 and cur_interp_state_mon == 1 and cur_queue_mon == 0:
cmd.abort()
M30 is actually read into the buffer and executed, but the inerp has already reset before updating the line number que. That is a bug in Linuxcnc and breaks the standard function of M30 in RS274.
I may simply modify my lcnc to fix the issue. But for now, the above works and should only activate if the yask_mode is manual, which M30 does actually set on M30 read, the task_state is idle, which it should be, and the queue is empty. Which is the planner que.
if cur_task_mode_mon == 1 and cur_interp_state_mon == 1 and cur_queue_mon == 0:
cmd.abort()
M30 is actually read into the buffer and executed, but the inerp has already reset before updating the line number que. That is a bug in Linuxcnc and breaks the standard function of M30 in RS274.
I may simply modify my lcnc to fix the issue. But for now, the above works and should only activate if the yask_mode is manual, which M30 does actually set on M30 read, the task_state is idle, which it should be, and the queue is empty. Which is the planner que.
The following user(s) said Thank You: tommylight
- tommylight
- Offline
- Moderator
-
Less
More
- Posts: 22011
- Thank you received: 7491
6 months 4 weeks ago #345163
by tommylight
Replied by tommylight on topic LinuxCNC python
OK, thank you.
Time to create page: 0.297 seconds