Encoder Preset Position Setting with LS_EncoderPreset
LS_EncoderPreset is used to set the current position for the selected built-in encoder input. The position chosen can be absolute or relative to the current position.
-
LS_Connect must be executed before these function blocks can be used.
-
The following examples can be found in the XMC_LSDedicated_FBs.zip downloadable from Example Applications.
| Element Name | Element Type | Description |
|---|---|---|
| Execute | Input | Edge detected request to execute the function block. |
| Encoder | Input |
Select the encoder position to change.
|
| Position | Input | Specify the position to set. |
| Relative | Input |
|
| Done | Output | Indicates the function block has finished the operation. |
| Busy | Output | Indicates the function block is currently being executed. |
| Error | Output | Indicates whether an error occurs or not. |
| ErrorID | Output | Error Identification number. |
Before LS_EncoderPreset execution:
After LS_EncoderPreset execution:
Before LS_EncoderPreset execution:
After LS_EncoderPreset execution:
LM802