Autoleveling

CAD/CAM software
Odpovědět
kuba120
Příspěvky: 31
Registrován: 12. 11. 2016, 10:26

4. 3. 2020, 8:19

Používám na ovládaní CNC Armote chtěl bych frézovat DPS je nějaká možnost autolevelingu.
Dawe
Příspěvky: 741
Registrován: 8. 10. 2013, 6:18

4. 3. 2020, 8:33

Jasne.

Pomuze napr. utilita Autoleveller ktera funguje jako postprocessor, kterym zpracujes uz vyexportovany etch file s gravirovanim (vygenerovany napr. z Eaglu).
Link zde.
Ta utiita udela dve veci -
1) prida na zacatek proceduru mapovani vysky Z. Tim se vytvori (po castech linearni) mapa offsetu povrchu v ose Z.
2) zmeni vsechny Z souradnice v G-kodu z konstant na vypoctitavane korigovane hodnoty na zaklade zjisteneho offsetu z mapovani.
Nastavit si muzes hustotu rastru ukterym tu vysku Z chces namapovat a par dalsich parametru. Sonda staci primitivni v podobe dvou krokodylku. Jeden cvaknes pro mapovani na nastroj, druhy na povrch PCB. Nechas otukat, sundas to a dal se graviruje s korekci Z. Trva to par desitek sekund.

Exitujou i jine metody, ale tahle je fakt snadna a univerzalni.

edit:
Utilila umi taky vykreslit jiz zmapovany povrch ve 3D ve zvetsenem meritku osy Z, takvova vizualizace... ale v souvislosti s gravirovanim PCB spis jen pro zajimavost.
3osa DIY frezka
TOS S28
5osa SkyfireCNC SVM2VMC
Prusa Mk3+MMU2
Markforged Mark2
kuba120
Příspěvky: 31
Registrován: 12. 11. 2016, 10:26

8. 3. 2020, 8:17

no jo ale jakou sondu použit pro Armote a ten program podporuje Mach3, LinuxCNC tak nevím ale vypadá to super to bych přesně potřeboval
Uživatelský avatar
robokop
Site Admin
Příspěvky: 17905
Registrován: 10. 7. 2006, 12:12
Bydliště: Praha
Kontaktovat uživatele:

8. 3. 2020, 8:20

Gravosaci maji svoji sondu
Nevim ale jak je to s tim skenovanim povrchu
Vsechna prava na chyby vyhrazena (E)
zverodoktor
Příspěvky: 1315
Registrován: 3. 6. 2007, 9:49
Bydliště: Bratislava

8. 3. 2020, 11:31

Ahoj,
funguje ten autolelveler na akékoľvek súbory, alebo iba na G-code na PLSP s Eagle?
Vcelku by sa mi niekedy hodilo napríklad pri gravírovaní do dreva korigovať nerovinnosť.
Ak sa niečo môže pokaziť, tak sa to aj pokazí...
Dawe
Příspěvky: 741
Registrován: 8. 10. 2013, 6:18

10. 3. 2020, 1:57

Nebudu predstirat ze znam Armote. Neznam.
Ale myslim ze Autoleveller s nastavenim G-code outputu pro Mach3 (je to v podstate volba postprocessoru) to generuje celkem standartni G kod. Myslim ze to pujde spustit s minimalni upravou na vetsine systemu, kde je funkcni nejaka sonda. Ale nejsem zadny G kod odbornik.

Dam sem dva useky vygenerovaneho kodu (jedno moje PCB) abyste to sami posoudili.
pozn.: a predtim jsem se prepsal. Interpolace zmapovaneho povrchu je bilinearni nikoliv po castech linearni.

Jinak jako vstup to basti asi jakykoliv smysluplny G-kod. Zkousel jsem export PCB z Eagle (PCB-gcode ULP) , export dwg ze Solidworksu, export PCB G code z Altium a dalsi).


Zacatek oddilu MAPOVANI:

Kód: Vybrat vše

