Showing results for 
Search instead for 
Did you mean: 

CMDs explaining, reload,revise,restore

Gears Phenom Gears Phenom
Gears Phenom


Because sometimes I put "return" in them to work PP correctly,

can anyody explain these custom commands?



Whats their purpose and why should we to reverse something?


Additional questions:

PB_CMD_restore_kinematics - in what cases we can use it?

PB_CMD_reload_iks_parameters - is it reading kin parameters from simulation model ?

PB_CMD_revise_new_iks - and what about this?


Thank you for answers



#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: CMDs explaining, reload,revise,restore

Valued Contributor
Valued Contributor

Hi @Juraj,


I do not know anything about those, but curiosity made me look into that.


I don't know if you have already seen this, from ootb posts:

   # In case Axis Rotation has been set to "reverse"
   if { [CMD_EXIST PB_CMD_reverse_rotation_vector] } {

I think this one is related to: Normal, reversed



There is also this information:

proc PB_CMD_revert_dual_head_kin_vars { } {
# Only dual-head 5-axis mill posts will be affected by this
# command.
# This command reverts kinematic parameters for dual-head 5-axis
# mill posts to maintain compatibility and to allow the posts
# to run in UG/Post prior to NX3.
# Attributes of the 4th & 5th Addresses, their locations in
# the Master Word Sequence and all the Blocks that use these
# Addresses will be reconditioned with call to

Hope this helps


Re: CMDs explaining, reload,revise,restore

Gears Phenom Gears Phenom
Gears Phenom


so you think that parameter "reverse" axi direction from UI is connected with this cmd?



#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: CMDs explaining, reload,revise,restore

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

No they are not connected to any dialog item in NX.

In general the post builder commands include a brief description of their purpose.

If you get wrong results when you run the PP while a machine is loaded, you need to correct the kinematic model of the machine, since the kinematic is retrieved from the loaded machine.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.2, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 ( | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: CMDs explaining, reload,revise,restore

Gears Phenom Gears Phenom
Gears Phenom

hi Stefan I meant UI in Postbuilder - That cmd react on reversed rotary axis.


Ive read description in these cmd @dfdfgs

But I dot get why should be output reversed in case of head-head and so on...or it react on the check box "reversed" ? dont know


Anyway if anybody know how I can use other CMD  I mentioned  could you tell me about them something?

(if I can use them at all)

Now  I am just guessing...

#♫ PB, 5ax, itnc, nx, vericut ♫ #

Re: CMDs explaining, reload,revise,restore

Valued Contributor
Valued Contributor

Here is another information that I just found on the docs:



MOM commands for retrieving and adjusting rotary axis limits.


This command has been updated to include rotary axis soft limit values with the kinematic information of the machine.

The rotary axis soft limit values will be stored in the following MOM variables:


Lets you disable or enable the rotary axis limits in a Post Configurator postprocessor.


Post Configurator calls this command in the TCL procedure LIB_SPF_limit_output_angle to check and change the behavior for the output angle limits of a rotary axis.

This command will set the following MOM variables:




There is this doc page where we can get some information about PB_CMD_reload_iks_parameters here.


And there is also an interesting information about PB_CMD_revise_new_iks here:



The axis to be locked for the SET/LOCK UDE.  The post will convert the FOURTH and FIFTH parameters into the applicable rotary axis (A,B or C). For five axis machine tools with the fifth axis rotation method set to reverse, set mom_kin_rotary_axis_method to zero. To do this, uncomment the following line in the post builder custom PB_CMD_revise_new_iks file: set mom_kin_rotary_axis_method "ZERO"


I have used reload kinematics two times, after mom convert point function (I couldn't test if its really needed), and one time for changing arc output type on the fly, like full circle to linear, it didn't do linear moves without reloading kinematics. (Postconfigurator)


Lets hope someone do know these and helps us to understand more about them.


Learn online

Solution Information