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

Page 94

Advertising
background image

4–46

OCI Data Server Data Items

Publication 8520-6.6 - August 1999

ACTIVE_UNITS
Data Type

UINT (enumerated)

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.

The ACTIVE_UNITS data item is used to identify the current
operating mode, in terms of measurement system, being used on the
control. The returned value is enumerated as follows:

Enumeration

Result:

2118

Inch Mode

2119

Metric Mode

AXIS_RAD_DIA_MODE
Data Type

DINT (bit pattern)

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.

The AXIS_RAD_DIA_MODE data item is used to identify which
axes on the system are currently in radius or diameter mode (refer to
your Lathe or Grinder Operation and Programming Manual for
details on radius/diameter mode). The data for this item is returned
as a bit pattern. A true value in any bit indicates that the axis is in
diameter mode. The first bit of this word represents axis 1.

For example if the returned integer is 8, which translates into 01000
indicating the fourth axis is in diameter mode.

On Mill controls all axes are always in radius mode (all bits of this
word remain zero). Only one axis can be in diameter mode on a
Lathe. Grinders can have multiple axes in diameter mode.

Operating Mode

Advertising