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

Page 52

Advertising
background image

4–4

OCI Data Server Data Items

Publication 8520-6.6 - August 1999

AXIS_NUM

This array index is dimensioned by the axes number as configured
on the system in AMP. For example the data item AXIS_NAME,
which returns the name of the axes from the CNC, is an array based
on Axes_Number. So calling the data item:

AXIS_NAME,2

returns the text string axis name for the second axis. Calling the data
item:

AXIS_NAME,2–4

calls the text string for the axis names 2, 3, and 4. The values are
separated by a | (or tab) character.

SPINDLE_NUM

This array index is dimensioned by the spindle number as configured
on the system in AMP. The 9/PC CNC supports 2 spindles. Some
9/Series systems can support up to 3 spindles so this dimension
ranges from 1 to 3 spindles. For example the data item
SPIN_SPD_VALUE, which returns the active programmed spindle
speed for a specified spindle, uses this array index to determine
which spindle speed you are requesting.

SPIN_SPD_VALUE,2

returns the LREAL value representing the active spindle speed for
spindle number 2.

SPIN_SPD_VALUE,2–3

returns the LREAL values representing the active spindle speed for
spindle number 2 and 3. The returned values are separated by a |
(tab) character.

NUM_CNC_DIRECTORIES

This array index is dimensioned by the three available CNC part
program directories. They are:

1 – Main Program Directory
2 – Protectable Program Directory
3 – OCI File Handler Configured Directory (local to PC)

Advertising