Output Format

The NC output format is configured in the "output_format" ASCII file.


/usr/weber/post_formats/post_name/output_format


The NC output format is based on the letter addresses present in most NC machines.

The output format file starts with the following lines:


tape output:     ASCII-NON       end of block= 10


To get carriage return line feeds at the end of each block set the end of block= 13,10

A sample word address format list for a Fanuc 10M is:

Block number: letter= N format= 4   leading
Preparatory codes: letter= G format= 2 modal leading
Feed word: letter= F format= 4.4/5.3 modal decimal
Miscellaneous codes: letter= M format= 2 modal  
Tool word: letter= T format= 2 modal leading
Length comp word: letter= H format= 2 modal leading
Diameter comp word: letter= D format= 2 modal leading
Peck word: letter= Q format= 4.4/5.3 modal decimal
Dwell word: letter= P format= 5.3/5.3 modal decimal
Speed word: letter= S format= 8 modal decimal
X word: letter= X format= 4.4/5.3 modal decimal
Y word: letter= Y format= 4.4/5.3 modal decimal
Z word: letter= Z format= 4.4/5.3 modal decimal
I word: letter= I format= 4.4/5.3 modal decimal
J word: letter= J format= 4.4/5.3 modal decimal
K word: letter= K format= 4.4/5.3 modal decimal
R word: letter= R format= 4.4/5.3 modal decimal
A word: letter= A format= 4.4/5.3 modal decimal
B word: letter= B format= 4.4/5.3 modal decimal
C word: letter= C format= 4.4/5.3 modal decimal
U word: letter= U format= 4.4/5.3 modal decimal
V word: letter= V format= 4.4/5.3 modal decimal
W word: letter= W format= 4.4/5.3 modal decimal
L word: letter= L format= 4 modal decimal
Param0: letter= p map= P format= 5 modal decimal
Param1: letter =a map =A format= 4.4/5.3 modal decimal
Param2: letter= b map= B format= 4.4/5.3 modal decimal
Param3: letter= c map= C format= 4.4/5.3 modal decimal
Param4: letter= d map= D format= 4.4/5.3 modal decimal
Param5: letter= e map= E format= 4.4/5.3 modal decimal
Param6: letter= f map= F format= 4.4/5.3 modal decimal
Param7: letter= g map= G format= 4.4/5.3 modal decimal
Param8: letter= h map= H format= 4.4/5.3 modal decimal
Param9: letter= i map= I format= 4.4/5.3 modal decimal
    .
    .
    .
Param25: letter= z map= Z format= 4.4/5.3 modal decimal

Each letter address has its own entry line.    Some letter addresses are given common names.    The common names are fixed and correspond to the functions on a standard machine.    Standard is defined as a fanuc.

Each capital letter is reserved its own word address. In 4.4 = 4 places before decimal, 4 places after the decimal in inch;
5.3 = 5 places before decimal, 3 places after the decimal in metric;

modal (means that the x words are modal and do not need to be output when repeated)
decimal (output is in decimal format, e.g., X-25.34 )
  
Instead of decimal we could have:
leading Leading zeros. (for example X-002534)
trailing Trailing zeros. (for example X-253400)
  
In addition to the output format the following commands may appear at the end of a line:
plus Forces the output of + signs (X+25.34, X+253400)
invert Changes the sign from + to - and vice versa.    All x values will be reversed in sign.
pt_zero Forces " X5.0 " instead of just " X5. "
no_pt Forces " X5 " instead of " X5. "
zero_pt Forces " X0.5 " instead of just " X.5 "
full_field Forces full field " X002.0000 ", or " X0020000 "

For example:
X word: letter= X format= 4.4/5.3 modal trailing plus invert will output
X= 3.25 as ( X -32500 )
and
X= -.375 as ( X +3750 )
and X word: letter= X format= 4.4/5.3 modal decimal zero_pt will output
x= .352 as ( X0.352 )


Each letter address has a System Variable associated with it.    The associations are as follows:


Feed word --> Feed
Tool word --> Tool_num
Length comp word --> Length_comp
Diameter comp word --> Dia_comp
Peck word --> Peck
Dwell word --> Dwell
Speed word --> Speed
X word --> X
Y word --> Y
Z word --> Z
(etc)


A letter may only appear once on the list.    By changing the letter it is possible to reassign the System Variables to different word addresses.    For example, if on your machine the dwell is specified by a Q letter address; change the letter on the dwell word to Q.    Like this:


Dwell word:      letter= Q      format= 5.3/5.3      modal      decimal


The letter Q cannot then be used elsewhere.

Only a single character may be specified for the letter address.    On a NC control which requires multi-character address words we can map a letter into a character sequence.    For example, on a GE-2000 control the dwell is specified by including P3= 0.5 in the canned cycle block.    To accomplish this with TurboPost map the P into P3= .    Like this:

Dwell word:      letter= P      map= P3      format= 5.3/5.3      modal      decimal


The command map= will map the P letter into the character sequence P3=.


CIRCULAR INTERPOLATION

The method of circular interpolation is configured in the "output_format" file.

# CENTER TYPE
# A ABSOLUTE CENTER OF CIRCLE
# B SIGNED INCREMENTAL STARTPOINT TO CENTER
# C SIGNED INCREMENTAL CENTER TO STARTPOINT
# D UNSIGNED INCREMENTAL CENTER TO STARTPOINT
# E RADIUS PROGRAMMING

circle switches: center type= B

The line above configures the I and J components of the circular interpolation block to be signed incremental from start point to center.    If quadrant points were required we would specify as:


circle switches: quadrant center type= B


Some machines cannot cut more than 180 degrees of arc, for these machines:

circle switches: semi center type= B
circle switches: semi center type= E


The command semi is required because in radius programming it is not possible to cut a full 360 degrees of arc.    And make sure to change the block format to:

For radius programming:

CIRCLE_CW: gcode= 2 feed std blk= N*G*X*Y*R*F
CIRCLE_CCW: gcode= 3 feed std blk= N*G*X*Y*R*F


circle switches: max radius
circle switches: min radius


Some machines have a limit on how large a radius they can cut (or small).    Set the max radius= to the limit and anything larger than that limit will be cut with linear moves.


circle switches: force_full center type= B


This will force all words on circular interpolation blocks


circle switches: force_xy center type= B


This will force the X and Y on all circular interpolation blocks ( Treat them as being non modal )


circle switches: force_xz center type= B


This will force the X and Z on all circular interpolation blocks when in the XZ plane.



circle switches: force_ij center type= B


This will force the I and J on all circular interpolation blocks.


circle switches: force_ik center type= B


This will force the I and K on all circular interpolation blocks.


circle switches: forceg center type= B


This will force the G2 or G3 on all circular interpolation blocks.