Reading a digital input

Description

The function block KRC_ReadDigitalInput polls and reads a digital input of the robot controller.

Reading a digital input 1:
Function block KRC_ReadDigitalInput

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 digital input (corresponds to $IN[1 … 2048] on the robot controller)

  • 1 … 2048

Outputs

Parameter

Type

Description

Done

BOOL

TRUE = statement has been executed

Value

BOOL

Value of the digital input

Error

BOOL

TRUE = error in function block

ErrorID

DINT

Error number