Skip to main content
Version: 2.6

OKUMA Data Access

To access the data, special addresses are used by HumanOS to index the memory for reading or writing.

Addressing the Memory

The address is built with five numbers:

{SubSystem}:{MajorIndex}:{SubScript}:{MinorIndex}:{Style}

These parameters correlate one by one to the API of OKUMA.

SubSystem Index

The SubSystem index differs between the machine types. Whenever an address description denotes {SubSystem} checks the following tables to select the correct SubSystem.

SubSystem Index for Machining Centers

SubSystemDescriptionMachineType
0Machining centersMachiningCenter and MachiningCenterV2
14Common for Machine Centers and LathesMachiningCenter, MachiningCenterV2 and Lathe

SubSystem Index for Lathe

SubSystemDescriptionMachineType
0Panel selection machine/panel selection turret/command selection spindleLathe
5Panel selection machine/first turret (side A)/command selection spindleLathe
6Panel selection machine/second turret (side B)/command selection spindleLathe
7Panel selection machine/third turret (side C)/command selection spindleLathe
8MTBLathe
14Common to L/MMachiningCenter, MachiningCenterV2 and Lathe
16NC loader (panel selection system)Lathe
17NC loader (first system)Lathe
18NC loader (second system)Lathe
19Panel selection machine/panel selection turret/panel selection spindleLathe
20Panel selection machine/first turret (side A)/panel selection spindleLathe
21Panel selection machine/second turret (side B)/panel selection spindleLathe
22First machine/first turret (side A)/first spindle (Side A of 1S and 2S lathes, R spindle of parallel 2SP machine)"Lathe
23First machine/first turret (side A)/second spindle (Second spindle of 1S lathe, second spindle on side A of 2S lathe)Lathe
24First machine/second turret (side B)/first spindle (Side B of 2S lathe)"Lathe
25First machine/second turret (side B)/second spindle (Second spindle on side B of 2S lathe)"Lathe
26Second machine/first turret (side A)/first spindle ( L spindle of parallel 2SP machine)"Lathe
27Second machine/first turret (side A)/second spindleLathe
28First machine/Third turret (side C)/first spindleLathe
29First machine/Third turret (side C)/second spindleLathe

SubSystem Index for Grinder

SubSystemDescriptionMachineType
0Panel selection machine / panel selection wheel head / command selection spindleGrinder
2PLCGrinder
5Panel selection machine / first wheel head / command selection spindleGrinder
8MTBGrinder
14Common to L/M/GGrinder, Lathe, MachiningCenter, MachiningCenterV2
16NC loader (panel selection system)Grinder
17NC loader (first system)Grinder
19Panel selection machine / panel selection wheel head / panel selection spindleGrinder
20Panel selection machine / first wheel head / panel selection spindleGrinder
22First machine / first wheel head / first spindleGrinder
23First machine / first wheel head / second spindleGrinder

System Variables

AddressDescriptionData Type
0:0:0:0:0Available flag. 0 = Connection offline, 1 = onlineSystem.Boolean
0:0:0:0:1Signal of Life; Alternates in 1 Hz if connection is onlineSystem.Int32

Program Information

Machining Center

AddressDescriptionData TypeMachineTypeVersionOSP Adapt.
14:1001:0:0:8Operation mode. (0=AUTO; 1=MDI; 2=MANUAL)System.Int32MachiningCenter>= 2.0.0[O] P200M [O] P300M/S(MP)
14:1004:0:0:8Get either of Running(1) or Not running(0) as the program status.System.Int32MachiningCenter>= 2.0.0[O] P200M [O] P300M/S(MP)
14:5010:0:0:0Get the selected main program file name.System.StringMachiningCenter>= 2.0.0[O] P200M [O] P300M/S(MP)
0:5035:0:0:0Get O number (main program name, execution program name) after the program has been selected.System.StringMachiningCenter>= 2.3.0[O] P200M [O] P300M/S(MP)
14:5014:0:0:0Get the currently executed sequence No. (name)System.StringMachiningCenter>= 2.0.0[O] P200M [O] P300M/S(MP)
14:5003:0:0:0Get the alarm message, which is a character string of 64 digits at maximum.System.StringMachiningCenter>= 2.0.0[O] P200M [O] P300M/S(MP)
14:3905:0:0:8Get the block number. Currently executed.System.Int32MachiningCenter>= 3.0.0[X] P200M [O] P300M/S(MP)
14:1:0:0:8Alarm Status (0= no alarm; 1 = alarm)System.Int32MachiningCenter>= 2.0.0[O] P200M [O] P300M/S(MP)
14:1:0:2:8NC on hold (0= no hold; 1 = hold)System.Int32MachiningCenter>= 2.0.0[O] P200M [O] P300M/S(MP)
14:1:0:4:8NC running (0= not running; 1 = running)System.Int32MachiningCenter>= 2.0.0[O] P200M [O] P300M/S(MP)
14:1:0:5:8Program stop (0= not stopped; 1 = stopped)System.Int32MachiningCenter>= 2.0.0[O] P200M [O] P300M/S(MP)
14:1:0:6:8Turret Selection statusSystem.Int32MachiningCenter>= 2.0.0[O] P200M [O] P300M/S(MP)

