Hello Guest it is April 26, 2024, 02:25:18 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 - AVRnj

Pages: 1
1
VB and the development of wizards / Z probe macro with offset
« on: May 18, 2015, 10:49:53 AM »
Hey everyone, I posted this in a different area but I think this area is more appropriate.

I am trying to get my Probe working in Mach3, so I entered 2 tools into my tool table, tool 99 (my probe) at 6.5 height, and tool 30 at 4 height.

I went into the offset tab in Mach3, I changed the tool from 0 to 99 which is my probe, and I am using the following macro for Z:
Code: [Select]
CurrentFeed = GetOemDRO(818) 'Get the current feedrate to return to later
PlateThickness = GetUserDRO(1151) 'Z-plate thickness DRO

If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
DoOEMButton (1010) 'zero the Z axis so the probe move will start from here
Code "G4 P2" ' two second delay
Code "G31 Z-1.0 F5" 'Z goes down a max of 1.0 at 5IPM
While IsMoving() 'wait while it happens
Wend
ZProbePos = GetVar(2002) 'get the axact point the probe was hit
Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun
While IsMoving ()
Wend
Call SetDro (2, PlateThickness) 'set the Z axis DRO to whatever is set as plate thickness
Code "G4 P0.25" 'Pause for Dro to update.
Code "G0 Z1.0" 'retract Z to 1.0 inch
Code "(Z axis is now zeroed)" 'puts this message in the status bar
Code "F" &CurrentFeed 'Returns to prior feed rate
Else
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
Exit Sub
End If

When I enter tool 99, the offset light goes green, as I would expect. If I run that macro, it touches, and starts retracting, and then it actually goes up the full 6.5 from the offset, than an extra 1" for the Z1.0, and then it sets my DRO at 1, which is actually way off.

If I manually turn the offset off, and run the macro, it behaves as I would expect, it touches down, retracts 1, and sets the DRO at 1. The problem is, if I do that with the offset off, when I change tools, it does not change the DRO, which is exactly what I would expect.

So, it seems as though I need to use the offsets, but my macro is not working correctly. Can anyone help me out here with this? I have tried a few different macros for this that I found either in things I bought from Hoss, or in various forum posts, and they all behave the same way.

Do I need to reed the tool offset before retracting, and then somehow change my retraction accordingly?

Any help would be appreciated

2
Video P*r*o*b*i*n*g / Offset and Probe Help
« on: May 18, 2015, 08:48:24 AM »
I am trying to get my Probe working in Mach3, so I entered 2 tools into my tool table, tool 99 (my probe) at 6.5 height, and tool 30 at 4 height.

I went into the offset tab in Mach3, and I am using the following macro for Z:
Code: [Select]
CurrentFeed = GetOemDRO(818) 'Get the current feedrate to return to later
PlateThickness = GetUserDRO(1151) 'Z-plate thickness DRO

If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
DoOEMButton (1010) 'zero the Z axis so the probe move will start from here
Code "G4 P2" ' two second delay
Code "G31 Z-1.0 F5" 'Z goes down a max of 1.0 at 5IPM
While IsMoving() 'wait while it happens
Wend
ZProbePos = GetVar(2002) 'get the axact point the probe was hit
Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun
While IsMoving ()
Wend
Call SetDro (2, PlateThickness) 'set the Z axis DRO to whatever is set as plate thickness
Code "G4 P0.25" 'Pause for Dro to update.
Code "G0 Z1.0" 'retract Z to 1.0 inch
Code "(Z axis is now zeroed)" 'puts this message in the status bar
Code "F" &CurrentFeed 'Returns to prior feed rate
Else
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
Exit Sub
End If

When I enter tool 99, the offset light goes green, as I would expect. If I run that macro, it touches, and starts retracting, and then it actually goes up the full 6.5 from the offset, than an extra 1" for the Z1.0, and then it sets my DRO at 1, which is actually way off.

If I manually turn the offset off, and run the macro, it behaves as I would expect, it touches down, retracts 1, and sets the DRO at 1. The problem is, if I do that with the offset off, when I change tools, it does not change the DRO, which is exactly what I would expect.

So, it seems as though I need to use the offsets, but my macro is not working correctly. Can anyone help me out here with this? I have tried a few different macros for this tand they all behave the same way.

Any help would be appreciated

3
I am wondering if anyone can help me out.

I just setup a C10 and kellig digital drivers.

My C10 board has power, my digital drivers have the green power light on, so they are getting power.

I followed the keeling wiring diagram, and I have no power at all to the motors. I have another CNC machine (Tormach) and I have verified that the parallel port works fine in EPP mode on my Tormach, and it can drive the motors.

I am assuming it to be a setting in Mach3 issue, but I am not sure. I have tried with the charge pump enabled and disabled, no luck.

I have verified I have the jumper set to output for pin 2-9, I have a jumper between 5V in and the en pin.

The only other thing I can think of is if the C10 pins 2-9 don't relate to pins 2-9 on the parallel port?

Any suggestions for me?


4
General Mach Discussion / Lathe Threading Wizard Rev 1.17
« on: January 29, 2014, 05:31:31 PM »
Hey everyone,

I just converted my lathe for CNC.

I have been playing around with the lathe turning wizards and the first few I tried worked fine.

I than tried the Lathe threading wizard.

I entered in some standard values, and posted the code. Just like any other wizard, the paths appeared in the window.

When I went to run it, my z axis went positive for a while, than returned to it's prior position, and just sat there and did nothing, it looked like it stopped at the G76 line in the code.

The only thing I can think of is my actual spindle speed is not connected to Mach3, and perhaps Mach3 is waiting for my spindle to get up to the speed I set in the wizard?

I at a loss and tried many different values and kept getting the same result.

Any help would be greatly appreciated.

Thanks.

Pages: 1