What's new
What's new

please, VETF* equivalent for mills ?

deadlykitten

Banned
Joined
Aug 5, 2016
hello guys, please, does someone know a system variable that will :
... return 0 in this case :
.... VC1 = custom
.... G56 HA

... return HA in this case :
.... G56 HA
.... VC1 = custom


thank you :)
 
hy Mtndew / no, VZOF* is related to G15 :)

i am looking for the possibility to read active tool Z_offset, that should be 0 before G56 and Z_offset after G56

i looked a few times over the list of system variables, but nothing so far ...
 
I get it now, you want to read the ACTIVE tool Z offset

yes, i should have said active tool (z) offset :) my english, sorry :)

If this doesn't work for you, I'm out of ideas lol

VHCOD delivers :
... 0 if located before G56
... delivers 10001, 10002, etc, thus not the offset_value, but the offset_link

using VHCOD to deliver active_offset requires also VTOHT inside a conditional code, because arg2 must be <>0 in VTOHT [ arg1, arg2 ]

Code:
    IF [ VHCOD EQ 0 ] N1
                 GOTO N2


      N1 VC1 = 0
         GOTO N3


      N2 VC1 = VTOHT [ VTLCN , VHCOD ] ( or VTOFH [ VTLCN ] )
         GOTO N3


      N3

thus it works, but is too much code :)

i could put it inside a soubroutine, etc, but i am looking for a simple variable ... thank you Mtndew :)
 








 
Back
Top