Problem with skipped M62 Code

More
3 years 8 months ago - 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:    

File Attachment:

File Name: program.ngc
File Size:184.71 KB
Last edit: 3 years 8 months ago by MD1995. Reason: Readded file

Please Log in or Create an account 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 or Create an account 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 or Create an account 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 or Create an account 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 or Create an account 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 or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum