As Post reads each segment from the part data file, it determine whether the segment is:
Using this information, Post outputs the appropriate block (that is, Program Start, Tool Change, or Segment Start) before executing segment data. Only one of these three program formats is used at the beginning of any one segment.
Program Start
Post outputs the lines defined in the Program Start format at the beginning of the program. In Program Start, general preparatory functions are placed to define the dimensional system, absolute, or incremental modes, and so on. In this block X and Y start locations (G92) must also be preset. Other functions, such as machine constants can be passed to the Post output as well as the first positioning move using the <X-COORD> and <Y-COORD> reserved words.
Segment Start
A Segment Start is output between segments. Segment Start should contain any commands that may change between segments such as UPPER ARM POS, AD TABLE HT, and parameters P1 through P9, for example:
N<SEQ>{E<ARM-POS>Z01}<EOB> N<SEQ>{E<AWTH>Z02}<EOB>
or
<IF><STOP><THEN>M00 <ENDIF
( = output of program stop command between segments)
Segment End — Use this to output cancel codes without having to wait until the next Tool Change or Segment Start Format is called.
Program End — This block is normally used to output the rewind command and to reset the control to some standard settings after program completion.
File End — This specifies the format of the line(s) to be placed at the end of a file. This is generally used with the End of Prog specification (selected in the Macro Type field in the General Information dialog).