Rockwell Automation 8520-9API 9/Series OCI API Developer's Guide User Manual

Page 122

Advertising
background image

5–11

OCI Data Server CNC Commands

Publication 8520-6.6 - August 1999

INSERT_AXISCAL_POINT (axis_number)

Use this command to insert an axis calibration point at the current
axis position. The axis_number argument defines the logical axis
number (as defined in AMP) for the axis point being added. This
argument is an integer (DINT)

For example:

[INSERT_AXISCAL_POINT(2)]

inserts an axis calibration point on the second logical axis at the
current axis position.

REPLACE_AXISCAL_VALUE (axis_number, axis_cal_point, value)

Use this command to replace an axis calibration value. When a point
is inserted (INSERT_AXISCAL_POINT) the control enters a
measurement for the point equal to either the deviation or distance
from zero as defined when the table was initialized. Use this
command to change the measurement.

axis_number – Defines the logical axis number (as defined in AMP)
for the axis calibration table being modified. This argument is an
integer (DINT)

axis_cal_point – Defines the point number you wish to modify. This
argument is an integer (DINT) and must be an already existing axis
calibration point.

value – the actual measurement from zero or the previous point as
defined when the table was initialized.

For example:

[REPLACE_AXISCAL_VALUE(1,10,10.321)]

replaces the 10th axis calibration point measurement value for the
first logical axis with the value of 10.321.

Important: Axis calibration points are numbered (axis_cal_point)

based on their position on the axis, not the order they
are entered. If you insert an axis calibration point, it is
assigned an axis_cal_point number based on its position
on the axis. All other points are renumbered
accordingly.

Advertising