Tools

Tools 1:

Using tool displacement and rotation

If the Cartesian tool displacement is used in combination with rotation, then the compensation will only be correct, if the aggregate (the tool carrier) is also rotated through the same angle.

toolParamSet

toolParamSet(tidx:= USINT, col:= USINT, val:= LREAL)

Set a parameter of the tool tidx (1..255) to val. The parameter is identified by col (0..15).

COL

DESCRIPTION

0

tool number
For giving the tool a number.
Written to the T-parameter in the cyclic channel interface.

1

 

tool type (10: drill, 20: miller)
The drill is type 10.
The miller is type 20.

2

 

length
Describes the length of e.g. the drill.

3

 

-

4

 

radius

5

 

length (added to the length value of column 2)
Describes the wear on e.g. the drill. The wear has to be given as a negative value as it is added to the length.

6

 

-

7

 

radius (added to the radius value of column 4)

8

 

x-shift
Cartesian tool displacement in x-direction.

9

 

y-shift
Cartesian tool displacement in y-direction.

10

 

z-shift
Cartesian tool displacement in z-direction.

11

-

12

-

13

Tool type 20 (miller): for free use by the user

14

Tool type 20 (miller): for free use by the user

15

Tool type 20 (miller): for free use by the user

toolParam

toolParam(tidx:= USINT, col:= USINT): LREAL

Yields the given tool parameter.

toolSet

toolSet(index:= USINT, nr:= INT, tooltype:= ToolType, length:= LREAL, radius:= LREAL, lengthAdd:= LREAL, radiusAdd:= LREAL, offsetX:= LREAL, offsetY:= LREAL, offsetZ:= LREAL)

Set all parameters of a tool. The index is used in D-words to refer to the tool. It must lie in the range 1 to 255. The parameter nr has only informational purpose. Typically, it is a company internal number to identify a certain tool. The parameter tooltype identifies the kind of tool, like a drill for instance. The remaining parameters are dimensions, which are visualized in Figure “ToolSetDimensions”. If the tool orientation is changed towards the negative (see P-word), the value length+lengthAdd is implicitly negated. The parameters length, radius, lengthAdd, radiusAdd, offsetX, offsetY and offsetZ are interpreted using the current length unit.

Tools 2:

Figure “ToolSetDimensions”.

Example:

The example defines tool 1 as a drill of total length 48.5 and tool 2 as a mill with a length of 30 and a diameter of 5.

!toolSet(index:=1, nr:=4711, tooltype:=tooltypeDrill, length:=50, lengthAdd:=-1.5);
!toolSet(index:=2, nr:=10783, tooltype:=tooltypeMill, length:=30, radius:=2.5);

toolType

Enumeration of tool types.

    tooltypeDrill
    tooltypeMill

tooltypeDrill: Selects a drill as a tool.
tooltypeMill: Selects a mill as a tool.