Product manual
Table Of Contents
11
1047_0_Product_Manual - June 18, 2010 2:20 PM
int IndexPosition(int EncoderIndex) [get]
Returns the index position of an enabled encoder. This will typically return the same value as Position(int
EncoderIndex) except for on the event that an index has occurred, where it will return the exact position at which
the encoder index was triggered.
bool Enabled(int EncoderIndex) [get,set]
Returns true if the requested encoder is enabled; returns false if the requested encoder is disabled.
Can be set true or false to decide whether the encoder is turned on or off. Disabled encoders will not draw power,
detect position changes or trigger index events. Enabled encoders will draw power and trigger any requested events.
Events
OnPositionChange(int EncoderIndex, int Time, int PositionChange) [event]
An event that is issued whenever a change in encoder position occurs on an enabled encoder. This event returns
the length of time that the change took (in microseconds), and the amount of change (positive/negative encoder
increments) for that particular encoder.
OnIndex(int EncoderIndex, int Time, int PositionChange) [event]
An event that is issued whenever the index is triggered from any one of the enabled encoders.
OnInputChange(int InputIndex, bool State) [event]
An event that is issued whenever the state of a digital input changes.