Hello Guest it is December 08, 2019, 10:13:36 PM

Author Topic: G-code Question  (Read 4073 times)

0 Members and 1 Guest are viewing this topic.

G-code Question
« on: January 21, 2013, 06:55:58 PM »
It has long been my understanding that G-code blocks should always execute in-sequence.  For example:

G0 X0
G1 X1 F10
M7
X2

This should turn on the coolant when X passes by 1.0.  However, on one machine, I see the coolant not turning on until X=2.  Is this correct or not?

Regards,
Ray L.
Regards,
Ray L.

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: G-code Question
« Reply #1 on: January 21, 2013, 07:07:57 PM »
The coolant should come on just after the axis gets to X1 and before it starts to move to X2.
Hood

Offline Hal

*
  •  60 60
    • View Profile
Re: G-code Question
« Reply #2 on: January 21, 2013, 08:25:23 PM »
There maybe a delay in the coolant coming on in the machine itself.
Hal

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: G-code Question
« Reply #3 on: January 22, 2013, 11:14:46 AM »
HIYA RAY it is a dwell problem in mach3 with Macros. SOmewhere along the line it developed a DELAY with all Mcodes. The latest Ver was corrected with only the M3.

(;-( TP

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: G-code Question
« Reply #4 on: January 22, 2013, 11:17:15 AM »
Terry I reckon its the kFlops own software that Ray is having issues with.
Hood
Re: G-code Question
« Reply #5 on: January 22, 2013, 11:21:50 AM »
Hood,

Yes, this is something reported by a KFlop user.  KFlop seems to currently consider it ok to merge the two moves, then execute the M7 AFTER the merged move is complete, which I believe is incorrect, per the RS274 spec.  In fact, RS274 even says that if a G0-G3 occurs on the same line as an M7, the M7 MUST execute first, so it stands to reason if they are on separate lines, they should execute in the order in which they appear.  This "feature" has never caused me a problem just due to the way my code is structured, but I was just curious what was "correct" in this case.  One thing for certain - if it is "wrong", and I believe it is, it will be fixed within a very few days at most.  TomK, "Mr. KFlop", is VERY responsive when it comes to bug fixes and feature enhancements.

Regards,
Ray L.
Regards,
Ray L.

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: G-code Question
« Reply #6 on: January 22, 2013, 01:37:26 PM »
It is wrong if going by standards but then again there are no rules to say you should follow standards so if TomK reckons its the way it should be then it is.

Regarding the responsiveness, thats the good thing about having software produced and  tied to the product that you sell, you know both sides of things and can easily alter to suit :)
Hood
Re: G-code Question
« Reply #7 on: January 22, 2013, 04:27:16 PM »
And....  Tom has already acknowledged this is a bug, and is hard at work fixing it....  I really do love the KFlop!  One will be going on my new machine just as soon as I finish its PDB and ATC.

Regards,
Ray L.
Regards,
Ray L.

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: G-code Question
« Reply #8 on: January 22, 2013, 04:29:46 PM »
The nice things about standards is there are so many to choose from. (;-)

Now 10 lashes for Ray for not identifying WHAT he was working with(;-)

Yes the standard IS to turn ON coolant after  the M3 and turn OFF coolant before M5. That is because of through spindle coolant issues and slinger/seals on the spindle.

(;-) TP

Offline Hood

*
  •  25,856 25,856
  • Carnoustie, Scotland
    • View Profile
Re: G-code Question
« Reply #9 on: January 22, 2013, 05:08:15 PM »
I really do love the KFlop!
Regards,
Ray L.

Thats because you are a programmer ;)

Hood