Reading system variables
Description
The function block KRC_ReadSysVar can be used to read system variables.
Inputs
Parameter |
Type |
Description |
---|---|---|
AxisGroupIdx |
INT |
Index of axis group
|
ExecuteCmd |
BOOL |
The statement is executed in the case of a rising edge of the signal. |
Index |
INT |
Index of the system variable
|
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. |