VAL_ScopeInit

VAL_ScopeInit 1:

The function block VAL_ScopeInit initializes the SCOPE. SCOPE is a secure solution for continuous EDGE data mining.

The 3 variables (productionLine, robotName, robotJob) are used to identify uniquely the robot in the production plant.

This unique combination will allow the box to correctly identify the robot but also to present it as an end-user would expect in the SCOPE dashboard.

Syntax

Definition:

FUNCTION_BLOCK VAL_ScopeInit
VAR_INPUT
    Execute         : BOOL := FALSE;
    ProductionLine  : STRING(16) := '';
    RobotName       : STRING(16) := '';
    RobotJob        : STRING(16) := '';
    Parameters      : T_ScopeParam;
END_VAR
VAR_OUTPUT
    Busy     : BOOL := FALSE;
    Done     : BOOL := FALSE;
    Error    : BOOL := FALSE;
    ErrorID  : UDINT := 0;
END_VAR
VAR_IN_OUT
    AxesGroup  : T_StaeubliRobot;
END_VAR

VAL_ScopeInit 2: Inputs

Name

Type

Description

Execute

BOOL

Rising edge triggers function execution

ProductionLine

STRING(16)

Name of the line in which robot is installed

RobotName

STRING(16)

Name of the robot within the production line

RobotJob

STRING(16)

Name of the task operated by the robot

Parameters

T_ScopeParam

Parameters

VAL_ScopeInit 3: Outputs

Name

Type

Description

Busy

BOOL

Set when function block is executing. Reset when Done or Error is set

Done

BOOL

This output is set when function block has terminated with success

Error

BOOL

This output is set when function block has terminated with error

ErrorID

UDINT

Error code

VAL_ScopeInit 4:/VAL_ScopeInit 5: Inputs/Outputs

Name

Type

Description

AxesGroup

T_StaeubliRobot

Data block for a robot