Writing TOOL data

Description

The function block KRC_WriteToolData writes the TOOL data of the robot.

Writing TOOL data 1:
Function block KRC_WriteToolData

Inputs

Parameter

Type

Description

AxisGroupIdx

INT

Index of axis group

  • 1 … 5

ExecuteCmd

BOOL

The statement is executed in the case of a rising edge of the signal.

ToolData

FRAME

The data structure FRAME contains the following TOOL data:

  • X, Y, Z: Origin of the TOOL coordinate system relative to the FLANGE coordinate system
  • A, B, C: Orientation of the TOOL coordinate system relative to the FLANGE coordinate system

(>>> FRAME)

ToolNo

INT

Number of the TOOL coordinate system

  • 1 … 16: TOOL_DATA[1 … 16]

BufferMode

INT

Mode in which the statement is executed

  • 0: DIRECT
  • 1: ABORTING
  • 2: BUFFERED

(>>> BufferMode)

Outputs

Parameter

Type

Description

Busy

BOOL

TRUE = statement is currently being transferred or has already been transferred

Done

BOOL

TRUE = statement has been executed

Aborted

BOOL

TRUE = statement has been aborted

Error

BOOL

TRUE = error in function block

ErrorID

DINT

Error number