Hello Guest it is March 29, 2024, 02:10:06 AM

Author Topic: Time based programming  (Read 1007 times)

0 Members and 1 Guest are viewing this topic.

Offline Katoh

*
  •  287 287
    • View Profile
Time based programming
« on: July 17, 2019, 03:30:41 AM »
G'Day All
I am trying to write a little program but it has a twist I want to make it time based.

This is basically what I want.

S75
M3 (on for 5 seconds)
M4 (on for 3 seconds)
M5
M30

Nothing to hard there but is there a time based code?

Thanks
Cheers
Katoh

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: Time based programming
« Reply #1 on: July 17, 2019, 03:59:29 AM »
G4Px should do the trick (Uncheck in Settings for an  x  dwell time in Seconds).
PEACE

Offline Katoh

*
  •  287 287
    • View Profile
Re: Time based programming
« Reply #2 on: July 17, 2019, 07:08:01 AM »
Hi Tweakie
I just wanted to clarify I am Using Mach3 Lathe, Where do I find the ( x dwell settings) ?
Many thanks for the quick reply
Cheers
Katoh

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: Time based programming
« Reply #3 on: July 17, 2019, 07:17:03 AM »
If you look up the G04 command you will see that it is followed by Px where x=Dwell in Seconds or Milliseconds. As an example the Gcode command line G4P3 will give a 3 second delay assuming 'G04 Dwell in ms' is unchecked in Config/ General Config.

If you lathe screen does not allow you to see the Gcode Summary then temporarily select the Mill screen (1024.set) to view.

Tweakie.
PEACE

Offline Katoh

*
  •  287 287
    • View Profile
Re: Time based programming
« Reply #4 on: July 17, 2019, 08:06:17 AM »
Awsome ;D
Works a charm!!!
I have being Nc Machining for a long time but never had heard of or needed time management in an axis, simply fantastic, and you Tweakie can not thank you enough. Happy Happy, Joy Joy!!!!
Cheers
Katoh

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: Time based programming
« Reply #5 on: July 17, 2019, 08:07:15 AM »
Excellent  ;)
PEACE