Hello Guest it is June 26, 2019, 07:06:05 PM

Author Topic: need a macro for "temp" slaved axis/asap  (Read 2185 times)

0 Members and 1 Guest are viewing this topic.

need a macro for "temp" slaved axis/asap
« on: April 08, 2007, 08:38:35 PM »

  I need a function [macro] that will temporarily   slave my A axis[spindle#2] to my Z axis[spindle1]
     Art suggested I slave C to Z in cfg,then write a Macro to swap C&A , and then a macro[another one?] to cancel the swap.

    I searched all over for an oem  code for "swapaxis" but it must not exist.
 
   I could sweat blood for days trying to learn VB and writing macros to do what one of you guys could whip out in a matter of minutes
                      OR
   I can go make parts[what I know] and  PAY  $$  someone who knows this stuff.     

  best to contact me at  carlcnc@yahoo.com

 thanks
Carl

Offline poppabear

*
  • *
  •  2,231 2,231
  • Briceville, TN, USA
    • View Profile
    • S S Systems, LLC
Re: need a macro for "temp" slaved axis/asap
« Reply #1 on: April 08, 2007, 09:06:00 PM »
Like Art said, set up your config to slave Z and C then:

The drop a "Button" on your screed that says "Swap A and C" for the label
In the button put the VB script:  swapaxis( 3,5)

Drop another button on your screen with "reset A and C" for the label
In the button put: ResetSwappedAxis()

If you don't want to fool with it, send me your screen set, and mark the area you want the buttons and I will do it for you.
email:  poppabear (at) hughes.net

Scott
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/