hello everyone!
i'm working on a hermle c-30 heidenhain control and i would like to set datum automaticly using a program (i would like to be at a certain coordinate and "save" it in the preset table- the values of x,y,z,c,a)
can anyone help me
hello everyone!
i'm working on a hermle c-30 heidenhain control and i would like to set datum automaticly using a program (i would like to be at a certain coordinate and "save" it in the preset table- the values of x,y,z,c,a)
can anyone help me
Hi,
Check the SYSREAD (ID270) and then SYSWRITE (ID 503)
You can read the axis values and then writen them to the PRESET table.
Fairly easy function. (you need to enter the CODE NUMBET 555343 to get the SYSWRITE functions available. Everything is in the normal user manual.
Jukka
thank you for answering i found that on the manual , but could you post an example on how i write it in the program i would like to be in a certain position and read and write the coordinates in a different home number how do i do it?
Hi,
Here is an example:
0 BEGIN PGM test MM
1 FN 18: SYSREAD Q1 = ID270 NR1 IDX1 ; Read X-axis position
2 FN 18: SYSREAD Q2 = ID270 NR1 IDX2 ; Read Y-axis position
3 FN 17: SYSWRITE ID 503 NR10 IDX1 =+Q1
4 FN 17: SYSWRITE ID 503 NR10 IDX2 =+Q2
5 END PGM test MM
It reads the position of the X- and Y-axes and writes them to PRESET table at line 10.
Fairly easy, don't you think?
Jukka
thank you very much you helped me a lot.
have a nice day
Hello to all. Got a question about programming peck drill cycle. Is it possible to fully retract drill out of a hole if i start to drill in pre-drilled hole? Start is set at-30mm(pilot hole depth) and goes to final depth -100mm.
Hello Jukka,
I would like to set the q values that i defined to preset 0. In other words, these values at the beginning of the g-code will automatically take the vise top point + z stock value. What do you think about this code?
BLK FORM 0.1 Z X-25 Y-25 Z-50
BLK FORM 0.2 X25 Y25 Z0
; STOCK: - LENGHT:50 - WIDE:50 - HEIGHT:50
;----------------------------
Q50 = 0 ; PRESET 0
Q71 = 50 ; X STOCK
Q72 = 50 ; Y STOCK
Q73 = 50 ; Z STOCK
;----------------------------
FN 18: SYSREAD Q1601 = ID507 NRQ50 IDX1 ; This present Vise top X zero coordinate
FN 18: SYSREAD Q1602 = ID507 NRQ50 IDX2 ; This present Vise top Y zero coordinate
FN 18: SYSREAD Q1603 = ID507 NRQ50 IDX3 ; This present Vise top Z zero coordinate
FN 1: Q1604 = Q1603 + Q73 ; Vise Top + Z Stock
FN 18: SYSREAD Q1604 = ID507 NRQ50 IDX3 ; Record Vise Top + Z Stock to Q1604
FN 17: SYSWRITE ID 507 NRQ50 IDX1 =+Q1601
FN 17: SYSWRITE ID 507 NRQ50 IDX2 =+Q1602
FN 17: SYSWRITE ID 507 NRQ50 IDX3 =+Q1604
;----------------------------
Thanks,