Activating interrupts

Description

The function block KRC_ActivateInterrupt activates a previously declared interrupt. There are 8 predefined interrupts available for this.

The function block KRC_ReadInterruptState can be used to monitor and check whether an interrupt is active.

Activating interrupts 1:
Function block KRC_ActivateInterrupt

Inputs

Parameter

Type

Description

AxisGroupIdx

INT

Index of axis group

  • 1 … 5

ExecuteCmd

BOOL

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

Interrupt

INT

Number of the interrupt

  • 1 … 8

BufferMode

INT

Mode in which the statement is executed

  • 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 processed

Aborted

BOOL

TRUE = statement has been aborted

Error

BOOL

TRUE = error in function block

ErrorID

DINT

Error number