Hello Guest it is April 19, 2021, 12:38:06 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 - DC Ross

Pages: 1
General Mach Discussion / Auto Tool Zero / Touch Plate issues
« on: July 24, 2013, 02:03:24 PM »
Hey all,
I've been trying to set up a touch plate, and having little to no success. I'm using the script that seems to have been going around for a few years:

Code: [Select]
CurrentFeed = GetOemDRO(818) 'Get the current feedrate to return to later
CurrentAbsInc = GetOemLED(48) 'Get the current G90/G91 state
CurrentGmode = GetOemDRO(819) 'Get the current G0/G1 state
PlateThickness = .028 '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" ' this delay gives me time to get from computer to hold probe in place
 Code "G90 G31Z-5 F5" 'probing move, can set the feed rate here as well as how far to move
 While IsMoving() 'wait while it happens
 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 ()
 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 "G1 Z0.5 F10" 'put the Z retract height you want here
 While IsMoving ()
 Code "(Z axis is now zeroed)" 'puts this message in the status bar
 Code "F" &CurrentFeed 'Returns to prior feed rate
 Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
 End If
 If CurrentAbsInc = 0 Then 'if G91 was in effect before then return to it
 Code "G91"
 End If
 If CurrentGMode = 0 Then  'if G0 was in effect before then return to it
 Code "G0"
 End If
 Exit Sub 

The main issue is that GetVar(2002) always returns "0" regardless of where the probe touched.
Also, I hard-coded the plate thickness, since GetUserDRO(1151) also always returned "0" (I entered the thickness in both of the "Gage (sic) Block Height" DROs in the Offsets tab -- why are there two anyway?)

Any help is greatly appreciated.

General Mach Discussion / JNC-40M configuration?
« on: June 20, 2012, 10:16:10 PM »
Hey all,
I just received my first CNC machine, a JCUT 6090, with a JNC-40M (USB) board. The instructions that come with it are less than clear  ;)
If any of you are running this same (or similar) setup, would you be willing to help a fellow out with some configuration (like pins and Ports)?

Pages: 1