Hello Guest it is October 22, 2021, 04:16:19 PM

Author Topic: Cycle start and spindle start  (Read 260 times)

0 Members and 1 Guest are viewing this topic.

Cycle start and spindle start
« on: November 17, 2020, 02:00:55 PM »
Hi
Newbie here, I understand that at the beginning of the code there is a spindle start command. I do not understand though why the code is not permanently linked to cycle start.
I stopped a job on the kill switch cleared some swarf and hit cycle run the program started running pushing the bit still bit into the job.
Why would spindle start not be permanently connected to cycle start?
Cheers
kk

Offline Tweakie.CNC

*
  • *
  •  8,836 8,836
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Cycle start and spindle start
« Reply #1 on: November 18, 2020, 01:08:16 AM »
That is the way of Mach3 and we generally learn to use things the way they are.

You could of course change the way Mach3 works for you by using one of the screen editors to change the Cycle Start button from an OEM to a VB Button which could then contain the code of your choice.

Tweakie.
KEEP SAFE !
Re: Cycle start and spindle start
« Reply #2 on: November 18, 2020, 05:30:05 AM »
Thanks Tweakie
I assume VB is a virtual button. So could I copy the code for the existing cycle start button, then add M3 to start the spindle and G04 for a delay to allow the spindle to speed up.
Haven’t yet got a clue on how. More learning on top of everything else.
Cheers
Kk

Offline Tweakie.CNC

*
  • *
  •  8,836 8,836
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Cycle start and spindle start
« Reply #3 on: November 18, 2020, 10:05:36 AM »
Hi kk,

It is a little more complicated but yes you can add the Code M03 and the delay Code to the Start Button using a Screen Designer such as Klaus’s Mach Screen which can be downloaded from here;  http://www.kd-dietz.de/index_eng
Buttons and Macros are programmed using a subset of VB (Visual Basic) called Cypress Enable and the following documents relate;
http://www.machsupport.com/wp-content/uploads/2013/02/Mach3_V3.x_Macro_Prog_Ref.pdf
http://www.machsupport.com/wp-content/uploads/2013/02/VBScript_Commands.pdf

As you suspect a bit of learning to do  :)

Hope this helps.

Tweakie.

KEEP SAFE !