Knowledge Base

Programming for the OBQC is very simple. There is no initialization required. While the initial implementation supports only one counter, the programming instructions have provision for a counter number (which must always be 0 or can be omitted).

The instructions are:

OBQC_Clr		0

Clears the counter to 0. Typically your program would do this when an external home (reference position) switch activates.

OBQC_fGet	0

Reads the counter and leaves the result in W as a floating point number

OBQC_fSet	0

Copies the number in W into the counter. A good way to seek a particular position is to preset the counter to the required value such that during the movement it counts down to zero.

OBQC_Status    0

Used to test of the counter is missing counts, usually as a result of the input being faster than specified.