SMC_Logical_Axis (FB)

FUNCTION_BLOCK SMC_Logical_Axis

the need to add a logical axis to the device tree.

Use the output variable Axis of type AXIS_REF_LOGICAL_SM3 instead of

a logical axis.

If the function block is restarted, the logical axis is reinitialized. The master axis can be changed by restarting the function block.

Note that instances of this function block must not be assigned to other instances of the same function block. If you create your own function block containing this function block, it is recommended to add the attribute ‘no_assign’ to your function block as well.

InOut:

Scope

Name

Type

Initial

Comment

Input

Execute

BOOL

Starts the execution of the function block.

wDriveID

WORD

1

Identifier of the logical drive.

iMovementType

SMC_AXIS_TYPE

SMC_AXIS_TYPE.modulo

The type (finite or modulo) of axis.

fPositionPeriod

LREAL

360.0

Length of period for modulo drives in technical units [u].

eValueReference

SMC_ValueSelect

actual

Master reference value.

usiFilterDepthPosition

LREAL

Number of cycles the position value is averaged over.

usiFilterDepthVelocity

LREAL

Number of cycles the velocity value is averaged over.

fTimeShiftCycles

LREAL

3

Time shift relative to master values in cycles.

RealAxis

REFERENCE TO AXIS_REF_SM3

The real master axis.

Output

Initialized

BOOL

The logical axis is intialized and can be used.

InSteadyState

BOOL

The filter of the logical axis is intialized. InSteadyState implies Initialized.

Error

BOOL

There is an error.

Axis

AXIS_REF_LOGICAL_SM3

The logical axis.