Parameterized Syntax
This is an example of parameterized syntax
*START_NC_COMMAND NC_COMPENSATION
LOADTL/%MFG_TL_NUMBER,%MFG_TOOL_COMP
*END
Notes:
-
The
& character indicates a list and the % character
indicates a parameter.
- A list has a finite number of values.
-
You can define
only one syntax for each NC command.
The examples below show how lists are used to define units for feeds
and speeds.
-
Example: Defining Inch Units for Feeds and Speeds
*START_NC_COMMAND
NC_FEEDRATE
*START_LIST MFG_FEED_UNIT
IPM ,IPR
*END
FEDRAT/%MFG_FEED_VALUE,&MFG_FEED_UNIT
*END
/
*START_NC_COMMAND NC_SPINDLE_START
*START_LIST MFG_SPNDL_UNIT
RPM ,SFM
*END
SPINDL/%MFG_SPNDL_SPEED,&MFG_SPNDL_UNIT,&MFG_SPNDL_WAY
*END
/
*START_NC_COMMAND NC_SPINDLE_LATHE
*START_LIST MFG_SPNDL_UNIT
RPM ,SFM
*END
SPINDL/%MFG_SPNDL_SPEED,&MFG_SPNDL_UNIT
*END
-
Example: Defining Metric Units for Feeds and Speeds
*START_NC_COMMAND
NC_FEEDRATE
*START_LIST MFG_FEED_UNIT
MMPM ,MMPR
*END
FEDRAT/%MFG_FEED_VALUE,&MFG_FEED_UNIT
*END
/
*START_NC_COMMAND NC_SPINDLE_START
*START_LIST MFG_SPNDL_UNIT
RPM ,SMM
*END
SPINDL/%MFG_SPNDL_SPEED,&MFG_SPNDL_UNIT,&MFG_SPNDL_WAY
*END
/
*START_NC_COMMAND NC_SPINDLE_LATHE
*START_LIST MFG_SPNDL_UNIT
RPM ,SMM
*END
SPINDL/%MFG_SPNDL_SPEED,&MFG_SPNDL_UNIT
*END
Arithmetic Operators
You can use the following arithmetic operators in PP word syntaxes:
-
addition (
+ )
-
subtraction (
- )
-
multiplication (
* )
-
division (
/ ).
These operators are used between:
-
word syntaxes (for example,
%MFG_xxx + %MFG_yyy )
- a value and a word syntax (for example,
n + %MFG_yyy )
- a word syntax and a value (for example,
%MFG_xxx + n )
- values (for example,
n + m ).
Parenthesis are not needed in expressions: they are ignored and cannot appear in NC data output. For example: WORD/%MFG_aaa, %MFG_xxx + %MFG_yyy, %MFG_bbb/2
Operators are processed in the order they appear in the syntax: the example below means that %MFG_xxx is added to %MFG_yyy , then this sum is multiplied
by %MFG_zzz . %MFG_xxx + %MFG_yyy * %MFG_zzz
Note:
Avoid using the + , - , * , / characters for other meanings.
For example, use an underscore (_ ) instead of a dash (- ) in the
following expression to avoid any ambiguity:PPRINT/DIAMETER-VALUE, %MFG_NOMINAL_DIAM
Drilling Riveting
NC Commands | Comments |
NC_DR_MO_START_COMMENT
|
Output at the start of a Drilling Riveting MO. PP Word Syntax: *START_NC_INSTRUCTION NC_DR_MO_START_COMMENT
*START_SEQUENCE
PPRINT NC_DR_MO_START_COMMENT BEGIN
PPRINT MACHINE OPERATION = %MFG_MO_TYPE
PPRINT OPERATION NAME = %MFG_MO_IDENTIFIER
PPRINT NC_DR_MO_START_COMMENT END
*END
*END
|
NC_DR_MO_END_COMMENT
|
Output at the end of a Drilling Riveting MO. PP Word Syntax: *START_NC_INSTRUCTION NC_DR_MO_END_COMMENT
*START_SEQUENCE
PPRINT NC_DR_MO_END_COMMENT BEGIN
PPRINT MACHINE OPERATION = %MFG_MO_TYPE
PPRINT OPERATION NAME = %MFG_MO_IDENTIFIER
PPRINT NC_DR_MO_END_COMMENT END
*END
*END
|
NC_INSTRUCTIONSET_START
|
Output at the start of an Instruction Set. PP Word Syntax: *START_NC_INSTRUCTION NC_INSTRUCTIONSET_START
*START_SEQUENCE
PPRINT NC_INSTRUCTIONSET_START
*END
*END
|
NC_INSTRUCTIONSET_END
|
Output at the end of an Instruction Set. PP Word Syntax: *START_NC_INSTRUCTION NC_INSTRUCTIONSET_END
*START_SEQUENCE
PPRINT NC_INSTRUCTIONSET_END
*END
*END
|
NC_INSTRUCTIONSET_MOVE_START
|
Output at start for each move action of an Instruction Set. PP Word Syntax: *START_NC_INSTRUCTION NC_INSTRUCTIONSET_MOVE_START
*START_SEQUENCE
PPRINT NC_INSTRUCTIONSET_MOVE_START
*END
*END
|
NC_INSTRUCTIONSET_MOVE_END
|
Output at end for each move action of a Instruction Set. PP Word Syntax: *START_NC_INSTRUCTION NC_INSTRUCTIONSET_MOVE_END
*START_SEQUENCE
PPRINT NC_INSTRUCTIONSET_MOVE_END
*END
*END
|
NC_INSTRUCTIONSET_DEVICEMOVE_START
|
Output at start for each device in a move action of an Instruction Set. PP Word Syntax: *START_NC_INSTRUCTION NC_INSTRUCTIONSET_DEVICEMOVE_START
*START_SEQUENCE
PPRINT NC_INST_DEVICEMOVE_START = %MFG_DEVICE_NAME
*END
*END
|
NC_INSTRUCTIONSET_DEVICEMOVE_END
|
Output at end for each device in a move action of an Instruction Set.PP Word Syntax: *START_NC_INSTRUCTION NC_INSTRUCTIONSET_DEVICEMOVE_END
*START_SEQUENCE
PPRINT NC_INST_DEVICEMOVE_END = %MFG_DEVICE_NAME
*END
*END
|
NC_INSTRUCTIONSET_AXIS_MOVE
|
Output for each axis of a device in a move action of an Instruction Set. PP Word Syntax: *START_NC_COMMAND NC_INSTRUCTIONSET_AXIS_MOVE
*START_LIST MFG_AXIS_MOVE_TYPE
ABS,INCR
*END
MOVE/%MFG_AXIS_NAME,&MFG_AXIS_MOVE_TYPE,%MFG_AXIS_POSITION
*END
|
NC_INSTRUCTIONSET_AXIS_FEEDRATE
|
Output for each axis feed rate of a device in a move action of an Instruction Set. PP Word Syntax: *START_NC_COMMAND NC_INSTRUCTIONSET_AXIS_FEEDRATE
*START_LIST MFG_AXIS_FEED_UNIT
MMPM ,MMPR
*END
INST_FED/%MFG_AXIS_FEED_VALUE,&MFG_AXIS_FEED_UNIT
*END
|
NC_INSTRUCTIONSET_DWELL
|
Output for each dwell action of an Instruction Set. PP Word Syntax: *START_NC_COMMAND NC_INSTRUCTIONSET_DWELL
DELAY/%MFG_DELAY_VALUE
*END
|
NC_INSTRUCTIONSET_PUBLIC_PARAM | Output for each public parameter of the Approach and Fastening instruction sets at the start of a drilling and riveting operation, or for a specific instruction set. *START_NC_INSTRUCTION NC_INSTRUCTIONSET_PUBLIC_PARAM
*START_SEQUENCE
PPRINT
%MFG_IS_PUBLIC_PARAM_NAME,%MFG_IS_PUBLIC_PARAM_TYPE,%MFG_IS_PUBLIC_PARAM_VALUE,%MFG_IS_NAME,%MFG_IS_TYPE
*END
*END |
Robots
NC Commands | Comments |
NC_DEVICE_MOTION_TYPE | Output for the robot motion type, for each Cartesian point.*START_NC_INSTRUCTION NC_DEVICE_MOTION_TYPE
*START_SEQUENCE
MOTIONTYPE/%MFG_MOTION_TYPE
*END
*END
| NC_DEVICE_CONFIG | Output for the configuration numbers, for each Cartesian point.*START_NC_INSTRUCTION NC_DEVICE_CONFIG
*START_SEQUENCE
CONFIG/%MFG_CONFIG_NUMBER
*END
*END | NC_JOINT_TURN | Output for the turn number (if defined), for each Cartesian point.*START_NC_INSTRUCTION NC_JOINT_TURN
*START_SEQUENCE
TURN/%MFG_TURN_NUMBER1,%MFG_TURN_NUMBER2,%MFG_TURN_NUMBER3,%MFG_TURN_NUMBER4,%MFG_TURN_NUMBER5
*END
*END | NC_JOINTS_MOVE | Output for the DOF information, for each Cartesian point.*START_NC_INSTRUCTION NC_JOINT_MOVE
*START_SEQUENCE
JOINT/%MFG_JOINT_VALUE1,%MFG_JOINT_VALUE2,%MFG_JOINT_VALUE3,%MFG_JOINT_VALUE4,%MFG_JOINT_VALUE5,%MFG_JOINT_VALUE6
*END
*END |
NC Parameters | Comments |
MFG_MOTION_TYPE | Type of the robot motion. The value is set to 1 or 2 depending
whether the motion type is linear or joint.
The parameter type is integer. | MFG_CONFIG_NUMBER | Value of the configuration. The parameter type is integer. | MFG_TURN_NUMBERn Where n = 1,2,3... | Turn number of joint (if defined). It is similar to the number
displayed in the Multi-Motions Editor.
The parameter type is a string. | MFG_JOINT_VALUEn Where n = 1,2,3... | Value of the nth DOF of the entire robotic cell. The parameter type is real. |
Other NC Commands and Parameters
Note:
Parameters listed under a context have to be used in the same context
and should not be extended to other contexts.
NC Commands and Parameters |
Comments |
NC_AXIS_LOCK |
Allows blocking a linear or rotary axis.
See Displacing and Locking Linear and Rotary Axes.
|
MFG_AXIS_LOCK_STATUS
|
Defines the lock status of the NC axis.
|
MFG_NCAXIS_NAME
|
Defines the name of NC axis.
|
NC_AXIS_MOVE
|
Allows linear displacement.
See Displacing and Locking Linear and Rotary Axes.
|
MFG_NCAXIS_NAME
|
Defines the name of the NC axis.
|
MFG_AXIS_POSITION
|
Defines the position of the NC axis
|
NC_CHANGE_REF_PT
|
Defines the tool compensation corresponding to the desired tool
output point.
|
MFG_QUADRANT
|
Defines the number of the compensation type (for example, 2 for compensation
type P2).
|
MFG_NOSE_RADIUS
|
Defines the insert nose radius.
|
MFG_TL_SET_X
|
Defines the tool assembly set length in x direction.
|
MFG_TL_SET_Y
|
Defines the tool assembly set length in y direction.
|
MFG_TL_SET_Z
|
Defines the tool assembly set length in z direction.
|
MFG_LGTH_COR_REG ,
MFG_TOOL_COMP
MFG_TL_COMP
|
Define the number of the correction
register.
|
MFG_ID_COMP
|
Define the number of the corrector ID
|
By default,
the syntax is: SWITCH/% MFG_QUADRANT
Syntax example for turning operations:
SWITCH/%MFG_TL_COMP,%MFG_QUADRANT,INCR,%MFG_TL_SET_X,
%MFG_TL_SET_Z,%MFG_NOSE_RADIUS
NC Commands and Parameters |
Comments |
NC_COMMENT
|
|
MFG_MO_COMMENT
|
Defines the comment on the Machining Operation.
|
By default,
the syntax is % MFG_MO_COMMENT
NC Commands and Parameters |
Comments |
NC_COMPENSATION
|
|
MFG_TOOL_COMP
MFG_TL_COMP
|
Specifies the length number of current corrector.
|
MFG_TL_COMP_RAD
|
Defines the tool compensation radius.
|
MFG_TL_NUMBER
|
Defines the tool number associated to the compensation.
|
MFG_TL_NAME
|
Defines the name of tool associated to the compensation.
|
By default,
the syntax is LOADTL/% MFG_TL_NUMBER ,%MFG_TL_COMP
NC Commands and Parameters |
Comments |
NC_CUTCOM_ON
|
The syntax of this NC command is CUTCOM/ON and cannot be parameterized.
|
NC_CUTCOM_OFF
|
The syntax of this NC command is CUTCOM/OFF and cannot be parameterized.
|
NC_CUTCOM_NORMDS_ON
|
The syntax of this NC command is CUTCOM/SAME, NORMDS and cannot be parameterized.
|
NC_CUTCOM_NORMDS_OFF
|
The syntax of this NC command is CUTCOM/OFF and cannot be parameterized.
|
NC_CUTCOM_NORMPS_ON
|
The syntax of this NC command is CUTCOM/NORMPS and cannot be parameterized.
|
NC_CUTCOM_NORMPS_OFF
|
The syntax of this NC command is CUTCOM/OFF and cannot be parameterized.
|
NC_CUTCOM_LEFT
|
The syntax of this NC command is CUTCOM/LEFT and cannot be parameterized.
|
NC_CUTCOM_RIGHT
|
The syntax of this NC command is CUTCOM/RIGHT and cannot be parameterized.
|
NC Commands and Parameters |
Comments |
NC_DELAY
|
|
MFG_DELAY_UNIT
|
Defines the delay units from two values:
-
First value: delay expressed in number of revolutions.
By default,
the value is REV .
-
Second value: delay expressed in seconds.
By default, the value is a blank string (represented by 8 underscore characters). When the statement is generated by the app this string is ignored.
|
MFG_DELAY_VALUE
|
Defines the numerical value of the delay.
|
By default,
the syntax is DELAY/%MFG_DELAY_VALUE,&MFG_DELAY_UNIT
NC Commands and Parameters |
Comments |
NC_FEEDRATE
|
|
MFG_FEED_UNIT
|
Defines the feedrate unit.
This is done from a list with two values:
-
First value: feedrate expressed in model units per minute.
By default,
the value is MMPM
-
Second value: feedrate expressed in model units per revolution.
By default,
the value is MMPR
|
MFG_FEED_VALUE
|
Defines the numerical value of the feedrate.
|
By default,
the syntax is FEDRAT/% MFG_FEED_VALUE,&MFG_FEED_UNIT
NC Commands and Parameters |
Comments |
NC_MACHINING_AXIS
|
|
MFG_NCAXIS_IDENTIFIER
|
See Displacing and Locking Linear and Rotary Axes
Defines the NC-Axis identifiers, as the name of the Manufacturing Program for the first output,
otherwise as the name of the machining axis change.
|
MFG_SPINDLE_NAME
|
Defines the name of the spindle that is linked to the origin.
|
MFG_SPINDLE_NUMBER
|
Defines the number of the spindle that is linked to the origin.
|
MFG_NCAXIS_X_ORIG
MFG_NCAXIS_Y_ORIG
MFG_NCAXIS_Z_ORIG
|
Defines the coordinates of
the machining axis origin.
|
MFG_NCAXIS_X_VECX
MFG_NCAXIS_Y_VECX
MFG_NCAXIS_Z_VECX
|
Defines the components of the
x-axis.
|
MFG_NCAXIS_X_VECY
MFG_NCAXIS_Y_VECY
MFG_NCAXIS_Z_VECY
|
Defines the components of the
y-axis.
|
MFG_NCAXIS_X_VECZ
MFG_NCAXIS_Y_VECZ
MFG_NCAXIS_Z_VECZ
|
Defines the components of the
z-axis.
|
By default,
the syntax is
$$*CATIA0
$$ %MFG_NCAXIS_IDENTIFIER
$$ %MFG_NCAXIS_X_VECX %MFG_NCAXIS_X_VECY %MFG_NCAXIS_X_VECZ
%MFG_NCAXIS_X_ORIG
$$ %MFG_NCAXIS_Y_VECX %MFG_NCAXIS_Y_VECY
%MFG_NCAXIS_Y_VECZ
%MFG_NCAXIS_Y_ORIG
$$ %MFG_NCAXIS_Z_VECX %MFG_NCAXIS_Z_VECY %MFG_NCAXIS_Z_VECZ
%MFG_NCAXIS_Z_ORIG
NC Commands and Parameters |
Comments |
NC_MULTAX_ON
|
The syntax of this NC command is MULTAX and cannot be parameterized.
|
NC_MULTAX_OFF
|
The syntax of this NC command is MULTAX/OFF and cannot be parameterized.
|
NC Commands and Parameters |
Comments |
NC_PITCH
|
|
MFG_THREAD_PITCH
|
Defines the thread pitch.
|
MFG_NUM_THREADS
|
Defines the number of threads.
|
Syntax examples:
PITCH/%MFG_THREAD_PITCH
PITCH/(1/%MFG_THREAD_PITCH),MULTRD,%MFG_NUM_THREADS
FEDRAT/%MFG_THREAD_PITCH,MMPR
NC Commands and Parameters |
Comments |
NC_SPINDLE_ON
|
The syntax of this NC command is SPINDL/ON and cannot be parameterized.
|
NC_SPINDLE_START
NC_SPINDLE
|
|
MFG_SPNDL_UNIT
|
Defines the spindle speed unit.
This is done from a list with two values:
-
First value: spindle rotation expressed in revolutions per minute.
By default,
the value is RPM.
-
Second value: spindle rotation expressed in surface meters per minute.
By default,
the value is SMM.
|
MFG_SPNDL_WAY
MFG_SPINDL_WAY
|
Defines the spindle direction.
This is done from a list with two values:
-
First value: spindle rotation processed clockwise.
By default,
the value is CLW.
-
Second value: spindle rotation processed counter-clockwise.
By default,
the value is CCLW.
|
MFG_SPNDL_SPEED
|
Defines the numerical value of the spindle speed.
|
MFG_SPNDL_DIAMTR
|
Defines the diameter of the tool where the spindle speed is taken
into account.
|
NC_SPINDLE_LATHE
|
Corresponds to the part spindle speed.
|
NC_SPINDLE_STOP
|
Note:
this NC command is available to allow compatibility with previous versions.
However, whenever possible, use NC_SPINDLE_LOCK or NC_SPINDLE_OFF
instead of MFG_SPNDL_STOP .
|
MFG_SPNDL_STOP
|
List with two values defining the action applied to the
spindle:
-
First value: de-activation of the spindle.
By default,
the value is OFF.
-
Second value: spindle locked in an indexed position.
By default,
the value is
LOCK.
|
NC_SPINDLE_LOCK
|
The syntax of this NC command is SPINDL/LOCK and cannot be parameterized.
|
NC_SPINDLE_OFF
|
The syntax of this NC command is SPINDL/OFF and cannot be parameterized.
|
By default,
the syntax is
SPINDL/%MFG_SPNDL_SPEED,&MFG_SPNDL_UNIT,
&MFG_SPNDL_WAY
NC Commands and Parameters |
Comments |
NC_THREAD_TURN
|
|
NC_THREAD_TURN_OFF
|
Ends a NC_THREAD_TURN statement.
|
Syntax examples THREAD/TURN
*START_NC_COMMAND
NC_THREAD_TURN_OFF
THREAD/OFF
*END
|