ReadSlaveDynamics

ReadSlaveDynamics 1:

Evaluates slave position, velocity and acceleration at a specific master position within the cam table profile.

Syntax

Definition:

METHOD ReadSlaveDynamics : UDINT
VAR_INPUT
    MasterPosition    : LREAL;
END_VAR
VAR_OUTPUT
    SlavePosition     : LREAL;
    SlaveVelocity     : LREAL;
    SlaveAcceleration : LREAL;
END_VAR

ReadSlaveDynamics 2: Inputs

Name

Type

Description

MasterPosition

LREAL

Master cam position at which to evaluate the slave dynamics.

ReadSlaveDynamics 3: Outputs

Name

Type

Description

SlavePosition

LREAL

Computed slave position at the given master cam position.

SlaveVelocity

LREAL

Computed slave velocity at the given master cam position.

SlaveAcceleration

LREAL

Computed slave acceleration at the given master cam position.

ReadSlaveDynamics 4: Return value

UDINT