Activating interrupts for monitoring

Description

The function block KRC_ActivateConvInterrupt activates the following interrupts:

An interrupt cannot be processed until the interrupt has been activated by the main run of the robot interpreter.

The monitoring functions are activated by the function blocks KRC_ConvFollow and KRC_ConvSkip insofar as these have been successfully synchronized with a workpiece. Calling this function block is only necessary if the monitoring function is to be ended and reactivated.

Activating interrupts for monitoring 1:
Function block KRC_ActivateConvInterrupt

Inputs

Parameter

Type

Description

AxisGroupIdx

INT

Index of axis group

  • 1 … 5

ExecuteCmd

BOOL

Starts/buffers the motion in the case of a rising edge of the signal.

ConveyorNumber

INT

Number of the conveyor

  • 1 … 3

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

Active

BOOL

TRUE = statement is currently being executed

Done

BOOL

TRUE = statement has been executed

Aborted

BOOL

TRUE = statement has been aborted

Error

BOOL

TRUE = error in function block

ErrorID

DINT

Error number