Hello Guest it is December 07, 2024, 10:35:56 PM

Author Topic: Commands on a line.  (Read 8065 times)

0 Members and 1 Guest are viewing this topic.

Commands on a line.
« on: October 25, 2008, 07:14:00 AM »
My post processor gives some commands in a row.
Mach3 seems not to understand commands in one row, (like that: M1001 M1002 M1003) These are macros.
Is that right?
Is there any way to make it understand? (Maybe by putting between the macros a factor or so...)
Regards,
giannis

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: Commands on a line.
« Reply #1 on: October 25, 2008, 08:22:29 AM »
Do you have these Macros? They are not standard Mach Macros they are user Macros.
Hood
Re: Commands on a line.
« Reply #2 on: October 25, 2008, 08:25:26 AM »
Yes, i have made them by myself.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: Commands on a line.
« Reply #3 on: October 25, 2008, 08:32:49 AM »
Not sure how many m codes you can have on one line, I think its been a problem in the past but was one of the things Brian has been working on in the last while. What version are you using, might be worth trying with the latest Development version of Mach.
 If that still doesnt help then it should be fairly straightforward to edit your Post Processor to put them on seperate lines as you have obviously already edited it to use  these codes in the first place.
 I will go and test on my lathe and see if multiple m codes work here.
Hood
Re: Commands on a line.
« Reply #4 on: October 25, 2008, 08:36:20 AM »
Yeah, it is the latest development version.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: Commands on a line.
« Reply #5 on: October 25, 2008, 08:40:03 AM »
OK just checked here with a few, if I try M7 and M8 on the same line I get an error saying two M codes from the same modal group, best bet is just to edit your post processor to put them on seperate lines.
Hood
Re: Commands on a line.
« Reply #6 on: October 25, 2008, 08:43:39 AM »
Actually i can't do it with the post processor, while i don't really know the code.
; Program moves
;
FIRST_RAPID_RATE_MOVE  = "G0 [X] [Y] [Z]"
FIRST_FEED_RATE_MOVE   = "M1001"
FEED_RATE_MOVE         = "[X] [Y]"

This is what it says.
I changed at first feed rate move the commant "G1 [X] [Y] [Z] [F]" with M1001.
Any ideas?

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: Commands on a line.
« Reply #7 on: October 25, 2008, 08:55:41 AM »
Sorry dont really follow what you are asking. Is the above an excerpt from your post processor?
Hood
Re: Commands on a line.
« Reply #8 on: November 05, 2008, 05:35:27 AM »
Finally a sollution was found.
I communicated with the software creator.
I just put [13][10] between the commands and at the output file, the commands are on separate lines:

FIRST_RAPID_RATE_MOVE  = "G0 [X] [Y] [Z]"
FIRST_FEED_RATE_MOVE   = "M1001[13][10]M1002[13][10]M1003"
FEED_RATE_MOVE         = "[X] [Y]"

Thank you for the replays.