MC_DwellTimePreparation

MC_DwellTimePreparation 1:

TF5410
TwinCAT 3 Motion Collision Avoidance

TF5420
TwinCAT 3 Motion Pick-and-Place

 

MC Group with Pick-and-Place

MC Group Coordinated Motion

MC_DwellTimePreparation 2:

MC_DwellTimePreparation 3:

MC_DwellTimePreparation 4:

This function block appends a standstill job with a defined time to the table of segments in the PathData structure. The PathData table can be executed via MC_MovePath. The function block MC_DwellTimePreparation can be called several times per cycle.

MC_DwellTimePreparation 5: VAR_INPUT

VAR_INPUT
    DwellTime      : Time;
    BufferMode     : MC_BUFFER_MODE  := mcBuffered;
    InvokeId       : UDINT;
END_VAR

Name

Type

Description

DwellTime

Time

Time during which the path is stationary at velocity 0. Any timespan >= 0 is allowed. A DwellTime of zero leads to an exact stop, even if the surrounding segments would allow a transition with a velocity > 0.

BufferMode

MC_BUFFER_MODE

Defines how successive motion commands are to be processed (see MC_BUFFER_MODE). Only mcBuffered and mcAborting are allowed here.

InvokeId

UDINT

Segment ID for analysis purposes.

MC_DwellTimePreparation 6: MC_DwellTimePreparation 7: VAR_IN_OUT

VAR_IN_OUT
    PathData       : MC_PATH_DATA_REF;
END_VAR

Name

Type

Description

PathData

MC_PATH_DATA_REF

Table containing the segments of a path. The table is written by the Preparation function blocks, like this one, and executed by MC_MovePath (see MC_PATH_DATA_REF).

MC_DwellTimePreparation 8: VAR_OUTPUT

VAR_OUTPUT
    Error          : BOOL;
    ErrorId        : UDINT;
END_VAR

Name

Type

Description

Error

BOOL

This output becomes TRUE if an error has occurred during command execution.

ErrorId

UDINT

Contains the command-specific error code of the last executed command. Details of the error code can be found in the ADS error documentation or in the NC error documentation (error codes 0x4nnn and 0x8nnn).

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT V3.1.4024.7

TF5400 Advanced Motion Pack V3.1.10.1

PC or CX (x86 or x64)

Tc3_McCollisionAvoidance, Tc3_McCoordinatedMotion, Tc2_MC2