Reading the state of an interrupt

Description

The function block KRC_ReadInterruptState reads the state of an interrupt. This is updated cyclically.

Reading the state of an interrupt 1:
Function block KRC_ReadInterruptState

Inputs

Parameter

Type

Description

AxisGroupIdx

INT

Index of axis group

  • 1 … 5

Interrupt

INT

Number of the interrupt

  • 1 … 8

Outputs

Parameter

Type

Description

Valid

BOOL

TRUE = data are valid

Value

INT

State of specified interrupt

  • 0: Interrupt has not been declared.
  • 1: Interrupt has been declared.
  • 2: Interrupt has been declared and activated.
  • 3: Interrupt has been declared and activated and has now been deactivated again (see Status 1).
  • 4: Interrupt has been triggered and is active.
  • 5: Interrupt has been triggered and the main program has already been resumed with the function block KRC_Continue.

Error

BOOL

TRUE = error in function block

ErrorID

DINT

Error number