MC_GroupPower

MC_GroupPower 1:

FUNCTION_BLOCK MC_GroupPower

This function block manages the arm power ON/OFF sequence.Switching arm power ON/OFF is possible only if remote automatic operation mode is selected.The operation mode is selected with the Working Mode Selector box.The arm power ON / arm power OFF sequences on the robot side can take up to 1 second until robot is effectively powered ON/OFF.During that time Enable input and Status output have different values.

MC_GroupPower 2:

If an error occurs, the Enable input must go low and high once again to re-execute the function block.However, the pending error(s) must be acknowledged using the MC_GroupReset function block.

When a user-supplied teach pendant is in use, this function block allows to power ON/OFF the robot in any operation mode.

Syntax

Definition:

FUNCTION_BLOCK MC_GroupPower
VAR_INPUT
    Enable  : BOOL := FALSE;
END_VAR
VAR_OUTPUT
    Status   : BOOL := FALSE;
    Error    : BOOL := FALSE;
    ErrorID  : UDINT := 0;
END_VAR
VAR_IN_OUT
    AxesGroup  : T_StaeubliRobot;
END_VAR

MC_GroupPower 3: Inputs

Name

Type

Description

Enable

BOOL

TRUE= Command to switch power on ; FALSE= Command to switch power off.

MC_GroupPower 4: Outputs

Name

Type

Description

Status

BOOL

Effective state of the robot power.

Error

BOOL

This output is set when function block has terminated with error

ErrorID

UDINT

Error code

MC_GroupPower 5:/MC_GroupPower 6: Inputs/Outputs

Name

Type

Description

AxesGroup

T_StaeubliRobot

Data block for a robot