hsioEncoderRead (Function) |
Top Previous Next |
hsioEncoderRead reads the current position of the encoder.
Input:
id : INT (1..2) default 1 Identifier of the encoder to read the position of.
Returns: DINT The current position of the encoder. Returns 0 on error.
Declaration: FUNCTION hsioEncoderRead : DINT;
Example: INCLUDE rtcu.inc |