Motion Control
Precision MicroControl Corp.
122
Save and Restore Axis Configuration Settings
The Motion Control API Motion Dialog library includes
MCDLG_SaveAxis( )
and
MCDLG_RestoreAxis( )
. These high level dialogs allow the programmer to easily maintain and update
the settings for servo and stepper axes.
MCDLG_SaveAxis( )
encodes the motion controller type into a signature that is saved with the axis
settings.
MCDLG_RestoreAxis( )
checks for a valid signature before restoring the axis settings. If you
make changes to your hardware configuration (i.e. change controller type)
MCDLG_RestoreAxis( )
will
refuse to restore those settings.
You may specify the constant
MC_ALL_AXES
for the
wAxis
parameter in order to save the parameters
for all axes installed on a motion controller with a single call to this function.
If a NULL pointer or a pointer to a zero length string is passed as the
PrivateIniFile
argument the default
file (mcapi.ini) will be used. Most applications should use the default file so that configuration data may be
easily shared among applications. Acceptance of a pointer to a zero length string was included to support
programming languages that have difficulty with NULL pointers (e.g. Visual Basic).
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com