Error mapping to compensate for mechanical errors

Error mapping to compensate for mechanical errors

COMPENSATE_XY is probably the command you want.
From the TrioBASIC Help:

In some applications both of the X-Y axes of a machine bed require compensation for ballscrew errors depending on the X-Y position:

Axis 0 - Motor Axis - COMPENSATE_XY command A + ADDAX(8)
Axis 1 - Motor Axis - COMPENSATE_XY command B + ADDAX(9)
Axis 8 - Virtual Axis - Run motion X axis commands
Axis 9 - Virtual Axis - Run motion Y axis commands

' Define tables of offsets at table locations 1000 and 3000:

UNITS AXIS( 0 )= 1000
UNITS AXIS( 1 )= 1000
UNITS AXIS( 8 )= UNITS AXIS( 0 )
UNITS AXIS( 9 )= UNITS AXIS( 1 )
ADDAX( 8 ) AXIS( 0 )
ADDAX( 9 ) AXIS( 1 )
COMPENSATE_XY( 1000 , 0 , 8 , 51 , 500 , 0 , 9 , 41 , 400 , 0 ) AXIS( 0 )
COMPENSATE_XY( 3000 , 0 , 8 , 51 , 500 , 0 , 9 , 41 , 400 , 0 ) AXIS( 1 )

' Moves on axes 8 and 9 here will be executed on axes 0 and 1 with compensation