On 29.11.2012 11:38, andy pugh wrote:
> On 29 November 2012 10:09, Z. Maciej "Miki" Bajkowski <ad...@wiarus.org> 
> wrote:
>
>> Are you planning to enter the import of data from a file to NGCGUI?
>>
I miss the import of the NGCGUI operation of multiple subroutines. I can 
save myself, and frequently used, but I can not edit.

Refine:

I used two times your subroutine. I used Ctrl-S. I received a file:

(ngcgui: FEATURE 121129:12.16.29)
(ngcgui: files: 
</home/miki/linuxcnc/nc_files/ngcgui_lib/lathe/lathe_std.ngc 
../../../nc_files/ngcgui_lib/lathe/toczenie.ngc >)
(ngcgui: feature line added) #<_feature:> = 0
(ngcgui: preamble file: 
/home/miki/linuxcnc/nc_files/ngcgui_lib/lathe/lathe_std.ngc)
g18 (xz plane)
g21 (inches)
g40 (cancel cutter radius compensation)
g49 (cancel tool lengthoffset)
g90 (absolute distance mode)
g94 (units/min feedrate)
g54 (Coordinate system 1 default)
#<tol> = 0.001
g64 p#<tol> (path control stop)
(ngcgui: Wywołaj plik procedury: 
../../../nc_files/ngcgui_lib/lathe/toczenie.ngc)
(ngcgui: positional parameters:)
( #1 = czolo = 6)
( #2 = posuw_czolo = 40)
( #3 = stozek = 0)
( #4 = korekta = 0)
( #5 = kat_stozka = 0)
( #6 = sr_pocz = 50)
( #7 = sr_koncowa = 30)
( #8 = z_pocz = -10)
( #9 = z_koncowe = 0)
( #10 = przybranie_materialu = 2)
( #11 = posuw = 150)
( #12 = ostatnia_warstwa = 0)
( #13 = posuw_koncowy = 100)
( #14 = podciecie = 0)
( #15 = szerokosc_fazki = 0)
( #16 = glebokosc_fazki = 0)
( #17 = promien_fazki = 0)
( #18 = wkleslosc_fazki = 0)
( #19 = szerokosc_fazki_2 = 0)
( #20 = glebokosc_fazki_2 = 0)
( #21 = promien_fazki_2 = 0)
( #22 = wkleslosc_fazki_2 = 0)
( #23 = skos_z_p = 0)
( #24 = skos_z_k = 0)
( #25 = odjazd_z_k = 99)
( #26 = odjazd_x_k = 99)
( #27 = pomijaj = 0)
( #28 = pomijaj_czolo = 0)
( #29 = pomijaj_faza = 0)
( #30 = pomijaj_faza = 0)
( #31 = odjazd_z = 1)
( #32 = odjazd_x = 2)
( #33 = noz_wstepny = 1)
( #34 = noz_czolo = 0)
( #35 = noz_koncowy = 0)
( #36 = noz_fazki = 0)
( #37 = noz_fazki_2 = 0)
( #38 = woda = 8)
( #39 = g5x = 54)
( #40 = m = 3)
( #41 = rpm = 720)
( #42 = max_rpm = 1500)
o<toczenie> call 
[6][40][0][0][0][50][30][-10][0][2][150][0][100][0][0][0][0][0][0][0][0][0][0][0][99][99][0][0][0][0][1][2][1][0][0][0][0][8][54][3][720][1500]
(ngcgui: FEATURE 121129:12.16.29)
(ngcgui: files: 
</home/miki/linuxcnc/nc_files/ngcgui_lib/lathe/lathe_std.ngc 
../../../nc_files/ngcgui_lib/lathe/toczenie.ngc >)
(ngcgui: feature line added) #<_feature:> = 1
(ngcgui: preamble file: 
/home/miki/linuxcnc/nc_files/ngcgui_lib/lathe/lathe_std.ngc)
g18 (xz plane)
g21 (inches)
g40 (cancel cutter radius compensation)
g49 (cancel tool lengthoffset)
g90 (absolute distance mode)
g94 (units/min feedrate)
g54 (Coordinate system 1 default)
#<tol> = 0.001
g64 p#<tol> (path control stop)
(ngcgui: Wywołaj plik procedury: 
../../../nc_files/ngcgui_lib/lathe/toczenie.ngc)
(ngcgui: positional parameters:)
( #1 = czolo = 0)
( #2 = posuw_czolo = 40)
( #3 = stozek = 0)
( #4 = korekta = 0)
( #5 = kat_stozka = 0)
( #6 = sr_pocz = 30)
( #7 = sr_koncowa = 20)
( #8 = z_pocz = -10)
( #9 = z_koncowe = -5)
( #10 = przybranie_materialu = 2)
( #11 = posuw = 150)
( #12 = ostatnia_warstwa = 0)
( #13 = posuw_koncowy = 100)
( #14 = podciecie = 0)
( #15 = szerokosc_fazki = 5)
( #16 = glebokosc_fazki = 5)
( #17 = promien_fazki = 5)
( #18 = wkleslosc_fazki = 0)
( #19 = szerokosc_fazki_2 = 0)
( #20 = glebokosc_fazki_2 = 0)
( #21 = promien_fazki_2 = 0)
( #22 = wkleslosc_fazki_2 = 0)
( #23 = skos_z_p = 0)
( #24 = skos_z_k = 0)
( #25 = odjazd_z_k = 99)
( #26 = odjazd_x_k = 99)
( #27 = pomijaj = 0)
( #28 = pomijaj_czolo = 0)
( #29 = pomijaj_faza = 0)
( #30 = pomijaj_faza = 0)
( #31 = odjazd_z = 1)
( #32 = odjazd_x = 1)
( #33 = noz_wstepny = 0)
( #34 = noz_czolo = 0)
( #35 = noz_koncowy = 0)
( #36 = noz_fazki = 0)
( #37 = noz_fazki_2 = 0)
( #38 = woda = 8)
( #39 = g5x = 54)
( #40 = m = 3)
( #41 = rpm = 720)
( #42 = max_rpm = 1500)
o<toczenie> call 
[0][40][0][0][0][30][20][-10][-5][2][150][0][100][0][5][5][5][0][0][0][0][0][0][0][99][99][0][0][0][0][1][1][0][0][0][0][0][8][54][3][720][1500]
(ngcgui: m2 line added) m2 (g54 activated)



This file can be loaded into LinuxCNC using the key O.

I would like to automatically load the NGCGUI and to create two editable 
bookmarks filled with the data from the file tab.

tab Toczenie

o<toczenie> call 
[6][40][0][0][0][50][30][-10][0][2][150][0][100][0][0][0][0][0][0][0][0][0][0][0][99][99][0][0][0][0][1][2][1][0][0][0][0][8][54][3][720][1500]

tab Toczenie-1

o<toczenie> call 
[0][40][0][0][0][30][20][-10][-5][2][150][0][100][0][5][5][5][0][0][0][0][0][0][0][99][99][0][0][0][0][1][1][0][0][0][0][0][8][54][3][720][1500]
(ngcgui: m2 line added) m2 (g54 activated)

Regards

Miki

------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. http://goparallel.sourceforge.net
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to