VAL_ReadAxesGroup

VAL_ReadAxesGroup 1:

FUNCTION_BLOCK VAL_ReadAxesGroup

This function block initializes the values of the interface data block by reading the inputs of the communication interface. It provides the data for the other blocks of the library. It must be called as the first network of a robot’s program.

Syntax

Definition:

FUNCTION_BLOCK VAL_ReadAxesGroup
VAR_INPUT
    Enable        : BOOL := FALSE;
    InputAddress  : POINTER TO T_FromRobot;
END_VAR
VAR_OUTPUT
    Error    : BOOL := FALSE;
    ErrorID  : UDINT := 0;
END_VAR
VAR_IN_OUT
    AxesGroup  : T_StaeubliRobot;
END_VAR

VAL_ReadAxesGroup 2: Inputs

Name

Type

Description

Enable

BOOL

TRUE = Content of the FB is executed

InputAddress

POINTER TO T_FromRobot

Base address of the Inputs within the IO interface with a robot. Use 'ADR' operator for setting this input of the function block.
Typical syntax is ADR(%IWxx) where xx depends on the hardware configuration of the PLC.

VAL_ReadAxesGroup 3: Outputs

Name

Type

Description

Error

BOOL

Error flag

ErrorID

UDINT

Error code

VAL_ReadAxesGroup 4:/VAL_ReadAxesGroup 5: Inputs/Outputs

Name

Type

Description

AxesGroup

T_StaeubliRobot

Data block for a robot