MPG with Mach3 using mach3 controls

Moderators: TomKerekes, dynomotion

macona
Posts: 39
Joined: Tue Sep 15, 2020 4:44 am

Re: MPG with Mach3 using mach3 controls

Post by macona » Mon Sep 28, 2020 8:12 pm

Which puts it sideways.

Anyway, since it all works now I am posting the finished code since a pet peeve is when people post "Oh, I figured it out" and dont post their solution, especially when I have the exact same issue, lol.

macropump.m1s, this goes in your profile macro folder:

Code: Select all

'i=i+1
'message "Macro Running #"&I 'this is for debugging if necessary

Increment = GetOEMDRO(828) 'Get Increment
SetOEMDRO(1007, Increment) ' put it in User DRO 7
NotifyPlugins(19007) 'Send it to KFLOP

If (GetOEMLED(59) = True) Then Axis = 0 'X Axis
If (GetOEMLED(60) = True) Then Axis = 1 'Y Axis
If (GetOEMLED(61) = True) Then Axis = 2 'Z Axis
If (GetOEMLED(62) = True) Then Axis = 4 'A Axis
If (GetOEMLED(63) = True) Then Axis = 5 'B Axis
If (GetOEMLED(64) = True) Then Axis = 3 'C Axis (spindle)'
If (GetOEMLED(57) = False) Then Axis = 6 'Jogging mode selcted'

SetOEMDRO(1008, Axis) ' put it in User DRO 8
NotifyPlugins(19008) 'Send it to KFLOP 
And my final init file.
InitStepDir3AxisSupermax2 tk.c
(13.01 KiB) Downloaded 96 times

User avatar
TomKerekes
Posts: 2677
Joined: Mon Dec 04, 2017 1:49 am

Re: MPG with Mach3 using mach3 controls

Post by TomKerekes » Tue Sep 29, 2020 12:51 am

Thanks for posting this.
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply