Reserved words |
Type |
Definition |
---|---|---|
HAS-SP-CTRL |
Logical |
Currently applies to turning only. TRUE when Upper Turret is working on Main and also TRUE when Lower Turret is working on Sub. Used to suppress Lower Turret output (G96, S500, M3) when pinch turning on Main. |
IDLE-BEFORE-NEXT-OP |
Logical |
Applies during the Segment End format. Is TRUE if there are two or more wait codes on this tool post before the next non-empty segment. This allows the post author to detect cases where a post might need to do extra cancellations. For example, another tool post might be operating on this channel in between this operation and the next operation. Normally in the Segment End format, the post author looks ahead to the next operation, and may leave selected operations, such as coolant and spindle operations, on if they are in the next segment. But if <IDLE-BEFORE-NEXT-OP> is TRUE, and the next segment is far away, the post author may want to turn the operations off. |
IS-FOLLOW |
Logical |
TRUE if the operation uses follow turning. |
IS-PINCH |
Logical |
TRUE if the operation uses pinch turning. |
IS-SYNCED |
Logical |
TRUE there is a sync point at the start of the operation. |
OP-ORDERNUM |
Numeric |
Used to create sync codes for Okuma machines. Because Okuma has only one file for both turrets, each operation needs an individual sync code that determines the operation order (whether synced or not). When the turrets are synced the P codes for both turrets are the same. |
PRV-SP-MODE |
Numeric |
Indicates whether the current spindle was previously turning, and in which direction. Used to determine spindle state before the next operation starts, as follows: <IF>[eq(<PRV-SP-MODE>,0)]<THEN> milling mode<EOB> <ELSEIF>[eq(<PRV-SP-MODE>,1)]<THEN> turning mode (CW)<EOB> <ELSE> turning mode (CCW)<EOB> <ENDIF> |
SYNC1 through SYNC5 |
Numeric |
The <SYNC1> through <SYNC5> reserved words allow the post author to define up to 5 synchronization points within a particular format. If these variables are blank, they will not be output. For example, you could sync before and after a C-axis rotation to make sure that nothing else is going on while the rotation takes place. |
SYNC-NEXT |
Numeric |
Returns the next available sync code and increments the internal current sync number. |
SYNC-NEXT-PNUM |
Numeric |
Similar to <SYNC-PNUM>, but for the next sync point. |
SYNC-PNUM |
Numeric |
Returns the turrets that are selected for the sync. If the user sets a sync code on turrets 2 and 3, the reserved word will return 23. Typical use is {M<SYNC-NUM1>}{P<SYNC-PNUM>}. <SYNC-PNUM> is only updated if <SYNC-NUM1> is updated. |
SYNC-STOP |
Numeric |
Sync number created for use when the post stops the turning spindle (usually M5). This will be valid if the spindle direction changes or changing between from a turn to a milling operation. It is valid for tool change and segment start formats. |
SYNC-SPEED |
Numeric |
For use in Okuma style multi-turret posts only, this variable contains the synchronization code for a change in spindle speed. The sync code must be output on the same line as the spindle speed. |
TP1-ADDRESSING through TP4-ADDRESSING |
String |
Returns information on what each tool post is doing at the current sync point. Possible values are idle, unknown, main, sub, both, or progend. |
TP1-ADDRESSING-NEXT through TP4-ADDRESSING-NEXT |
String |
Returns information on what each tool post is doing at the next sync point. Possible values are idle, unknown, main, sub, both, or progend. |
TP1-SPEED through TP4-SPEED |
Numeric |
Returns the spindle speed on each tool post at the current sync point. |
TP1-SPINDLE through TP4-SPINDLE |
String |
Returns the spindle state <SPINDLE> on each tool post at the current sync point. |
TP1-TURNING through TP4-TURNING |
Logical |
Indicates whether the next operation on each tool post is a turning operation. |
TURRET1-LOC through TURRET4-LOC |
String |
This indicates the Location of the turret while the sub-spindle is moving, taken from the Transfer Turret Control dialog in FeatureCAM. The values are None, Home, Escape, or Cutoff Location. |
TURRET-NUM |
Numeric |
The number of the turret that is active for the current operation. |