Rockwell Automation 8520-9API 9/Series OCI API Developer's Guide User Manual
Page 109
4–61
OCI Data Server Data Items
Publication 8520-6.6 - August 1999
The SPINDLE_MOTOR_TYPE data item is used to identify the
motor commutation of the spindle (spindle_num) configured in
AMP. The maximum allowable value for spindle_num is the number
of configured spindles in AMP. The return value is enumerated as
follows:
Enumeration
Result
0
None
1
Position or Analog Spindle
2
Position/Velocity
4
Digital or Digital Spindle
8
SERCOS
SPINDLE_SPEED_VALUE, Spindle_Num
Data Type
LREAL
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.
Use this data item to identify the spindle speed in RPM. This item
can be used as an array whose dimension is equal to the number of
spindles on the 9/Series being polled. For example:
SPINDLE_SPEED_VALUE, 2
will return the spindle speed in RPM for the second spindle on the
control.
S_WORD
Data Type
LREAL
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.
This data item returns the last programmed S word. This is not
necessarily the active spindle RPM, only the value of the last
programmed S word for the spindle. The spindle that the S word is
applied to is dependent on the active controlling spindle when the S
word was programmed (G12.1 to G12.3 on the 9/Series or G12.1 to
G12.2 on the 9/PC).