Professional Documents
Culture Documents
Whats New in UPG 2
Whats New in UPG 2
Geometric Americas Inc. makes no warranties, either expressed or implied with respect to this
document. Geometric reserves the right to revise and improve products as it sees fit, and to revise
the specifications and information contained herein without prior notice. Due to continuing product
development, specifications and capabilities described in this document are subject to change
without notice.
Table of Contents
(Click a link below or use the bookmarks on the left.)
2
Table of Contents
22. PROBE_WORK_SUB_OFFSET_NUM 18
23. PROBE_WORK_OFFSET_NUM 18
24. PROBE_UPDATE_WCS_OFFSET 18
25. PROBE_FIXTURE_OFFSET_NUM 18
26. PROBE_UPDATE_OFFSET_TYPE 18
27. HAVE_PROBE_CYCLE 18
28. PROBE_CYCLE_TYPE 19
System Variables .................................................................................................... 19
1. OPR_IS_PRIMARY 19
2. CL_COMMENT 19
3. CL_COMMAND 19
4. IS_SUB_SPINDLE_REVERSE_Z 19
5. MACH_NUMBER_AXIS 20
6. MACH_ROTARY_4AXIS_TYPE 20
7. MACH_ROTARY_VEC_4X 20
8. MACH_ROTARY_VEC_4Y 20
9. MACH_ROTARY_VEC_4Z 20
10. MACH_ROTARY_VEC_5X 20
11. MACH_ROTARY_VEC_5Y 21
12. MACH_ROTARY_VEC_5Z 21
System Commands ................................................................................................ 21
1. GET_SW_CUSTOM_PROP_BY_NAME 21
2. GET_SW_SUMMARY_INFO_BY_ID 22
CALC Sections for Probe Cycles .......................................................................... 22
CALC Sections for Mill........................................................................................... 22
CALC Sections for SOLIDWORKS ........................................................................ 23
1. CALC_GET_SW_PROPERTIES 23
2. CALC_GET_SW_SUMMARY_FIELDS 23
3. CALC_GET_SW_CUSTOM_FIELDS 24
4. CALC_OUTPUT_SW_PROPERTY 24
Attribute Commands .............................................................................................. 24
1. QUERY_SW_FIELD_NAME 24
2. QUERY_SW_FIELD_VAL 25
3. QUERY_SW_FIELD_TYPE 25
System Constants .................................................................................................. 25
System Constants for SOLIDWORKS .................................................................. 26
Additional System Constants ............................................................................... 26
Query Commands .................................................................................................. 27
1. QUERY_TOOL_ID_COMMENT 27
2. QUERY_TOOL_VENDOR_COMMENT 27
3. QUERY_TOOL_DESCRIPTION_COMMENT 27
4. QUERY_HOLDER_NUM_COMMENT 28
5. QUERY_HOLDER_VENDOR_COMMENT 28
6. QUERY_HOLDER_DESCRIPTION_COMMENT 28
7. QUERY_STATION_DESCRIPTION_COMMENT 29
What’s New in UPG for CAMWorks 2019 SP2 30
System Header Commands ................................................................................... 30
1. :FORCE_UPPERCASE_OUTPUT 30
Attribute Commands .............................................................................................. 30
1. MUST_BE_LOWERCASE 30
2. MUST_BE_UPPERCASE 30
3
Table of Contents
What’s New in UPG for CAMWorks 2019 SP1 31
System Header Commands ................................................................................... 31
1. :ALLOW_B_AXIS_SIMULTANEOUS_CUTTING 31
Variables ................................................................................................................. 31
1. OPR_START_APPROACH_TYPE 31
2. OPR_X_APPROACH_POS 31
3. OPR_Z_APPROACH_POS 31
4. NEXT_OPR_BAXIS_TURNING 31
5. MAX_B_AXIS_INCREMENT 32
6. NUM_OPERATIONS_FRONT1 32
7. NUM_OPERATIONS_FRONT2 33
8. NUM_OPERATIONS_Rear1 33
9. NUM_OPERATIONS_Rear2 33
10. NUM_SYNC_CODES_REAR1 33
11. NUM_SYNC_CODES_REAR2 33
12. NUM_SYNC_CODES_FRONT1 33
13. NUM_SYNC_CODES_FRONT2 34
14. OPR_BAXIS_TURNING 34
15. OPR_TOOL_TIP_CENTER 34
16. TLP_B_AXIS_OFFSET / P_TLP_B_AXIS_OFFSET 34
Query Commands .................................................................................................. 35
1. QUERY_INT_CENTER_TOUCHOFF_REG 35
System Constants .................................................................................................. 35
4
About UPG-2 (Enhanced UPG App)
New Commands, Constants and Variables added to UPG-2 for CAMWorks 2021
For a complete list of the new commands, variables and constants added to UPG-2 to ensure
compatibility with the CAMWorks 2021 version, refer the section What’s New in UPG-2 for
CAMWorks 2021 BETA of this document.
New Commands, Constants and Variables added to UPG-2 for CAMWorks 2020
For a complete list of the new commands, variables and constants added to UPG-2 to ensure
compatibility with the CAMWorks 2020 version, refer the section from What’s New in UPG-2 for
CAMWorks 2020 SP3 to What’s New in UPG-2 for CAMWorks 2020 SP0 of this document.
5
What’s New in UPG-2 for CAMWorks 2021 BETA
6
What’s New in UPG-2 for CAMWorks 2021 BETA
• CALC_RAPID_MOVE_FACE_FREE_PROBE
• CALC_RAPID_Z_UP_PROBE_MILL
• CALC_RAPID_UP_BAXIS_PROBE
• CALC_RAPID_X_UP_OD_FIXED_PROBE
• CALC_RAPID_X_UP_OD_FREE_PROBE
• CALC_RAPID_Z_UP_FACE_FIXED_PROBE
• CALC_RAPID_Z_UP_FACE_FREE_PROBE
• CALC_RAPID_Z_DOWN_PROBE_MILL
• CALC_RAPID_DOWN_BAXIS_PROBE
• CALC_RAPID_X_DOWN_OD_FIXED_PROBE
• CALC_RAPID_X_DOWN_OD_FREE_PROBE
• CALC_RAPID_Z_DOWN_FACE_FIXED_PROBE
• CALC_RAPID_Z_DOWN_FACE_FREE_PROBE
• CALC_FEED_Z_PROBE_MILL
• CALC_FEED_DOWN_BAXIS_PROBE
• CALC_FEED_X_OD_FIXED_PROBE
• CALC_FEED_X_OD_FREE_PROBE
• CALC_FEED_Z_FACE_FIXED_PROBE
• CALC_FEED_Z_FACE_FREE_PROBE
• CALC_FEED_Z_PROBE_UP_MILL
• CALC_OUTPUT_PROBE_CYCLE_MILL
TRANS_ROTAXISBASE_PNT_5X
TRANS_ROTAXISBASE_PNT_5Y
TRANS_ROTAXISBASE_PNT_5Z
Example
:C: TRANS_START_X=0
:C: TRANS_START_Y=0
:C: TRANS_START_Z=0
:C: IF KIN_HAVE_KINEMATICS=TRUE THEN
:C: TRANS_ROTAXISDIR_4X=KIN_ROTAXISDIR_4X
:C: TRANS_ROTAXISDIR_4Y=KIN_ROTAXISDIR_4Y
New Parameters
:C: TRANS_ROTAXISDIR_4Z=KIN_ROTAXISDIR_4Z
supported by
Transform :C: TRANS_ROTAXISDIR_5X=KIN_ROTAXISDIR_5X
:C: TRANS_ROTAXISDIR_5Y=KIN_ROTAXISDIR_5Y
:C: TRANS_ROTAXISDIR_5Z=KIN_ROTAXISDIR_5Z
*
:C: TRANS_ROTAXISBASE_PNT_4X=KIN_ROTAXISBASE_4X
:C: TRANS_ROTAXISBASE_PNT_4Y=KIN_ROTAXISBASE_4Y
:C: TRANS_ROTAXISBASE_PNT_4Z=KIN_ROTAXISBASE_4Z
:C: TRANS_ROTAXISBASE_PNT_5X=KIN_ROTAXISBASE_5X
:C: TRANS_ROTAXISBASE_PNT_5Y=KIN_ROTAXISBASE_5Y
:C: TRANS_ROTAXISBASE_PNT_5Z=KIN_ROTAXISBASE_5Z
:C: TRANS_ROTANGLE_A=ROT_TILT_A
:C: TRANS_ROTANGLE_B=ROT_TILT_B
:C: TRANSFORM
:C: ENDIF
9
What’s New in UPG-2 for CAMWorks 2020 SP3
0 * 5 Axis Type 0-TABLE_TABLE,1-HEAD_HEAD,2-HEAD_TABLE, 3-
TABLE_TABLE_TOOLCOMP, 4-HEAD_HEAD_NOTOOLCOMP,
5-HEAD_TABLE_NOTOOLCOMP
1 * XYZ Coordinate Type 0-Part , 1-Machine
0.000000 * Spindle Direction X
0.000000 * Spindle Direction Y
1.000000 * Spindle Direction Z
0.000000 * 1st Rotary Axis Direction X
0.000000 * 1st Rotary Axis Direction Y
-1.000000 * 1st Rotary Axis Direction Z
0.000000 * 2nd Rotary Axis Direction X
-1.000000 * 2nd Rotary Axis Direction Y
KIN File Parameters
0.000000 * 2nd Rotary Axis Direction Z
-60.000000 * Rotation 5th Axis Base Point X (Millimeters Only)
0.000000 * Rotation 5th Axis Base Point Y (Millimeters Only)
-154.2491* Rotation 5th Axis Base Point Z (Millimeters Only)
-100000.000000 * 1st Rotation Axis Limit Min
100000.000000 * 1st Rotation Axis Limit Max
-180.000000 * 2nd Rotation Axis Limit Min
180.000000 * 2nd Rotation Axis Limit Max
Mill_Tutorial * Default Machine Simulation
0.000000 * Rotation 4th Axis Base Point X (Millimeters Only)
0.000000 * Rotation 4th Axis Base Point Y (Millimeters Only)
0.000000 * Rotation 4th Axis Base Point Z (Millimeters Only)
10
What’s New in UPG-2 for CAMWorks 2020 SP2
11
What’s New in UPG-2 for CAMWorks 2020 SP2
4. CALC Sections Modified
CALC sections listed below have been modified:
• CALC_RAPID_Z_DOWN_MILL
• CALC_RAPID_Z_UP_MILL
• CALC_RAPID_MOVE_MILL
• CALC_FEED_Z_MILL
• CALC_LINE_MOVE_MILL
• CALC_ARC_MOVE_MILL
• CALC_START_OPERATION
• CALC_DO_MACRO_CALL_MILL
• CALC_DO_MACRO_CALL_WORK_COORD_MILL
• RAPID_MOVE_MILL_CYLINDRICAL
• RAPID_LEADOUT_MOVE_MILL_CYLINDRICAL
• RAPID_LEADIN_MOVE_MILL_CYLINDRICAL
• RAPID_FROM_TOOL_CHANGE_MILL_CYLINDRICAL
• RAPID_Z_MOVE_UP_MILL_CYLINDRICAL
• LAST_RAPID_Z_MOVE_UP_MILL_CYLINDRICAL
• FIRST_RAPID_Z_MOVE_DOWN_MILL_CYLINDRICAL
• RAPID_Z_MOVE_DOWN_MILL_CYLINDRICAL
• FEED_Z_MOVE_DOWN_MILL_CYLINDRICAL
• LINE_MOVE_MILL_CYLINDRICAL
• LINE_LEADIN_MOVE_CYLINDRICAL
• LINE_LEADOUT_MOVE_CYLINDRICAL
• ARC_MOVE_MILL_CYLINDRICAL
• RADIUS_MOVE_MILL_CYLINDRICAL
• CYLINDRICAL_ON
• CYLINDRICAL_OFF
• ROTATE_X_CYLINDRICAL
• ROTATE_Y_CYLINDRICAL
• ROTATE_X_WRAPPED
• ROTATE_Y_WRAPPED
• ROTATE_MULTIAXIS
13
What’s New in UPG-2 for CAMWorks 2020 SP1
2. MACH_IS_5TH_AXIS_REV_DIR
Type Integer
Stores whether the reverse checkbox has been checked in the Tilt tab of the
Purpose: Machine dialog box in the CAMWorks user interface.
To be used in CAMWorks 2020 SP1 or higher versions.
Syntax: MACH_IS_5TH_AXIS_REV_DIR=TRUE or FALSE
14
What’s New in UPG-2 for CAMWorks 2020 SP0
2. PROBE_B_2ND_ANGLE_OR_TOL
Type Decimal
Stores the Probe Cycle’s 2nd rotary angle or tolerance.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
3. PROBE_C_3RD_ANGLE
Type Decimal
Stores the Probe Cycle’s 3rd rotary angle.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
4. PROBE_D_NOMINAL_SIZE
Type Decimal
Stores the Probe Cycle’s 3rd nominal size.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
5. PROBE_E_EXPERIENCE_VALUE
Type Integer
Stores the Probe Cycle’s experience value.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
15
What’s New in UPG-2 for CAMWorks 2020 SP0
6. PROBE_F_PERCENT_FEEDBACK
Type Decimal
Stores the Probe Cycle’s percentage feedback.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
7. PROBE_H_TOL_VALUE
Type Decimal
Stores the Probe Cycle’s tolerance value.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
8. PROBE_I_CYCLE_SPEC_DIST_X
Type Decimal
Stores the Probe Cycle’s spec distance in X.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
9. PROBE_J_CYCLE_SPEC_DIST_Y
Type Decimal
Stores the Probe Cycle’s spec distance in Y.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
10. PROBE_K_CYCLE_SPEC_DIST_Z
Type Decimal
Stores the Probe Cycle’s spec distance in Z.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
11. PROBE_M_POS_TOL
Type Decimal
Stores the Probe Cycle’s Spec Position Tolerance Z.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
12. PROBE_Q_OVERTRAVEL_DIST
Type Decimal
Stores the Probe Cycle’s Overtravel Distance.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
13. PROBE_R_CLEARANCE
Type Decimal
Stores the Probe Cycle’s Retract Clearance.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
16
What’s New in UPG-2 for CAMWorks 2020 SP0
14. PROBE_T_TOOL_OFFSET_NUMBER
Type Integer
Stores the Probe Cycle’s Tool Offset Number.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
15. PROBE_U_UPPER_TOL_LIMIT
Type Decimal
Stores the Probe Cycle’s Upper Tolerance.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
16. PROBE_V_NULL_BAND
Type Decimal
Stores the Probe Cycle’s Null band.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
17. PROBE_W_PRINT_DATA
Type Integer
Stores the Probe Cycle’s Print Data
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
18. PROBE_X_POS_OR_SIZE_X
Type Decimal
Stores the Probe Cycle’s X position or size.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
19. PROBE_Y_POS_OR_SIZE_Y
Type Decimal
Stores the Probe Cycle’s Y position or size.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
20. PROBE_Z_POS_OR_SIZE_Z
Type Decimal
Stores the Probe Cycle’s Z position or size.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
21. PROBE_CYCLE_FEEDRATE
Type Decimal
Stores the Probe Cycle’s feedrate.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
17
What’s New in UPG-2 for CAMWorks 2020 SP0
22. PROBE_WORK_SUB_OFFSET_NUM
Type Integer
Stores the Probe Cycle’s Work Coordinate with Sub offset number.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
23. PROBE_WORK_OFFSET_NUM
Type Integer
Stores the Probe Cycle’s Work Coordinate Offset number.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
24. PROBE_UPDATE_WCS_OFFSET
Type Integer
Stores a binary value that indicates whether the Work Coordinate Offset for a
Purpose: Probe Cycle has been updated or not.
To be used in CAMWorks 2020 SP0 or later versions.
25. PROBE_FIXTURE_OFFSET_NUM
Type Integer
Stores the Probe Cycle’s Fixture Offset number.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
26. PROBE_UPDATE_OFFSET_TYPE
Type Integer
Stores the Probe Cycle’s Work Coordinate Offset type.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
PROBE_UPDATE_OFFSET_TYPE=NONE
Syntax/ FIXTURE
Example: WORK_COORDINATE
WORK_AND_SUB_COORDINATE
27. HAVE_PROBE_CYCLE
Type Integer
For a Probe Cycle, this variable stores a binary value that indicates whether
Purpose: the next move is a Probe Cycle or not.
To be used in CAMWorks 2020 SP0 or later versions.
Syntax: HAVE_PROBE_CYCLE =TRUE or FALSE
18
What’s New in UPG-2 for CAMWorks 2020 SP0
28. PROBE_CYCLE_TYPE
Type Integer
Stores the Probe Cycle’s type.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
PROBE_CYCLE_TYPE= SURFACE_X_TOOLPATH
SURFACE_Y_TOOLPATH
SURFACE_Z_TOOLPATH
WEB_X_TOOLPATH
WEB_Y_TOOLPATHPOCKET_X_TOOLPATH
POCKET_X_TOOLPATH
POCKET_Y_TOOLPATH
Syntax/
Example:
POCKET_WITH_ISLAND_X_TOOLPATH
POCKET_WITH_ISLAND_Y_TOOLPATH
BOSS_TOOLPATH
BORE_TOOLPATH
BORE_WITH_ISLAND_TOOLPATH
THREE_POINT_BOSS_TOOLPATH
THREE_POINT_BORE_TOOLPATH
THREE_POINT_BORE_WITH_ISLAND_TOOLPATH
2. CL_COMMENT
Type Character
Stores the CL comment. If comment is selected, then the string will be output
Purpose: as a comment to the controller.
To be used in CAMWorks 2020 SP0 or later versions.
3. CL_COMMAND
Type Character
Stores the CL command. If command is selected, then the string will be
Purpose: output as a command to the controller.
To be used in CAMWorks 2020 SP0 or later versions.
4. IS_SUB_SPINDLE_REVERSE_Z
Type Integer
19
What’s New in UPG-2 for CAMWorks 2020 SP0
Stores a binary value (TRUE or FALSE) that indicates if the user has flipped
Purpose: the Z direction on the Sub Spindle coordinate system.
To be used in CAMWorks 2020 SP0 or later versions.
Syntax: IS_SUB_SPINDLE_REVERSE_Z=TRUE or FALSE
5. MACH_NUMBER_AXIS
Type Integer
Stores how many axes the system has been setup for and what was selected
Purpose: in a Multiaxis operation.
To be used in CAMWorks 2020 SP0 or higher versions.
Syntax: MACH_NUMBER_AXIS=3, 4 or 5
6. MACH_ROTARY_4AXIS_TYPE
Type Integer
Stores what 4-Axis type the system has been setup for.
To be used in CAMWorks 2020 SP0 or higher versions.
MACH_ROTARY_4AXIS_TYPE=ROTATE_ABOUT_X
Purpose:
ROTATE_ABOUT_Y
ROTATE_ABOUT_Z
ROTATE_ABOUT_MULTIPLE
7. MACH_ROTARY_VEC_4X
Type Decimal
Stores the 4th axis rotary vector for X.
Purpose:
To be used in CAMWorks 2020 SP0 or higher versions.
8. MACH_ROTARY_VEC_4Y
Type Decimal
Stores the 4th axis rotary vector for Y.
Purpose:
To be used in CAMWorks 2020 SP0 or higher versions.
9. MACH_ROTARY_VEC_4Z
Type Decimal
Stores the 4th axis rotary vector for Z.
Purpose:
To be used in CAMWorks 2020 SP0 or higher versions.
10. MACH_ROTARY_VEC_5X
Type Decimal
Stores the 5th axis tilt vector for X.
Purpose:
To be used in CAMWorks 2020 SP0 or higher versions.
20
What’s New in UPG-2 for CAMWorks 2020 SP0
11. MACH_ROTARY_VEC_5Y
Type Decimal
Stores the 5th axis tilt vector for Y.
Purpose:
To be used in CAMWorks 2020 SP0 or higher versions.
12. MACH_ROTARY_VEC_5Z
Type Decimal
Stores the 5th axis tilt vector for Z.
Purpose:
To be used in CAMWorks 2020 SP0 or higher versions.
21
What’s New in UPG-2 for CAMWorks 2020 SP0
2. GET_SW_SUMMARY_INFO_BY_ID
Gets SOLIDWORKS Custom properties summary information. If the field is
found, the system will call one the CALC sections listed below:
• CALC_GET_SW_PROPERTIES
Purpose: • CALC_GET_SW_SUMMARY_FIELDS
• CALC_GET_SW_CUSTOM_FIELDS
• CALC_OUTPUT_SW_PROPERTY
To be used in CAMWorks 2020 SP0 or later versions.
Syntax: GET_SW_SUMMARY_INFO_BY_ID(SW_FIELD_ID, CALC_?????)
Constants for SW_FIELD_ID
• SW_INFO_TITLE
• SW_INFO_SUBJECT
Constants: • SW_INFO_AUTHOR
• SW_INFO_KEYWORDS
• SW_INFO_COMMENTS
• SW_INFO_SAVED_BY
If a SW_FIELD_ID is found on executing this command, the system will query
Comment: the result and store the filed type in an integer parameter named
QUERY_SW_FIELD_TYPE.
22
What’s New in UPG-2 for CAMWorks 2020 SP0
2. CALC_GET_SW_SUMMARY_FIELDS
Purpose: Used when you need to get various SOLIDWORKS Summary fields.
Syntax: :SECTION=CALC_GET_SW_SUMMARY_FIELDS
Comments: This section will be called only when it is inserted into the post source.
Logic:
Logic to be used in CALC_GET_SW_SUMMARY_FIELDS
:SECTION=CALC_GET_SW_SUMMARY_FIELDS
:C: IF CAMWORKS_VER<CAM_REV2020 THEN RETURN ENDIF
:C: GET_SW_SUMMARY_INFO_BY_ID(SW_INFO_AUTHOR,CALC_OUTPUT_SW_PROPERTY)
:C: GET_SW_SUMMARY_INFO_BY_ID(SW_INFO_KEYWORDS,CALC_OUTPUT_SW_PROPERTY)
:C: GET_SW_SUMMARY_INFO_BY_ID(SW_INFO_COMMENTS,CALC_OUTPUT_SW_PROPERTY)
:C: GET_SW_SUMMARY_INFO_BY_ID(SW_INFO_TITLE,CALC_OUTPUT_SW_PROPERTY)
:C: GET_SW_SUMMARY_INFO_BY_IDD(SW_INFO_SUBJECT,CALC_OUTPUT_SW_PROPERTY)
:C:
GET_SW_SUMMARY_INFO_BY_ID(SW_INFO_CREATION_DATE,CALC_OUTPUT_SW_PROPERTY)
:C:
GET_SW_SUMMARY_INFO_BY_ID(SW_INFO_SAVED_DATE,CALC_OUTPUT_SW_PROPERTY)
:C: GET_SW_SUMMARY_INFO_BY_ID(SW_INFO_SAVED_BY,CALC_OUTPUT_SW_PROPERTY)
*______________________________
23
What’s New in UPG-2 for CAMWorks 2020 SP0
3. CALC_GET_SW_CUSTOM_FIELDS
Purpose: Used when you need to get SOLIDWORKS Custom fields.
Syntax: :SECTION=CALC_GET_SW_CUSTOM_FIELDS
Comments: This section will be called only when it is inserted into the post source.
Logic:
Logic to be used in CALC_GET_SW_CUSTOM_FIELDS
:SECTION=CALC_GET_SW_CUSTOM_FIELDS
:C: IF CAMWORKS_VER<CAM_REV2020 THEN RETURN ENDIF
:C: GET_SW_CUSTOM_PROP_BY_NAME({CAMWorks Machine},CALC_OUTPUT_SW_PROPERTY)
*______________________________
4. CALC_OUTPUT_SW_PROPERTY
Used when you need to output SOLIDWORKS Custom and Summary Property
Purpose:
fields.
Syntax: :SECTION=CALC_OUTUT_SW_PROPERTY
Comments: This section will be called only when it is inserted into the post source.
Logic to be used in CALC_OUTPUT_SW_PROPERTY
:SECTION=CALC_OUTPUT_SW_PROPERTY
:C: IF CAMWORKS_VER<CAM_REV2020 THEN RETURN ENDIF
:C: IF QUERY_SW_FIELD_VAL={} THEN RETURN ENDIF
Logic:
:C: IF SECTIONEXIST(OUTPUT_SW_PROPERTY) THEN
:C: CALL(OUTPUT_SW_PROPERTY)
:C: ENDIF
*______________________________
24
What’s New in UPG-2 for CAMWorks 2020 SP0
2. QUERY_SW_FIELD_VAL
Indicates the character string value in the field within SOLIDWORKS Custom
Purpose:
Properties.
:ATTRNAME=QUERY SW FIELD VAL
:ATTRTYPE=POST
:ATTREMARK=
:CODETYPE=FORMAT
:WORD_ADDRESS_BEF=|
:VAR=QUERY_SW_FIELD_VAL
Post :WORD_ADDRESS_AFT=
Example: :LEFT_PLACES=0
:RIGHT_PLACES=0
:UNITFLAG=NON_CONVERT
:ATTRSPACES=YES
:MODAL=NO
:ATTRUSED=1
:ATTREND
3. QUERY_SW_FIELD_TYPE
If a SW Field ID is found on executing the
GET_SW_SUMMARY_INFO_BY_ID(SW_FIELD_ID,CALC_?????) command,
the system will query the result and store the filed type in an integer
parameter named QUERY_SW_FIELD_TYPE. This attribute parameter
indicates the type of field found.
Purpose:
• If the field type is a SW_NUMBER, the system will store the field integer
value in QUERY_INT_VAL.
• If the field type is a SW_DECIMAL, the system will store the field double
value in QUERY_DEC_VAL.
Constants for the QUERY_SW_FIELD_TYPE:
• SW_UNKNOWN
• SW_NUMBER
Constants: • SW_DOUBLE
• SW_YES_NO
• SW_TEXT
• SW_DATE
25
What’s New in UPG-2 for CAMWorks 2020 SP0
Name Value
POCKET_WITH_ISLAND_Y_TOOLPATH 9
BOSS_TOOLPATH 10
BORE_TOOLPATH 11
BORE_WITH_ISLAND_TOOLPATH 12
THREE_POINT_BOSS_TOOLPATH 13
THREE_POINT_BORE_TOOLPATH 14
THREE_POINT_BORE_WITH_ISLAND_TOOLPATH 15
FIXTURE 1
UPDATE_WORK_OFFSETS_CYCLE 1
WORK_COORDINATE 2
WORK_AND_SUB_COORDINATE 3
MILL_PROBING 1060
ROTATE_ABOUT_X 1
ROTATE_ABOUT_Y 2
ROTATE_ABOUT_Z 3
ROTATE_ABOUT_MULTIPLE 0
26
What’s New in UPG-2 for CAMWorks 2020 SP0
Syntax:
QUERY_ITEM_ID=QUERY_TOOL_ID_COMMENT
The example code below shows the other variables used with this
command.
Comments:
:C: QUERY_ITEM_ID=QUERY_TOOL_ID_COMMENT
:C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=1 THEN
:C: Char post variable=QUERY_CHAR_VAL
:C: ENDIF
2. QUERY_TOOL_VENDOR_COMMENT
If the return value of QUERY_RESULT is TRUE, then the system will pass a
Purpose: string value to post system variable named QUERY_CHAR_VAL.
To be used in CAMWorks 2020 SP0 or higher versions.
Syntax:
QUERY_ITEM_ID=QUERY_TOOL_VENDOR_COMMENT
The example code below shows the other variables used with this
command.
Comments:
:C: QUERY_ITEM_ID=QUERY_TOOL_VENDOR_COMMENT
:C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=1 THEN
:C: Char post variable=QUERY_CHAR_VAL
:C: ENDIF
3. QUERY_TOOL_DESCRIPTION_COMMENT
If the return value of QUERY_RESULT is TRUE, then the system will pass a
Purpose: string value to post system variable named QUERY_CHAR_VAL.
To be used in CAMWorks 2020 SP0 or higher versions.
Syntax:
QUERY_ITEM_ID=QUERY_TOOL_DESCRIPTION_COMMENT
The example code below shows the other variables used with this
command.
27
What’s New in UPG-2 for CAMWorks 2020 SP0
4. QUERY_HOLDER_NUM_COMMENT
If the return value of QUERY_RESULT is TRUE, then the system will pass a
Purpose: string value to post system variable named QUERY_CHAR_VAL.
To be used in CAMWorks 2020 SP0 or higher versions.
Syntax:
QUERY_ITEM_ID=QUERY_HOLDER_NUM_COMMENT
The example code below shows the other variables used with this
command.
Comments:
:C: QUERY_ITEM_ID=QUERY_HOLDER_NUM_COMMENT
:C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=1 THEN
:C: Char post variable=QUERY_CHAR_VAL
:C: ENDIF
5. QUERY_HOLDER_VENDOR_COMMENT
If the return value of QUERY_RESULT is TRUE, then the system will pass a
Purpose: string value to post system variable named QUERY_CHAR_VAL.
To be used in CAMWorks 2020 SP0 or higher versions.
Syntax:
QUERY_ITEM_ID=QUERY_HOLDER_VENDOR_COMMENT
The example code below shows the other variables used with this
command.
Comments:
:C: QUERY_ITEM_ID=QUERY_HOLDER_VENDOR_COMMENT
:C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=1 THEN
:C: Char post variable=QUERY_CHAR_VAL
:C: ENDIF
6. QUERY_HOLDER_DESCRIPTION_COMMENT
If the return value of QUERY_RESULT is TRUE, then the system will pass a
Purpose: string value to post system variable named QUERY_CHAR_VAL.
To be used in CAMWorks 2020 SP0 or higher versions.
Syntax:
QUERY_ITEM_ID=QUERY_HOLDER_DESCRIPTION_COMMENT
The example code below shows the other variables used with this
command.
Comments:
:C: QUERY_ITEM_ID=QUERY_HOLDER_DESCRIPTION_COMMENT
:C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=1 THEN
:C: Char post variable=QUERY_CHAR_VAL
:C: ENDIF
28
What’s New in UPG-2 for CAMWorks 2020 SP0
7. QUERY_STATION_DESCRIPTION_COMMENT
If the return value of QUERY_RESULT is TRUE, then the system will pass a
Purpose: string value to post system variable named QUERY_CHAR_VAL.
To be used in CAMWorks 2020 SP0 or higher versions.
Syntax:
QUERY_ITEM_ID=QUERY_STATION_DESCRIPTION_COMMENT
The example code below shows the other variables used with this
command.
Comments
:C: QUERY_ITEM_ID=QUERY_STATION_DESCRIPTION_COMMENT
:C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=1 THEN
:C: Char post variable=QUERY_CHAR_VAL
:C: ENDIF
29
What’s New in UPG for CAMWorks 2019 SP2
2. MUST_BE_UPPERCASE
:ATTRNAME=OPR COMMENT
:ATTRTYPE=POST
:ATTREMARK=
:CODETYPE=FORMAT
:WORD_ADDRESS_BEF=|(
:VAR=OPR COMMENT
:WORD_ADDRESS_AFT=)
Post
:LEFT_PLACES=0
Example:
:RIGHT_PLACES=0
:UNITFLAG=NON_CONVERT
:ATTRSPACES=YES
:MODAL=NO
:MUST_BE_UPPERCASE
:ATTRUSED=1
:ATTREND
30
What’s New in UPG for CAMWorks 2019 SP1
New - Variables
1. OPR_START_APPROACH_TYPE
Type Integer
Stores the Turn operations approach type for canned cycles. To be used in
Purpose:
CAMWorks 2019 SP1 or higher versions.
OPR_START_APPROACH_TYPE=AUTO
Or
Syntax: OPR_START_APPROACH_TYPE=FROM_PREVIOUS_POS
Or
OPR_START_APPROACH_TYPE=FROM_APPROACH_POS
2. OPR_X_APPROACH_POS
Type Decimal
Stores X Approach Position in Turning associated with canned cycles. To be
Purpose:
used in CAMWorks 2019 SP1 or higher versions.
3. OPR_Z_APPROACH_POS
Type Decimal
Stores Z Approach Position in Turning associated with canned cycles. To be
Purpose:
used in CAMWorks 2019 SP1 or higher versions.
4. NEXT_OPR_BAXIS_TURNING
Type Integer
Stores whether the next operation is a simultaneous X,Z, B axis turning
Purpose: operation or not. The value will be TRUE or FALSE. To be used in CAMWorks
2019 SP1 or higher versions.
Syntax: NEXT_OPR_BAXIS_TURNING=TRUE or FALSE
31
What’s New in UPG for CAMWorks 2019 SP1
5. MAX_B_AXIS_INCREMENT
Type Decimal
This needs to be set for breaking up a Turn operation's X, Z and B axis
simultaneous toolpath using the SYS_CANNED(7,????) command when in a
Purpose: line or arc move.
To be used in CAMWorks 2019 SP1 or later versions.
:SECTION=CALC_ARC_MOVE_LATHE
:C: MAX_B_AXIS_INCREMENT=Post Variable
:C: SYS_CANNED(7,CALC_BREAK_ARC_TO_ARC_LATHE)
*:C: SYS_CANNED(7, CALC_BREAK_RADIAL_ARC_TO_ARC_LATHE)
:C: RETURN
:SECTION=CALC_BREAK_ARC_TO_ARC_LATHE
:C: X_POS=ABS_X_END
:C: Z_POS=ABS_Z_END
:C: CALL(ARC_MOVE_LATHE)
*-----------------------------------
:SECTION=CALC_BREAK_RADIAL_ARC_TO_ARC_LATHE
:C: X_POS=ABS_X_END
Example: :C: Z_POS=ABS_Z_END
:C: CALL(RADIUS_MOVE_LATHE)
:SECTION=CALC_LINE_MOVE_LATHE
:C: MAX_B_AXIS_INCREMENT=1.
:C: SYS_CANNED(7,CALC_BREAK_LINE_LATHE)
:C: RETURN
:SECTION= CALC_BREAK_LINE_LATHE
:C: X_POS=ABS_X_END
:C: Z_POS=ABS_Z_END
:C: CALL(LINE_MOVE_LATHE)
6. NUM_OPERATIONS_FRONT1
Type Integer
Stores the total number of operations in any part that are associated with
Purpose: FRONT1 turret.
To be used in CAMWorks 2019 SP1 or higher versions.
32
What’s New in UPG for CAMWorks 2019 SP1
7. NUM_OPERATIONS_FRONT2
Type Integer
Stores the total number of operations in any part that are associated with
Purpose: FRONT2 Turret.
To be used in CAMWorks 2019 SP1 or higher versions.
8. NUM_OPERATIONS_Rear1
Type Integer
Stores the total number of operations in any part that are associated with
Purpose: REAR1 turret.
To be used in CAMWorks 2019 SP1 or higher versions.
9. NUM_OPERATIONS_Rear2
Type Integer
Stores the total number of operations in any part that are associated with
Purpose: REAR2 turret.
To be used in CAMWorks 2019 SP1 or higher versions.
10. NUM_SYNC_CODES_REAR1
Type Integer
Stores the total number of sync codes in any part that are associated with
Purpose: REAR1 turret.
To be used in CAMWorks 2019 SP1 or higher versions.
11. NUM_SYNC_CODES_REAR2
Type Integer
Stores the total number of sync codes in any part that are associated with
Purpose: REAR2 turret.
To be used in CAMWorks 2019 SP1 or higher versions.
12. NUM_SYNC_CODES_FRONT1
Type Integer
Stores the total number of sync codes in any part that are associated with
Purpose: FRONT1 turret.
To be used in CAMWorks 2019 SP1 or higher versions.
33
What’s New in UPG for CAMWorks 2019 SP1
13. NUM_SYNC_CODES_FRONT2
Type Integer
Stores the total number of sync codes in any part that are associated with
Purpose: FRONT2 turret.
To be used in CAMWorks 2019 SP1 or higher versions.
14. OPR_BAXIS_TURNING
Type Integer
Stores whether the operation is a simultaneous X,Z, B axis turning operation
Purpose: or not. The value will be TRUE or FALSE. To be used in CAMWorks 2019 SP1
or higher versions.
Syntax: OPR_BAXIS_TURNING=TRUE or FALSE
15. OPR_TOOL_TIP_CENTER
Type Integer
Stores whether the user has selected Tool Nose Center or Tool Nose tip for a
Purpose: Turn operation.
To be used in CAMWorks 2019 SP1 and later versions.
34
What’s New in UPG for CAMWorks 2019 SP1
35