Whats New in UPG 2
Whats New in UPG 2
Whats New in UPG 2
WHAT’S NEW IN
UNIVERSAL
POST
PROCESSOR
FOR
Geometric Americas Inc. is a fully owned subsidiary of HCLTech (HCL Technologies Ltd.).
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
4. QUERY_MACRO_ROTATE_Z 15
SYSTEM CONSTANTS ........................................................................................... 16
What’s New in UPG-2 for CAMWorks 2022 SP1 17
HEADER COMMANDS ............................................................................................ 17
1. : SET_FIRST_Z_POS_ON_MILL_TC 17
QUERY COMMANDS .............................................................................................. 17
1. QUERY_MILL_FEATURE_NAME 17
What’s New in UPG-2 for CAMWorks 2022 18
POST HEADER COMMANDS ................................................................................. 18
1. :POST_FROM_PART_SETUP_ORIGIN_WHEN_USING_PART_REF_POINT=TRUE or FALSE 18
2. :USE_COMBINATION_ID_AS_NAME_WHEN_AVAILABLE = TRUE OR FALSE 18
SYSTEM VARIABLES ............................................................................................. 18
1. TOOL_PROFILE_RADIUS 18
2. N_TOOL_PROFILE_RADIUS 18
3. TOOL_CONVEX_RADIUS 18
4. N_TOOL_CONVEX_RADIUS 19
5. NC_TOOL_CONVEX_RADIUS 19
6. NC_TOOL_PROFILE_RADIUS 19
7. TOOL_Z_CENTER 19
8. N_Z_CENTER 19
9. NC_Z_CENTER 19
10. HOST_SYSTEM 19
11. RUNNING_SYSTEM 19
12. CANNED_CYCLE_FIRST_CUT 20
13. CANNED_CYCLE_FINAL_CUT 20
14. STOCK_TYPE 20
SYSTEM CONSTANTS ........................................................................................... 21
What’s New in UPG-2 for CAMWorks 2021 PLUS 22
QUERY COMMAND ................................................................................................ 22
1. QUERY_FEATURE_NAME 22
POST VARIABLES .................................................................................................. 23
1. :OPR_FROM_PART_SETUP_ORIGIN 23
2. :NEXT_OPR_FROM_PART_SETUP_ORIGIN 23
MAX STRING LENGTH FOR SYSTEM POST CHARACTER VARIABLES .......... 24
What’s New in UPG-2 for CAMWorks 2021 SP1 25
QUERY COMMANDS .............................................................................................. 25
1. QUERY_ARC_OVERRIDE_FEEDRATE 25
2. QUERY_CORNER_SLOWDOWN_FEEDRATE 25
What’s New in UPG-2 for CAMWorks 2021 SP0 26
Post Variables ......................................................................................................... 26
1. NEXT_NON_POSTOP_SYSTEM 26
2. TOOL_SHOULDER_LENGTH 26
3. TAB 26
4. MCS_OFFSET_TYPE 26
5. WORLD_WCS_TO_SETUP_OFFSET_X 26
6. WORLD_WCS_TO_SETUP_ OFFSET_Y 27
7. WORLD_WCS_TO_SETUP_ OFFSET_Z 27
8. WCS_TO_SETUP_SCS_OFFSET_X 27
9. WCS_TO_SETUP_SCS_OFFSET_Y 27
10. WCS_TO_SETUP_SCS_OFFSET_Z 27
3
Table of Contents
17. PROBE_V_NULL_BAND 42
18. PROBE_W_PRINT_DATA 42
19. PROBE_X_POS_OR_SIZE_X 42
20. PROBE_Y_POS_OR_SIZE_Y 42
21. PROBE_Z_POS_OR_SIZE_Z 42
22. PROBE_CYCLE_FEEDRATE 42
23. PROBE_WORK_SUB_OFFSET_NUM 43
24. PROBE_WORK_OFFSET_NUM 43
25. PROBE_UPDATE_WCS_OFFSET 43
26. PROBE_FIXTURE_OFFSET_NUM 43
27. PROBE_UPDATE_OFFSET_TYPE 43
28. HAVE_PROBE_CYCLE 43
29. PROBE_CYCLE_TYPE 44
System Variables .................................................................................................... 44
1. OPR_IS_PRIMARY 44
2. CL_COMMENT 44
3. CL_COMMAND 44
4. IS_SUB_SPINDLE_REVERSE_Z 45
5. MACH_NUMBER_AXIS 45
6. MACH_ROTARY_4AXIS_TYPE 45
7. MACH_ROTARY_5AXIS_TYPE 45
8. MACH_ROTARY_VEC_4X 45
9. MACH_ROTARY_VEC_4Y 45
10. MACH_ROTARY_VEC_4Z 46
11. MACH_ROTARY_VEC_5X 46
12. MACH_ROTARY_VEC_5Y 46
13. MACH_ROTARY_VEC_5Z 46
System Commands ................................................................................................ 46
1. GET_SW_CUSTOM_PROP_BY_NAME 46
2. GET_SW_SUMMARY_INFO_BY_ID 47
CALC Sections for Probe Cycles .......................................................................... 47
CALC Sections for Mill ........................................................................................... 47
CALC Sections for SOLIDWORKS ........................................................................ 48
1. CALC_GET_SW_PROPERTIES 48
2. CALC_GET_SW_SUMMARY_FIELDS 48
3. CALC_GET_SW_CUSTOM_FIELDS 49
4. CALC_OUTPUT_SW_PROPERTY 49
Attribute Commands .............................................................................................. 49
1. QUERY_SW_FIELD_NAME 49
2. QUERY_SW_FIELD_VAL 50
3. QUERY_SW_FIELD_TYPE 50
System Constants .................................................................................................. 50
System Constants for SOLIDWORKS .................................................................. 51
Additional System Constants ............................................................................... 51
Query Commands .................................................................................................. 52
1. QUERY_TOOL_ID_COMMENT 52
2. QUERY_TOOL_VENDOR_COMMENT 52
3. QUERY_TOOL_DESCRIPTION_COMMENT 53
4. QUERY_HOLDER_NUM_COMMENT 53
5. QUERY_HOLDER_VENDOR_COMMENT 53
6. QUERY_HOLDER_DESCRIPTION_COMMENT 54
7. QUERY_STATION_DESCRIPTION_COMMENT 54
What’s New in UPG for CAMWorks 2019 SP2 55
5
Table of Contents
6
About UPG-2 (Enhanced UPG App)
New Commands, Constants and Variables added to UPG-2 for CAMWorks 2023
For a complete list of the new commands, variables and constants added to UPG-2 to ensure
compatibility with the CAMWorks 2023 version, refer the section from What’s New in UPG-2 for
CAMWorks 2023 SP0 of this document.
New Commands, Constants and Variables added to UPG-2 for CAMWorks 2022
For a complete list of the new commands, variables and constants added to UPG-2 to ensure
compatibility with the CAMWorks 2022 version, refer the section from What’s New in UPG-2 for
CAMWorks 2022 SP1 to What’s New in UPG-2 for CAMWorks 2022 of this document.
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 from What’s New in UPG-2 for
CAMWorks 2021 PLUS to What’s New in UPG-2 for CAMWorks 2021 SP0 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.
7
What’s New in UPG-2 for CAMWorks 2023 SP0
2. :POST_SUPPORTS_EULER_TNDC
When set to TRUE, the system will allow Euler Tool Normal direct control to
Purpose: be used in the post.
To be used in CAMWorks 2023 SP0 or higher versions.
Syntax: :POST_SUPPORTS_EULER_TNDC = TRUE or FALSE
Type: Integer
Default: FALSE
Usage: EULER_TYPE=EULER_NONE
EULER_ZXZ
EULER_ZYZ
2. EULER_FIRST_ROT
Type: DECIMAL
This will pass the Euler first rotation angle.
Usage:
To be used in CAMWorks 2023 SP0 or higher versions.
The system will calculate the specified EULER_TYPE, EULER_1ST_ROT,
EULER_2ND_ROT and EULER_3RD_ROT before calling
Note: CALC_START_OPERATION.
If the user overrides the system calculated rotations, then
OVERRIDING_EULER_ANGLES will be set to TRUE.
8
What’s New in UPG-2 for CAMWorks 2023 SP0
3. EULER_SECOND_ROT
Type: DECIMAL
This will pass the Euler second rotation angle.
Usage:
To be used in CAMWorks 2023 SP0 or higher versions.
The system will calculate the specified EULER_TYPE, EULER_1ST_ROT,
EULER_2ND_ROT and EULER_3RD_ROT before calling
Note: CALC_START_OPERATION.
If the user overrides the system calculated rotations, then
OVERRIDING_EULER_ANGLES will be set to TRUE.
4. EULER_THIRD_ROT
Type: DECIMAL
This will pass the Euler third rotation angle.
Usage:
To be used in CAMWorks 2023 SP0 or higher versions.
The system will calculate the specified EULER_TYPE, EULER_1ST_ROT,
EULER_2ND_ROT and EULER_3RD_ROT before calling
Note: CALC_START_OPERATION.
If the user overrides the system calculated rotations, then
OVERRIDING_EULER_ANGLES will be set to TRUE.
5. OVERRIDING_EULER_ANGLES
Type: INTEGER
Usage: This will pass whether you are overriding the Euler Angles or not.
To be used in CAMWorks 2023 SP0 or higher versions.
The system will calculate the specified EULER_TYPE, EULER_1ST_ROT,
EULER_2ND_ROT and EULER_3RD_ROT before calling
Note: CALC_START_OPERATION.
If the user overrides the system calculated rotations, then
OVERRIDING_EULER_ANGLES will be set to TRUE.
6. PROBE_MEASURE_TYPE
Type: INTEGER
Usage: This will pass the current probe measure type either XY or Z.
To be used in CAMWorks 2023 SP0 or higher versions.
Syntax:
PROBE_MEASURE_TYPE=MEASURE_XY
PROBE_MEASURE_TYPE=MEASURE_Z
7. N_PROBE_MEASURE_TYPE
Type: INTEGER
Usage: This will pass the next probe measure type either XY or Z.
To be used in CAMWorks 2023 SP0 or higher versions.
Syntax:
N_PROBE_MEASURE_TYPE=MEASURE_XY
N_PROBE_MEASURE_TYPE=MEASURE_Z
9
What’s New in UPG-2 for CAMWorks 2023 SP0
8. P_PROBE_MEASURE_TYPE
Type: INTEGER
Usage: This will pass the previous probe measure type either XY or Z.
To be used in CAMWorks 2023 SP0 or higher versions.
Syntax:
P_PROBE_MEASURE_TYPE=MEASURE_XY
P_PROBE_MEASURE_TYPE=MEASURE_Z
9. PROBE_CYCLE_X_TYPE
Type: INTEGER
10. P_PROBE_CYCLE_X_TYPE
Type: INTEGER
11. N_PROBE_CYCLE_X_TYPE
Type: INTEGER
12. PROBE_CYCLE_Y_TYPE
Type: INTEGER
13. P_PROBE_CYCLE_Y_TYPE
Type: INTEGER
14. N_PROBE_CYCLE_Y_TYPE
Type: INTEGER
15. PROBE_CYCLE_Z_TYPE
Type: INTEGER
10
What’s New in UPG-2 for CAMWorks 2023 SP0
16. P_PROBE_CYCLE_Z_TYPE
Type: INTEGER
17. N_PROBE_CYCLE_Z_TYPE
Type: INTEGER
18. PROBE_UNPROTECTED_Z_DOWN
Type: INTEGER
Usage: This variable will pass whether the probe rapid Z down is unprotected or not.
To be used in CAMWorks 2023 SP0 or higher versions.
Syntax: PROBE_UNPROTECTED_Z_DOWN=TRUE or FALSE
19. PROBE_UNPROTECTED_Z_UP
Type: INTEGER
Usage: This variable will pass whether the probe rapid Z up is unprotected or not.
To be used in CAMWorks 2023 SP0 or higher versions.
Syntax: PROBE_UNPROTECTED_Z_UP=TRUE or FALSE
20. PROBE_PNT_X1
Type: DECIMAL
This variable will pass the first X point in a three point plane toolpath probing
Usage: cycle, to be used for manual output.
To be used in CAMWorks 2023 SP0 or higher versions.
21. PROBE_PNT_Y1
Type: DECIMAL
This variable will pass the first Y point in a three point plane toolpath probing
Usage: cycle, to be used for manual output.
To be used in CAMWorks 2023 SP0 or higher versions.
22. PROBE_PNT_Z1
Type: DECIMAL
This variable will pass the first Z point in a three point plane toolpath probing
Usage: cycle, to be used for manual output.
To be used in CAMWorks 2023 SP0 or higher versions.
23. PROBE_PNT_X2
Type: DECIMAL
This variable will pass the second X point in a three point plane toolpath
Usage: probing cycle, to be used for manual output.
To be used in CAMWorks 2023 SP0 or higher versions.
11
What’s New in UPG-2 for CAMWorks 2023 SP0
24. PROBE_PNT_Y2
Type: DECIMAL
This variable will pass the second Y point in a three point plane toolpath
Usage: probing cycle, to be used for manual output.
To be used in CAMWorks 2023 SP0 or higher versions.
25. PROBE_PNT_Z2
Type: DECIMAL
This variable will pass the second Z point in a three point plane toolpath
Usage: probing cycle, to be used for manual output.
To be used in CAMWorks 2023 SP0 or higher versions.
26. PROBE_PNT_X3
Type: DECIMAL
This variable will pass the third X point in a three point plane toolpath probing
Usage: cycle, to be used for manual output.
To be used in CAMWorks 2023 SP0 or higher versions.
27. PROBE_PNT_Y3
Type: DECIMAL
This variable will pass the third Y point in a three point plane toolpath probing
Usage: cycle, to be used for manual output.
To be used in CAMWorks 2023 SP0 or higher versions.
28. PROBE_PNT_Z3
Type: DECIMAL
This variable will pass the third Z point in a three point plane toolpath probing
Usage: cycle, to be used for manual output.
To be used in CAMWorks 2023 SP0 or higher versions.
29. PROBE_REF_NORM_X
Type: DECIMAL
30. PROBE_REF_NORM_Y
Type: DECIMAL
31. PROBE_REF_NORM_Z
Type: DECIMAL
12
What’s New in UPG-2 for CAMWorks 2023 SP0
32. PROBE_START_ANGLE
Type: DECIMAL
Usage: This variable will pass the probe starting angle (For Heidenhain).
To be used in CAMWorks 2023 SP0 or higher versions.
33. PROBE_STEPPING_ANGLE
Type: DECIMAL
Usage: This variable will pass the probe stepping angle (For Heidenhain).
To be used in CAMWorks 2023 SP0 or higher versions.
34. PROBE_STOP_IF_TOL_EXCEEDED
Type: INTEGER
This variable will pass whether tolerance has been exceeded or not (For
Usage: Heidenhain).
To be used in CAMWorks 2023 SP0 or higher versions.
Syntax: PROBE_STOP_IF_TOL_EXCEEDED=TRUE or FALSE
35. PROBE_CLEARANCE
Type: DECIMAL
This variable will pass the probe clearance value defined in the below
mentioned probe cycles:
• Angle Measurement (X Axis)
Usage: • Angle Measurement (Y Axis)
• 4th Axis Measurement (X Axis)
• 4th Axis Measurement (Y Axis)
To be used in CAMWorks 2023 SP0 or higher versions.
36. PROBE_LIB_TYPE
Type: INTEGER
This will pass the probe library type selected under the posting tab of
Usage: machine page.
To be used in CAMWorks 2023 SP0 or higher versions.
PROBE_LIB_TYPE= PROBE_TYPE_NONE
PROBE_TYPE_RENISHAW
Syntax:
PROBE_TYPE_HEIDENHAIN
PROBE_TYPE_OTHER
37. CURR_FILE_NUM
Type: INTEGER
This will pass the current File Number being used to receive output from the
Usage: post template lines. This will be used with the post variable SETTXT.
To be used in CAMWorks 2023 SP0 or higher versions.
If SETTXT(5) is used, then
:T: (CURR_FILE_NUM=<"%2LT":CURR_FILE_NUM>)<EOL>
Example:
Output is
CURR_FILE_NUM=05)
13
What’s New in UPG-2 for CAMWorks 2023 SP0
If option is selected under a Multiaxis Mill operation, then the output should
be:
( KEEP_INITIAL_ORIENTATION = TRUE )
14
What’s New in UPG-2 for CAMWorks 2023 SP0
2. QUERY_POST_SUPPORTS_EULER_ANGLES
If the return value of QUERY_RESULT is TRUE, then the system will pass
Purpose: whether post is supporting Euler angles. QUERY_INT_VAL.
To be used in CAMWorks 2023 SP0 or higher versions.
Syntax: QUERY_ITEM_ID=QUERY_POST_SUPPORTS_EULER_ANGLES
Associated commands and variables:
The example code below shows the other variables used with this command.
:C: QUERY_ITEM_ID =QUERY_POST_SUPPORTS_EULER_ANGLES
Comments: :C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=1 THEN
:C: Integer post variable=QUERY_INT_VAL
:C: ENDIF
3. QUERY_POST_SUPPORTS_EULER_TNDC
If the return value of QUERY_REdSULT is TRUE, then the system will pass
Purpose: whether post is supporting Euler angles. QUERY_INT_VAL.
To be used in CAMWorks 2023 SP0 or higher versions.
Syntax: QUERY_ITEM_ID=QUERY_POST_SUPPORTS_EULER_TNDC
Associated commands and variables:
The example code below shows the other variables used with this command.
:C: QUERY_ITEM_ID =QUERY_POST_SUPPORTS_EULER_TNDC
Comments: :C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=1 THEN
:C: Integer post variable=QUERY_INT_VAL
:C: ENDIF
4. QUERY_MACRO_ROTATE_Z
If the return value of QUERY_RESULT is TRUE, then the system will pass
Purpose: whether post is supporting rotating macros about Z. QUERY_INT_VAL.
To be used in CAMWorks 2023 SP0 or higher versions.
Syntax: QUERY_ITEM_ID=QUERY_MACRO_ROTATE_Z
Associated commands and variables:
The example code below shows the other variables used with this command.
:C: QUERY_ITEM_ID =QUERY_MACRO_ROTATE_Z
Comments: :C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=1 THEN
:C: Integer post variable=QUERY_INT_VAL
:C: ENDIF
15
What’s New in UPG-2 for CAMWorks 2023 SP0
16
What’s New in UPG-2 for CAMWorks 2022 SP1
1. : SET_FIRST_Z_POS_ON_MILL_TC
When set to TRUE, the system will pass the first Z move to ABS_Z_END at
Purpose: tool change.
To be used in CAMWorks 2022 SP1 or higher versions.
Syntax: :SET_FIRST_Z_POS_ON_MILL_TC = TRUE or FALSE
Type: Integer
Default: FALSE
1. QUERY_MILL_FEATURE_NAME
If the return value of QUERY_RESULT is TRUE, then the system will pass the
Purpose: absolute value in Z axis from WCS to current feature face. QUERY_DEC_VAL.
To be used in CAMWorks 2022 SP1 or higher versions.
Syntax: QUERY_ITEM_ID=QUERY_MILL_FEATURE_FACE
Associated commands and variables:
The example code below shows the other variables used with this command.
:C: QUERY_ITEM_ID =QUERY_MILL_FEATURE_FACE
Comments: :C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=1 THEN
:C: Decimal post variable=QUERY_DEC_VAL
:C: ENDIF
17
What’s New in UPG-2 for CAMWorks 2022
1. :POST_FROM_PART_SETUP_ORIGIN_WHEN_USING_PART_REF_POINT
=TRUE or FALSE
Type: INTEGER
DEFAULT: FALSE
Usage: When set to TRUE, the system will post from part setup origin when using
part reference point. To be used in CAMWorks 2022 SP0 or higher versions.
2. :USE_COMBINATION_ID_AS_NAME_WHEN_AVAILABLE = TRUE OR
FALSE
Type: INTEGER
DEFAULT: FALSE
When this header is set to TRUE, provided that the Combination ID is blank,
the system will use Tool number. Available only in conjunction with tool
Usage: assembly mode that was added for CAMWorks Virtual Machine. This is similar
to : USE_STATION_ID_AS_NAME.
To be used in CAMWorks 2022 SP0 or higher versions.
1. TOOL_PROFILE_RADIUS
Type: DECIMAL
This variable indicates the current tool parameters that define the tool profile
Usage: radius of all Barrel tool types, except for Lens type Barrel tool.
To be used in CAMWorks 2022 SP0 or higher versions.
2. N_TOOL_PROFILE_RADIUS
Type: DECIMAL
This variable indicates the next entity tool parameters that define the tool
Usage: profile radius of all Barrel tool types, except for Lens type Barrel tool.
To be used in CAMWorks 2022 SP0 or higher versions.
3. TOOL_CONVEX_RADIUS
Type: DECIMAL
This variable indicates the current entity tool parameters that define the tool
Usage: convex radius of a barrel lens tool.
To be used in CAMWorks 2022 SP0 or higher versions.
18
What’s New in UPG-2 for CAMWorks 2022
4. N_TOOL_CONVEX_RADIUS
Type: DECIMAL
This variable indicates the next entity tool parameters that define the tool
Usage: convex radius of a barrel lens tool.
To be used in CAMWorks 2022 SP0 or higher versions.
5. NC_TOOL_CONVEX_RADIUS
Type: DECIMAL
This variable indicates the next upcoming tool parameters that define the tool
Usage: convex radius of a barrel lens tool.
To be used in CAMWorks 2022 SP0 or higher versions.
6. NC_TOOL_PROFILE_RADIUS
Type: DECIMAL
This variable indicates the next upcoming tool parameters that define the tool
Usage: profile radius of all Barrel tool types, except for Lens type Barrel tool.
To be used in CAMWorks 2022 SP0 or higher versions.
7. TOOL_Z_CENTER
Type: DECIMAL
This variable indicates the current tool parameters that define the tool Z
Usage: center of an Advanced type Barrel tool.
To be used in CAMWorks 2022 SP0 or higher versions.
8. N_Z_CENTER
Type: DECIMAL
This variable indicates the next entity tool parameters that define the tool Z
Usage: center of an Advanced type Barrel tool.
To be used in CAMWorks 2022 SP0 or higher versions.
9. NC_Z_CENTER
Type: DECIMAL
This variable indicates the next upcoming tool parameters that define the tool
Usage: Z center of an Advanced type Barrel tool.
To be used in CAMWorks 2022 SP0 or higher versions.
10. HOST_SYSTEM
Type: INTEGER
This variable passes information on the current Solids application being used.
HOST_SYSTEM=SYSTEM_TYPE_CAMWORKS_SW
Usage:
HOST_SYSTEM=SYSTEM_TYPE_CAMWORKS_SE
HOST_SYSTEM=SYSTEM_TYPE_SOLIDWORKS_CAM
11. RUNNING_SYSTEM
Type: INTEGER
This variable passes information on the current running system being used.
Usage: Uses same definitions as the CAMWORKS_VER variable. CAMWORKS_VER
only changes when new variables or changes to the posting system are
19
What’s New in UPG-2 for CAMWorks 2022
12. CANNED_CYCLE_FIRST_CUT
Type: DECIMAL
This variable will pass the first cut amount to the Turn or Mill-Turn post when
Usage: doing a canned turn roughing cycle.
To be used in CAMWorks 2022 SP0 or higher versions.
13. CANNED_CYCLE_FINAL_CUT
Type: DECIMAL
This variable will pass the final cut amount to a Turn or Mill-Turn post when
Usage: doing a canned turn roughing cycle.
To be used in CAMWorks 2022 SP0 or higher versions.
14. STOCK_TYPE
Type: INTEGER
This variable passes the current stock type being used. To be used in
CAMWorks 2022 SP0 or higher versions.
For Mill Posts:
STOCK_TYPE=MILL_STOCK_TYPE_NONE
STOCK_TYPE= MILL_STOCK_TYPE_BB
STOCK_TYPE= MILL_STOCK_TYPE_SKETCH
STOCK_TYPE= MILL_STOCK_TYPE_PART
STOCK_TYPE= MILL_STOCK_TYPE_STL
STOCK_TYPE= MILL_STOCK_TYPE_BROWSE_PART
STOCK_TYPE= MILL_STOCK_TYPE_WIP
Usage: STOCK_TYPE= MILL_STOCK_TYPE_ROUND_BAR
STOCK_TYPE= MILL_STOCK_TYPE_PREDEFINED_BOX
STOCK_TYPE= MILL_STOCK_TYPE_CYLINDRICAL
20
What’s New in UPG-2 for CAMWorks 2022
21
What’s New in UPG-2 for CAMWorks 2021 PLUS
1. QUERY_FEATURE_NAME
If the return value of QUERY_RESULT is TRUE, then the system will pass the feature
Purpose: name to QUERY_CHAR_VAL.
To be used in CAMWorks 2021Plus SP2 or higher versions.
Syntax: QUERY_ITEM_ID=QUERY_FEATURE_NAME
Associated commands and variables:
The example code below shows the other variables used with this command.
:ATTRNAME=POST FEATURE NAME
:ATTRTYPE=POST
:CODETYPE=FORMAT
:ATTRCFUNC=CALC_QUERY_ADDITIONAL_TOOL_COMMENT(QUERY_FEATURE
_NAME)
:WORD_ADDRESS_BEF=|(|Feature Name:
:VAR=QUERY_CHAR_VAL
:WORD_ADDRESS_AFT=|)
:LEFT_PLACES=0
:RIGHT_PLACES=0
:UNITFLAG=NON_CONVERT
:ATTRSPACES=YES
:MODAL=YES
Comments: :ATTRUSED=1
:ATTREND
: *-----------------------------------
:SECTION=CALC_QUERY_ADDITIONAL_TOOL_COMMENT(QUERYID)
*
:C: QUERY_CHAR_VAL={}
:C: IF CAMWORKS_VER<CAM_REV2020 THEN SETOFF() RETURN ENDIF
*
:C: SETON()
:C: QUERY_ITEM_ID=QUERYID
:C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=0 OR QUERY_CHAR_VAL={} THEN SETOFF()
ENDIF
:C: IF ATTROVERRIDE=YES THEN SETON() ENDIF
22
What’s New in UPG-2 for CAMWorks 2021 PLUS
1. :OPR_FROM_PART_SETUP_ORIGIN
Type: INTEGER
Syntax: :OPR_FROM_PART_SETUP_ORIGIN=TRUE or FALSE
Defines whether user selected Part Setup Origin in the Mill Assembly Setup
Usage: Origin page of current operation.
To be used in CAMWorks 2021 Plus and later versions.
2. :NEXT_OPR_FROM_PART_SETUP_ORIGIN
Type: INTEGER
Syntax: :NEXT_OPR_FROM_PART_SETUP_ORIGIN=TRUE or FALSE
Defines whether user selected Part Setup Origin in the Mill Assembly Setup
Usage: Origin page of the next operation.
To be used in CAMWorks 2021 Plus and later versions.
23
What’s New in UPG-2 for CAMWorks 2021 PLUS
24
What’s New in UPG-2 for CAMWorks 2021 SP1
1. QUERY_ARC_OVERRIDE_FEEDRATE
If the return value of QUERY_RESULT is TRUE, then the system will pass the
arc override feedrate value to post system variable named QUERY_DEC_VAL
Purpose:
in a Mill operation.
To be used in CAMWorks 2021 SP1 or higher versions.
Syntax: QUERY_ITEM_ID=QUERY_ARC_OVERRIDE_FEEDRATE
Associated commands and variables:
The example code below shows the other variables used with this command.
:C: IF OPR_IS_ARC_FEEDRATE_OVERRIDE_ENABLED=TRUE
THEN
Comments: :C: QUERY_ITEM_ID=QUERY_ARC_OVERRIDE_FEEDRATE
:C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=1 THEN
:C: Defined Post Variable=QUERY_DEC_VAL
:C: ENDIF
:C: ENDIF
2. QUERY_CORNER_SLOWDOWN_FEEDRATE
If the return value of QUERY_RESULT is TRUE, then the system will pass the
corner slowdown feedrate value to post system variable named
Purpose: QUERY_DEC_VAL in a Mill operation.
To be used in CAMWorks 2021 SP1 or higher versions.
Syntax: QUERY_ITEM_ID=QUERY_CORNER_SLOWDOWN_FEEDRATE
Associated commands and variables:
The example code below shows the other variables used with this command.
:C: IF OPR_IS_CORNER_SLOWDOWN_ENABLED=TRUE THEN
QUERY_ITEM_ID=QUERY_CORNER_SLOWDOWN_FEEDRATE
Comments: :C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=1 THEN
:C: Defined Post Variable=QUERY_DEC_VAL
:C: ENDIF
:C: ENDIF
25
What’s New in UPG-2 for CAMWorks 2021 SP0
1. NEXT_NON_POSTOP_SYSTEM
Type Integer
Stores the next system excluding the post operations. A new constant can be
used with this variable to determine if you are at the end of a channel or tape
Purpose: (NO_NEXT_SYSTEM).
To be used in CAMWorks 2021 SP0 or higher versions.
2. TOOL_SHOULDER_LENGTH
Type Decimal
Stores the Tool Shoulder Length.
Purpose:
To be used in CAMWorks 2021 SP0 or higher versions.
3. TAB
Type Character
Used for outputting a tab character to the posted output ASCII (09) values.
Purpose:
To be used in CAMWorks 2021 SP0 or higher versions.
Example: :T:<TAB><EOL>
4. MCS_OFFSET_TYPE
MCS_OFFSET_TYPE= OFFSET_TYPE_FROM_FCS
Syntax OFFSET_TYPE_FROM_REF_POINT
OFFSET_TYPE_FROM_SETUP
Type Integer
Stores the MCS Offset Types
Purpose:
To be used in CAMWorks 2021 SP0 or higher versions.
5. WORLD_WCS_TO_SETUP_OFFSET_X
Type Decimal
Stores the X offset distance from WCS to Setup (in Fixture Coordinate
Purpose: system).
To be used in CAMWorks 2021 SP0 or higher versions.
26
What’s New in UPG-2 for CAMWorks 2021 SP0
6. WORLD_WCS_TO_SETUP_ OFFSET_Y
Type Decimal
Stores the Y offset distance from WCS to Setup (in Fixture Coordinate
Purpose: system).
To be used in CAMWorks 2021 SP0 or higher versions.
7. WORLD_WCS_TO_SETUP_ OFFSET_Z
Type Decimal
Stores the Z offset distance from WCS to Setup (in Fixture Coordinate
Purpose: system).
To be used in CAMWorks 2021 SP0 or higher versions.
8. WCS_TO_SETUP_SCS_OFFSET_X
Type Decimal
Stores the X offset distance from WCS to Setup (in Setup Coordinate
Purpose: system).
To be used in CAMWorks 2021 SP0 or higher versions.
9. WCS_TO_SETUP_SCS_OFFSET_Y
Type Decimal
Stores the Y offset distance from WCS to Setup (in Setup Coordinate
Purpose: system).
To be used in CAMWorks 2021 SP0 or higher versions.
10. WCS_TO_SETUP_SCS_OFFSET_Z
Type Decimal
Stores the Z offset distance from WCS to Setup (in Setup Coordinate
Purpose: system).
To be used in CAMWorks 2021 SP0 or higher versions.
27
What’s New in UPG-2 for CAMWorks 2021 SP0
14. MACRO_4TH_AXIS_OFFSET_ANGLE
Type Decimal
Stores the subroutine (macro) 4th axis offset angle at the subroutine (macro)
Purpose: call sections.
To be used in CAMWorks 2021 SP0 or higher versions.
15. MACRO_5TH_AXIS_OFFSET_ANGLE
Type Decimal
Stores the subroutine (macro) 5th axis offset angle at the subroutine (macro)
Purpose: call sections.
To be used in CAMWorks 2021 SP0 or higher versions.
28
What’s New in UPG-2 for CAMWorks 2021 SP0
29
What’s New in UPG-2 for CAMWorks 2021 SP0
2. QUERY_TOOL_ASSEMBLY_DESCRIPTION
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 2021 SP0 or higher versions.
Syntax: QUERY_ITEM_ID=QUERY_TOOL_ASSEMBLY_DESCRIPTION
The max character length allowed for the string value assigned to this
Max.
parameter is 100 characters. Any extra character after this allowed number
Character
of characters will not be passed on to post system variable named
Length
QUERY_CHAR_VAL.
Associated commands and variables:
The example code below shows the other variables used with this command.
:C: QUERY_ITEM_ID =QUERY_TOOL_ASSEMBLY_DESCRIPTION
Comments: :C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=1 THEN
:C: Char post variable=QUERY_CHAR_VAL
:C: ENDIF
30
What’s New in UPG-2 for CAMWorks 2021 SP0
:LIBRARY=PATH\MILLTURN_PROBE.LIB
:LIBRARY=PATH\POST-LIBRARY-FILE.LIB
:LIBRARY=PATH\MILLTURN.LIB
31
What’s New in UPG-2 for CAMWorks 2021 SP0
32
What’s New in UPG-2 for CAMWorks 2021 SP0
• LINE_OD_FREE_PROBE
• LINE_FACE_FIXED_PROBE
• LINE_FACE_FREE_PROBE
• PROBE_SURFACE_X_TOOLPATH
• PROBE_SURFACE_Y_TOOLPATH
• PROBE_SURFACE_Z_TOOLPATH
• PROBE_WEB_X_TOOLPATH
• PROBE_WEB_Y_TOOLPATH
• PROBE_POCKET_X_TOOLPATH
• PROBE_POCKET_Y_TOOLPATH
• PROBE_ISLAND_POCKET_X_TOOLPATH
• PROBE_ISLAND_POCKET_Y_TOOLPATH
• PROBE_BOSS_TOOLPATH
• PROBE_BORE_TOOLPATH
• PROBE_ISLAND_BORE_TOOLPATH
• PROBE_3POINT_BOSS_TOOLPATH
• PROBE_3POINT_BORE_TOOLPATH
• PROBE_3POINT_ISLAND_BORE_TOOLPATH
• DEBUG_PROBE
• OUTPUT_PROBE_ERROR
33
What’s New in UPG-2 for CAMWorks 2020 SP3
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
34
What’s New in UPG-2 for CAMWorks 2020 SP3
35
What’s New in UPG-2 for CAMWorks 2020 SP2
36
What’s New in UPG-2 for CAMWorks 2020 SP2
Information needed in SRC file for Adding Wrapped Cylindrical to Mill Posts:
1. Header command required
Header command ":MILL_OD_CYLINDRICAL=TRUE"
2. Line to be added
Added this line in CALC_INIT_CODES ":C: CYLINDRICAL=999"
3. Added below Template Sections.
• 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
• LAST_RAPID_Z_MOVE_UP_LEN_COMP_MILL_CYLINDRICAL
• FIRST_RAPID_Z_PRELOAD_DOWN_MILL_CYLINDRICAL
• RAPID_Z_MOVE_DOWN_LEN_COMP_MILL_CYLINDRICAL
• FEED_Z_MOVE_DOWN_LEN_COMP_MILL_CYLINDRICAL
• FIRST_FEED_Z_DOWN_MILL_CYLINDRICAL
38
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
39
What’s New in UPG-2 for CAMWorks 2020 SP0
3. 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.
4. 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.
5. 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.
6. PROBE_E_EXPERIENCE_VALUE
Type Integer
Stores the Probe Cycle’s experience value.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
40
What’s New in UPG-2 for CAMWorks 2020 SP0
7. PROBE_F_PERCENT_FEEDBACK
Type Decimal
Stores the Probe Cycle’s percentage feedback.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
8. PROBE_H_TOL_VALUE
Type Decimal
Stores the Probe Cycle’s tolerance value.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
9. 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.
10. 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.
11. 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.
12. 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.
13. PROBE_Q_OVERTRAVEL_DIST
Type Decimal
Stores the Probe Cycle’s Overtravel Distance.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
14. PROBE_R_CLEARANCE
Type Decimal
Stores the Probe Cycle’s Retract Clearance.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
41
What’s New in UPG-2 for CAMWorks 2020 SP0
15. 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.
16. 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.
17. PROBE_V_NULL_BAND
Type Decimal
Stores the Probe Cycle’s Null band.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
18. PROBE_W_PRINT_DATA
Type Integer
Stores the Probe Cycle’s Print Data
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
19. 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.
20. 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.
21. 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.
22. PROBE_CYCLE_FEEDRATE
Type Decimal
Stores the Probe Cycle’s feedrate.
Purpose:
To be used in CAMWorks 2020 SP0 or later versions.
42
What’s New in UPG-2 for CAMWorks 2020 SP0
23. 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.
24. 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.
25. 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.
26. 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.
27. 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
28. 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
43
What’s New in UPG-2 for CAMWorks 2020 SP0
29. 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.
44
What’s New in UPG-2 for CAMWorks 2020 SP0
4. IS_SUB_SPINDLE_REVERSE_Z
Type Integer
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_5AXIS_TYPE
Type Integer
Stores what 5-Axis type the system has been setup for.
To be used in CAMWorks 2020 SP0 or higher versions.
MACH_ROTARY_5AXIS_TYPE=ROTATE_ABOUT_X
Purpose:
ROTATE_ABOUT_Y
ROTATE_ABOUT_Z
ROTATE_ABOUT_MULTIPLE
8. 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.
9. 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.
45
What’s New in UPG-2 for CAMWorks 2020 SP0
10. 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.
11. 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.
12. 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.
13. 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.
46
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.
47
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)
*______________________________
48
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.
49
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
50
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
51
What’s New in UPG-2 for CAMWorks 2020 SP0
Syntax: QUERY_ITEM_ID=QUERY_TOOL_ID_COMMENT
Max. The max character length allowed for the string value assigned to this
Character parameter is 100 characters. Any extra character after this allowed number of
Length characters will not be passed on to post system variable named
QUERY_CHAR_VAL.
Associated commands and variables:
The example code below shows the other variables used with this command.
:C: QUERY_ITEM_ID=QUERY_TOOL_ID_COMMENT
Comments: :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
Max. The max character length allowed for the string value assigned to this
Character parameter is 100 characters. Any extra character after this allowed number
Length of characters will not be passed on to post system variable named
QUERY_CHAR_VAL.
Associated commands and variables:
The example code below shows the other variables used with this
command.
:C: QUERY_ITEM_ID=QUERY_TOOL_VENDOR_COMMENT
Comments:
:C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=1 THEN
:C: Char post variable=QUERY_CHAR_VAL
:C: ENDIF
52
What’s New in UPG-2 for CAMWorks 2020 SP0
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
Max. The max character length allowed for the string value assigned to this
Character parameter is 100 characters. Any extra character after this allowed number of
Length characters will not be passed on to post system variable named
QUERY_CHAR_VAL.
Associated commands and variables:
The example code below shows the other variables used with this command.
:C: QUERY_ITEM_ID=QUERY_TOOL_DESCRIPTION_COMMENT
Comments: :C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=1 THEN
:C: Char post variable=QUERY_CHAR_VAL
:C: ENDIF
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
Max. The max character length allowed for the string value assigned to this
Character parameter is 100 characters. Any extra character after this allowed number of
Length characters will not be passed on to post system variable named
QUERY_CHAR_VAL.
Associated commands and variables:
The example code below shows the other variables used with this command.
:C: QUERY_ITEM_ID=QUERY_HOLDER_NUM_COMMENT
Comments: :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
Max. The max character length allowed for the string value assigned to this
Character parameter is 100 characters. Any extra character after this allowed number of
Length characters will not be passed on to post system variable named
QUERY_CHAR_VAL.
Associated commands and variables:
The example code below shows the other variables used with this command.
:C: QUERY_ITEM_ID=QUERY_HOLDER_VENDOR_COMMENT
Comments: :C: QUERY_SYSTEM()
:C: IF QUERY_RESULT=1 THEN
:C: Char post variable=QUERY_CHAR_VAL
:C: ENDIF
53
What’s New in UPG-2 for CAMWorks 2020 SP0
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
Max. The max character length allowed for the string value assigned to this
Character parameter is 100 characters. Any extra character after this allowed number of
Length characters will not be passed on to post system variable named
QUERY_CHAR_VAL.
Associated commands and variables:
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
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
Max. The max character length allowed for the string value assigned to this
Character parameter is 100 characters. Any extra character after this allowed number of
Length characters will not be passed on to post system variable named
QUERY_CHAR_VAL.
Associated commands and variables:
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
54
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
55
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
56
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.
57
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.
58
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.
59
What’s New in UPG for CAMWorks 2019 SP1
60