
FDI2056 Use
r’s Manual
v 2.0 r 1.1
– 03/13
Copyright © 2013 Metrolab Technology SA
44
www.metrolab.com
InvertError
Boolean
true
false
InvertIndex
Boolean
true
false
SingleEnded
Boolean
true
false
Sync
Edge
enumeration
disabled
rising
falling
both
The SYNC and ERROR signals share the same connector pin. When enabled,
the SYNC input takes precedence over the ERROR function.
4-3 MOTOR SOFTWARE INTERFACE
Since the FDI 2056 does not incorporate a motor driver, and since the PDI 5025 (
which di provide such interface) offered a set of command to handle the motor,
we have decided to offer a software layer to help our customers wishing to
continue to use the synchronization capability offered by the original command
set.
Be warned, this is a very rough interface and we do not handle precise
positioning.
Basically, this software interface is a Dynamic Linked Library (DLL) which offers
four entries:
void
Start(
unsigned
int
Direction);
The emulator will call this procedure each time the motor must be started. The
Direction parameters must be set to 1 to specify a forward/positive direction
and to 0 to specify a backward/negative direction.
The definition of forwards and backwards must respect the definition of the
direction you have set during the configuration of the Bi-Phase decoder. See
previous chapter.
void
Stop();
The emulator will call this procedure each time the motor must be stopped.
void
Initialize();
The emulator will call this procedure when it starts. You may proceed in this
procedure to all initializations needed by your motor driver.