filmov
tv
Mach3 macro: How to create a dialogue form?

Показать описание
'Assume that cutter position is at XYZ(0,0,25)
'Probe position is at XY(100, 20)
'Move cutter to probe position
'Code "G0 X100 Y20" 'We will replace this line
'using mach3 predefined AskTestQuestion() to receive data from
'user when macro is running
Probe_X = AskTextQuestion("Enter Probe position X: ")
Probe_Y = AskTextQuestion("Enter Probe position Y: ")
Code "G0 X"& Probe_X &" Y" & Probe_Y
'We need to enter these lines
While IsMoving() 'ensure previous command is completed
Wend
answer = MachMsg("Press enter to continue", "M779: User enter data", 0)
'G31 fast moving
Code "G31 Z-10 F200"
While IsMoving()
Wend
answer = MachMsg("End of G31 fast moving", "M779 Auto Tool Zero", 0)
'G31 slow moving
z = GetOEMDRO(802) 'get current Z coordinate value
Code "G0 Z" &(z+1) 'move back 1mm
Code "G31 Z-10 F25"
While IsMoving()
Wend
answer = MachMsg("End of G31 slow moving", "M779 Auto Tool Zero", 0)
'Set zero
SetOEMDRO(802, 0) '802 hold Z coordinate value
'End
'Probe position is at XY(100, 20)
'Move cutter to probe position
'Code "G0 X100 Y20" 'We will replace this line
'using mach3 predefined AskTestQuestion() to receive data from
'user when macro is running
Probe_X = AskTextQuestion("Enter Probe position X: ")
Probe_Y = AskTextQuestion("Enter Probe position Y: ")
Code "G0 X"& Probe_X &" Y" & Probe_Y
'We need to enter these lines
While IsMoving() 'ensure previous command is completed
Wend
answer = MachMsg("Press enter to continue", "M779: User enter data", 0)
'G31 fast moving
Code "G31 Z-10 F200"
While IsMoving()
Wend
answer = MachMsg("End of G31 fast moving", "M779 Auto Tool Zero", 0)
'G31 slow moving
z = GetOEMDRO(802) 'get current Z coordinate value
Code "G0 Z" &(z+1) 'move back 1mm
Code "G31 Z-10 F25"
While IsMoving()
Wend
answer = MachMsg("End of G31 slow moving", "M779 Auto Tool Zero", 0)
'Set zero
SetOEMDRO(802, 0) '802 hold Z coordinate value
'End
Mach3 macro: How to create a dialogue form?
How to create a new user macro in Mach3
Macros in Mach3
How to create a new button in Mach3
Mach3 User DRO: How to create and access DRO from inside macro?
Macro Mach3
Mach3 Manual Tool Change Macro Made Easy
Mach3 | Generate a GCode Variable List | See ALL Current Values
MACH3 MACRO: ENGRAVING TEXT ON A CIRCULAR CHAIN
CNC Mach3 | Automated Tool Setting | Edge/Center Finding (X/Y) | Includes INCH/MM Scripts
mach3 auto XYZ probing macro
Mach3 | Make Machine Homing Faster w/RefCombination | Ref All Home | (See Description)
Mach3 macro: G31 Auto Tool Zero in action
Mach3 Macro: G31 Auto Tool Zero#Mach3 #cnc #gcode #g31
XYZ Touch Probe
Mach3 Macro: Tự động dò tâm lỗ (Automatically find the center of circle)
Mach3- DRO value modification from macro
M3.mls macro for initial height sensing mach3
MACH3 Auto Tool Change Simple
Updated toolchange macro
Rotary Tool Changer M06 Macro l
Probing macro on #CNC #TECHNOLOGY #ENGINEERING #MAKERSGONNAMAKE #3DPRINTING #SCIENCE
Machinist Trick to NOT Break Tools
our servo motor application in robot arm
Комментарии