Hello Guest it is March 28, 2024, 10:49:20 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.


Messages - 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
VB and the development of wizards / Re: Plasma "fire" restart
« on: September 06, 2017, 12:53:55 PM »
You could write a custom macro (say M101 for Torch on, M102 for Torch off) which is your "firing routine" macro. It would include probing the plate, lifting to pierce height, firing the torch, waiting for ARC OK, pierce height delay, then lowering to cut height and cutting. You could just write a simple timeout function, that if you don't get ARC OK, the torch will touch off and try to fire again.

Then, you just need to modify your post processor (from SheetCAM or whatever you're using) to use your macros M101, and M102.

Also, I would check the quality of your work clamp connection (grind the plate clean) and how rusty the pierce location is. Clean plate makes a really big difference for me to avoid misfires.

3
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

4
VB and the development of wizards / Re: Force Homing on startup
« on: July 13, 2017, 07:49:14 PM »
Figured it out. I wrote a macro (with the homing script and a dialog box) called M555. This macro is called as part of Mach 3's initialization script. Job done.

5
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!

6
VB and the development of wizards / Re: VB Script for Homing
« on: June 27, 2017, 11:42:18 AM »
I'm using a SmoothStepper, not sure which version. I did get it working though, and RefCombination is supported. I just needed to "slave" the homing input for X and A together

7
VB and the development of wizards / Re: VB Script for Homing
« on: June 26, 2017, 12:15:09 PM »
Ok, here's what worked.

I had to set the homing switch in Inputs so X and A were sharing a homing switch. Then, here's my code:

DoButton( 24 )
While IsMoving()
Wend
Code "G53 G0 Z0"
While IsMoving()
Wend

RefCombination(9)
'DoButton( 22 )
While IsMoving()
Wend
Code "G53 G0 X0"
While IsMoving()
Wend

DoButton( 23 )
While IsMoving()
Wend
Code "G53 G0 Y0"
While IsMoving()
Wend


8
VB and the development of wizards / Re: VB Script for Homing
« on: June 26, 2017, 12:14:09 PM »
Hmm, doesn't work for me. I did all you said there, and it's still acting weird.

The script will:
1. Seek Z-Home switch
2. Set the offset to Z = 1.000
3. Rapid to Z 0.000
4. Seek X-Home switch
5. Set the offset to X = -1.000

Then it just finished the script. Doesn't even try to home Y. It seems to be an issue with slaving the Axis. When I just run it un-slaved (and without the RefCombination), it's fine.

9
VB and the development of wizards / Re: VB Script for Homing
« on: June 23, 2017, 02:32:26 PM »
Mostly, it seems IsMoving() breaks when I try to home my slaved axis.

10
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