hitech mach 3 autotool zero työkalu

Aloittaja Nasty, 28.06.15 - klo:20:41

« edellinen - seuraava »

0 Jäsenet ja 1 Vieras katselee tätä aihetta.

Nasty

Melko helppo homma tehdä auto tool zero työkalu.
Meinas vaan tuottaa ihmetystä kun ohjelman lopuksi auto script ajeli terää alaspäin.
Aussin scripti oletti että ollaan absoluutisessa koodissa ja koodin lopussa mach vaihto incrementaalliin. Purkka pakentilla korjattu scriptiin lisättiin rivi jossa menkää absoluuttisella kordinaatistolla ja homma toimii.
tässä scripti. Ps kaivelin googlella mach1024 ruutu setin johon joku oli lisänyt tuon thickness kentän joten helppo asetella mitta levyn paksuus kohdilleen.

Koodi
Lisäsin seuraavan rivin jotta koodi menee aina absolut modessa.
Code "G90"
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 P5" ' this delay gives me time to get from computer to hold probe in place
Code "G31Z-40 F500" 'probing move, can set the feed rate here as well as how far to move
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 Z25.4" 'put the Z retract height you want here
Code "(Z axis is now zeroed)" 'puts this message in the status bar
Else
Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
Exit Sub
End If

Nasty

#1
Kaverin pyynnöstä väsäsin mach3 ruutu setin jossa mitta alustan arvon voi suoraan antaa ruudulle ja lisäsin merkki ledin siihen samaan kasaan jolla voi testaa proben piuhotus että varmaan toimii ennen kuin aletaan ajamaan auto z koodia.
liitteenä kuva screensetistä ja itse screensetti.

ääh laitoin kylmän viileesti ton mach 3 ruutu set filun jpg niin sain upattua tänne. eli nimeä se ei kuva tiedosto set päätteeksi niin toimii kunhan pudottaa mach3 kansioon
Ps Led seuraa mach3 1 portin probe pinniä
Käyttö omalla vastuulla.

Powered by EzPortal
SMF spam blocked by CleanTalk