### Update Tool Offset

Select the Operation | CNC Programming | Update Tool Offset menu option to open the Update CNC Tool Offset dialog box.

Update CNC Tool Offset dialog box

CNC/UPDATETOOLOFFSET,lengthFeature,diameterFeature,fileName,programName,toolNumber

This command calculates changes to a tool-offset (length and/or diameter) and communicates that change to the CNC. Length changes are determined by computing the difference between the nominal and actual locations of a flat or straight feature. Diameter changes are determined by computing the difference between nominal and actual radii of a round feature

lengthFeature should be a PC-DMIS “flat” feature. If tool length is not being set, this can be left blank. The location of this feature relative to its normal vector is compared to the nominal location. The difference defines a tool length offset. You can select this from the Length Feature list in the Update CNC Tool Offset dialog box for this command. This list contains “flat” PC-DMIS feature commands available to this point in the PC-DMIS part program.

diameterFeature should be a PC-DMIS “round” feature. If tool diameter is not being set, this can be left blank. The diameter of this feature is compared to its nominal diameter. The difference defines a tool diameter offset. You can select this from the Diameter Feature list in the Update CNC Tool Offset dialog box for this command. This list contains “round” PC-DMIS feature commands available to this point in the PC-DMIS part program.

fileName is the name of a CNC program file that PC-DMIS/NC will generate. Some CNC interfaces (for example, Ethernet) upload the work-offset changes directly. In these cases, the fileName parameter is not used. If no file extension is provided, the extension, "WRK", will be appended to the CNC file name.

programName is the CNC macro name of the CNC program that is generated. This parameter is not used for interfaces that upload the work-offset changes directly.

toolNumber is the number of the tool that this command is being applied to.