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

Page 108

Advertising
background image

4–60

OCI Data Server Data Items

Publication 8520-6.6 - August 1999

Use this data item to identify the controlling spindle. The controlling
spindle is selected on the control with an G12.1 to G12.3 (G12.3 for
9/PC). This data item returns an integer value:
1 Indicates Spindle 1 controlling
2 Indicates Spindle 2 controlling
3 Indicates Spindle 3 controlling

Important: Only 2 spindles are available for Release 1 of the 9/PC.

NUM_SPINDLES
Data Type

UINT

Read/Write

Read only

Array Index

none

Control Type

Lathe/Mill/Grinder

1

1

Grinder Control Type is not available for Release 1 of 9/PC.

Use this data item to identify the number of spindles currently
configured on the CNC. This data item returns an integer ranging
from 1 to 3 spindles on the 9/Series and from 1 to 2 spindles on the
9/PC.

SPINDLE_DAC_COMMAND, spindle_num
Data Type

INT

Read/Write

Read only

Array Index

none

Control Type

Lathe/Mill/Grinder

1

1

Grinder Control Type is not available for Release 1 of 9/PC.

Use this data item to retrieve the current DAC output command for
any given spindle. The spindle_num index is the number of the
spindle to monitor as configured in AMP (1 – 3 for 9/Series or 1–2
for 9/PC). This item is only valid for spindles using an analog
output. A value of

±

4096 is equal to the max output of

±

10Volts. A

returned value of zero is zero volts.

SPINDLE_MOTOR_TYPE, spindle_num
Data Type

UINT (enumerated)

Read/Write

Read only

Array Index

spindle_num

Control Type

Lathe/Mill/Grinder

1

1

Grinder Control Type is not available for Release 1 of 9/PC.

Advertising