Chapter 6 Motion Function Blocks
6.6.6 Encoder preset (LS_EncoderPreset)
LS_EncoerPreset
Encoder
Execute Done
UINT
BOOL BOOL
LREAL Position
BOOL Relative
Busy BOOL
Error BOOL
ErrorID WORD
Specify the position of the relevant encoder in the rising Edge.
Set the encoder to set the position. (1~2: Encoder 1~Encoder 2)
Specify the position to set. [u]
BOOL Relative
0: Absolute coordinate position
1: Relative coordinate position
Indicate the state of motion function block completion.
Indicate that the execution of motion function block is not completed.
Indicate whether an error occurs or not.
Output the number of error occurred while motion function block is running.
(1) This motion function block is to set the current position of the relevant encoder.
(2) Specify the position in Position input. When executing motion function command, if Relative input is Off, the position of the
current axis is replaced with the Position input value, and if the Relative input is On, the Position input value is added to the
current position of the relevant axis.