(AutoLeveller, Version: 0.7.7, http://autoleveller.co.uk)
...
G21 (millimeters)
G90 (absolute distance mode, not incremental)

(begin initial probe and set Z to 0)
G0 X-70 Y2 Z0
G31 Z-10 F100
G92 Z0
G0 Z2
G31 Z-1 F50
G92 Z0
G0 Z2
G0 X-70 Y2
G31 Z-1 F100
#500=#2002
G0 Z2
G0 X-60 Y2
G31 Z-1 F100
#501=#2002
G0 Z2
G0 X-50 Y2
G31 Z-1 F100
#502=#2002
G0 Z2
G0 X-40 Y2
G31 Z-1 F100
#503=#2002
G0 Z2
G0 X-30 Y2
G31 Z-1 F100
#504=#2002
G0 Z2
G0 X-20 Y2
G31 Z-1 F100
#505=#2002
G0 Z2
G0 X-10 Y2
G31 Z-1 F100
#506=#2002
G0 Z2
G0 X0 Y2
G31 Z-1 F100
#507=#2002
G0 Z2
G0 X0 Y12.77778
G31 Z-1 F100
#515=#2002
G0 Z2
G0 X-10 Y12.77778
G31 Z-1 F100
#514=#2002
G0 Z2
G0 X-20 Y12.77778
G31 Z-1 F100
#513=#2002
G0 Z2
...
Konec mapovani, pauza pro odebrani sondy a zacatek GRAVIROVANI v upravenych souradnicich:

Kód: Vybrat vše

...
G0 Z2
G0 X-70 Y99
G31 Z-1 F100
#572=#2002
G0 Z2
G0 X-70 Y2 Z20
(Set S value to ensure Speed has a value otherwise the spindle will not start on an M3 command)
S20000

(The program will pause to allow the probe to be detached)
(press cycle start to resume from current line)
M0


(The original mill file is now rewritten with z depth replaced with a)
(bilinear interpolated value based on the initial probing)

(.../pcb-gcode-3.6.2.3/pcb-gcode.ulp)
(Copyright 2005 - 2012 by John Johnson)
(See readme.txt for licensing terms.)
(This file generated from the board:)
(.../Documents/eagle/6pack PCB/PCB left.brd)
(Current profile is .../pcb-gcode-3.6.2.3/profiles/mach.pp  )
(This file generated 2/28/2016 8:19:23 AM)
(Settings from pcb-machine.h)
(spindle on time = 1.0000)
(  Tool Size)
(0.2000  )
(spindle speed = 12000.0000)
(tool change at 0.0000  0.0000  5.0000  )
(feed rate xy = F800   )
(feed rate z  = F300   )
(Z Axis Settings)
(  High     Up        Down     Drill)
(5.0000  	4.0000  	-0.2000 	2.0000  )
(Settings from pcb-defaults.h)
(isolate min = 0.4000)
(isolate max = 0.4000)
(isolate step = 0.4000)
(Generated bottom outlines, bottom drill, )
(Unit of measure: mm)
(Metric Mode)
G21
(Absolute Coordinates)
G90
S12000
G0 Z5
G0 X0  Y0
M3
G4 P1
G0 Z4
G0 X-6.6636 Y14.063
#102=[#514+0.11925*#522-0.11925*#514]
#101=[#515+0.11925*#523-0.11925*#515]
#100=[#102+0.33364*#101-0.33364*#102]
G1 Z[#100 + -0.2]  F300
#102=[#514+0.09935*#522-0.09935*#514]
#101=[#515+0.09935*#523-0.09935*#515]
#100=[#102+0.3122*#101-0.3122*#102]
G1 X-6.878 Y13.8486 Z[#100 + -0.2]  F800
#102=[#514+0.08181*#522-0.08181*#514]
#101=[#515+0.08181*#523-0.08181*#515]
#100=[#102+0.28849*#101-0.28849*#102]
G1 X-7.1151 Y13.6595 Z[#100 + -0.2]
#102=[#514+0.06684*#522-0.06684*#514]
#101=[#515+0.06684*#523-0.06684*#515]
#100=[#102+0.26281*#101-0.26281*#102]
G1 X-7.3719 Y13.4982 Z[#100 + -0.2]
#102=[#514+0.05463*#522-0.05463*#514]
#101=[#515+0.05463*#523-0.05463*#515]
#100=[#102+0.23549*#101-0.23549*#102]
G1 X-7.6451 Y13.3666 Z[#100 + -0.2]
#102=[#514+0.04534*#522-0.04534*#514]
#101=[#515+0.04534*#523-0.04534*#515]
#100=[#102+0.20686*#101-0.20686*#102]
G1 X-7.9314 Y13.2664 Z[#100 + -0.2]
#102=[#514+0.03908*#522-0.03908*#514]
#101=[#515+0.03908*#523-0.03908*#515]
#100=[#102+0.1773*#101-0.1773*#102]
G1 X-8.227 Y13.199 Z[#100 + -0.2]
#102=[#514+0.03593*#522-0.03593*#514]
#101=[#515+0.03593*#523-0.03593*#515]
#100=[#102+0.14716*#101-0.14716*#102]
G1 X-8.5284 Y13.165 Z[#100 + -0.2]
#102=[#513+0.03593*#521-0.03593*#513]
#101=[#514+0.03593*#522-0.03593*#514]
#100=[#102+0.67684*#101-0.67684*#102]
G1 X-13.2316 Y13.165 Z[#100 + -0.2]
#102=[#513+0.03908*#521-0.03908*#513]
#101=[#514+0.03908*#522-0.03908*#514]
#100=[#102+0.6467*#101-0.6467*#102]
G1 X-13.533 Y13.199 Z[#100 + -0.2]
#102=[#513+0.04534*#521-0.04534*#513]
#101=[#514+0.04534*#522-0.04534*#514]
#100=[#102+0.61714*#101-0.61714*#102]
G1 X-13.8286 Y13.2664 Z[#100 + -0.2]
#102=[#513+0.05463*#521-0.05463*#513]
#101=[#514+0.05463*#522-0.05463*#514]
#100=[#102+0.58851*#101-0.58851*#102]
G1 X-14.1149 Y13.3666 Z[#100 + -0.2]
#102=[#513+0.06684*#521-0.06684*#513]
#101=[#514+0.06684*#522-0.06684*#514]
#100=[#102+0.56119*#101-0.56119*#102]
G1 X-14.3881 Y13.4982 Z[#100 + -0.2]
#102=[#513+0.08181*#521-0.08181*#513]
#101=[#514+0.08181*#522-0.08181*#514]
#100=[#102+0.53551*#101-0.53551*#102]
G1 X-14.6449 Y13.6595 Z[#100 + -0.2]
#102=[#513+0.09935*#521-0.09935*#513]
#101=[#514+0.09935*#522-0.09935*#514]
#100=[#102+0.5118*#101-0.5118*#102]
G1 X-14.882 Y13.8486 Z[#100 + -0.2]
#102=[#513+0.11925*#521-0.11925*#513]
#101=[#514+0.11925*#522-0.11925*#514]
#100=[#102+0.49036*#101-0.49036*#102]
G1 X-15.0964 Y14.063 Z[#100 + -0.2]
#102=[#513+0.14125*#521-0.14125*#513]
#101=[#514+0.14125*#522-0.14125*#514]
#100=[#102+0.47145*#101-0.47145*#102]
G1 X-15.2855 Y14.3001 Z[#100 + -0.2]
#102=[#513+0.16507*#521-0.16507*#513]
#101=[#514+0.16507*#522-0.16507*#514]
#100=[#102+0.45532*#101-0.45532*#102]
G1 X-15.4468 Y14.5569 Z[#100 + -0.2]
#102=[#513+0.1751*#521-0.1751*#513]
#101=[#514+0.1751*#522-0.1751*#514]
#100=[#102+0.45011*#101-0.45011*#102]
G1 X-15.4989 Y14.665 Z[#100 + -0.2]
#102=[#512+0.1751*#520-0.1751*#512]
#101=[#513+0.1751*#521-0.1751*#513]
#100=[#102+0.95011*#101-0.95011*#102]
G1 X-20.4989 Y14.665 Z[#100 + -0.2]
#102=[#512+0.1751*#520-0.1751*#512]
#101=[#513+0.1751*#521-0.1751*#513]
#100=[#102+0.45011*#101-0.45011*#102]
G1 X-25.4989 Y14.665 Z[#100 + -0.2]
#102=[#511+0.1751*#519-0.1751*#511]
#101=[#512+0.1751*#520-0.1751*#512]
#100=[#102+0.95011*#101-0.95011*#102]
G1 X-30.4989 Y14.665 Z[#100 + -0.2]
#102=[#511+0.1751*#519-0.1751*#511]
#101=[#512+0.1751*#520-0.1751*#512]
#100=[#102+0.93*#101-0.93*#102]
G1 X-30.7 Y14.665 Z[#100 + -0.2]
#102=[#503+0.71119*#511-0.71119*#503]
#101=[#504+0.71119*#512-0.71119*#504]
#100=[#102+0.93*#101-0.93*#102]
G1 X-30.7 Y9.665 Z[#100 + -0.2]
#102=[#503+0.48108*#511-0.48108*#503]
#101=[#504+0.48108*#512-0.48108*#504]
#100=[#102+0.93*#101-0.93*#102]
G1 X-30.7 Y7.185 Z[#100 + -0.2]
#102=[#504+0.48108*#512-0.48108*#504]
#101=[#505+0.48108*#513-0.48108*#505]
#100=[#102+0.09551*#101-0.09551*#102]
G1 X-29.0449 Y7.185 Z[#100 + -0.2]
#102=[#504+0.47852*#512-0.47852*#504]
#101=[#505+0.47852*#513-0.47852*#505]
#100=[#102+0.12*#101-0.12*#102]
Jestle jsem take pouzival utilitu G-code Ripper. Ta mela taky podobnou funkci autolevelleru. Ta byla vhodna spise pro vetsi zakriveni, jako gravirovani na povrch koule apod. Ale nic nebranilo ji pouzit i na PCB. Zkuste pohledat.
3osa DIY frezka
TOS S28
5osa SkyfireCNC SVM2VMC
Prusa Mk3+MMU2
Markforged Mark2
Odpovědět

Zpět na „Gravostar“