hsioEncoderReset (Function) |
Top Previous Next |
hsioEncoderReset resets the position of an encoder. By default it will reset it immediately. If wait is set to true, it will reset the position the next time Z is active.
Input: id : INT (1..2) default 1 Identifier of the encoder to reset.
wait : BOOL default FALSE Wait for the Z-input to be active before resetting. Can not be combined with mode 3.
Returns: INT
Declaration: FUNCTION hsioEncoderReset : INT;
Example: INCLUDE rtcu.inc |