Danaher Motion
06/2005
Compensation Tables
7.1.4.
Load/Save From a File
Another way to create a compensation table is to directly load it from a binary
file stored on the Flash disk. The structure of the compensation file is:
Header
–
<
number of axes
> <
number of points axis1
> ….<number of points
axisn> (integer 4 bytes)
Source data
–
<
min axis1
> <
max axis1
>…..<
min axis
n><
max axis
n> (double 8
bytes)
Target data
–
target values for axis1,…….target values for axis
n
. (double 8
bytes)
The file can be created directly from Basic Moves by loading a list of values
(arranged as described above) in a .CSV format into the MC's Flash as a
binary file with the CMP extension (see
LOADCOMPDATA
and
STORECOMPDATA
in the
SERVOSTAR
®
MC Referenc
e manual).
7.1.5.
Set and Query Values
While the comensation table is not active, you can change a specific target
value.
Comp1.targetdata[1][23] = 3
‘ Set a new compensation value of index 23 of Axis1
?Comp1.sourcedata[2][24]
‘ Read the source value index 23 of Axis1
7.1.6. Activate
After defining the correction table turn it ON/OFF with
COMPACTIVE
.
Before activating, a check is performed to insure that the table is valid (the
points are evenly spaced and increasing). After validation and enabling the
target axis, positions of the target axes are corrected using the value
calculated from the compensation table. If a target axis is disabled, the
correction takes effect only after the axis is enabled.
NOTE
A jump may occur when the compensation procedure starts
from a point other than the start point of the table. A jump
may also occur if the compensation process is disabled
before reaching the end of the table.
7.1.7.
Query Actual Positions
The actual positions are return by
COMPPCMD
and
COMPPFB
. These
properties can be operated as the master source for a slave – geared or
cammed.
PCMD
and
PFB
return the command and feedback positions
without
compensation.
7.1.8. Multi-Dimensional
Correction
In the following example, the correction is performed on several axes. In the
described system, there are three axes (X, Y, Z). The X, Y, Z position
corrections are determined according to the location of the X, Y, and Z axes.
M-SS-005-03 Rev
E
139