Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

brian_p1
983 Vistas, 5 Respuestas

Post Variable Question

Hi,

 

I'm wanting to write a post variable for calling sub program on siemens control, I only need the sub program name to be called how do I code it to return the wording entered in the post variable comment to be added to the nc code?

 

SUB_VARIABLE.jpg

; 8 8MM ENDMILL
; 10 6MM SPOT
; 11 6MM CHAMFER GARR
; 12 12MM ENDMILL 3FL
; 14 2.8MM CBD
; 15 M3 ROLL TAP
; 18 4MM BALLNOSE

CYCLE800()
G00 G53 Z610 D0
D1
G00 G53 X-300. Y220.0
G00 G53 B0.0 C0.0

 

PROBE_TOP...............WORDING FROM POST VARIABLE

 

; SETUP1: BOSS ROUGH1 BOSS1 B0. C0.

G55 G17 G40 G71 G90
T="12MM ENDMILL 3FL"

 

 

<IF>[eq(<PVAR:CALL_SUB_PROGRAM>," ............. ")]<THEN>

 

Thanks