|
System-Defined Blocks
The names, order of appearance and basic structure of system-defined blocks are set by the Cimatron NC application. Each block contains a number of variables associated with it. A list of the system-defined blocks follows.
Block Name |
Contents Description |
AXIS CHANGE: |
Statements to be executed if the number of axes required for machining changes. |
Example: |
First procedure uses RULED_5X and second uses Contour Milling / Profile 2D. |
BEGINNING OF IPM: |
Statements to perform at the beginning of each procedure. |
BEGINNING OF PROC: |
Statements to perform at the beginning of each procedure. |
BEGINNING OF SUB: |
Statements to be executed at the beginning of a subroutine. (Applicable in milling only.) |
BEGINNING OF TAPE: |
Statements to perform at the beginning of the output program file or a new tape. (Example: Name of the tape, Date, Initialization of variables). |
BEGINNING OF TLPATH: |
Statements to be executed at the beginning of each toolpath. |
CIRCULAR MOTION: |
Statements to be executed during circular tool motions. |
CONSTANT SPEED: |
Same as above for lathe machining only. |
COOLANT: |
Statement to be executed when the coolant is changed. |
CUTTER COMPENSATION: |
Statement to be executed when the cutter compensation is turned on or off. |
CYCLE: |
Statements to execute when drill cycles are encountered. (Applicable in milling only.) Note: Drill cycle variables that were not specified using the DRILL CYCLES option of DRILL in Cimatron NC, will not be set. Statements which include these variables should use the IF_SET conditional statement to check the setting of the variables. (Ex: CYC_PECK, CYC_DWELL, CYC_SHIFT). |
CYCLE: SPECIAL: |
Statements to execute when a thread mill cycle is encountered. (Applicable in milling only.) |
DWELL: |
Statement to be executed when the dwell is changed. |
END OF FILE: |
Statements to be executed at the end of the main program file. |
END OF IPM: |
Statements to be executed at the end of each procedure. |
END OF PROC: |
Statements to be executed at the end of each procedure. |
END OF SUB: |
Statements to be executed at the end of a subroutine. (Applicable in milling only.) |
END OF TAPE: |
Statements to be executed at the end of the tape. |
END OF TOOL PATH: |
Statements to be executed at the end of each toolpath. |
FEED |
Statement to be executed when the feed is changed. |
GROOVE CYCLE: |
Statements to execute during a simple groove cycle. (Applicable in lathe machining only). |
INSERT
WITH (SEQUENCING): |
Statements to OUTPUT or KEEP strings which were inserted in the toolpath and other actions to perform when they are encountered. |
LINEAR MOTION: |
Statements to be executed during linear tool motions. |
MESSAGE: |
Statements to be executed when a message is encountered in the toolpath, unless it is a tool change message. |
MILLDWELL |
Statement to be executed when the dwell is changed. |
NIBBLE: |
Same as above for punch machining only. |
NURBS MOTION: |
Statements to be executed during nurbs (spline) tool motions. |
ORIGIN CHANGE: |
Statement to be executed if the origin is changed. |
SPIN |
Statement to be executed when the spin speed or spin direction is changed. |
START STRING:* |
Statements to be executed before starting a string of linear tool motions. |
START THREAD: |
Statements to execute before starting a thread tool motion. When a multiple thread is being machined, the start number may be defined here. (Applicable in lathe machining only). |
STOP POINTS: |
Statements to be executed at a STOP POINT. (Applicable in WireEDM machining only). |
SUBROUTINE CALL: |
Statements to be executed when a subroutine is called. (Applicable in milling only). |
SUBROUTINE RETURN: |
Statements to be executed at the main program after returning from the subroutine. |
THREAD CANNED CYCLE: |
Statements to execute during a canned thread cycle. (Applicable in lathe machining only). |
THREAD CYCLE: |
Statements to execute during a simple thread cycle. (Applicable in lathe machining only). |
THREAD STEP: |
Same as above for lathe machining only. |
TOOL CHANGE: |
Statements to be executed in case of a tool change. |
TOOL CHANGE MESSAGE: |
In the event of a tool change, the system-generated tool change message, and/or a user-defined message, will be OUTPUT in this block. |
TRANSFORMATION: |
Motions from this block are caused by new transformations. |
WIRE |
Statements to be executed in Wire EDM machining when the wire is threaded. |
Z SURFACE: |
Statements to execute when the drilling surface level is changed. (Applicable in mill/drill machining only). |
In addition, you can also add user-defined blocks.
As each line of data is read from the toolpath, the appropriate block is accessed. Statements in that block are executed using toolpath data to provide values for the system variables, data specified in the DFPOST stage and user-defined variables which are defined in the Post Processor Program File.
The machining process can be traced by reading the printout of the Post Processor Program File and the printout of the toolpath together. It will then be possible to understand how they interact and how, together with the answers to the DFPOST questions, they produce the customized output program.
|
TP LIST |
Post Processor Program Block |
Example 1: |
MACH.PAR. TOOL 1 |
TOOL CHANGE: . . . |
Example 2: |
SIMPLE LIN. .. .. .. |
LINEAR MOTION: . . . |
In the example which follows, TOOL CHANGE is the name of the block. The next two lines are the body of the block which can be customized. These include the OUTPUT and SET_ON statements. Each block contains a number of variables associated with it.
Example:
TOOL CHANGE:
OUTPUT ! "T" CURR_TOOL "M66" ;SET_ON ALL_VAR;
|