Reading system variables

Description

The function block KRC_ReadSysVar can be used to read system variables.

Reading system variables 1:
Function block KRC_ReadSysVar

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.

Index

INT

Index of the system variable

  • 1: $ADVANCE
Reading system variables 2:

So far, only the system variable $ADVANCE can be read. If required for the customer-specific application, the list of readable system variables can be expanded by KUKA.

Outputs

Parameter

Type

Description

Done

BOOL

TRUE = statement has been executed

Error

BOOL

TRUE = error in function block

ErrorID

DINT

Error number

Value1 … Value10

REAL

Value of the system variable

If the system variable is a structure type, up to 10 components of the structure can be read.