M200 prompts sometimes disappear <fixed>
Moderator: cnckeith
-
- Posts: 51
- 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
M200 prompts sometimes disappear <fixed>
Hi!
In macro programming I sometimes (rather systematically) see the M200 prompts just disappear after a timeout, and I can't figure out why. CNC12 is still waiting for a Cycle Start, and hitting Cycle Start will make things continue along, but the prompt will have been long gone. I haven't narrowed down why certain lines of code in certain places cause this behavior.
Any ideas?
Example:
M200 "Remove Tool %.0f from the spindle and press Cycle Start to Continue." #20 ; prompt for input ; #20 is T, #T doesn't work
I've tried tossing in a "IF #50001" before and after the lines to prevent any lookahead, but I miss be missing something...
Thank you,
Corbin
In macro programming I sometimes (rather systematically) see the M200 prompts just disappear after a timeout, and I can't figure out why. CNC12 is still waiting for a Cycle Start, and hitting Cycle Start will make things continue along, but the prompt will have been long gone. I haven't narrowed down why certain lines of code in certain places cause this behavior.
Any ideas?
Example:
M200 "Remove Tool %.0f from the spindle and press Cycle Start to Continue." #20 ; prompt for input ; #20 is T, #T doesn't work
I've tried tossing in a "IF #50001" before and after the lines to prevent any lookahead, but I miss be missing something...
Thank you,
Corbin
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 2896
- 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 never noticed this issue, but I seldom need longer than a few seconds to hit cycle start after M200....
Uwe
Uwe
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 82
- Joined: Wed Oct 19, 2022 4:49 pm
- Acorn CNC Controller: Yes
- Allin1DC CNC Controller: Yes
- Oak CNC controller: Yes
- CNC Control System Serial Number: none
- DC3IOB: No
- CNC12: No
- CNC11: Yes
- CPU10 or CPU7: No
Re: M200 prompts sometimes disappear
What are you doing after the M200, Corbin?
I just experimented with it at home with v5.20 and the prompt has stayed up for 30 minutes now waiting to continue with the job but, like you suggested, there is possibly an edge case causing it to disappear.
I just experimented with it at home with v5.20 and the prompt has stayed up for 30 minutes now waiting to continue with the job but, like you suggested, there is possibly an edge case causing it to disappear.
When requesting support please read this post first.
A fresh report makes it easier to assist you. To make a report check this post
A fresh report makes it easier to assist you. To make a report check this post
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 51
- 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
EDIT: Ignore this and see my test case (next post).Centroid_Jacob wrote: ↑Fri Nov 29, 2024 3:16 pm What are you doing after the M200, Corbin?
I just experimented with it at home with v5.20 and the prompt has stayed up for 30 minutes now waiting to continue with the job but, like you suggested, there is possibly an edge case causing it to disappear.
Last edited by corbin on Fri Nov 29, 2024 7:46 pm, edited 1 time in total.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 51
- 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
OKAY! I've isolated it to this test case:
#140 = 3
m221 #140 "show for 3 seconds"
; some code that takes less than 3 seconds
m200 "Hit cycle start...if you can see this!"
#140 = 3
m221 #140 "show for 3 seconds"
; some code that takes less than 3 seconds
m200 "Hit cycle start...if you can see this!"
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 2896
- 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
It will work only if the code to the next message is longer than 3s, if not the next message disappears also if the 3s are over.
Uwe
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 use the M200 and the other M2xx.
If you want several lines of to show up with your message use the \n to create a second line instead of creating a new M2xx line.
(\n is explained in the manual 13.51.2 Special characters)
You have to create a new variable to display long or short for other M2xx #141 = 0 the message will be displayed until cycle start is press.
If you want several lines of to show up with your message use the \n to create a second line instead of creating a new M2xx line.
(\n is explained in the manual 13.51.2 Special characters)
You have to create a new variable to display long or short for other M2xx #141 = 0 the message will be displayed until cycle start is press.
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)
-
- Posts: 2896
- 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
Dana,cnc_smith wrote: ↑Sat Nov 30, 2024 11:24 am I use the M200 and the other M2xx.
If you want several lines of to show up with your message use the \n to create a second line instead of creating a new M2xx line.
(\n is explained in the manual 13.51.2 Special characters)
You have to create a new variable to display long or short for other M2xx #141 = 0 the message will be displayed until cycle start is press.
I think his problem is the timer for M221.
If any other M2xx will send a message before the timer of M221 is over, it will be deleted from the screen after the timer is done.
.
You must make sure that any code after M221 will run longer than the timer of M221 is set to, before commanding another Mxxx message
Uwe
Last edited by suntravel on Sat Nov 30, 2024 2:28 pm, edited 3 times in total.
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
Re: M200 prompts sometimes disappear
His test case indicates the problem is with what came before the M200.
He evidently used M221 to display a message that was to remain on the screen for three seconds, but then before that timer expired, ran an M200 that put a new message on the screen.
Apparently the timer for the M221 message continued to run, and when it expired, CNC12 then erased the M200 message.
This seems like a (minor) bug. If any timed message is on the screen when another message is to be displayed (M200, M224, M225, ...) then the first message timer should be cancelled (since the timed message is gone).
He evidently used M221 to display a message that was to remain on the screen for three seconds, but then before that timer expired, ran an M200 that put a new message on the screen.
Apparently the timer for the M221 message continued to run, and when it expired, CNC12 then erased the M200 message.
This seems like a (minor) bug. If any timed message is on the screen when another message is to be displayed (M200, M224, M225, ...) then the first message timer should be cancelled (since the timed message is gone).
(Note: Liking will "up vote" a post in the search results helping others find good information faster)
-
- Posts: 2896
- 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
Yep, thats what I think too. I have had to edit my last post, because timer from M221 is the root cause not M200 (there is no timer)...
Uwe
Uwe
(Note: Liking will "up vote" a post in the search results helping others find good information faster)