Lathe

AddressDescriptionData TypeMachineTypeVersionOSP Adapt.
{SubSystem}:1004:0:0:8Operation mode. (-128=AUTO; 64=MDI; 32=MANUAL)System.Int32Lathe>= 2.0.0[O] P200L [O] P300L [O] P300S(LP)
{SubSystem}:1901:0:0:8Get either of Running(1) or Not running(0) as the program status.System.Int32Lathe>= 2.0.0[O] P200L [O] P300L [O] P300S(LP)
{SubSystem}:5001:0:0:0Get the program no. (name) currently executed.System.StringLathe>= 2.0.0[O] P200L [O] P300L [O] P300S(LP)
{SubSystem}:5004:0:0:0Get the main program file name currently selected.System.StringLathe>= 2.0.0[O] P200L [O] P300L [O] P300S(LP)
{SubSystem}:5014:0:0:0Get the currently executed sequence No. (name)System.StringLathe>= 2.0.0[O] P200L [O] P300L [O] P300S(LP)
{SubSystem}:5009:0:0:0Get the alarm message. It is a character string of 64-digit at maximum.System.StringLathe>= 2.0.0[O] P200L [O] P300L [O] P300S(LP)
{SubSystem}:19:0:0:8Alarm Status (0= no alarm; 1 = alarm)System.Int32Lathe>= 2.0.0[O] P200L [O] P300L [O] P300S(LP)
{SubSystem}:19:0:2:8NC on hold (0= no hold; 1 = hold)System.Int32Lathe>= 2.0.0[O] P200L [O] P300L [O] P300S(LP)
{SubSystem}:19:0:4:8NC running (0= not running; 1 = running)System.Int32Lathe>= 2.0.0[O] P200L [O] P300L [O] P300S(LP)
{SubSystem}:19:0:5:8Program stop (0= not stopped; 1 = stopped)System.Int32Lathe>= 2.0.0[O] P200L [O] P300L [O] P300S(LP)
{SubSystem}:19:0:6:8Turret Selection statusSystem.Int32Lathe>= 2.0.0[O] P200L [O] P300L [O] P300S(LP)

SubSystem: Designating SubSystem = 0, 5 to 7, 19 to 29 for lathe is possible. Designate a value between 22 to 26, 28, 29 in general.

Grinding

AddressDescriptionData TypeMachineTypeVersion
{SubSystem}:1004:0:0:8Operation mode. (-128=AUTO; 64=MDI; 32=MANUAL)System.Int32Grinder>= 3.0.0
{SubSystem}:1901:0:0:8Get either of Running(1) or Not running(0) as the program status.System.Int32Grinder>= 3.0.0
{SubSystem}:5001:0:0:0Get the program no. (name) currently executed.System.StringGrinder>= 3.0.0
{SubSystem}:5002:0:0:0Get the sequence number or name currently executed.System.StringGrinder>= 3.0.0
{SubSystem}:3052:0:0:8Get the block number. Currently executed.System.Int32Grinder>= 3.0.0
{SubSystem}:5004:0:0:0Get the main program file name currently selected.System.StringGrinder>= 3.0.0
{SubSystem}:5009:0:0:0Get the alarm message. It is a character string of 64-digit at maximum.System.StringGrinder>= 3.0.0
{SubSystem}:19:0:0:8Alarm Status (0= no alarm; 1 = alarm)System.Int32Grinder>= 3.0.0
{SubSystem}:19:0:2:8NC on hold (0= no hold; 1 = hold)System.Int32Grinder>= 3.0.0
{SubSystem}:19:0:4:8NC running (0= not running; 1 = running)System.Int32Grinder>= 3.0.0
{SubSystem}:19:0:5:8Program stop (0= not stopped; 1 = stopped)System.Int32Grinder>= 3.0.0
{SubSystem}:19:0:6:8Turret Selection statusSystem.Int32Grinder>= 3.0.0

