Inherits ScriptObject.
Public Attributes | |
Integer | outputUnit |
Section | currentSection |
Integer | highFeedMapping |
Number | highFeedrate |
Integer | lineNumber |
Vector | initialCyclePosition |
Boolean | abortOnDeprecation |
Vector | end |
Number | length |
Vector | center |
Deprecated since r45991. Use circularCenter instead. | |
Vector | normal |
Deprecated since r45991. Use circularNormal instead. | |
Integer | plane |
Deprecated since r45991. Use circularPlane instead. | |
Number | radius |
Deprecated since r45991. Use circularRadius instead. | |
Number | sweep |
Deprecated since r45991. Use circularSweep instead. | |
Boolean | clockwise |
Deprecated since r45991. Use circularClockwise instead. | |
Number | chordLength |
Deprecated since r45991. Use circularChordLength instead. | |
Boolean | fullCircle |
Deprecated since r45991. Use circularFullCircle instead. | |
Boolean | helical |
Deprecated since r45991. Use circularHelical instead. | |
Vector | helicalOffset |
Deprecated since r45991. Use circularHelicalOffset instead. | |
Number | helicalDistance |
Deprecated since r45991. Use circularHelicalDistance instead. | |
Vector | circularCenter |
The center of the current circular motion. Since r45991. | |
Vector | circularNormal |
The circular plane normal of the current circular motion. Since r45991. | |
Vector | circularOffset |
Integer | circularPlane |
Number | circularRadius |
The radius of the current circular motion. Since r45991. | |
Number | circularStarttRadius |
The starting radius of the current circular motion. Since r45991. | |
Number | circularSweep |
The sweep of the current circular motion. Since r45991. | |
Boolean | circularClockwise |
Specifies that the current cicular motion is clockwise. Since r45991. | |
Number | circularChordLength |
Number | circularArcLength |
The arc length of the current circular motion. Since r45991. | |
Boolean | circularFullCircle |
Boolean | circularHelical |
Specifies that the currect circular motion is helical. Since r45991. | |
Boolean | circularSpiral |
Specifies that the currect circular motion is a spiral. Since r45991. | |
Vector | circularHelicalOffset |
The helical offset for the current circular motion. Since r45991. | |
Number | circularHelicalDistance |
Integer | movement |
Integer | radiusCompensation |
String | description |
String | vendor |
String | vendorUrl |
String | legal |
Integer | unit |
String | programName |
Boolean | programNameIsInteger |
Boolean | debugMode |
Boolean | preventPost |
String | filename |
String | extension |
String | version |
Integer | certificationLevel |
Integer | revision |
Integer | minimumRevision |
Boolean | deprecated |
Integer | capabilities |
Number | tolerance |
Boolean | mapWorkOrigin |
Boolean | mapToWCS |
Boolean | allowMachineChangeOnSection |
Number | minimumChordLength |
Number | minimumCircularRadius |
Number | maximumCircularRadius |
Number | minimumCircularSweep |
Number | maximumCircularSweep |
Number | circularInputTolerance |
Number | circularMergeTolerance |
Boolean | allowHelicalMoves |
Boolean | allowSpiralMoves |
Integer | allowedCircularPlanes |
Integer | circularOutputAccuracy |
Integer | linearOutputAccuracy |
Integer | rotaryOutputAccuracy |
Boolean | bufferRotaryMoves |
Integer | allowFeedPerRevolutionDrilling |
MachineParameters | machineParameters |
Map | properties |
String | NUL |
NUL ASCII control code. | |
String | SOH |
SOH ASCII control code. | |
String | STX |
STX ASCII control code. | |
String | ETX |
ETX ASCII control code. | |
String | EOT |
EOT ASCII control code. | |
String | ENQ |
ENQ ASCII control code. | |
String | ACK |
ACK ASCII control code. | |
String | BEL |
BEL ASCII control code. | |
String | BS |
BS ASCII control code. | |
String | TAB |
TAB ASCII control code. | |
String | LF |
LF ASCII control code. | |
String | VT |
VT ASCII control code. | |
String | FF |
FF ASCII control code. | |
String | CR |
CR ASCII control code. | |
String | SO |
SO ASCII control code. | |
String | SI |
SI ASCII control code. | |
String | DLE |
DLE ASCII control code. | |
String | DC1 |
DC1 ASCII control code. | |
String | DC2 |
DC2 ASCII control code. | |
String | DC3 |
DC3 ASCII control code. | |
String | DC4 |
DC4 ASCII control code. | |
String | NAK |
NAK ASCII control code. | |
String | SYN |
SYN ASCII control code. | |
String | ETB |
ETB ASCII control code. | |
String | CAN |
CAN ASCII control code. | |
String | EM |
EM ASCII control code. | |
String | SUB |
SUB ASCII control code. | |
String | ESC |
ESC ASCII control code. | |
String | FS |
FS ASCII control code. | |
String | GS |
GS ASCII control code. | |
String | RS |
RS ASCII control code. | |
String | US |
US ASCII control code. | |
String | EOL |
The default end-of-line marker. | |
String | SP |
Space string. | |
String | PATH_SEPARATOR |
File path separator. | |
Integer | IN |
Inch unit. | |
Integer | MM |
Millimeters unit. | |
Integer | PLANE_XY |
Circular XY plane. | |
Integer | PLANE_XZ |
Circular XZ plane. Deprecated use PLANE_ZX instead. | |
Integer | PLANE_ZX |
Circular ZX plane. | |
Integer | PLANE_YZ |
Circular YZ plane. | |
Integer | X |
X coordinate index. | |
Integer | Y |
Y coordinate index. | |
Integer | Z |
Z coordinate index. | |
Integer | A |
A rotary index. | |
Integer | B |
B rotary index. | |
Integer | C |
C rotary index. | |
Integer | ABC |
All rotaries index. | |
Integer | TOOL_AXIS_X |
YZ-plane. | |
Integer | TOOL_AXIS_Y |
ZX-plane. | |
Integer | TOOL_AXIS_Z |
XY-plane. | |
Integer | RADIUS_COMPENSATION_OFF |
Center radius compensation. | |
Integer | RADIUS_COMPENSATION_LEFT |
Left radius compensation. | |
Integer | RADIUS_COMPENSATION_RIGHT |
Right radius compensation. | |
Integer | SINGULARITY_LINEARIZE_OFF |
Don't linearize moves around multi-axis singularities. More... | |
Integer | SINGULARITY_LINEARIZE_LINEAR |
Integer | SINGULARITY_LINEARIZE_ROTARY |
Keep rotary axes in line during multi-axis singularity linearization. More... | |
Integer | COOLANT_DISABLED |
Coolant disabled. | |
Integer | COOLANT_FLOOD |
Flood coolant mode. | |
Integer | COOLANT_MIST |
Mist coolant mode. | |
Integer | COOLANT_TOOL |
Coolant through tool mode. Deprecated use COOLANT_THROUGH_TOOL instead. | |
Integer | COOLANT_THROUGH_TOOL |
Coolant through tool mode. | |
Integer | COOLANT_AIR |
Air mode. | |
Integer | COOLANT_AIR_THROUGH_TOOL |
Air through tool mode. | |
Integer | COOLANT_SUCTION |
Suction mode. | |
Integer | COOLANT_FLOOD_MIST |
Flood and mist coolant mode. | |
Integer | COOLANT_FLOOD_THROUGH_TOOL |
Flood and through tool coolant mode. | |
Integer | MATERIAL_UNSPECIFIED |
Unspecified material. | |
Integer | MATERIAL_HSS |
High-speed steel material. | |
Integer | MATERIAL_TI_COATED |
TI coated material. | |
Integer | MATERIAL_CARBIDE |
Carbide material. | |
Integer | MATERIAL_CERAMICS |
Ceramics material. | |
Integer | TOOL_UNSPECIFIED |
Unspecified tool. | |
Integer | TOOL_DRILL |
Drill. | |
Integer | TOOL_DRILL_CENTER |
Center drill. | |
Integer | TOOL_DRILL_SPOT |
Spot drill. | |
Integer | TOOL_DRILL_BLOCK |
Block drill. | |
Integer | TOOL_MILLING_END_FLAT |
Flat end-mill. | |
Integer | TOOL_MILLING_END_BALL |
Ball end-mill. | |
Integer | TOOL_MILLING_END_BULLNOSE |
Bullnose mill. | |
Integer | TOOL_MILLING_CHAMFER |
Chamfer mill. | |
Integer | TOOL_MILLING_FACE |
Face mill. | |
Integer | TOOL_MILLING_SLOT |
Slot mill. | |
Integer | TOOL_MILLING_RADIUS |
Radius mill. | |
Integer | TOOL_MILLING_DOVETAIL |
Dovetail mill. | |
Integer | TOOL_MILLING_TAPERED |
Tapered mill. | |
Integer | TOOL_MILLING_LOLLIPOP |
Lollipop mill. | |
Integer | TOOL_TAP_RIGHT_HAND |
Right tap tool. | |
Integer | TOOL_TAP_LEFT_HAND |
Left tap tool. | |
Integer | TOOL_REAMER |
Reamer tool. | |
Integer | TOOL_BORING_BAR |
Boring bar tool. | |
Integer | TOOL_COUNTER_BORE |
Counterbore tool. | |
Integer | TOOL_COUNTER_SINK |
Countersink tool. | |
Integer | TOOL_HOLDER_ONLY |
Holder. | |
Integer | TOOL_TURNING_GENERAL |
General turning tool. | |
Integer | TOOL_TURNING_THREADING |
Thread turning tool. | |
Integer | TOOL_TURNING_GROOVING |
Groove turning tool. | |
Integer | TOOL_TURNING_BORING |
Boring turning tool. | |
Integer | TOOL_TURNING_CUSTOM |
Custom turning tool. | |
Integer | TOOL_PROBE |
Probe. | |
Integer | TOOL_WIRE |
Wire. | |
Integer | TOOL_WATER_JET |
Water jet. | |
Integer | TOOL_LASER_CUTTER |
Laser cutter. | |
Integer | TOOL_WELDER |
Welder. | |
Integer | TOOL_GRINDER |
Grinder. | |
Integer | TOOL_MILLING_FORM |
Form mill. | |
Integer | TOOL_PLASMA_CUTTER |
Plasma cutter. | |
Integer | TOOL_MARKER |
Marker tool. | |
Integer | TOOL_MILLING_THREAD |
Thread mill. | |
Integer | TOOL_COMPENSATION_INSERT_CENTER |
Turning tool compensation. | |
Integer | TOOL_COMPENSATION_TIP |
Turning tool compensation. | |
Integer | TOOL_COMPENSATION_TIP_CENTER |
Turning tool compensation. | |
Integer | TOOL_COMPENSATION_TIP_TANGENT |
Turning tool compensation. | |
Integer | HAS_PARAMETER |
Has parameter flag. | |
Integer | HAS_RAPID |
Has rapid flag. | |
Integer | HAS_LINEAR |
Has linear flag. | |
Integer | HAS_DWELL |
Has dwell flag. | |
Integer | HAS_CIRCULAR |
Has circular flag. | |
Integer | HAS_CYCLE |
Has cycle flag. | |
Integer | HAS_WELL_KNOWN_COMMAND |
Has well-known command flag. | |
Integer | HAS_COMMENT |
Has comment flag. | |
Integer | RECORD_INVALID |
Invalid record type. | |
Integer | RECORD_WELL_KNOWN_COMMAND |
Well-known command. | |
Integer | RECORD_PARAMETER |
Parameter. | |
Integer | RECORD_LINEAR |
Linear motion. | |
Integer | RECORD_LINEAR_5D |
Linear 5-axis motion. | |
Integer | RECORD_LINEAR_ZXN |
Linear 5-axis motion. | |
Integer | RECORD_LINEAR_EXTRUDE |
Linear motion with extrude. | |
Integer | RECORD_CIRCULAR |
Circular motion. | |
Integer | RECORD_DWELL |
Dwell. | |
Integer | RECORD_CYCLE |
Cycle. | |
Integer | RECORD_CYCLE_OFF |
End of cycle. | |
Integer | RECORD_COMMENT |
Comment. | |
Integer | RECORD_WIDE_COMMENT |
Comment. | |
Integer | RECORD_CIRCULAR_EXTRUDE |
Circular motion with extrude. | |
Integer | COMMAND_INVALID |
Invalid (well-known command). | |
Integer | COMMAND_STOP |
Program stop (well-known command M00). | |
Integer | COMMAND_OPTIONAL_STOP |
Optional program stop (well-known command M01). | |
Integer | COMMAND_END |
Program end (well-known command M02). | |
Integer | COMMAND_SPINDLE_CLOCKWISE |
Clockwise spindle direction (well-known command M03). | |
Integer | COMMAND_SPINDLE_COUNTERCLOCKWISE |
Counterclockwise spidle direction (well-known command M04). | |
Integer | COMMAND_START_SPINDLE |
Integer | COMMAND_STOP_SPINDLE |
Spindle stop (well-known command M05). | |
Integer | COMMAND_ORIENTATE_SPINDLE |
Integer | COMMAND_LOAD_TOOL |
Tool change (M06). | |
Integer | COMMAND_COOLANT_ON |
Coolant on (M08). | |
Integer | COMMAND_COOLANT_OFF |
Coolant off (M09). | |
Integer | COMMAND_ACTIVATE_SPEED_FEED_SYNCHRONIZATION |
Activate speed-feed synchronization (well-known command). | |
Integer | COMMAND_DEACTIVATE_SPEED_FEED_SYNCHRONIZATION |
Deactivate speed-feed synchronization (well-known command). | |
Integer | COMMAND_LOCK_MULTI_AXIS |
Locks the 4th and 5th axes. This command is optional. | |
Integer | COMMAND_UNLOCK_MULTI_AXIS |
Unlocks the 4th and 5th axes. This command is optional. | |
Integer | COMMAND_EXACT_STOP |
Exact stop. This command is optional. | |
Integer | COMMAND_START_CHIP_TRANSPORT |
Close chip transport. | |
Integer | COMMAND_STOP_CHIP_TRANSPORT |
Stop chip transport. | |
Integer | COMMAND_OPEN_DOOR |
Open primary door. | |
Integer | COMMAND_CLOSE_DOOR |
Close primary door. | |
Integer | COMMAND_BREAK_CONTROL |
Break control. | |
Integer | COMMAND_TOOL_MEASURE |
Measure tool. | |
Integer | COMMAND_CALIBRATE |
Run calibration cycle. | |
Integer | COMMAND_VERIFY |
Verify part/tool/machine integrity. | |
Integer | COMMAND_CLEAN |
Run cleaning cycle. | |
Integer | COMMAND_ALARM |
Alarm. | |
Integer | COMMAND_ALERT |
Alert. | |
Integer | COMMAND_CHANGE_PALLET |
Change pallet. | |
Integer | COMMAND_POWER_ON |
Power on. | |
Integer | COMMAND_POWER_OFF |
Power off. | |
Integer | COMMAND_MAIN_CHUCK_OPEN |
Open main chuck. More... | |
Integer | COMMAND_MAIN_CHUCK_CLOSE |
Close main chuck. More... | |
Integer | COMMAND_SECONDARY_CHUCK_OPEN |
Open secondary chuck. More... | |
Integer | COMMAND_SECONDARY_CHUCK_CLOSE |
Close secondary chuck. More... | |
Integer | COMMAND_SECONDARY_SPINDLE_SYNCHRONIZATION_ACTIVATE |
Activate spindle synchronization. More... | |
Integer | COMMAND_SECONDARY_SPINDLE_SYNCHRONIZATION_DEACTIVATE |
Deactivate spindle synchronization. More... | |
Integer | COMMAND_SYNC_CHANNELS |
Sync channels. | |
Integer | COMMAND_PROBE_ON |
Probe on. | |
Integer | COMMAND_PROBE_OFF |
Probe off. | |
Integer | MOVEMENT_RAPID |
Rapid movement type. | |
Integer | MOVEMENT_LEAD_IN |
Lead-in movement type. | |
Integer | MOVEMENT_CUTTING |
Cutting movement type. | |
Integer | MOVEMENT_LEAD_OUT |
Lead-out movement type. | |
Integer | MOVEMENT_LINK_TRANSITION |
Transition linking movement type. | |
Integer | MOVEMENT_LINK_DIRECT |
Drection linking movement type. | |
Integer | MOVEMENT_RAMP_HELIX |
Helical ramp movement type. | |
Integer | MOVEMENT_RAMP_PROFILE |
Profile ramp movement type. | |
Integer | MOVEMENT_RAMP_ZIG_ZAG |
Zig-zag ramp movement type. | |
Integer | MOVEMENT_RAMP |
Ramp movement type. | |
Integer | MOVEMENT_PLUNGE |
Plunge movement type. | |
Integer | MOVEMENT_PREDRILL |
Predrill movement type. | |
Integer | MOVEMENT_EXTENDED |
Extended movement type. | |
Integer | MOVEMENT_REDUCED |
Reduced cutting feed movement type. | |
Integer | MOVEMENT_FINISH_CUTTING |
Finish cutting movement type. | |
Integer | MOVEMENT_HIGH_FEED |
High feed movement type. | |
Integer | HIGH_FEED_NO_MAPPING |
Do not map rapid travesal to high feed. | |
Integer | HIGH_FEED_MAP_MULTI |
Map rapid travesal along more than one axis to high feed. | |
Integer | HIGH_FEED_MAP_XY_Z |
Integer | HIGH_FEED_MAP_ANY |
Map all rapid travesals to high feed. | |
Tool | tool |
Integer | spindleAxis |
Number | feedrate |
Integer | activeFeedMode |
Number | spindleSpeed |
MachineConfiguration | machineConfiguration |
String | cycleType |
Map | cycle |
Boolean | cycleExpanded |
Post processor object. This is the main class. The post processor automatically instantiates an instance of this class at startup and makes it the global object for the posting context.
PostProcessor | ( | ) |
Constructs a post processor object.
activateAutoPolarMode | ( | PropertySet | options | ) |
Activates automatic polar mode handling.
options | Defines the polar interpolation options. |
The supported options are:
tolerance:
Defines the linearization tolerance. The default is 0.01.allowInControl:
Set to true if the control supports polar interpolation. The default is false.defaultPolarLinks:
Sets the default for linearizing rapid moves if it is not specified in the operation. The default is false.optimizeType
Can be one of the following. The default is OPTIMIZE_TABLES. OPTIMIZE_NONE: Maintain tool tip position (TCPM). OPTIMIZE_TABLES: Adjust for the rotary table. OPTIMIZE_BOTH: Same as OPTIMIZE_TABLES. OPTIMIZE_AXIS: Adjust per axis definition. VectorPair activatePolarMode | ( | Number | tolerance, |
Number | currentAngle, | ||
Vector | polarDirection, | ||
Boolean | interpolateRapidMoves, | ||
Integer | optimizeType | ||
) |
Call to activate and setup Polar Mode.
tolerance | The tolerance used for linearization. The tolerance is specified in MM. |
currentAngle | The current angle of the machine axis's that is perpendicular to the tool |
polarDirection | A vector representing the line which the tool can move along to cut the part. (1, 0, 0) would be the x axis. A vector of (0, 0, 0) will use the initial position of the section to determine the vector line. |
interpolateRapidMoves | Set to true to interpolate rapid moves as linear moves. |
optimizeType | Determines whether to output polar coordinates in TCPM mode or not. OPTIMIZE_AXIS will use the axis defintion TCPM mode. OPTIMIZE_NONE will use TCP MODE. OPTIMIZE_BOTH or OPTIMIZE_TABLES will not use TCPM mode and is the default setting. |
Alerts the user and wait for user.
title | The title. |
description | The description. |
cancelRotation | ( | ) |
Cancels any active output frame rotation defined by setRotation().
cancelTransformation | ( | ) |
Cancels any active output frame transformation defined by setRotation() and setTranslation().
cancelTranslation | ( | ) |
Cancels any active output frame translation defined by setTranslation().
Returns true if the specified command can be safely ignored in normal cases.
Boolean canLinearize | ( | ) |
Returns true if the current record can be linearized using getPositionU(). Only circular records can currently be linearized. The tolerance is specified in MM.
closeRedirection | ( | ) |
Closes any redirection and switches to normal output. If redirection to buffer is active the buffer is cleared.
String conditional | ( | condition | , |
value | |||
) |
Returns the specified value if the condition is true and otherwise the empty string.
Constructs a new machine axis.
The supported specifiers are:
actuator:
Specifies that the actuator type (ie. either "linear" or "rotational"). The default is "rotational".table:
Specifies that the axis is located in the table or the head. The default is true for table.axis:
Specifies the axis vector as a 3-element array (e.g. "[0, 0, 1]"). This specifier is required.homePosition:
Specifies the axis home position. The default is 0.offset:
Specifies the axis offset as a 3-element array (e.g. "[0, 0, 25]"). The default is [0, 0, 0].coordinate:
Specifies the coordinate used in the ABC vectors (ie. "X", "Y", or "Z"). This specifier is required.cyclic:
Specifies that the axis is cyclic. Only supported for rotational axes. Only used when a range is specified. The default is false.tcp:
Specifies that the axis supports TCP. Only supported for rotational axes. The default is true.range:
Specifies the angular range for the axis in degrees as a 2-element array (e.g. "[-120, 120]"). You can also specify a single number to create an axis for an aggregate. The default is unbound.preference:
Specifies the preferred angles (-1:negative angles, 0:don't care, and 1:positive angles). The default is don't care.resolution:
Specifies the resolution. In degrees for rotational actuator. The default is 0.maximumFeed:
Specifies the maximum feed rate. The default is 0.rapidFeed:
Specifies the rapid feed rate. The default is 0.reset:
Resets the initial axis position to 0 (0:remember position from previous section, 1:reset at start of operation, 2:reset after automatic rewind, 3:reset for both situations). The default is remember position. Since r42226specifiers | The axis specifiers. |
FormatNumber createFormat | ( | Map | specifiers | ) |
Constructs the format specification for the given values.
specifiers | The format specifiers. |
The supported specifiers are:
decimals:
Specifies the number of decimals. Defaults to 6.forceSign:
Specifies that the '+'-sign must be included for positive numbers. Defaults to false.separator:
Specifies the decimal symbol. Defaults to '.'.scale:
Specifies the scale. Defaults to 1.offset:
Specifies the offset. Defaults to 0.prefix:
Specifies the prefix. Defaults to empty string.suffix:
Specifies the suffix. Defaults to empty string.inherit:
Specifies the format to inherit.base:
The base number. For example, a value of .002 will only output values on a .002 increment (.002,.004,.010, etc.).minimum:
The minimum value that can be output. Lesser values will be set to this value.maximum:
The maximum value that will be output. Greater values will be set to this value.minDigitsLeft:
The minimum digits to the left of the decimal point to output.minDigitsRight:
The minimum digits to the right of the decimal point to output.type:
Defines the format of the number. Can be FORMAT_INTEGER (whole numbers do not contain a decimal point, fractional numbers do contain a decimal point), FORMAT_REAL (all numbers contain a decimal point), FORMAT_LZS (leading-zero-suppression, the decimal point is omitted and leading zeros are removed), FORMAT_TZS (trailinig-zero-suppression, the decimal point is omitted and trailing zeros are removed). Defaults to FORMAT_INTEGER.The following specifiers are deprecated since r45892.
trim:
Specifies that ending zero decimals should be trimmed. Defaults to true.trimLeadZero:
Specifies that the leading zero should be excluded. Eg. ".123" instead of "0.123". Defaults to false.forceDecimal:
Specifies that the decimal symbol must be included. Defaults to false.zeropad:
Specifies that zeros should be padded to the resulting string to fit the given width. Defaults to false.width:
Specifies the width of the resulting string. Defaults to 0.cyclicLimit:
Specifies the cyclic limit. Defaults to 0 (disabled).cyclicSign:
Specifies the cyclic sign. Defaults to 0.You cannot mix the new specifiers with the deprecated specifiers in a single command.
IncrementalVariable createIncrementalVariable | ( | Map | specifiers, |
Format | format | ||
) |
Creates a new IncrementalVariable instance. DEPRECATED, use createOutputVariable.
The supported specifiers are:
specifiers | The specifiers. |
format | The desired format. |
prefix:
Specifies a prefix to be prepended the formatted value.force:
Specifies that the value always must be output.first:
Specifies the first value to be output. The default is 0. MachineConfiguration createMachineConfiguration | ( | Map | specifiers | ) |
Constructs a new machine configuration.
The supported specifiers are:
model:
Specifies the machine model.description:
Describes the machine configuration.vendor:
Specifies the machine vendor.vendorUrl:
Specifies the machine vendor link.width:
Specifies the width of the machine.depth:
Specifies the depth of the machine.height:
Specifies the height of the machine.weight:
Specifies the weight of the machine.weightCapacity:
Specifies the weight capacity of the machine.spindleAxis:
Specifies the spindle axis.maximumSpindlePower:
Specifies the maximum spindle power.maximumSpindleSpeed:
Specifies the maximum spindle speed.collectChuck:
Specifies the collect chuck. Tool-holder interface.x:
Specifies the X axis.y:
Specifies the Y axis.z:
Specifies the Z axis.u:
Specifies the U axis.v:
Specifies the V axis.w:
Specifies the W axis.specifiers | The specifiers. |
Creates a new Modal instance. DEPRECATED, use createOutputVariable.
specifiers | The format specifiers. |
format | The desired format (optional). |
The supported specifiers are:
prefix:
Specifies the prefix.suffix:
Specifies the suffix.force:
Specifies that the value must always be returned.onchange:
Specifies a method to be invoked when format() results in output. ModalGroup createModalGroup | ( | Map | specifiers, |
Array | groups, | ||
Format | format | ||
) |
Creates a new ModalGroup instance.
The supported specifiers are:
force:
Specifies that output is forced. The default is false.strict:
Specifies the strict mode. The default is true.specifiers | The specifiers. |
groups | The code groups (e.g. [[1, 2, 3, 4], [17, 18, 19]]). |
format | The format. |
OutputVariable createOutputVariable | ( | Map | specifiers, |
Format | format | ||
) |
Creates a new OutputVariable instance.
specifiers | The specifiers. |
format | The desired format. |
The supported specifiers are:
control:
Determines when a formatted variable will be output and can be CONTROL_CHANGED, CONTROL_FORCE, or CONTROL_NONZERO.current:
Specifies that initial value to store in the output variable.cyclicLimit:
Specifies the absolute range limit for the formatted value, for example 360 for a rotary axis.cyclicSign:
Specifies the sign for a cyclic value and can be -1 (negative), 0 (both), or 1 (positive).onchange:
Defines a function to be called when the formatted value has changed.prefix:
Specifies a prefix to be prepended to the formatted value.suffix:
Specifies a suffix to be appended to the formatted value.tolerance:
A value must differ from the previous value by greater than tolerance to be output.type:
Specifies the variable type and can be TYPE_ABSOLUTE, TYPE_INCREMENTAL, or TYPE_DIRECTIONAL.ReferenceVariable createReferenceVariable | ( | Map | specifiers, |
Format | format | ||
) |
Creates a new ReferenceVariable instance. DEPRECATED, use createOutputVariable.
The supported specifiers are:
specifiers | The behavior specifiers. |
format | The instance of type Format used to format the output values. |
The supported specifiers are:
prefix:
Specifies a prefix to be prepended the formatted value.force:
Specifies that the value always must be output. ToolRenderer createToolRenderer | ( | ) |
Returns a new tool renderer.
Creates a new Variable instance. DEPRECATED, use createOutputVariable.
specifiers | The specifiers. |
format | The desired format. |
The supported specifiers are:
prefix:
Specifies a prefix to be prepended the formatted value.force:
Specifies that the value always must be output.onchange:
Specifies a method to be invoked when format() results in output. cycleNotSupported | ( | ) |
Returns an error message if the current cycle is not supported.
deactivatePolarMode | ( | ) |
Call to deactivate Polar Mode. This should be called in onSectionEnd() if activePolarMode has been called in onSection().
debug | ( | String | message | ) |
Writes the specified debug message to the log if debugging mode is enabled (i.e. debugMode
is true).
Multiple arguments are allowed
error | ( | String | message | ) |
Writes an error message and aborts the script.
Runs the specified command. Note that you cannot open the primary output file until the onTerminate() is invoked. Post processor waits for the program to complete.
Security: Requires security level 0.
path | The path of the command. |
arguments | The arguments to be parsed to the command. |
hide | Hide application. |
workingFolder | The working folder. |
Security: Requires security level 0.
Runs the specified command. Same as execute() but doesn't wait for application to complete.
Security: Requires security level 0.
path | The path of the command. |
arguments | The arguments to be parsed to the command. |
hide | Hide application. |
workingFolder | The working folder. |
Security: Requires security level 0.
May be invoked in cycle mode to expand a well-known cycle. Used when a specific cycle is not supported by a control.
x | The X coordiante of the cycle point. |
y | The Y coordiante of the cycle point. |
z | The Z coordiante of the cycle point. |
Processes Manual NC commands that are not handled in onManualNC.
command | The Manual NC command. |
value | The value. |
Exports the toolpath data to the given file.
Security: Requires security level 0.
path | The destination path. |
format | The file format. |
Returns a new string with all characters not present in keep
removed.
text | The original text. |
keep | The characters to be preserved in the string. |
Returns the full path for the specified relative path if found in the include paths.
path | the relative path. |
Flattens the specified array.
array | The array to flatten. |
Returns the string output by writeWords()
without end-of-line.
Integer getActiveFeedMode | ( | ) |
Returns the active feedrate mode.
Converts the specified text to a float. Raises an exception if all the specified text cannot be converted.
text | The text to be converted. |
Converts the specified text to an integer. Raises an exception if all the specified text cannot be converted.
text | The text to be converted. |
String getCascadingPath | ( | ) |
Returns the cascading path set by the previous post. By default this will be the getOutputPath().
Number getCircularArcLength | ( | ) |
Returns the arc length for the current circular motion. Returns an unspecified value if the current motion is not circular.
Vector getCircularCenter | ( | ) |
Returns the center for the current circular motion. Returns an unspecified value if the current motion is not circular.
Number getCircularChordLength | ( | ) |
Returns the chord length for the current circular motion. Returns an unspecified value if the current motion is not circular. Returns 0 for full circular motion.
CircularMotion getCircularMotion | ( | ) |
Returns the circular motion description for the current circular record.
Vector getCircularNormal | ( | ) |
The CCW-normal of the circular plane. However, the normal is flipped if isClockwise() is true. This behavior ensures direct compatibility with RS274 for the right hand G17, G18, and G19 plane convention.
Vector getCircularOffset | ( | ) |
Returns the distance from the circular start point to the circular center for the current circular motion. Returns an unspecified value if the current motion is not circular.
Integer getCircularPlane | ( | ) |
Returns the circular plane. Returns -1 is the plane is not in a primary plane.
Number getCircularRadius | ( | ) |
Returns the end radius for the current circular motion. Returns an unspecified value if the current motion is not circular.
Number getCircularStartRadius | ( | ) |
Returns the start radius for the current circular motion. Returns an unspecified value if the current motion is not circular. The start radius can only be different from the end radius returned by getCircularRadius() for spiral motion.
Number getCircularSweep | ( | ) |
Returns the sweep for the current circular motion. Returns an unspecified value if the current motion is not circular.
Integer getCodePage | ( | ) |
Returns the current output code page id.
Integer getCompensationOffset | ( | ) |
Returns the current compensation offset.
String getConfigurationFolder | ( | ) |
Returns the path on the configuration folder.
String getConfigurationPath | ( | ) |
Returns the path on the configuration file.
Vector getCurrentABC | ( | ) |
Returns the current ABC position.
Integer getCurrentChannel | ( | ) |
Returns the id for the current channel.
Vector getCurrentDirection | ( | ) |
Returns the tool axis if the section is not optimized for the machine. Returns the rotary angles if the section is optimnized for the machine.
Vector getCurrentGlobalPosition | ( | ) |
Returns the current position in the global coordinate system.
String getCurrentNCLocation | ( | ) |
Returns a description of the current NC location.
Vector getCurrentPosition | ( | ) |
Returns the current position.
Integer getCurrentRecordId | ( | ) |
Returns the id of the current record.
Integer getCurrentSectionId | ( | ) |
Returns the id of the current section. Returns -1 is no section is active.
Number getCurrentSpindleSpeed | ( | ) |
Returns the current spindle speed.
Integer getCurrentSyncGroup | ( | ) |
Returns the multi-channel sync group for the current channel. Starting from 0.
Vector getCurrentToolAxis | ( | ) |
Returns the current tool axis.
Returns the specified cycle point for the current cycle.
index | The index of the point. Must be less than the value returned by getNumberOfCyclePoints(). |
Integer getCyclePointId | ( | ) |
Returns the id of the current cycle point. Returns 0 if cycle is not active.
Vector getDirection | ( | ) |
Returns the direction for the current motion.
Boolean getDogLeg | ( | ) |
Returns the dog-leg flag. The default is false.
Vector getEnd | ( | ) |
Returns the end position for the current motion.
Number getFeedrate | ( | ) |
Returns the current feedrate.
Tool getFirstTool | ( | ) |
Returns the first tool.
BoundingBox getFixture | ( | ) |
Returns the fixture bounding box.
Returns the specified section direction in the current frame specified using setRotation().
Returns the specified section position in the current frame specified using setRotation() and setTranslation().
Returns the first value of the specified global parameter.
name | The name of the parameter to return |
defaultValue | (optional, since r45606) The default value of the parameter to return if it is not defined. |
e.g.
Returns the specified position in the current section as the corresponding global position.
String getHeader | ( | ) |
Returns the header of the post configuration where header is the first multi-line comment.
String getHeaderCommit | ( | ) |
Returns the commit from the header of the post configuration. Where commit is the second string within the
. Returns empty string if not found.
String getHeaderDate | ( | ) |
Returns the modification date as string from the header of the post configuration. Where date is the string within the Date: ... $. Returns empty string if not found.
Date getHeaderDate2 | ( | ) |
Returns the string following the given keyword from the header of the post configuration. Returns empty string if not found.
keyword | The keyword to look for. The keyword must match this regular expression [a-zA-Z][a-zA-Z0-9_]*. |
String getHeaderVersion | ( | ) |
Returns the version from the header of the post configuration. Where version is the first string within the
. Returns empty string if not found.
Number getHelicalDistance | ( | ) |
Returns the helical distance of the current circular motion. Returns 0 for non-helical motion. Returns an unspecified value if the current motion is not circular.
Vector getHelicalOffset | ( | ) |
Returns the helical offset of the current circular motion. Returns (0, 0, 0) for non-helical motion. Returns an unspecified value if the current motion is not circular.
Number getHelicalPitch | ( | ) |
Returns the helical pitch of the current circular motion. Returns 0 for non-helical motion. Returns an unspecified value if the current motion is not circular.
Integer getHighFeedMapping | ( | ) |
Returns the high feed rapid traversal mapping mode.
Number getHighFeedrate | ( | ) |
Returns the high feedrate used for mapping rapid traversal.
String getIntermediatePath | ( | ) |
Returns the path on the intermediate file.
Returns the standard G-code plane number (17, 18, or 19).
PLANE_XY: 17 PLANE_ZX: 18 PLANE_YZ: 19
Returns 0 for all other planes.
String getLangId | ( | ) |
Returns the language id.
Number getLength | ( | ) |
Returns the length of the current motion.
MachineConfiguration getMachineConfiguration | ( | ) |
Returns the active machine configuration.
String getMachineConfigurationAsText | ( | MachineConfiguration | machine | ) |
Returns a description of the specified machine configuration.
machine | The machine configuration. |
MachineConfiguration getMachineConfigurationByName | ( | String | name | ) |
Returns the specified machine configuration by name.
name | The name of the machine configuration. |
String getMachineConfigurations | ( | ) |
Returns list of the available machine configurations.
Returns the machining distance for the specified tool at the current position.
Integer getMovement | ( | ) |
Returns the current movement type.
Returns an object containing length information about the current multiaxis move.
x | The end linear x coordinate of the move |
y | The end linear y coordinate of the move |
z | The end linear z coordinate of the move |
a | The end radial a coordinate of the move |
b | The end radial b coordinate of the move |
c | The end radial c coordinate of the move |
Record getNextRecord | ( | ) |
Returns the next record for the current section.
Section getNextSection | ( | ) |
Returns the next section.
Returns the next tool with a different tool number.
Returns the next tool, based on the given criteria as arguments.
section | The section to retrieve the next tool for. section is optional and if omitted currentSection will be used. Since r45843 |
firstTool | Returns the first tool if the end of program is reached when set to true. Returns undefined when set to false. Since r45843 |
arguments | The function can take any number of string arguments, which are the comparison criteria for the current and next tools. These can be "number", "description", "diameter", or any other property on the tool object. The tool number is checked if there are no arguments. |
Integer getNumberOfChannels | ( | ) |
Returns the number of channels for a multi-channel program.
Integer getNumberOfCyclePoints | ( | ) |
Returns the number of cycle points for the current cycle.
Integer getNumberOfRecords | ( | ) |
Returns the number of records.
Integer getNumberOfSections | ( | ) |
Returns the number of sections.
Returns the number of segments required to linearize the current record.
Returns the number of sync groups in the program.
String getOutputPath | ( | ) |
Returns the path on the destination file.
Integer getOutputUnit | ( | ) |
Returns the output unit.
Returns the value of the specified parameter.
Only parameters before the current record will be checked.
name | The name of the parameter to return. |
defaultValue | (optional, since r45606) The default value of the parameter to return if it is not defined. |
e.g.
Returns the plane id for the given direction vector.
Vector(0, 0, 1): PLANE_XY Vector(0, 1, 0): PLANE_ZX Vector(1, 0, 0): PLANE_YZ
String getPlatform | ( | ) |
Returns the platform identifier. E.g. "WIN32" for Windows and "OSX" for Mac OS X.
VectorPair getPolarPosition | ( | Number | x, |
Number | y, | ||
Number | z | ||
) |
Call to get the polar transformed direction from the given position. This function does not update the current position and direction. Call setCurrentPositionAndDirection() after to update.
x | The x coordinate of point to be transformed |
y | The y coordinate of point to be transformed |
z | The z coordinate of point to be transformed |
Returns the position at the specified u coordinate for the current motion. The u coordinate is clamped to the range [0; 1].
String getPostProcessorFolder | ( | ) |
Returns the folder path on the running post processor.
String getPostProcessorPath | ( | ) |
Returns the path on the running post processor.
Boolean getPower | ( | ) |
Returns the current power mode (water jet, laser cutter, and plasma cutter).
Record getPreviousRecord | ( | ) |
Returns the previous record for the current section.
Section getPreviousSection | ( | ) |
Returns the previous section. Must be called within a section.
String getProduct | ( | ) |
Returns the formal name of the product.
String getProductUri | ( | ) |
Returns the unique id of the software component (i.e. 'http://www.autodesk.com/namespace/campostprocessor').
String getProductUrl | ( | ) |
Returns the url for the product.
Get the program name as an Integer if it is within the [min, max] range, or error otherwise.
min | The minimum possible value for program name (inclusive). |
max | The maximum possible value for program name (inclusive). |
Get the program name as a String, truncated if it's longer than the character limit.
charLimit | The maximum number of characters for program name. |
Returns the value of the specified post property. If the specified property doesn't exist, it returns the default value if specified, otherwise it returns undefined.
You can retrieve an operation property of a specific section by using the 'section.getProperty()' function. It takes the same arguments as getProperty(). Since r45811.
property | The property object or the property name. |
defaultValue | (optional) The default value to return if the property does not exist. Since r45811. |
e.g.
Integer getRadiusCompensation | ( | ) |
Returns the current radius compensation
String getRedirectionBuffer | ( | ) |
Returns the current content of the redirection buffer.
Returns the current content of the redirection buffer.
clear | Clears the redirection buffer if true. |
Matrix getRotation | ( | ) |
Returns the current rotation.
Returns the specified section. The index must be in the range [0; getNumberOfSections()].
Returns the specified frame direction in the current section frame. Reverse mapping of getFrameDirection().
Returns the specified frame position in the current section frame. Reverse mapping of getFramePosition().
Returns the specified global position as the corresponding position in the current section.
Returns the array of sections which use the given channel.
channel | The channel. |
Integer getSecurityLevel | ( | ) |
Returns the security level in which is post processor is running.
String getSimulationStreamPath | ( | ) |
Returns the path of the simulation stream.
Number getSpindleSpeed | ( | ) |
Returns the current spindle speed.
Integer getSystemUnit | ( | ) |
Returns the system unit as defined in the regional settings.
Returns an array of tools used in the program deemed different based on the 'arguments' and 'flag' criteria.
arguments | The function can take any number of string arguments, which are the comparison criteria for determining if a tool is different from a previously found tool. These can be "number", "description", "lenghtCompensation", or any other property in the tool object. The tool number is checked if there are no arguments. |
flag | A bitwise of SORT or NOSORT and DUPLICATES or NODUPLICATES. For example, SORT | NODUPLICATES (which is the default setting). Sorting is based on the first property passed in 'arguments'. If the first property matches during a sort, then the tools will be listed in the order that they are used. |
ToolTable getToolTable | ( | ) |
Returns the tools. The order of the tools within the tool table is unspecified. Deprecated, use getToolList instead.
Vector getTranslation | ( | ) |
Returns the current translation.
String getVendor | ( | ) |
Returns the vendor of the product.
String getVendorUrl | ( | ) |
Returns the url for the vendor.
String getVersion | ( | ) |
Returns the version of the software component.
Returns the specified position in the current section in the WCS. You likely want to use getGlobalPosition() instead.
String getWordSeparator | ( | ) |
Returns the separator for word-based the line output.
BoundingBox getWorkpiece | ( | ) |
Returns the workpiece bounding box.
Returns true if the specified parameter has been defined globally.
Boolean hasNextRecord | ( | ) |
Returns true if the section has a next record.
Boolean hasNextSection | ( | ) |
Returns true if the current section is succeeded by a section.
Returns true if the specified parameter has been defined.
Only parameters before the current record will be checked.
Boolean hasPreviousRecord | ( | ) |
Returns true if the section has a previous record.
Returns true if the specified character exists in the current code page.
include | ( | String | path | ) |
Includes the specified post processing script.
path | the path of the script to be included. |
Boolean invokeOnCircular | ( | Boolean | clockwise, |
Number | cx, | ||
Number | cy, | ||
Number | cz, | ||
Number | x, | ||
Number | y, | ||
Number | z, | ||
Number | nx, | ||
Number | ny, | ||
Number | nz, | ||
Number | feedrate | ||
) |
Called to invoke onCircular in the post engine.
clockwise | True if tool should move in a clockwise direction. |
cx | The x value of the point the tool will arc around. |
cy | The y value of the point the tool will arc around. |
cz | The z value of the point the tool will arc around. |
x | The x value of the point the tool will arc to. |
y | The y value of the point the tool will arc to. |
z | The z value of the point the tool will arc to. |
nx | The x value of the direction perpendicular to the arc. |
ny | The y value of the direction perpendicular to the arc. |
nz | The z value of the direction perpendicular to the arc. |
feedrate | The feedrate of the tool. |
Called to invoke onLinear in the post engine.
x | The x value of the point the tool will move to. |
y | The y value of the point the tool will move to. |
z | The z value of the point the tool will move to. |
feedrate | The feedrate of the tool. |
Boolean invokeOnLinear5D | ( | Number | x, |
Number | y, | ||
Number | z, | ||
Number | dx, | ||
Number | dy, | ||
Number | dz, | ||
Number | feedrate | ||
) |
Called to invoke onLinear5D in the post engine.
x | The x value of the point the tool will move to. |
y | The y value of the point the tool will move to. |
z | The z value of the point the tool will move to. |
dx | the x value of the direction the tool will be orientated. |
dy | the y value of the direction the tool will be orientated. |
dz | the z value of the direction the tool will be orientated. |
feedrate | The feedrate of the tool. |
Called to invoke onRapid in the post engine.
x | The x value of the point the tool will move to. |
y | The y value of the point the tool will move to. |
z | The z value of the point the tool will move to. |
Called to invoke onRapid5D in the post engine.
x | The x value of the point the tool will move to. |
y | The y value of the point the tool will move to. |
z | The z value of the point the tool will move to. |
dx | the x value of the direction the tool will be orientated. |
dy | the y value of the direction the tool will be orientated. |
dz | the z value of the direction the tool will be orientated. |
Boolean is3D | ( | ) |
Returns true if the program is a 3D program (i.e. the tool axis points along the Z-axis for all the sections).
Returns whether the current section is an axial center drilling operation
section | The section to check for an axial center drilling operation. section is optional and if omitted currentSection will be used. |
checkLiveTool | Set to true if live tools are respected and not considered for axial drilling cycles, false ignores the live tool setting |
Boolean isClockwise | ( | ) |
Returns true if the current circular motion is clockwise. Returns an unspecified value if the current motion is not circular.
Boolean isClockwiseSpindleDirection | ( | ) |
Returns true if the current spindle direction is clockwise. The spindle may be stopped. The direction is assumed to be clockwise by default.
Boolean isCoolantActive | ( | ) |
Returns true if the coolant is active. The coolant is assumed to be inactive by default.
Returns whether the current section is a deposition operation
section | The section to check for a deposition operation. section is optional and if omitted currentSection will be used. |
Returns whether the current section is a drilling operation
section | The section to check for a drilling operation. section is optional and if omitted currentSection will be used. |
checkBoringCycles | Set to true if boring cycles with a shift value should be considered a drilling cycle, set to false otherwise |
Boolean isExpanding | ( | ) |
Returns true if the current motion is a result of an expanded motion. Expanded motion is for instance produced by expandCyclePoint().
Boolean isFirstCyclePoint | ( | ) |
Returns true if the current cycle point is the first motion for the current cycle. Returns false if cycle is not active.
Boolean isFirstSection | ( | ) |
Returns true if the current section is the first section.
Boolean isFullCircle | ( | ) |
Returns true if the current circular motion is a full circle (360deg). Returns an unspecified value if the current motion is not circular.
Boolean isHelical | ( | ) |
Returns true if the current circular motion is helical. Returns an unspecified value if the current motion is not circular.
Returns whether the current section is an inspection operation
section | The section to check for an inspection operation. section is optional and if omitted currentSection will be used. Since r45843 |
Boolean isInteractionAllowed | ( | ) |
Returns true if user interaction is allowed.
Boolean isJet | ( | ) |
Returns true for jet toolpath (waterjet, laser, and plasma cutting).
Boolean isLastCyclePoint | ( | ) |
Returns true if the current cycle point is the last motion for the current cycle. Returns false if cycle is not active.
Boolean isLastSection | ( | ) |
Returns true if the current section is the last section.
Boolean isMilling | ( | ) |
Returns true for milling toolpath.
Returns whether the current section is a milling cycle
section | The section to check for a milling cycle. section is optional and if omitted currentSection will be used. |
checkBoringCycles | Set to true if boring cycles with a shift value should be considered a milling cycle, set to false otherwise |
Boolean isMultiAxis | ( | ) |
Returns true if the post processor is in multi-axis mode.
Boolean isMultiChannelProgram | ( | ) |
Returns true if the program is a multi-channel program.
Returns whether a new work offset is used for the given section.
section | The section to check the work offset. section is optional and if omitted currentSection will be used. |
Returns whether a new work plane is needed for the given section.
section | The section to check the work plane. section is optional and if omitted currentSection will be used. |
Boolean isPolarModeActive | ( | ) |
Call to check if Polar Mode is active.
Returns whether the section is a probing operation
section | The section to check for a probing operation. section is optional and if omitted currentSection will be used. Since r45843 |
Returns true if the given cycle is a probing cycle.
uri | The identifier of the cycle. |
Boolean isRedirecting | ( | ) |
Returns true if the output is being redirected.
Returns true if the specified string only contains the specified characters.
text | The string. |
permitted | The permitted characters. |
Boolean isSameDirection | ( | a | , |
b | |||
) |
Returns true if the 2 specified normalized vectors are in the same direction.
The built-in implementation is:
You can easily change the post behavior by adding your own implementation of the function.
Returns true if the given cycle is considered a special cycle for which to call onSectionSpecialCycle()/onSectionEndSpecialCycle() instead of onSection()/onSectionEnd().
uri | The unique identifier of the cycle. |
Boolean isSpeedFeedSynchronizationActive | ( | ) |
Returns true if the speed-feed asynchronization is active. The synchronization is assumed to be inactive by default.
Boolean isSpindleActive | ( | ) |
Returns true if the spindle is active. The direction is assumed to be inactive by default.
Returns whether the section's spindle speed or spindle mode (RPM/SFM) is different than the previous section's spindle speed or mode
section | The section to check for a spindle speed/mode change. section is optional and if omitted currentSection will be used. |
Boolean isSpiral | ( | ) |
Returns true if the current circular motion is a spiral (i.e. the start and end radii do not match). Returns an unspecified value if the current motion is not circular.
Returns true if the given cycle is a sub spindle cycle.
uri | The identifier of the cycle. |
Returns true if the specified text can be output in the active code page/encoding without change.
Returns whether the current section is a tapping operation
section | The section to check for a tapping operation. section is optional and if omitted currentSection will be used. |
Returns true if all the characters exist in the given text for the current code page.
Returns whether a tool change is needed, based on the given criteria as arguments. If "description" is provided as an argument, then the tool description must be defined or an error will be generated.
section | The section to determine if a tool change is needed. section is optional and if omitted currentSection will be used. Since r45843 |
arguments | The function can take any number of string arguments, which are the comparison criteria for the current and previous tools. These can be "number", "description", "diameter", or any other property on the tool object. The tool number is checked if there are no arguments. |
Boolean isTurning | ( | ) |
Returns true for turning toolpath.
Boolean isWellKnownCycle | ( | ) |
Returns true if the current cycle is a well-known cycle.
Boolean isWorkpieceDefined | ( | ) |
Returns true if the workpiece stock is defined.
linearize | ( | Number | tolerance | ) |
Linearizes the current motion to the specified tolerance. Use canLinearize() to determine if the current record can be linearized. The start position is not output.
Loads the specified locale.
langId | The language id of the locale file. |
MachineConfiguration loadMachineConfiguration | ( | String | path | ) |
Loads the specified machine configuration.
path | The path of the machine configuration. |
Returns the text loaded from the specified url. The url is relative to the configuration script. The file size is limited to 1Mb.
url | The url. |
encoding | The encoding (ascii, utf-7, utf-8, or utf-16). Alternative you can specify the code page as a string (e.g. 437). |
Returns the localized text for the specified native text if the result is supported in the active code page/encoding. Otherwise the original text is returned.
Returns the localized text for the specified native text of the given section if the result is supported in the active code page/ encoding. Otherwise the original text is returned.
log | ( | String | message | ) |
Writes the specified message to the log.
Entry function invoked when the acceleration is changed in an additive FFF toolpath.
travel | Travel acceleration. Used for moves that include no extrusion. |
printing | Printing acceleration. Used for moves that include extrusion (i.e., which employ the current tool). |
retract | Retract acceleration. Used for extruder retraction moves. |
Entry function invoked when the bed temperature is changed in an additive FFF toolpath.
temp | The target temperature. |
wait | If true, wait to reach the desired temperature before continuing. |
onCircular | ( | Boolean | clockwise, |
Number | cx, | ||
Number | cy, | ||
Number | cz, | ||
Number | x, | ||
Number | y, | ||
Number | z, | ||
Number | feed | ||
) |
Entry function for circular motion.
clockwise | Specifies that the motion is clockwise. |
cx | The X coordinate of the center position. |
cy | The Y coordinate of the center position. |
cz | The Z coordinate of the center position. |
x | The X coordinate of the end position. |
y | The Y coordinate of the end position. |
z | The Z coordinate of the end position. |
feed | The feedrate. |
onCircularExtrude | ( | Boolean | clockwise, |
Number | cx, | ||
Number | cy, | ||
Number | cz, | ||
Number | x, | ||
Number | y, | ||
Number | z, | ||
Number | feed, | ||
Number | extrusionLength | ||
) |
Entry function invoked for circular extrusion motion at feed.
clockwise | Specifies that the motion is clockwise. |
cx | The X coordinate of the center position. |
cy | The Y coordinate of the center position. |
cz | The Z coordinate of the center position. |
x | The X coordinate of the end position. |
y | The Y coordinate of the end position. |
z | The Z coordinate of the end position. |
feed | The feedrate. |
extrusionLength | The extrusion length. |
onClose | ( | ) |
Invoked after the last section.
onCommand | ( | Integer | command | ) |
Entry function invoked for well-known commands.
command | The well-known command. |
The known commands are:
onComment | ( | String | comment | ) |
Entry function for comments.
comment | The comment. |
onCycle | ( | ) |
The onCycle() entry function is invoked for each cycle.
onCycleEnd | ( | ) |
The onCycleEnd() entry function is invoked on cycle termination.
onCyclePath | ( | ) |
The onCyclePath() entry function is invoked at the beginning of cycle toolpath.
onCyclePathEnd | ( | ) |
The onCyclePathEnd() entry function is invoked at the ending of cycle toolpath.
onCyclePoint()
is the entry function for cycle positions. The function expands all well-known cycles by default. The specified position is the center of the hole for drilling or equivalent cycles. You should always use cycle.bottom as the bottom coordinate if defined.
x | The x coordinate for the drill position. |
y | The y coordinate for the drill position. |
z | The z coordinate for the drill position. |
onDwell | ( | Number | time | ) |
Entry function invoked for dwelling.
time | The dwelling time in seconds. |
onExpandedLinear() calls the onLinear() entry function and lets the post processor know that the current position has changed at the same time. You should generally not call onLinear() directly.
onExpandedRapid() calls the onRapid() entry function and lets the post processor know that the current position has changed at the same time. You should generally not call onRapid() directly.
onExpandedSpindleSpeed | ( | Number | spindleSpeed | ) |
onExpandedSpindleSpeed() calls the onSpindleSpeed() entry function and lets the post processor know that the current spindle speed has changed at the same time. You should generally not call onSpindleSpeed() directly.
onExtruderChange | ( | Number | extruderId | ) |
Entry function invoked when the extruder is changed in an additive FFF toolpath.
extruderId | The id of the extruder to change to. |
Entry function invoked when the extruder temperature is changed in an additive FFF toolpath.
temp | The target temperature. |
wait | If true, wait to reach the desired temperature before continuing. |
extruderId | The extruder id. |
onExtrusionReset | ( | Number | length | ) |
Entry function invoked when the extrusion length is reset in an additive FFF toolpath.
length | The extrusion length. |
Entry function invoked when the fan speed is changed in an additive FFF toolpath.
speed | The fan speed. |
fanId | The fan id. |
onImpliedCommand | ( | Integer | command | ) |
Invoke this method to tell the post processor about state changes without triggering invocation of onCommand(). This method must be invoked when a state doesn't originate from an invocation of an entry function. If this method is not invoked the post processor may not know certain current state (e.g. whether the coolant is active). For instance, the state is important when the post processor is asked to expand cycles.
Entry function invoked when the axis jerk is changed in an additive FFF toolpath.
xAxis | The X axis jerk. |
yAxis | The Y axis jerk. |
zAxis | The Z axis jerk. |
eAxis | The E axis jerk. |
onLayer | ( | Number | layerNumber | ) |
Entry function invoked at the start of a layer in an additive FFF or DED toolpath.
layerNumber | The layer number. |
onLayerEnd | ( | Number | layerNumber | ) |
Entry function invoked at the end of a layer in a DED toolpath.
layerNumber | The layer number. |
Entry function invoked for linear motion at feed.
x | The X coordinate of the end position. |
y | The Y coordinate of the end position. |
z | The Z coordinate of the end position. |
feed | The feedrate. |
Entry function invoked for linear 5-axis motion at feed. The tool axis may also be returned in machine angles depending on the mode in accordance with the active machine configuration.
x | The x coordinate of the position. |
y | The y coordinate of the position. |
z | The z coordinate of the position. |
dx | The dx coordinate of the tool axis direction. |
dy | The dy coordinate of the tool axis direction. |
dz | The dz coordinate of the tool axis direction. |
feed | The feedrate. |
Entry function invoked for linear extrusion motion at feed.
x | The X coordinate of the end position. |
y | The Y coordinate of the end position. |
z | The Z coordinate of the end position. |
feed | The feedrate. |
extrusionLength | The extrusion length. |
onMachine | ( | ) |
Invoked during post processing when the machine configuration changes.
Entry function invoked when the max axis acceleration is changed in an additive FFF toolpath.
xAxis | The X axis max acceleration. |
yAxis | The Y axis max acceleration. |
zAxis | The Z axis max acceleration. |
eAxis | The E axis max acceleration. |
onMovement | ( | Integer | movement | ) |
Entry function invoked when the movement type changes.
onMoveToSafeRetractPosition | ( | ) |
Entry function invoked during a machine rewind procedure. It needs to output the code for retracting to safe position before indexing rotaries(usually a retract in Z).
onOpen | ( | ) |
Invoked during initialization before the first section.
onOrientateSpindle | ( | Number | angle | ) |
This function must set the spindle orientation. The function may be invoked when expanding cycles.
angle | The requested spindle orientation. |
Parameter entry function.
name | The name of the parameter. |
value | The value of the parameter. |
onPassThrough | ( | Value | value | ) |
Pass-through entry function.
value | The value. |
onPower | ( | Boolean | power | ) |
Entry function invoked when the power mode changes (used for water jet, laser cutter, and plasma cutter).
onRadiusCompensation | ( | ) |
Entry function invoked when the radius compensation mode changes.
Entry function invoked for linear motion at rapid traverse.
x | The X coordinate of the end position. |
y | The Y coordinate of the end position. |
z | The Z coordinate of the end position. |
Entry function invoked for linear rapid 5-axis motion at rapid traverse. The tool axis may also be returned in machine angles depending on the mode in accordance with the active machine configuration.
x | The x coordinate of the position. |
y | The y coordinate of the position. |
z | The z coordinate of the position. |
dx | The dx coordinate of the tool axis direction. |
dy | The dy coordinate of the tool axis direction. |
dz | The dz coordinate of the tool axis direction. |
Entry function invoked during a machine rewind procedure. It needs to output the code for returning from safe position after indexing rotaries.
x | The X coordinate to return to. |
y | The Y coordinate to return to. |
z | The Z coordinate to return to. |
DEPRECATED. Entry function invoked for 5-axis motion when machine axis rewind is required.
a | The A coordinate of the machine orientation. |
b | The B coordinate of the machine orientation. |
c | The C coordinate of the machine orientation. |
Entry function invoked for 5-axis motion when machine axis rewind is required. This is called before performing a machine rewind in the kernel, as onRewindMachine() is now deprecated.
a | The A coordinate of the machine orientation. |
b | The B coordinate of the machine orientation. |
c | The C coordinate of the machine orientation. |
Entry function invoked during a machine rewind procedure. It needs to output the code for rotating the axes to new position above re-entry position.
x | The X coordinate to rotate to. |
y | The Y coordinate to rotate to. |
z | The Z coordinate to rotate to. |
a | The A coordinate to rotate to. |
b | The B coordinate to rotate to. |
c | The C coordinate to rotate to. |
onSectionEnd | ( | ) |
Entry function invoked at the end of each section.
onSpindleSpeed | ( | Number | spindleSpeed | ) |
Entry function invoked for spindle speed changes.
spindleSpeed | The spindle speed in RPM. |
onToolCompensation | ( | Integer | compensation | ) |
Entry function invoked when the tool compensation changes. Only used for specific tool types for which dual compensation is defined.
onUnsupportedCommand | ( | Integer | command | ) |
Writes an error message for the specified command.
onUnsupportedCoolant | ( | Integer | coolant | ) |
Writes an error message for the specified coolant.
openUrl | ( | String | url | ) |
Opens the specified url.
optimizeMachineAngles | ( | ) |
Optimizes the machine angles for 5-axis motion using the active machine configuration. The tool tip position is maintained (TCPM).
The directions for onRapid5D() and onLinear5D() are hereafter mapped to machine angles from the initial direction vector. The work plane and origin are mapped into the WCS plane and origin.
optimizeMachineAngles2 | ( | Integer | optimizeType | ) |
Optimizes the machine angles for 5-axis motion using the active machine configuration.
optimizeType options are:
optimizeMachineAnglesByMachine | ( | MachineConfiguration | machine, |
Integer | optimizeType | ||
) |
Optimizes the machine angles for 5-axis motion given the specified machine configuration.
The directions for onRapid5D() and onLinear5D() are hereafter mapped to machine angles from the initial direction vector. The work plane and origin are mapped into the WCS plane and origin.
machine | The machine configuration. |
optimizeType | Can be one of the following values. |
Returns the given value and spatial unit in the current spatial unit.
The value can start with a sign (+ or -) followed by the digits and decimal ('.') and end with the unit.
The supported units are: yd, ft, in, mil or mils, thou, m, cm, mm, um, nm
yd = 3 ft ft = 12 in in = 1000 mil in = 1000 thou
m = 100 cm cm = 10 mm mm = 1000 um um = 1000 nm
Prints the specified document. Note that you cannot open the primary output file until the onTerminate() is invoked. The document type must have the "print" command registered in the Windows Registry.
path | The path of the document. |
Prints the specified document. Note that you cannot open the primary output file until the onTerminate() is invoked. The document type must have the "printto" command registered in the Windows Registry. If the "printto" command is not registered for a given document type you can sometimes print using the execute()
function by referrencing the proper application and parsing appropriate parameters.
path | The path of the document. |
printerName | The printer name. |
Waits for the user to hit a key. In console mode ESC or RETURN cancels. Not supported in graphical user interaction mode.
title | The title. |
description | The description. |
Waits for the user to hit a key. In console mode ESC or RETURN cancels or returns the first character in the accept string. The following accept modes are available in graphical user interface:
YN:
Yes/NoYNC:
Yes/No/CancelRC:
Retry/CancelOC:
Ok/CancelARI:
Abort/Retry/Ignoretitle | The title. |
description | The description. |
accept | The allowed characters. Case is ignored. The first character in the string is the default. |
Waits for the user to hit a key. In console mode ESC or RETURN cancels or returns the first character in the accept string. The following accept modes are available in graphical user interface:
YN:
Yes/NoYNC:
Yes/No/CancelRC:
Retry/CancelOC:
Ok/CancelARI:
Abort/Retry/Ignoretitle | The title. |
description | The description. |
accept | The allowed answers. Case is ignored. The first character in the string is the default. |
keys | The allowed characters used in console mode. Case is ignored. The first character in the string is the default. |
Waits for user to enter a text string. Not supported in graphical user interface mode.
Returns an array with values in the requested range.
range(end) range(first, end) range(first, end, step)
redirectToBuffer | ( | ) |
Redirects the output to the global buffer. Use getRedirectionBuffer() to access the current buffer content. Use getRedirectionBuffer2() to clear the buffer during redirection. Close redirection again using closeRedirection().
redirectToFile | ( | String | path | ) |
Redirects output to the specified file.
Security: Requires security level 0.
registerPostProcessing | ( | String | path | ) |
Registers post processing of the output file using the specified executable.
registerTerminationHandler | ( | Function | function | ) |
Registers a termination handler to be called after onTerminate(). The termination handlers are called in the opposite order of registration.
function | The termination handler. Must be a function. |
Repositions to cycle clearance plane. Attention: The tool is not moved over the hole if not required. The spindle axis must be along the Z-axis.
cycle | The cycle parameters. |
x | The X position of the cycle. |
y | The Y position of the cycle. |
z | The Z position of the cycle. |
setCascadingPath | ( | String | ) |
Sets the path used as the primary source for a cascading post. By default this will be the getOutputPath(). A cascading post is a specific post that takes as input the output from a previous post. The cascading post is run after the onTerminate() entry function.
setCodePage | ( | String | name | ) |
Sets the output code page.
The code page can be changed at any time but using different code pages in the same text file does normally not make sense. For binary output it can be relevant in some cases.
setCurrentABC | ( | Vector | abc | ) |
Called to pass the current machine angles back to the post engine.
This function allows machine angles chosen in a post script to be passed back to the post engine. This is used to drive simulation and should accompany calls to setRotation().
The machine angles set by this function will be cleared by a call to cancelRotation() or cancelTransformation()
abc | A vector representing the machine axis angles where a, b, and c map to the vector's x, y, and z respectively. |
setCurrentDirection | ( | Vector | currentDirection | ) |
Sets the tool axis if the section is not optimized for the machine. Sets the rotary angles if the section is optimnized for the machine.
setCurrentPosition | ( | Vector | currentPosition | ) |
Sets the current position.
setCurrentPositionAndDirection | ( | VectorPair | posDir | ) |
Call to set the current position and direction at the same time.
posDir | A pair of vectors containing the position and direction wanting to be set. |
setCurrentPositionX | ( | Number | x | ) |
Sets only the current X position.
setCurrentPositionY | ( | Number | y | ) |
Sets only the current Y position.
setCurrentPositionZ | ( | Number | z | ) |
Sets only the current Z position.
setCurrentSpindleSpeed | ( | Number | spindleSpeed | ) |
Sets the current spindle speed.
setCurrentToolAxis | ( | Vector | currentToolAxis | ) |
Sets the current tool axis.
setDogLeg | ( | Boolean | dogLeg | ) |
Sets the dog-leg style. 3-axis rapid traversal will be substituted with dog-leg style rapid traversal when this flag is set to true.
setEOL | ( | String | eol | ) |
Sets the EOL style. Windows EOL style CRLF is the default.
eol | The EOL to use. Only these are allowed CR, LF, CRLF, and LFCR. |
setExitCode | ( | Integer | code | ) |
Sets the desired exit code. The default exit code is usually fine. The behavior is unspecified if the exit code is not a value in the range [1000; 1999].
setHighFeedMapping | ( | Integer | mode | ) |
Sets the high feed rapid traversal mapping mode.
See HIGH_FEED_NO_MAPPING, HIGH_FEED_MAP_MULTI, HIGH_FEED_MAP_XY_Z, and HIGH_FEED_MAP_ANY.
setHighFeedrate | ( | Number | feedrate | ) |
Sets the high feedrate used for mapping rapid traversal.
setMachineConfiguration | ( | MachineConfiguration | machine | ) |
Sets the active machine configuration.
machine | The new machine configuration. |
setOutputUnit | ( | Integer | unit | ) |
Sets the output unit.
setProperty | ( | ScriptObject | property, |
Value | value | ||
) |
Sets the value of the specified post property. The specified property must exist.
property | The property object or the property name. |
value | The new value of the property. |
e.g.
setRotation | ( | Matrix | rotation | ) |
Sets the rotation. This is normally used for rotating around the tool axis.
Tells the post processor to call onSectionSpecialCycle()/onSectionEndSpecialCycle() instead of onSection()/onSectionEnd() for sections starting with the given cycle.
uri | The unique identifier of the cycle. |
specialCycle | Indicates if the cycle should be considered special. Set to false to remove a built-in special cycles. |
setTranslation | ( | Vector | translation | ) |
Sets the translation.
setWordSeparator | ( | String | message | ) |
Sets the separator for word-based line output. Defaults to a space (i.e. " ").
setWriteInvocations | ( | Boolean | writeInvocations | ) |
Specifies that the entry function should be written.
setWriteStack | ( | Boolean | writeStack | ) |
Specifies that a stack dump should be written when text is output by the post processor.
skipRemainingSection | ( | ) |
Tells the post processor to skip the remaining of the current section. onSectionEnd() will still be invoked.
Returns the specified spatial value and unit in the internal unit.
Note: IN values are scaled with 25 relative to MM.
value | The value. |
unit | The unit of the value. |
Returns a new string with the named substrings of the first argument substituted by the specified arguments. This method supports up to 16 arguments.
Returns the specified angle in degrees.
radians | the angle in radians |
Range toolZRange | ( | ) |
Returns the Z range for the currently active tool, for the current and upcoming consecutive sections that use this tool. Returns undefined if the tool does not have a Z axis (e.g. on 2D operations).
Returns the specified angle in radians.
degrees | the angle in degrees. |
Translates the specified string into a new string. The characters in src
will be mapped to the character at the same index in dest
.
text | The original text. |
src | The chars to be mapped. |
dest | The destination characters. |
Raises an exception if the expression is false. Use this function to make sure that you have protected your code against invalid cases.
expression | The boolean expression. |
message | Optional description of the constraint. |
Boolean validateProperties | ( | ) |
Returns true if all user defined properties are valid according to the property definitions.
Boolean validatePropertyDefinitions | ( | ) |
Validates the property definitions.
warning | ( | String | message | ) |
Writes a warning.
Writes the specified warning if the given warning id has not been used before.
write | ( | String | message | ) |
Writes the specified text to the NC output file excluding an end-of-line marker.
writeln | ( | String | message | ) |
Writes the specified text to the NC output file including an end-of-line marker.
writeSectionNotes | ( | ) |
Writes the notes for the current section as comments.
writeSetupNotes | ( | ) |
Writes the notes for the current setup as comments.
writeToolTable | ( | Integer | orderBy | ) |
Prints the tool table.
orderBy | An enum of the column to order the table by. It can be:
|
writeWords | ( | String | message, |
... | |||
) |
Writes the specified words to the NC output file including an end-of-line marker using the word separator (see getWordSeparator() and setWordSeparator()). Empty strings or undefined values are ignored. No line is output for completely empty lines.
writeWords2 | ( | String | message, |
... | |||
) |
This method is similar to writeWords() with the exception that text is only output if the 2 argument or above results in text.
This function is useful when outputting block numbers to avoid output.
Boolean abortOnDeprecation |
This property specifies that the post processing should be aborted if the post processor is deprecated. Defaults to true.
Specifies that the post processing should be aborted if the post processor has been deprecated.
Integer activeFeedMode |
The active feedrate mode. FEED_PER_MINUTE, FEED_PER_REVOLUTION, FEED_INVERSE_TIME, or FEED_DEGREES_MINUTE.
Integer allowedCircularPlanes |
Specifies the allowed circular planes to be output. Set to 0 to linearize all circular motion and undefined
to allow any motion. Circular motion in disabled planes will be output as linear motion using the globally specified tolerance. allowedCircularPlanes is a bit mask. PLANE_XY, PLANE_ZX, and PLANE_YZ can be used for accessing the appropriate bits. Handling all planes in onCircular() gives more flexibility with regard to the used tolerances.
Integer allowFeedPerRevolutionDrilling |
Specifies that post supports feed per revolution mode for drilling cycles. It must be explicitly set for both milling or turning posts, if they support it.
Boolean allowHelicalMoves |
Specifies that helical motion is allowed. The helical motion is linearized if false.
Boolean allowMachineChangeOnSection |
Specifies that the machine configuration may change during post processing when no machine configuration is defined in the post configuration. Only one machine configuration is allowed by default when they are defined/embedded in the toolpath. This property must be set to true
to allow multiple machines to be defined during post processing in which case the machine configuration will become active on onSection() calls. Any machine configuration defined in the post configuration always takes precedence.
Boolean allowSpiralMoves |
Specifies that spiral motion is allowed (i.e. the start and end radii are different). The spiral motion is linearized if false.
Boolean bufferRotaryMoves |
When set to 'true' moves where only a single rotary axis moves will be buffered until another axis moves. 'false' will not buffer moves where only a single rotary axis moves, which can cause multiple blocks being output with a single rotary axis move. The default is 'true'.
Integer capabilities |
Specifies the capability flags. CAPABILITY_MILLING, CAPABILITY_TURNING, CAPABILITY_JET, CAPABILITY_SETUP_SHEET, CAPABILITY_INTERMEDIATE, and CAPABILITY_CASCADING. The default is "CAPABILITY_MILLING".
Integer certificationLevel |
Certification level of the post configuration. The post configuration must always use the property certificationLevel to set its certification level. The level should never be set higher than the current certification level of the post processor. The level defaults to 1 for all configurations. A warning will be output if the certication level of the post configuration is less than the level required by the post processor. This ensures that users will be notified when post configurations may not run properly in future releases of the post processor. The certification level of the post processor is rarely incremented.
The current certification level is 2.
Number circularChordLength |
The chord length of the current circular motion (0 for full circles). Since r45991.
Boolean circularFullCircle |
Specifies that the currect circular motion is a full circle. Since r45991.
Number circularHelicalDistance |
The helical distance for the currect circular motion. Since r45991.
Number circularInputTolerance |
The circular input tolerance in millimeters used to determine if a circular record is a spiral or helical. Specifying a value of 0 will not convert slight spiral and helical moves into pure circular moves.
Number circularMergeTolerance |
The tolerance in millimeters used to determine if consecutive circular records can be merged into a single record. Specifying a value of 0 will not merge consecutive circular records that are the same circle.
Vector circularOffset |
The distance from the circular start point to the circular center of the current circular motion. Since r45991.
Integer circularOutputAccuracy |
The circular output accuracy use when adjusting the final point to be exactly on the circle. Specify a value of 0 to not adjust the final point of a circular record to be exactly on the circle. When nonzero it should be the same as the output accuracy used for the XYZ-coordinates.
Integer circularPlane |
The circular plane of the current circular motion (PLANE_INVALID for non-primary planes). Since r45991.
Integer COMMAND_MAIN_CHUCK_CLOSE |
Close main chuck.
Integer COMMAND_MAIN_CHUCK_OPEN |
Open main chuck.
Integer COMMAND_ORIENTATE_SPINDLE |
Orientate spindle direction (well-known command M19). The property machineParameters.spindleOrientation
must be set to the machine spindle orientation.
Integer COMMAND_SECONDARY_CHUCK_CLOSE |
Close secondary chuck.
Integer COMMAND_SECONDARY_CHUCK_OPEN |
Open secondary chuck.
Integer COMMAND_SECONDARY_SPINDLE_SYNCHRONIZATION_ACTIVATE |
Activate spindle synchronization.
Integer COMMAND_SECONDARY_SPINDLE_SYNCHRONIZATION_DEACTIVATE |
Deactivate spindle synchronization.
Integer COMMAND_START_SPINDLE |
Spindle start (well-known command M03 or M04). This is a virtual command which maps to either COMMAND_SPINDLE_CLOCKWISE or COMMAND_SPINDLE_COUNTERCLOCKWISE dependent on the current spindle direction.
Section currentSection |
The current section. This property is unspecified outside onSection() and onSectionEnd() invocations.
Map cycle |
Specifies the current cycle parameters in canned cycle mode.
Boolean cycleExpanded |
Specifies that a previous cycle point has been expended for the current cycle. Defaults to false.
String cycleType |
Specifies the type of the current cycle in canned cycle mode.
Boolean debugMode |
Specifies the debugging mode.
Boolean deprecated |
Specifies that this version of the engine has been deprecated.
String description |
Description for the post processor configuration.
Vector end |
The end position of the current motion.
String extension |
The default output extension (defaults to 'nc').
Number feedrate |
The current feedrate.
String filename |
The default filename (defaults to program name).
Integer HIGH_FEED_MAP_XY_Z |
Map rapid travesal not in the X-Y plane or along the Z-axis to high feed.
Integer highFeedMapping |
Specifies the high feed mapping mode for rapid traversal.
Number highFeedrate |
Specifies the high feedrate for rapid traversal to high feed mapping.
Vector initialCyclePosition |
The initial cycle position.
String legal |
Legal comment for the post processor configuration.
Number length |
The length of the current motion.
Integer linearOutputAccuracy |
The linear axis output accuracy used in the post. This is used by the post enginge to compare output values, for example for high feed mapping and the buffering of rotary axis moves. The default value is 3 for millimeters and 4 for inches. It should be the same as the output accuracy used for the XYZ-coordinates.
Integer lineNumber |
Specifies the line number in the source document. Will be 0 if the line number is unknown.
MachineConfiguration machineConfiguration |
The machine configuration.
MachineParameters machineParameters |
Machine parameters.
Boolean mapToWCS |
Specifies that the section work plane should be mapped to the WCS. When disabled the post is responsible for handling the WCS and section work plane. By default this is enabled.
This is a special variable, and, therefore, it should be put in a comment, as per example.
Boolean mapWorkOrigin |
Specifies that the section origin should be mapped to (0, 0, 0). When disabled the post is responsible for handling the section origin. By default this is enabled.
This is a special variable, and, therefore, it should be put in a comment, as per example.
Number maximumCircularRadius |
The maximum circular radius in millimeters.
Number maximumCircularSweep |
The maximum circular sweep in radians.
Number minimumChordLength |
The minimum chord length in millimeters. Not used for full circle motion.
Number minimumCircularRadius |
The minimum circular radius in millimeters.
Number minimumCircularSweep |
The minimum circular sweep in radians.
Integer minimumRevision |
Specifies the minimum allowed revision of the post processor (defaults to 1).
Integer movement |
The current movement type. The supported types are: MOVEMENT_RAPID, MOVEMENT_LEAD_IN, MOVEMENT_CUTTING, MOVEMENT_LEAD_OUT, MOVEMENT_LINK_TRANSITION, MOVEMENT_LINK_DIRECT, MOVEMENT_RAMP_HELIX, MOVEMENT_RAMP_PROFILE, MOVEMENT_RAMP_ZIG_ZAG, MOVEMENT_RAMP, MOVEMENT_PLUNGE, MOVEMENT_PREDRILL, MOVEMENT_FINISH_CUTTING, MOVEMENT_REDUCED, and MOVEMENT_HIGH_FEED.
Integer outputUnit |
Specifies the output unit. Set to -1 to use original unit.
Boolean preventPost |
Denies post processing.
String programName |
The program name.
Boolean programNameIsInteger |
Specifies that the program name must be an integer.
Map properties |
User-defined properties.
Integer radiusCompensation |
The current radius compensation mode. The modes are: RADIUS_COMPENSATION_OFF, RADIUS_COMPENSATION_LEFT, and RADIUS_COMPENSATION_RIGHT.
The current radius compensation. Defaults to RADIUS_COMPENSATION_OFF.
Integer revision |
Specifies the revision of the post processor.
Integer rotaryOutputAccuracy |
The rotary axis output accuracy used in the post. This is used by the post enginge to compare output values, for example for high feed mapping and the buffering of rotary axis moves. The default value is 3. It should be the same as the output accuracy used for the ABC-coordinates.
Integer SINGULARITY_LINEARIZE_LINEAR |
Keep top of tool in line with tool axis during multi-axis singularity linearization.
Integer SINGULARITY_LINEARIZE_OFF |
Don't linearize moves around multi-axis singularities.
Integer SINGULARITY_LINEARIZE_ROTARY |
Keep rotary axes in line during multi-axis singularity linearization.
Integer spindleAxis |
The spindle axis. Defaults to TOOL_AXIS_Z.
Number spindleSpeed |
The current spindle speed in RPM. Positive for clockwise direction.
Number tolerance |
Linearization tolerance.
Tool tool |
The current tool.
Integer unit |
The output unit (defaults to the specified measurement system in the regional settings).
String vendor |
The vendor of the post processor configuration.
String vendorUrl |
The vendor url of the post processor configuration.
String version |
Specifies the configuration version (defaults to '1.0').