Reading an analog output

Description

The function block KRC_ReadAnalogOutput polls and reads an analog output of the robot controller.

Reading an analog output 1:
Function block KRC_ReadAnalogOutput

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.

Number

INT

Number of the analog output ($ANOUT[1 … 32] on the robot controller)

  • 1 … 32

Outputs

Parameter

Type

Description

Done

BOOL

TRUE = statement has been executed

Value

REAL

Value of the analog output

Error

BOOL

TRUE = error in function block

ErrorID

DINT

Error number