Input variables

The MC_SEW_EncoderAxis function block makes the following input variables available:

Variable name

Description

EncoderAxis

Data type: AXIS_REF

Reference to a logical device of the type "LogicalDevice encoder axis" (name of the logical device)

xEnable

Data type: BOOL

  • TRUE: Activate function block.
  • FALSE: Deactivate function block.

PointerToPosition

Data type: POINTER TO DWORD

Address of the position of the external encoder, e.g. ADR(%ID12). INFORMATION: This input variable is only required if "External source" is selected as the encoder source in the configuration.

PointerToVelocity

Data type: POINTER TO DWORD

Address of the speed in [min-1] of the external encoder, e.g. ADR(%ID16). INFORMATION: This input variable is only required if "External source" is selected as the encoder source in the configuration and a speed information of the encoder is available. If a speed information is available from the external encoder, this can optionally be used with this input variable. This speed value is more precise than the speed determined internally through derivation of the position.

Encoder2

Data type: IGetDeviceHandler

Reference to a logical device of the type MOVI-C® axis (name of the logical device) to which the encoder is connected. INFORMATION: This input variable is only required if "Encoder2" is selected as the encoder source in the configuration.