Hello Guest it is September 18, 2019, 09:31:48 PM

Author Topic: Input pin and Zero Plate  (Read 3507 times)

0 Members and 1 Guest are viewing this topic.

Input pin and Zero Plate
« on: August 28, 2011, 11:14:05 PM »
Hi. I'm setting up a zero plate and I am having a hard time getting my head around the process.
I have edited the Auto Tool Zero button script by copy/pasting script from another post. I made the plate and wired it to my G540 pin 13. My question...How does the vb script in Auto Tool Zero button know I'm using pin 13 for my touch plate? This is the script I'm using:

 CurrentFeed = GetOemDRO(818) 'Get the current feedrate.
PlateThickness =0.059
ProbeFeed = 5

Code "G90 F" &ProbeFeed

If GetOemLed (825)=0 Then
Code "G4 P2" 'Time to get to the z-plate
Code "G31Z-5 F" &ProbeFeed
Code "G4 P0.25"
While IsMoving()
Sleep(100)
Wend
ZProbePos = GetVar(2002)
Code "G0 Z" &ZProbePos
While IsMoving ()
Sleep(100)
Wend
Call SetDro (2, PlateThickness)
Sleep(100)
Code "G4 P0.5" 'Pause for Dro to update.
Code "G0 Z0.25" 'Change the Z retract height here
Code "(Z axis is now zeroed)"
Code "F" &CurrentFeed
Else
Code "(Z-Plate is grounded, check connection and try again)"
Exit Sub
End If


Thks 

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Input pin and Zero Plate
« Reply #1 on: August 29, 2011, 03:29:16 AM »
You have told Mach that the probe is connected to that pin so thats where it looks :)

Hood
Re: Input pin and Zero Plate
« Reply #2 on: August 29, 2011, 10:02:36 AM »
So I set the "Probe" signal to pin 13 not "Input#4"?

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Input pin and Zero Plate
« Reply #3 on: August 29, 2011, 10:07:34 AM »
I would think so, why do you think it would be Input 4 you would use?

Hood
Re: Input pin and Zero Plate
« Reply #4 on: August 29, 2011, 10:27:25 AM »
Because I thought Probe was for a Digitizing Probe and Input #4 was my next (last) available input. Thanks for clearing that up for me.

Offline BR549

*
  •  6,892 6,892
    • View Profile
Re: Input pin and Zero Plate
« Reply #5 on: August 29, 2011, 11:00:34 AM »
For a newbie the verbage we normally use is NOT intuitive to them .

IE::   IF it is an input device then I should use an input# right ????

Just a thought(;-) TP

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Input pin and Zero Plate
« Reply #6 on: August 29, 2011, 11:12:58 AM »
Because I thought Probe was for a Digitizing Probe and Input #4 was my next (last) available input. Thanks for clearing that up for me.

Ah ok, just wasnt sure if there was a specific reason you were using Input 4 but seems no. As Terry says things can be confusing for a start but hopefully you are on the right track now :)
Hood
Re: Input pin and Zero Plate
« Reply #7 on: August 29, 2011, 06:31:32 PM »
For a newbie the verbage we normally use is NOT intuitive to them .

IE::   IF it is an input device then I should use an input# right ????

Just a thought(;-) TP

This is true BR549...especially when the "Probe" input is labelled "Digitize" on the Diagnostic page. But, with Hood's help, I got my touch off plate to work. Thanks guys.

Offline BR549

*
  •  6,892 6,892
    • View Profile
Re: Input pin and Zero Plate
« Reply #8 on: August 29, 2011, 07:46:40 PM »
Good Job Guys, (;-) TP