Hello Guest it is April 25, 2024, 02:21:26 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - garetbiglow

Pages: 1
1
So I can set up my post (in Sheetcam) to do this as part of the initial gcode block:

M501 P163 (cutting voltage)
M502 P0.36 (pierce height)
M503 P0.16 (cut height)
M504 P1.8 (pierce delay)

What I want to do now, is write the associated macro in Mach3, which would pull in these P values, and write them to certain DRO's in Mach. This way, the tooltable can be used to set all the cutting parms, and the operator doesn't need to be manually entering them in. Does anyone have a method for this? Maybe an example macro?

Garet

2
General Mach Discussion / Motor Tuning window no longer will open???
« on: July 23, 2017, 01:08:59 PM »
Hey all,

I've recently set up a CNC plasma with CandCNC electroincs and TECO Servo motors. All is working well, but for whatever reason, I can't open the motor tuning window anymore in Mach3? It's there as an option, and I can click it, but the window will not come up? Anyone seen this before?

Garet

3
VB and the development of wizards / Force Homing on startup
« on: July 10, 2017, 11:53:16 AM »
I'd like Mach 3 to only initially come out of reset when you push my custom Homing Cycle VB button when Mach 3 first loads. I'm doing this as I'm running soft limits, and want to ensure the user homes the machine every time. Can I create a global variable, such as Homing_Cycle_Complete = false, that keeps Mach in Reset (until a homing cycle is completed)? How would I go about this. I'm new to VB coding for Mach, but not new to coding in general.

Thanks in advance!

4
VB and the development of wizards / VB Script for Homing
« on: June 23, 2017, 01:57:58 PM »
So I'm trying to write a simple VB script to home my gantry (CNC plasma). I'm new to Mach and scripting for it, but not new to CNC or programming. I've added a script button to my screenset, name it "Homing Cycle". Here's the sudo logic of what I'd like it to do:

1. Home Z-Axis
2. Set Z machine position (G53) to 1.000
3. Pull off limit switch to Z0 (G53)

4. Home X-Axis (slaved with A, A reversed motion)
5. Set X machine position (G53) to -1.000
6. Pull off limit switch to X0 (G53)

7. Home Y-Axis
8. Set Y machine position (G53) to -1.000
9. Pull off limit switch to Y0 (G53)

Here's my VB. It mostly works, but doesn't execute the "G0 X0" for some reason?

Code: [Select]
DoButton( 24 ) 'Z Home Axis
While IsMoving()
Wend
SetOEMDRO(802,1)
Code "G0 Z0"
While IsMoving()
Wend
Sleep 1000

RefCombination( 9 ) 'X + A Home
While IsMoving()
Wend
SetOEMDRO(800,-1)
Code "G0 X0"
While IsMoving()
Wend
Sleep 1000

DoButton( 23 ) 'Y Home Axis
While IsMoving()
Wend
SetOEMDRO(801,-1)
Code "G0 X0 Y0"
While IsMoving()
Wend
Sleep 1000

Any help would be great! Thanks very much!


Pages: 1