Tools
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).
|
|
| tool number |
| tool type ( |
| length |
| - |
| radius |
| length (added to the length value of column |
| - |
| radius (added to the radius value of column |
|
|
|
|
|
|
|
|
|
|
| Tool type 20 (miller): for free use by the user |
| Tool type 20 (miller): for free use by the user |
| 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.
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.