MC_SEW_EncoderAxis
This function block is used to link the source of an encoder position to a "LogicalDevice_EncoderAxis". The function block must be called cyclically in the HighPrio task.

VAR_IN_OUT
Variable name | Data type | Description |
|---|---|---|
Axis | AXIS_REF | Reference to a logical device See also AXIS_REF. |
VAR_INPUT
Variable name | Data type | Description |
|---|---|---|
Enable | BOOL | Activate cam switch |
PointerToPosition | POINTER TO DWORD | Address of the external encoder position, e.g. ADR (%ID12). This input is only used if EncoderSource is E_EncoderSource.eExternalSource. |
PointerToVelocity | POINTER TO DWORD | Address of the external encoder speed in [1/min] e.g. ADR (%ID16). This input is optional and is only used if EncoderSource is E_EncoderSource.eExternalSource and the encoder supplies speed information. |
ReferenceToAxis | REFERENCE TO AXIS_REF | Reference to a logical device of the type MOVI-C® axis (name of the logical device) to which encoder 2 is connected. This input is optional and may only be used if EncoderSource is E_EncoderSource.Encoder2. |
VAR_OUTPUT
Variable name | Data type | Description |
|---|---|---|
InOperation | BOOL | EncoderAxis is active |
Error | BOOL | An error has occurred in the function block |
ErrorID | WORD | Error number |