SubSystem: Designating SubSystem = 0, 5, 19, 20, 22, 23 for grinder is possible. Designate a value between 22, 23 in general.

Feed Override and Speeds

Machining Center

AddressDescriptionData TypeMachineTypeVersionOSP Adapt.
0:2017:0:0:8Rapid Override in %System.Int32MachiningCenter>= 2.3.0[O] P200M [O] P300M/S(MP)
0:2018:0:0:8Feedrate Override in %System.Int32MachiningCenter>= 2.3.0[O] P200M [O] P300M/S(MP)
0:3018:0:0:2Get the actual feed rate (mm/min).System.Int32MachiningCenter>= 2.3.0[O] P200M [O] P300M/S(MP)
0:3019:0:0:2Get the actual feed rate (mm/rev).System.Int32MachiningCenter>= 2.3.0[O] P200M [O] P300M/S(MP)
0:3098:0:0:2Get the F command value on "BLOCK DATA" screen.System.Int32MachiningCenter>= 2.3.0[O] P200M [O] P300M/S(MP)

Lathe

Not available.

Grinder

AddressDescriptionData TypeMachineTypeVersion
{SubSystem}:2942:0:0:8Get the state of Wheel override switch (%).System.Int32Grinder>= 3.0.0
{SubSystem}:2944:0:0:8Get the state of Feed Axis override switch (%).System.Int32Grinder>= 3.0.0

SubSystem: Designating SubSystem = 0, 5, 19, 20, 22, 23 for grinder is possible. Designate a value between 22, 23 in general.

Workpiece Counter

The work counter is a value between 0 and 99999999.

Machining Center

NC OPR MONITOR (1/2)

AddressDescriptionData TypeMachineTypeVersionOSP Adapt.
0:3066:{row}:0:8Read or write the workpiece counter (Counted Value). {row} is in range 0 to 3System.Int32MachiningCenter>= 2.0.0[O] P200M [O] P300M/S(MP)
0:3067:{row}:0:8Read or write the workpiece counter (Set Value). {row} is in range 0 to 3System.Int32MachiningCenter>= 2.0.0[O] P200M [O] P300M/S(MP)

Lathe

WORK COUNTER(1/2) screen

AddressDescriptionData TypeMachineTypeVersionOSP Adapt.
{SubSystem}:3056:{row}:0:8Read or write the workpiece counter (Counted Value). {row} is in range 0 to 3System.Int32MachiningCenter>= 2.0.0[O] P200L [O] P300L [O] P300S(LP)
{SubSystem}:3057:{row}:0:8Read or write the workpiece counter (Set Value). {row} is in range 0 to 3System.Int32MachiningCenter>= 2.0.0[O] P200L [O] P300L [O] P300S(LP)

SubSystem: Designating SubSystem = 0, 5 to 7, 19 to 29 for lathe is possible. Designate a value between 22 to 26, 28, 29 in general.

Grinder

WORK COUNTER(1/2) screen

AddressDescriptionData TypeMachineTypeVersion
{SubSystem}:3056:{row}:0:8Read or write the workpiece counter (Counted Value). {row} is in range 0 to 3System.Int32MachiningCenter>= 3.0.0
{SubSystem}:3057:{row}:0:8Read or write the workpiece counter (Set Value). {row} is in range 0 to 3System.Int32MachiningCenter>= 3.0.0

SubSystem: Designating SubSystem = 0, 5, 19, 20, 22, 23 for grinder is possible. Designate a value between 22, 23 in general.

Operation Timers

Machining Center

AddressDescriptionData TypeMachineTypeVersionOSP Adapt.
0:{MajorIndex}:0:0:12Read or write the operation timers (Counted or set value). For {MajorIndex} see table below.System.StringMachiningCenter>= 2.0.0[O] P200M [O] P300M/S(MP)

