Writing robot system inputs

Description

The function block KRC_WriteAxisGroup uses the parameter AxisGroupIdx to write the inputs to the range defined by the parameter KRC4_Output.

Writing robot system inputs 1:

The function block KRC_WriteAxisGroup must always be called at the end of the program. Access to AxisGroupIdx is only permissible between the function blocks KRC_ReadAxisGroup and KRC_WriteAxisGroup.

Writing robot system inputs 2:

The function block may only be instanced once per axis group. In the case of multiple instancing, the signals of the most recently called function block are output.

Writing robot system inputs 3:
Function block KRC_WriteAxisGroup

Inputs

Parameter

Type

Description

AxisGroupIdx

INT

Index of axis group

  • 1 … 5

KRC4_Output

POINTER TO BYTE

Defines the start index of the input range of the robot controller

Outputs

Parameter

Type

Description

Error

BOOL

TRUE = error in function block

ErrorID

DINT

Error number