Dioda - un site pentru marii pasionati de electronica  
Toggle Content .:: Home :: Downloads :: Community Forums :: Register ::.
Toggle Content Meniu Principal
 HOME
 Home
 Search Web Continut Community
 Forum
 Members options
 News
 Surveys

Toggle Content Produs Random
0
PICOSCOPE 2105 - OSCILLOSCOPE, PEN TYPE
1.033,61Lei(-10 %)
930,25Lei

Toggle Content Mesaje Forum

Toggle Content Login

Welcome Anonymous

Nickname
Password

Membership:
Latest: Zoltan
New Today: 0
New Yesterday: 0
Overall: 898

People Online:
Members: 0
Visitors: 5
Total: 5
Who Is Where:
 Visitors:
01: Forum
02: Home
03: Home
04: Forum
05: Cauta Componenta

Staff Online:

No staff members are online!

Toggle Content Languages
English

Toggle Content Ultimile Imagini

Forum › CNC › CNC › Macro pentru setarea automata a inaltimii pe Z
Macro pentru setarea automata a inaltimii pe Z
Computer(ized) Numerical(ly) Control(led) - masini cu comanda program. Realizare practica masini precum, software pentru comanda masinilor si software CAD - CAM.
Post new topic   Reply to topic   Printer Friendly Page    Forum Index CNC

View previous topic :: View next topic  
Author Message
daniel



Joined: Feb 22, 2005
Posts: 130

PostPosted: 20/Jul/2007 12:52 pm    Post subject: Macro pentru setarea automata a inaltimii pe Z Reply with quote

in cazul in care folositi Mach3 pentru controlul CNC-ului iata 2 thread-uri de discutii in care veti gasi un macro pentru automatizarea operatiei de gasire a 0-ului pe Z.


www.artsoftcontrols.co...pic=2978.0

www.artsoftcontrols.co...pic=1346.0

de asemenea de interes este si MPG-ul Manual Pulse Generator -ul
www.homecnccontrol.com/support.htm
Back to top
View user's profile Visit poster's website Photo Gallery
daniel



Joined: Feb 22, 2005
Posts: 130

PostPosted: 22/Jul/2007 6:51 am    Post subject: Re: Macro pentru setarea automata a inaltimii pe Z Reply with quote

www.artsoftcontrols.co...ic=2136.20

Acest thread contine si o explicatie referitoare la configurarea pinului de Probe IN.
Back to top
View user's profile Visit poster's website Photo Gallery
daniel



Joined: Feb 22, 2005
Posts: 130

PostPosted: 22/Jul/2007 8:07 am    Post subject: Re: Macro pentru setarea automata a inaltimii pe Z Reply with quote

Oarecum off topic, un producator de Manual Pulse Generator (foarte util in pzitionarea manuala a uneltei aschietoare)
www.homecnccontrol.com/support.htm
Back to top
View user's profile Visit poster's website Photo Gallery
daniel



Joined: Feb 22, 2005
Posts: 130

PostPosted: 25/Jul/2007 11:14 am    Post subject: Re: Macro pentru setarea automata a inaltimii pe Z Reply with quote

Macro-ul de Mach3 se afla in ecranul : "program run" - "tool information" si este configurat la butonul "auto tool zero"

Pentru salvarea macro-ului pentru setarea automata a Z-ului se procedeaza in felul urmator :
1. In Mach3 se da click pe : Operator / Edit Button Script
2. Butonul "Auto Tool Button" va incepe sa clipeasca si dati click pe el
3. in fereastra care se deschide dati "Paste" la scriptul de mai jos si apoi salvati
4. pentru a fi siguri ca s-a salvat este uti sa mergeti la "View / Save Current Screen set"

Macro Exemplu 1 >
-----------------------------------
'Z zeroing macro by Scott Worden - Timber Lake Creations (and a little "Probe Var" tip from Brian ;-).
CurrentFeed = GetOemDRO(818) 'Get the current feedrate.
PlateThickness = GetUserDRO(1151) 'You could put your z-plate thickness here instead
ProbeFeed = GetUserDRO(1152) 'You could put a probing feedrate here instead.
Code "G90 F" &ProbeFeed
If GetOemLed (825)=0 Then
Code "G4 P5" 'Time to get to the z-plate
Code "G31Z-5 F" &ProbeFeed
While IsMoving()
Wend
Code "G4 P0.25"
ZProbePos = GetVar(2002)
Code "G0 Z" &ZProbePos
While IsMoving ()
Wend
Call SetDro (2, PlateThickness)
Code "G4 P0.5" 'Pause for Dro to update.
Code "G0 Z2.0" '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



MAcro Exemplu 2 >
------------------------------------
Code”G31 Z-100 F25” ’Down with Z
While IsMoving()
Wend
GetVar(2002)’Hit the probe
Call SetDRO(2,2.000)’Sets the probehigh
Code”G00 Z10.000"’Safehigh


Daca vreti sa modificati personal macro-ul puneti un G91 la inceput pentru a face miscarile incrementale.
Deasemenea puneti un G90 la sfarsit.
Back to top
View user's profile Visit poster's website Photo Gallery
daniel



Joined: Feb 22, 2005
Posts: 130

PostPosted: 25/Jul/2007 11:16 am    Post subject: Re: Macro pentru setarea automata a inaltimii pe Z Reply with quote

in config ports and pins se configureaza intrarea de probe.
Se va configura active low pentru a se opri atunci cand intrarea trece in 0.



config_probe.png
 Description:
 Filesize:  28.29 KB
 Viewed:  4578 Time(s)

config_probe.png

Back to top
View user's profile Visit poster's website Photo Gallery
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page    Forum Index CNC
Page 1 of 1
All times are GMT + 2 Hours



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Site-ul Dioda.ro este propietatea societatii Artirom PRO SRL - Cod Fiscal RO14235481 - Str. Bucegi Nr. 45 Sect 1 Bucuresti


You can syndicate our news using the file news.php or news2.php
Interactive software released under GNU GPL, Code Credits, Privacy Policy