SMC_SetMovementType (FB)ΒΆ

FUNCTION_BLOCK SMC_SetMovementType

Sets the movement type of a virtual axis to linear or modulo. Can only be used when the axis is in state standstill or power_off. The FB executes synchronously on the rising edge of bExecute. After the call, either bDone or bError are set.

InOut:

Scope

Name

Type

Initial

Comment

Inout

Axis

AXIS_REF_SM3

Axis

Input

bExecute

BOOL

FALSE

iMovementType

INT

0

The new drive type, 0 for modulo, 1 for linear

fPositionPeriod

LREAL

1

The new position period for modulo movement, must be positive

Output

bDone

BOOL

FALSE

TRUE: Success

bError

BOOL

FALSE

TRUE: Error has occured within function block.

eErrorID

SMC_ERROR

SMC_NO_ERROR

Error identification