The string size is max. 12 characters. The value is given as time span 0:0:0 to 99999:59:59

Following table shows the possible {Major} indexes:

MajorIndexDescription
3056Power-ON time [Counted value] (Fig. cell 1)
3057Power-ON time [Set value] (Fig. cell 2)
3058NC running time [Counted value] (Fig. cell 3)
3059NC running time [Set value] (Fig. cell 4)
3060Spindle rotation time [Counted value] (Fig. cell 5)
3061Spindle rotation time [Set value] (Fig. cell 6)
3062Cutting time [Counted value] (Fig. cell 7)
3063Cutting time [Set value] (Fig. cell 8)
3064External input time [Counted value] (Fig. cell 9)
3065External input time [Set value] (Fig. cell 10)

NC OPR MONITOR (2/2)

Lathe

AddressDescriptionData TypeMachineTypeVersionOSP Adapt.
{SubSystem}:{MajorIndex}:0:0:12Read or write the operation timers (Counted or set value). For {MajorIndex} see table below.System.StringLathe>= 2.0.0[O] P200L [O] P300L [O] P300S(LP)

SubSystem: Designating SubSystem = 0, 5 to 7, 19 to 29 for lathe is possible. Designate a value between 22 to 26, 28, 29 in general.

The string size is max. 12 characters. The value is given as time span 0:0:0 to 99999:59:59

Following table shows the possible {Major} indexes:

MajorIndexDescription
3058Power-ON time [Counted value] (Fig. cell 1)
3059Power-ON time [Set value] (Fig. cell 2)
3060NC running time [Counted value] (Fig. cell 3)
3061NC running time [Set value] (Fig. cell 4)
3062Spindle rotation time [Counted value] (Fig. cell 5)
3063Spindle rotation time [Set value] (Fig. cell 6)
3064Cutting time [Counted value] (Fig. cell 7)
3065Cutting time [Set value] (Fig. cell 8)
3066External input time [Counted value] (Fig. cell 9)
3067External input time [Set value] (Fig. cell 10)

HOUR METER(2/2) screen

Grinder

AddressDescriptionDataTypeMachineTypeVersion
{SubSystem}:{MajorIndex}:0:0:12Read or write the operation timers (Counted or set value). For {MajorIndex} see table below.System.StringGrinder>= 3.0.0

SubSystem: Designating SubSystem = 0, 5, 19, 20, 22, 23 for grinder is possible. Designate a value between 22, 23 in general.

The string size is max. 12 characters. The value is given as time span 0:0:0 to 99999:59:59

Following table shows the possible {Major} indexes:

MajorIndexDescription
3058Power-ON time [Counted value] (Fig. cell 1)
3059Power-ON time [Set value] (Fig. cell 2)
3060NC running time [Counted value] (Fig. cell 3)
3061NC running time [Set value] (Fig. cell 4)
3062Spindle rotation time [Counted value] (Fig. cell 5)
3063Spindle rotation time [Set value] (Fig. cell 6)
3064Grinding time [Counted value] (Fig. cell 7)
3065Grinding time [Set value] (Fig. cell 8)
13026Dressing time [Counted value] (Fig. cell 9)
13027Dressing time [Set value] (Fig. cell 10)

HOUR METER(2/2) screen

Common Variables

Machining Center

AddressDescriptionData TypeMachineTypeVersionOSP Adapt.
0:4001:{number-1}:0:14Read or write common variables. {number-1} is the index of the common variableSystem.DoubleMachiningCenter>= 1.1.0[O] P200M [O] P300M/S(MP)

NOTE: Use NaN to write an empty value to the NC memory.

NC OPR MONITOR (2/2)

Lathe

AddressDescriptionData TypeMachineTypeVersionOSP Adapt.
{SubSystem}:4001:{number-1}:0:2Read or write common variables. {number-1} is the index of the common variableSystem.DoubleLathe>= 1.1.0[O] P200L [O] P300L [O] P300S(LP)

SubSystem: Designating SubSystem = 0, 5 to 7, 19 to 29 for lathe is possible. Designate a value between 22 to 26, 28, 29 in general.

Grinder

