Problem with skipped M62 Code

More
3 years 8 months ago #264019 by MD1995
Hey Team,my problem is that M62 skipped after G0 or G1.  I play .ngc File with G and M code in it. M62 Code is expanded with a Timerparameter Q => That will open the Output and close after X*100us (Timer).Now i interested in how interpret linuxcnc that M-Code after G0 or G1 is set and it is possible to use M-Code one after another as quickly as possible?

in the attachment you see the ngc-File:    

Attachment not found

Please Log in to join the conversation.

More
3 years 8 months ago #264027 by andypugh
M62 won't be skipped, (or, at least, shouldn't be) but it does not take effect until a following G-code move.

So:

G0 ....
M62 ....

Will not show any effect of the M62. But

G0 ...
M62...
G0...

Will.

As the docs say "The actual change of the specified outputs will happen at the beginning of the next motion command. If there is no subsequent motion command, the queued output changes won’t happen. It’s best to always program a motion G code (G0, G1, etc) right after the M62/63."

Is this possibly what you are seeing?

Please Log in to join the conversation.

More
3 years 8 months ago #264032 by MD1995
Thx for this Answer. I check the programm again but in line 1160/1161 the next M62 command have a G1 before and G0 after so that i think that the M62 Command wouldn't be skipped after move to G0. But it will.

Please Log in to join the conversation.

More
3 years 8 months ago #264038 by andypugh
What do you expect to happen? You seem to have a lot of
Code:
M62 P0 Q10

Lines. All of which will turn on an output which is already on.

So, how do you know that it is not having any effect?

Actually, I would expect an error to be returned, as Q isn't valid for M62. I just checked on a test VM here and "M62 P0 Q10" is not accepted.

Please Log in to join the conversation.

More
3 years 8 months ago #264039 by MD1995
additional question: at what interval may the M62 orders follow?

Please Log in to join the conversation.

More
3 years 8 months ago #264040 by MD1995
i just modified to Q Parameter. in my case M62 P0 Q10 would open Output and Close Output after timeout.

Please Log in to join the conversation.

More
3 years 8 months ago #264043 by andypugh
Have you remapped M62? Otherwise, that simply isn't what M62 does.

Please Log in to join the conversation.

More
3 years 8 months ago #264044 by MD1995
if you me in this case modified then yes.

Please Log in to join the conversation.

More
3 years 8 months ago #264045 by andypugh
I would look at your modifications, then. I have no reason to believe that the base M62 has a problem, and your G-code as-is would simply do nothing as it turns on an output which is already on.

Please Log in to join the conversation.

More
3 years 8 months ago #264103 by MD1995
If there are no copyright or legal problems, I would give you the folders with the changes in the EMC.

Please Log in to join the conversation.

Time to create page: 0.122 seconds
Powered by Kunena Forum