Problem with skipped M62 Code
- MD1995
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
08 Feb 2023 09:55 - 08 Feb 2023 10:10 #264019
by MD1995
Problem with skipped M62 Code was created 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:
in the attachment you see the ngc-File:
Attachments:
Last edit: 08 Feb 2023 10:10 by MD1995. Reason: Readded file
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23558
- Thank you received: 4858
08 Feb 2023 12:09 #264027
by andypugh
Replied by andypugh on topic Problem with skipped M62 Code
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?
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.
- MD1995
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
08 Feb 2023 12:33 #264032
by MD1995
Replied by MD1995 on topic Problem with skipped M62 Code
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.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23558
- Thank you received: 4858
08 Feb 2023 12:58 #264038
by andypugh
Replied by andypugh on topic Problem with skipped M62 Code
What do you expect to happen? You seem to have a lot of
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.
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.
- MD1995
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
08 Feb 2023 13:05 #264039
by MD1995
Replied by MD1995 on topic Problem with skipped M62 Code
additional question: at what interval may the M62 orders follow?
Please Log in or Create an account to join the conversation.
- MD1995
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
08 Feb 2023 13:07 #264040
by MD1995
Replied by MD1995 on topic Problem with skipped M62 Code
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.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23558
- Thank you received: 4858
08 Feb 2023 13:18 #264043
by andypugh
Replied by andypugh on topic Problem with skipped M62 Code
Have you remapped M62? Otherwise, that simply isn't what M62 does.
Please Log in or Create an account to join the conversation.
- MD1995
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
08 Feb 2023 13:32 #264044
by MD1995
Replied by MD1995 on topic Problem with skipped M62 Code
if you me in this case modified then yes.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23558
- Thank you received: 4858
08 Feb 2023 13:40 #264045
by andypugh
Replied by andypugh on topic Problem with skipped M62 Code
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 or Create an account to join the conversation.
- MD1995
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
09 Feb 2023 06:07 #264103
by MD1995
Replied by MD1995 on topic Problem with skipped M62 Code
If there are no copyright or legal problems, I would give you the folders with the changes in the EMC.
Please Log in or Create an account to join the conversation.
Time to create page: 0.085 seconds