MovePtp()

MovePtp() 1:

Triggers the processing of the configured PTP segments.

Syntax:

METHOD MovePtp : HRESULT
VAR_INPUT
    bCommand:       BOOL;   // TRUE to start move, FALSE to abort running move or rewind old command
    MoveIdx:        INT;    // Selected cluster of segments (By default: Cluster 1 - negative direction / Cluster 2 - positive direction) 
    SegmentCount:   INT;    // Segments to move (0 to move all segments)
END_VAR

MovePtp() 2: Inputs

Name

Type

Description

bCommand

BOOL

TRUE to trigger a movement,

FALSE to cancel a current movement or to cancel a pending command.

MoveIdx

INT

Selected cluster (grouped PTP segments).

In the default initialization, cluster 1 comprises the movements in the negative direction and cluster 2 those in the positive direction.

SegmentCount

INT

Number of segments to be driven. A 0 ensures that all segments of a cluster are driven.

MovePtp() 3: Outputs

Name

Type

Description

MovePtp

HRESULT

Return value with feedback on the success of the execution.

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4024.42

PC or CX (x64, x86)

Tc3_PlasticBaseApplication (>= v3.12.5.5)