Cancel
Showing results for 
Search instead for 
Did you mean: 

Quill (W) Correct Location

Valued Contributor
Valued Contributor

Hello.
I imported the cc (C:\Program Files\Siemens\NX 9.0\POSTBUILD\pblib\custom_command\pb_cmd_zw_axis.tcl) and followed all the instructions...

Currently having trouble outputting the correct quill activation line…? Any ideas?


BAD CODE
T1 M6
()
G20 G80 G40 G49 G17 G90 G94 G98
G0 W-10. (NO GOOD)
( ============================== )
( OPERATION: DRILL_CRAZINESS )
( TOOL: T1_DRILLING_MADNESS )
( ============================== )
S505 M3
M8
G0 G90 G94 X-1.5 Y17.5 B-45. C0.0
G43 Z46. H01
Z26.1181
...
...

GOOD CODE T1 M6 () G20 G80 G40 G49 G17 G90 G94 G98 ( ============================== ) ( OPERATION: DRILL_CRAZINESS ) ( TOOL: T1_DRILLING_MADNESS ) ( ============================== ) S505 M3 M8 G0 G90 G94 X-1.5 Y17.5 B-45. C0.0 G0 W-10. (GOOD) G43 Z46. H01 Z26.1181 ... ...


cc explanation

    #  This procedure will be executed automatically at the start of program
    #  and anytime it is loaded as a slave post of a linked post.
    #
    #  You will need to add the following line (without the #) to the top of
    #  the custom command PB_CMD_before_motion.
    #
    #PB_CMD_zw_before_motion
    #
    #  In the Data Definitions tab, you will need to create a block template.
    #  Select the auxfun block and select create.  Right click on the ausfun_1
    #  block and select rename.  Name the new block zaxis_move.  Move the
    #  cursor to the window and right click on any empty space.  Now delete
    #  all elements.  From the pulldown dialog select G_motion.
    #  Select G00 - Rapid Move from list of codes.  Add the word to the block.
    #  From the pulldown dialog select Z.  Select User Defined Expression from
    #  the list.  Add the word to the block.  Enter $mom_sys_zaxis_pos in the
    #  dialog.
    #
    
    #  This procedure can be used to initialize a machine tool that has
    #  parallel Z and W axes.  The leader for the Z axis is changed from
    #  Z to W and W to Z as needed.  The Z or W mode may be changed by
    #  adding a PB_CMD_set_mode_zaxis or PB_CMD_set_mode_waxis to any
    #  event marker.  The UDE's SET/MODE,ZAXIS or SET/MODE,WAXIS may also
    #  be added to the toolpath to change mode.  The UDE's SET/ZAXIS,z
    #  and SET/WAXIS,w may be used to position the Z or W axis directly.
    #
    #  The Z and W axis may not be output in the same block.
    #
    #  ZW Parameters


     
    
    Kal.

NX 9.0.3.4 MP12 | PB 9.0.3.2 | NX11.0.2.7 MP7 | VERICUT 7.3.4 + 8.1.5

Learn online





Solution Information