cancel
Showing results for 
Search instead for 
Did you mean: 

Post Configurator - empty row

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Hi I need help.

Quite very simple task, but I don't know how to do it:

I try to output empty row to NC code.

I'm making new postprocessor for sinumerik. I tried plenty of thigs but no success.

I tried to output simple MOM_output_literal "    ", but it not appear in output.

I tried to set block template with empty paramater.

I tried to do it via buffer.

I tried to output some "end line" character

But no seccess. There must be at least one character to see the output in NC kode.

But I know it is possible, some Fanuc sample PC postprocessor can output empty row. But I didn't find how.

Thanks

Vavrusa Ondrej
NX10.0.3
NX11.0.x testing
4 REPLIES

Re: Post Configurator - empty row

Esteemed Contributor
Esteemed Contributor
MOM_output_text " "

This will work to output an empty line in the NC code, since output literal is trimming leading and trailing white space and skips empty lines.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX11.0 EAP, NX12.0 EAP

How to Get the Most from Your Signature in the Community

Re: Post Configurator - empty row

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Thanks a lot,
I used to do it by MOM_output_literal in postbuilder and it worked (but must be set more spaces in command).

Vavrusa Ondrej
NX10.0.3
NX11.0.x testing

Re: Post Configurator - empty row

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

Hi,

 

as Stefan write the MOM_output_text is the solution. My post coming just a few minutes too late but if you like you can also try the other possible solutions. Just copy the proc's in your file and for the Blocktemplate version please copy the template in the def-file and see what happens Smiley Happy.

 

proc MOM_start_of_path_LIB_ENTRY {position} {
switch $position {
"start" {EmptyRow}
"end" { }
}

}

proc EmptyRow {} {
MOM_output_literal ";---> empty row with sequence number"
MOM_output_literal " "
MOM_output_literal ";---> empty row without sequence number ---> use MOM_output_text"
MOM_output_text " "
MOM_output_literal ";---> empty row without sequence number and Blocktemplate"
MOM_set_seq_off
MOM_force_block Once empty_row
MOM_do_template empty_row
MOM_set_seq_on
MOM_output_literal ";---> using MOM_output_literal with NEWLINE"
MOM_output_literal "NEWLINE"
}

 

BLOCK_TEMPLATE empty_row
{
Text[NEWLINE]
}

 

The big disadvantage of the "NEWLINE" is an issue with machine code simulation, so output is only correct when posting.

 

So the recommendation is: MOM_output_text.

 

Best regards

Thomas

Re: Post Configurator - empty row

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

Thanks for an example. Not sure ...should be output like this:

************************************************************ 

N10 SPEED1=18000 FEED1=16200.
N15 ;---> empty row with sequence number
N20
N25 ;---> empty row without sequence number ---> use MOM_output_text

 

N30 ;---> empty row without sequence number and Blocktemplate

 

 

 

N45 T1="T01003_OLD"

************************************************************

 

The main problem was, I used what I use in postbuilder. So I expected the same behaviour.

I looked for problem in different area.

Yes, it was quite silly question from me , but I had no idea, what should I try :-) .

Thanks for help.

 

Vavrusa Ondrej
NX10.0.3
NX11.0.x testing

Learn online





Solution Information