Step 5 - Build a Dialog for User Input

Each time the operation is executed, the user will be prompted to supply values for Tool Diameter, Tool Position, Spindle Speed and Feedrate.

The PCI creates a dialog containing these modifiers using %ADDCMDMODTOOPERATION. Feed and Speed are placed on a separate tab, labelled ‘Cutting Data’. The tooling parameters are placed on the primary page. By default this is labelled ‘General’. Also, the separator can be specified by appending ^Separator_name to the tab name.

 

%ADDCMDMODTOOPERATION=[OperationID],[cmdMillTool],47

%ADDCMDMODTOOPERATION=[OperationID],[cmdMillTool],116

%ADDCMDMODTOOPERATION=[OperationID],[cmdMillTool],48

%ADDCMDMODTOOPERATION=[OperationID],[cmdFaceMill],5,
Cutting Data^Feedrates

%ADDCMDMODTOOPERATION=[OperationID],[cmdFaceMill],6,
Cutting Data^Feedrates

%ADDCMDMODTOOPERATION=[OperationID],[cmdFaceMill],7,
Cutting Data

 
Again, a number defines each modifier. 47 = Diameter, 116 = Units, 48 = Position, 5 = Planar Feed, 6 = Plunge Feed and 7 = Spindle Speed.

An additional parameter allows you to specify mutual exclusivity of operation modifiers. This is a bit-oriented value and is applied as follows:

 

%ADDCMDMODTOOPERATION=[OperationID],[cmdMillTool],48,,1

%ADDCMDMODTOOPERATION=[OperationID],[cmdFaceMill],5,
Cutting Data,1

 
Each modifier with the same bit field set is considered to be mutually exclusive. You can set up mutual exclusivity between several modifiers by assigning multiple fields of the bit-oriented value.

In the above example, modifier 48 is mutually exclusive with modifier 5. If one of the modifiers contains a value, the other modifier is greyed out and unavailable.

EdgeCAM commands have their own mechanism for defining mutual exclusivity. If the optional exclusivity field is used in any EdgeCAM operation, the normal EdgeCAM mechanism is disabled.

The usual application of this exclusivity field would be to have a user defined modifier control the availability of a command modifier.