MC_GroupJog

MC_GroupJog 1:

FUNCTION_BLOCK MC_GroupJog

This function block allows to move the robot from a user-supplied teach pendant in manual mode only.

Examples

MC_GroupJog 2:

This function is effective only when Stäubli Teach Pendant is removed and replaced by the delivered dummy plug.
The controller must be configured to have user-supplied teach pendant in use (file iomap.cfx on controller).
Manual operation mode can be selected either from Stäubli Working Mode Selector Box or from user-supplied teach pendant

Syntax

Definition:

FUNCTION_BLOCK MC_GroupJog
VAR_INPUT
    Enable     : BOOL := FALSE;
    JogMode    : UINT := 0;
    JogStep    : REAL := 0;
    JogValue1  : INT := 0;
    JogValue2  : INT := 0;
    JogValue3  : INT := 0;
    JogValue4  : INT := 0;
    JogValue5  : INT := 0;
    JogValue6  : INT := 0;
END_VAR
VAR_OUTPUT
    Busy     : BOOL := FALSE;
    Error    : BOOL := FALSE;
    ErrorID  : UDINT := 0;
END_VAR
VAR_IN_OUT
    AxesGroup  : T_StaeubliRobot;
END_VAR

MC_GroupJog 3: Inputs

Name

Type

Description

Enable

BOOL

True= content of the function block is executed

JogMode

UINT

Select jog mode. 1=Joint ; 2=Frame ; 3=Tool

JogStep

REAL

When this value is non zero, the robot is jogged in step mode.

When a jogValue is set, the robot moves until the specified distance is reached.

The JogValue shall be reset and set again to trigger the next movement with the specified distance.

JogValue1

INT

Commanded speed for Axis1 / X direction [-100%..100%]

JogValue2

INT

Commanded speed for Axis2 / Y direction [-100%..100%]

JogValue3

INT

Commanded speed for Axis3 / Z direction [-100%..100%]

JogValue4

INT

Commanded speed for Axis4 / RX direction [-100%..100%]

JogValue5

INT

Commanded speed for Axis5 / RY direction [-100%..100%]

JogValue6

INT

Commanded speed for Axis6 / RZ direction [-100%..100%]

MC_GroupJog 4: Outputs

Name

Type

Description

Busy

BOOL

A valid jog command is sent to the robot

Error

BOOL

This output is set when function block has terminated with error

ErrorID

UDINT

Error code

MC_GroupJog 5:/MC_GroupJog 6: Inputs/Outputs

Name

Type

Description

AxesGroup

T_StaeubliRobot

Data block for a robot