Tool Motion — CL Command
The compound element PRO_E_TOOL_MTN is a member of PRO_E_TOOL_MTN_ARR array and is documented in the header file ProMfgElemToolMtnClCmd.h, and is shown in the following figure.
Figure 210. Element tree for PRO_E_TOOL_MTN element
The following table lists the contents of PRO_E_TOOL_MTN element.
Element ID
Data Type
Description
PRO_E_TOOL_MTN_TYPE
PRO_VALUE_TYPE_INT
Mandatory element. Species the tool motion type. The valid value for this element is PRO_TM_TYPE_CL_COMMAND.
PRO_E_TOOL_MTN_CL_CMD
Compound
This compound element defines elements related to CL command.
PRO_E_TOOL_MTN_CL_CMD_LOC_TYPE
PRO_VALUE_TYPE_INT
Mandatory element. Specifies the CL command location types. The valid values for this element are:
PRO_CL_CMD_LOC_TYPE_SEL—Specifies that the CL command position is on tool path.
Note:
 
The value for the element PRO_E_TOOL_MTN_CL_CMD_PARAM must be assigned.
PRO_CL_CMD_LOC_TYPE_BEGIN—Specifies that the CL command position is at the beginning of tool path.
PRO_CL_CMD_LOC_TYPE_CURR—Specifies that the CL command position is at the last point of the previous motion.
PRO_CL_CMD_LOC_TYPE_DTM_PNT—Specifies that the CL command position is at the projection of given point on tool path.
Note:
 
The element NCL_CMD_LOC_TYPE_DTM_PNT must be defined.
PRO_CL_CMD_LOC_TYPE_ON_SURFACE— Specifies that the CL command positions are at intersection s of given surface and tool path.
Note:
 
The element PRO_CL_CMD_LOC_TYPE_ON_SURFACE must be defined
PRO_E_TOOL_MTN_CL_CMD_STR
PRO_VALUE_TYPE_WSTRING
Mandatory element. Specifies a user specified string.
PRO_E_TOOL_MTN_CL_CMD_PARAM
PRO_VALUE_TYPE_DOUBLE
Specifies the range for the CL command parameter. The valid values for this element are 0 or 1.
Note:
 
This element is mandatory for PRO_CL_CMD_LOC_TYPE_SEL location type.
PRO_E_TOOL_MTN_CL_CMD_GEOM_REF
PRO_VALUE_TYPE_SELECTION
Specifies the reference for a datum point or a surface.
Note:
 
This element is mandatory for NCL_CMD_LOC_TYPE_DTM_PNT and PRO_CL_CMD_LOC_TYPE_ON_SURFACE location types.
PRO_E_TOOL_MTN_CL_CMD_SRF_OPT
PRO_VALUE_TYPE_INT
Specifies the CL command surface options. The valid values for this element are:
PRO_CL_COMMAND_ON_FIRST_PASS—Specifies that only the first pass is considered for surface/tool path intersection .
PRO_CL_COMMAND_ON_LAST_PASS—Specifies that only the last pass is considered for surface/tool path intersection .
PRO_CL_COMMAND_ON_ALL_PASSES—Specifies that all passes are considered for surface/tool path intersection .
Note:
 
This element is mandatory for the element NCL_CMD_LOC_TYPE_ON_SURFACE.
PRO_E_TOOL_MTN_CL_CMD_ON_EXIST_PNT
PRO_VALUE_TYPE_INT
The valid values for this element are:
PRO_B_TRUE—It places the CL command at the nearest existing point of the tool path;
PRO_B_FALSE—Adds new point to the tool path.
Note:
 
This element is mandatory for PRO_CL_CMD_LOC_TYPE_DTM_PNT.
PRO_E_TOOL_MTN_PARENT_REF_ID
PRO_VALUE_TYPE_INT
Specifies the tool motion id of the tool motion referred by the cl command tool motion.
Note:
 
This element is mandatory for PRO_CL_CMD_LOC_TYPE_SEL.
這是否有幫助?