M200 prompts sometimes disappear <fixed>
Moderator: cnckeith
-
- Posts: 64
- Joined: Fri Nov 08, 2024 2:57 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 3484E42757Cd-1018248693
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: M200 prompts sometimes disappear
Yup...definitely seems like a bug in CNC12. I use M221's to tell the user what is happening, but sometimes (based on conditions) I ask them to do stuff.
It means I have to go remove all my M221 messages because of this bug, unless I know for sure there won't be any user prompts.
Corbin
It means I have to go remove all my M221 messages because of this bug, unless I know for sure there won't be any user prompts.
Corbin
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
Re: M200 prompts sometimes disappear
What happens if you replace the M200 with an M225, and a time limit of zero?
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 2992
- Joined: Fri May 24, 2019 8:34 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 7804734C6498-0401191832
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Clearwater, FL
Re: M200 prompts sometimes disappear
This is how I do user prompts. Message stays until some action is taken.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 3537
- Joined: Thu Sep 23, 2021 3:49 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 6433DB0446C1-08115074
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Germany
Re: M200 prompts sometimes disappear
That will not work, since the M225 message disappears after the M221 timer is over if the c-gode after M221 is shorter than the M221 timer.
Replacing M221 with M225 will work, but with M225 the g-code will stop and wait for cycle start.
Uwe
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 241
- Joined: Mon Nov 20, 2017 10:13 am
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC11: Yes
- CPU10 or CPU7: Yes
- Location: Frenchville, PA
Re: M200 prompts sometimes disappear
I agree that the M200 is missing the timer variable that is the problem. I have always used a timer variable with each M2xx even if I want it to display the same amount of time. The manual does not show any example without timer variaable. As cncsnw stated, this is "a minor bug" I believe that the software should give an error message the M2## is missing a timer variable.
Dana
When requesting support, please ALWAYS post a current report.
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
When requesting support, please ALWAYS post a current report.
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
Re: M200 prompts sometimes disappear
No, I think the problem is that CNC12 fails to cancel the M221 timer when a new message is displayed.
M200 does not have or need a timer value, because by definition it waits until the operator presses Cycle Start.
Unfortunately, M200 is of limited use, because it only performs its primary job (displaying a message) if you have enabled M0 jogging via Parameter 10. Since you cannot assume that M0 jogging is enabled on every control, you cannot use M200 in macros that are intended for general use.
M200 does not have or need a timer value, because by definition it waits until the operator presses Cycle Start.
Unfortunately, M200 is of limited use, because it only performs its primary job (displaying a message) if you have enabled M0 jogging via Parameter 10. Since you cannot assume that M0 jogging is enabled on every control, you cannot use M200 in macros that are intended for general use.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 64
- Joined: Fri Nov 08, 2024 2:57 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 3484E42757Cd-1018248693
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: M200 prompts sometimes disappear
@cnc_smith Am I missing something from the manual?
-------------
13.55 M200/M201– Stop for Operator, Prompt for Action
M200 is used to pause the currently running job and prompt the Operator for action. If M0_jogging is unlocked, or the
control is in DEMO mode, jogging is enabled while waiting for the Operator to respond. If this option has not been
enabled, the behavior will default to that of a standard M0 (jogging disabled).
The syntax is:
M200 formatted-string [[user_var_expr] ...
---------------
For me, it isn't a minor bug, as I can't figure out a work around.
-------------
13.55 M200/M201– Stop for Operator, Prompt for Action
M200 is used to pause the currently running job and prompt the Operator for action. If M0_jogging is unlocked, or the
control is in DEMO mode, jogging is enabled while waiting for the Operator to respond. If this option has not been
enabled, the behavior will default to that of a standard M0 (jogging disabled).
The syntax is:
M200 formatted-string [[user_var_expr] ...
---------------
For me, it isn't a minor bug, as I can't figure out a work around.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 3537
- Joined: Thu Sep 23, 2021 3:49 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 6433DB0446C1-08115074
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Germany
Re: M200 prompts sometimes disappear
The workaround is to make sure the code after M221 will take more time like the timer, or use M225 with stopping g-code procession till cycle start from the user.
Even if the timer would not delete the next Mxx message, it would not make sense for a M221 message to be only visible for a half second.
Uwe
Even if the timer would not delete the next Mxx message, it would not make sense for a M221 message to be only visible for a half second.
Uwe
Last edited by suntravel on Mon Dec 02, 2024 12:58 pm, edited 2 times in total.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 64
- Joined: Fri Nov 08, 2024 2:57 pm
- Acorn CNC Controller: Yes
- Plasma CNC Controller: No
- AcornSix CNC Controller: No
- Allin1DC CNC Controller: No
- Hickory CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 3484E42757Cd-1018248693
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
Re: M200 prompts sometimes disappear
Yeah, but when coding abstractly that isn't always possible to ensure the code takes that long. Using M225 with a required cycle stop sort of defeats the purpose of a temporary notification that is not always important, but is nice to see.
So, here's my tool change scenario where it does make sense:
1. Temporary message telling the user a Tool Change is happening from Tool X to Y
2. If no user input is required (pure ATC), then the message stays up for 3 seconds and disappears.
3. If the user has to do something, such as manually remove or insert a tool that isn't in the rack, I want to prompt them with M200.
I could keep track of the time from the last M221 and do a dwell before showing the M200, but man, that feels so hacky.
So, I removed all my M221's because of this bug.
I'm open to other suggestions! My code is here:
https://github.com/corbinstreehouse/Cen ... corbin.mac
Although, this problem stems into other files.
Corbin
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Community Expert
- Posts: 3537
- Joined: Thu Sep 23, 2021 3:49 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: No
- Oak CNC controller: No
- CNC Control System Serial Number: 6433DB0446C1-08115074
- DC3IOB: No
- CNC12: Yes
- CNC11: No
- CPU10 or CPU7: No
- Location: Germany
Re: M200 prompts sometimes disappear
I am sure it is not a big deal for Centroid to delete the timer if another Mxx is issued after M221.
Some old bugs are coming only to light if some user finds them till all others did not run into this issue, because they never used this feature in this way
Uwe
Some old bugs are coming only to light if some user finds them till all others did not run into this issue, because they never used this feature in this way

Uwe
(Note: Liking will "up vote" a post in the search results helping others find good information faster)