beautypg.com

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

Page 54

background image

4–6

OCI Data Server Data Items

Publication 8520-6.6 - August 1999

M_MODAL_GROUP

This array index is dimensioned by the valid M code modal groups.
M code modal groups range from 0 to 13. Refer to your operation
and programming manual for details on M codes and their respective
modal groups.

For example the data item M_CODE_STATUS, which returns the
active programmed M code number, uses this array index to
determine which modal group you are checking.

M_CODE_STATUS,4

returns:

If this Group 4

MĆcode is Active:

Returned Value

M00

0

M01

1

M02

2

M30

30

G_MODAL_GROUP

This array index is dimensioned by the valid G code modal groups.
You can find the G code modal groups range in
NUM_G_GROUPS_1 (an API item). Refer to your operation and
programming manual for details on G codes and their respective
modal groups.

For example the data item G_CODE_STATUS, which returns the
active programmed G code number, uses this array index to
determine which modal group you are checking.

G_CODE_STATUS,4

returns:

If this group 4

GĆcode is Active:

Returned Value

G22

220

G22.1

221

G23

230

G23.1

231