05-16-2018 12:56 AM
chnage line number in output NC file
for ex.
by default post buider gives N0010 up to N9999
But i want to N1 to N(infinite)
Solved! Go to Solution.
05-16-2018 02:52 AM - edited 05-16-2018 02:53 AM
Hi
1. NC data definitions - Word - N address - set new format to 9 digits.
- set Maximum value to 999999999 (also it is 9 places)
2. NC data definitions - Other data elements - Sequence number maximum - set it to 999999999 (same)
It is not infinity
cheers
JB
05-16-2018 02:59 AM
05-16-2018 03:00 AM
do what I wrote and it will give you 999999999
05-16-2018 03:03 AM
05-16-2018 03:13 AM - edited 05-16-2018 03:14 AM
To sequence number - If you wan t you can create your own string address and in custom command calculate your sequence number and go more far then 999999999.(not sure)
To Separate files -
You can use postbuilder settings ass well. Otput settings - Other options - generate group output. And in spcialconditions it can automatically generate multiple separate nc files.
See also NX documentation.
There lots of threads about it. Just browse.
05-16-2018 03:47 AM
#Gears Phenom
i cant understand how to start with it
do you please explain????
05-16-2018 05:58 AM
as I said you can also do it with setting in postpbuilder
"generate group output" - mentioned in comment above.
https://docs.plm.automation.siemens.com/tdoc/nx/11.0.1/nx_help#uid:id1341987as
to threads in this forum, it is not so simple to describe it in few minutes.
you have to close file, delete it, open new one, reset sequence number, close in the end - and make it work as a loop with operations, or other logic. Each step is some procedure or function and if you dont know how to do it you have to spend more time with tcl and postbuilder. It is not solution on few clicks.
Read documentation and practise, open OOTB posts or post templates and read/check how "they" do it. Inspire with their programming, use their procedures.
05-16-2018 07:48 AM
First off in post builder you will have to define a new format, currently it is set to 4, 9 is the greatest value. To edit this, go to N/C Dat Definitionss tab from top row, then pick Word tab, scroll down toward bottom, select N.
Select New Format, enter Digit_9, arrow up until 9 is in box, Data Type Numeric, check Output Trailing Zeros. Pick OK.
Set Maximum Value to 999999999
Now hope your machine will not error out on such a large number.
Switch to Other Data Elements tab
Set Sequence Number Start to 1
Set Sequence Number Frequency to 1
This should set your output to start with N1 and go all they way to N999999999 before starting over at N1
To break up tape:
Program & Tool Path tab -> Custom Command tab -> Import
Browse for POSTBUILD\pblib\custom_command in NX structure
Import pb_cmd_tape_break.tcl and follow instructions.