AddressDescriptionData TypeMachineTypeVersion
{SubSystem}:4001:{number-1}:0:2Read or write common variables. {number-1} is the index of the common variableSystem.DoubleGrinder>= 3.0.0

SubSystem: Designating SubSystem = 0, 5, 19, 20, 22, 23 for grinder is possible. Designate a value between 22, 23 in general.

Tool Information

Machining Center

AddressDescriptionData TypeMachineTypeVersionOSP Adapt.
0:2034:0:0:9Current Tool numberSystem.Int32MachiningCenterV2>= 3.0.0[X] P200M [O] P300M/S(MP)
0:2035:0:0:9Next Tool numberSystem.Int32MachiningCenterV2>= 3.0.0[X] P200M [O] P300M/S(MP)

Lathe

AddressDescriptionData TypeMachineTypeVersionOSP Adapt.
{SubSystem}:2095:0:0:9Get the being indexed tool no. to the current machining position.System.Int32Lathe>= 1.0.0[O] P200L [O] P300L [O] P300S(LP)
{SubSystem}:2421:0:0:8Get the being indexed turret no. to the current machining position.System.Int32Lathe>= 3.2.0[X] P200L [O] P300L [X] P300S(LP)
{SubSystem}:2144:0:0:8Get the selected offset no.System.Int32Lathe>= 3.2.0[O] P200L [O] P300L [X] P300S(LP)
{SubSystem}:2145:0:0:8Get the selected nose R no.System.Int32Lathe>= 3.2.0[O] P200L [O] P300L [X] P300S(LP)
{SubSystem}:1598:0:0:8Get the being indexed edge no. to the current machining position.System.Int32Lathe>= 3.0.0[X] P200L [X] P300L [O] P300S(LP)
{SubSystem}:1599:0:0:8Get the being indexed position no. to the current machining position.System.Int32Lathe>= 3.0.0[X] P200L [X] P300L [O] P300S(LP)

SubSystem: Designating SubSystem = 0, 5 to 7, 19 to 29 for lathe is possible. Designate a value between 22 to 26, 28, 29 in general.

Fig: Tool Information P300S(LP)

Fig: Tool Information P200L and P300L

Spindle Information

Machining Center

AddressDescriptionData TypeMachineTypeVersionOSP Adapt.
0:2006:0:0:8Get the command spindle revolution per minute (rpm).System.Int32MachiningCenter>= 2.3.0[O] P200M [O] P300M/S(MP)
0:2007:0:0:8Get the actual spindle revolutions per minute (rpm).System.Int32MachiningCenter>= 2.3.0[O] P200M [O] P300M/S(MP)
0:2014:0:0:8Get the spindle load (%)System.Int32MachiningCenter>= 2.3.0[O] P200M [O] P300M/S(MP)
0:2016:0:0:8Spindle Override in %System.Int32MachiningCenter>= 2.3.0[O] P200M [O] P300M/S(MP)

Lathe

AddressDescriptionData TypeMachineTypeVersionOSP Adapt.
{SubSystem}:3053:0:0:8Get the spindle speed(RPM).System.Int32Lathe>= 2.0.0[O] P200L [O] P300L [O] P300S(LP)
{SubSystem}:2038:0:0:8Get the spindle load value(%).System.Int32Lathe>= 2.4.0[O] P200L [O] P300L [O] P300S(LP)
{SubSystem}:2040:0:0:8Get the second spindle load value(%).System.Int32Lathe>= 2.5.0[O] P200L [O] P300L [O] P300S(LP)

SubSystem: Designating SubSystem = 0, 5 to 7, 19 to 29 for lathe is possible. Designate a value between 22 to 26, 28, 29 in general.

Grinder

AddressDescriptionData TypeMachineTypeVersion
{SubSystem}:2943:0:0:8Get the state of spindle override switch (%).System.Int32Grinder>= 3.0.0
{SubSystem}:2948:0:0:23Get the spindle load value(%).System.Int32Grinder>= 3.0.0
{SubSystem}:2006:0:0:8Get the spindle speed(RPM).System.Int32Grinder>= 3.0.0
{SubSystem}:2924:0:0:8Get the wheel spindle speed(RPM).System.Int32Grinder>= 3.0.0

SubSystem: Designating SubSystem = 0, 5, 19, 20, 22, 23 for grinder is possible. Designate a value between 22, 23 in general.