Okuma America Corporation
Okuma America Corporation
THINC-API
Release Notes for Lathe
Revision History
Date Version Description Author
5/21/2007 S5015-008-00 Public release for Lathe THINC-API LHuynh
version 1.0.0.0
6/04/2007 S5015-008-01 Public release for Lathe THINC-API Lhuynh
version 1.1.0.0
08/15/2007 S5015-008-02 Public release for Lathe THINC-API Lhuynh
version 1.2.0.0
2/22/2008 S5015-008-03 Public Release 1.6.0.0 for Lathe Lhuynh
THINC-API
4/11/2008 S5015-008-04 Public Release 1.6.0.0 for Lathe Lhuynh
THINC-API
06/27/2008 S5015-008-05 Public Release 1.6.3.0 for Lathe Lhuynh
THINC-API
07/25/2008 S5015-008-06 Public Release 1.6.4.0 for Lathe Lhuynh
THINC-API
10/27/2008 S5015-008-07 Public Release 1.7.0.0 for Lathe Lhuynh
THINC-API
12/18/2008 S5015-008-08 Public Release 1.8.0.0 for Lathe Lhuynh
THINC-API
04/30/2009 S5015-008-09 Public Release 1.9.1.0 for Lathe Lhuynh
THINC-API
10/12/2009 S5015-008-10 Public Release 1.10.0.0 for Lathe Lhuynh
THINC-API
04/28/2010 S5015-008-11 Public Release 1.11.0.0 for Lathe Lhuynh
THINC-API
09/14/2010 S5015-008-12 Public Release 1.11.1.0 for Lathe Lhuynh
THINC-API
01/04/2011 S5015-008-13 Public Release 1.12.0.0 for Lathe Lhuynh
THINC-API
02/02/2011 S5015-008-14 Public Release 1.12.1.0 for Lathe Lhuynh
THINC-API
11/14/2011 S5015-008-15 Beta Release 1.14.0.0 for Lathe Lhuynh
THINC-API
01/15/2012 S5015-008-16 Beta Release 1.14.1.0 for Lathe Lhuynh
THINC-API
09/21/2012 S5015-008-17 Beta Release 1.14.2.0 for Lathe Lhuynh
THINC-API
12/04/2012 S5015-008-18 Public Release 1.15.0.0 for Lathe Lhuynh
THINC-API
Table of Contents
1. Introduction 5
1.1 Disclaimer of Warranty 5
1.2 Purpose 5
1.3 Scope 5
1.4 Definitions, Acronyms, and Abbreviations 5
1.5 References 5
3. Features 8
3.1 Command API 8
3.2 DATA-API 8
GOVERNMENT RIGHTS LEGEND: Use, duplication or disclosure by the U.S. Government is subject to restrictions set
forth in the applicable Okuma America Corporation license agreement and as provided in DFARS 227.7202-1(a) and
227.7202-3(a) (1995), DFARS 252.227-7013(c)(1)(ii) (Oct 1988), FAR 12.212(a) (1995), FAR 52.227-19, or FAR 52.227-
14, as applicable.
"Okuma America Corporation" and Okuma America Corporation’s products are trademarks of Okuma America
Corporation. References to other companies and their products use trademarks owned by the respective companies and
are for reference purpose only.
1.2 Purpose
The purpose of the Release Notes document is to communicate major new features and changes in this release of the
THINC-API for Lathe libraries. It also documents known problems and workarounds.
1.3 Scope
This document describes the Public release version 1.22.0.0 of THINC-API for Lathe.
1.5 References
None.
In current version of THINC-API, some of the existing functions related to ATC, Tool, TailStock, and Chuck Data
from DATA-API or Command API might not function correctly on OSP-P300S (SLP) and OSP-P300L control.
Please refer to the help file for detail usage and compatibility information of each function.
This version requires latest OSP system disk.
From this release and forward, THINC API libraries will check dependency libraries during installation. THINC API
will fail to install if version of dependency OCJ libraries cannot support current version of THINC API.
From this release and forward, API Notifier will delay the checking of API for an approximately of 1 minutes or so
after NC is running. API Notifier service does use Windows Performance Counters service. As a result, API Notifier will
not run correctly if Windows Performance Counters service is not enable. During the installation of THINC-API, Windows
Performance Counters will be reset to 0 in the Windows system registry as shown below:
THINC-API Release notes Okuma America Corporation, Page 5 of 10
2019
THINC-API Version: S5015-008-29
Release Notes For Lathe Date: 02/26/2019
Libraries included in this release for Lathe are compiled with .NET Framework 4.0:
Version of Okuma.CLDATAPI.dll in this release is 3.2.0.0
Version of Okuma.CLCMDAPI.dll in this release is 3.2.0.0
Version of APINotifierService.exe in this release is 1.22.0.0
Version of APINotifierStatus.exe in this release is 1.3.0.0
Version of Okuma.Flexnet.Net4.dll in this release is 1.0.0.0
Version of Okuma.Apilog2.dll in this release is 1.2.0.0
This release requires OCJ custom API version 003W on target machine. THINC-API will verify the existing of OCJ
custom API version before performing the installation.
The PLC system package listed in the table per control type is also required.
Important: All applications designed with THINC-API libraries must use THINC-API version 1.21.1.0 or higher to
be able to run on Microsoft Windows 10.
The following functions of Okuma.CLDATAPI.dll library will not be available in OSP-P100II control machines:
Classes Interfaces
CMachine OnOffStateEnum GetNCStatus(NCStatusEnum enNCStatus)
CMachine CCurrentAlarm* GetCurrentAlarm()
CIO OnOffStateEnum GetUserTaskIOVariable(IOTypeEnum enIO, Int32 intIndex) ;
The following functions of Okuma.CLCMDAPI.dll library will not be available in OSP-P100II control machines:
Classes Interfaces
Sub RegisterToolPot(ByVal intPotNo As Integer, ByVal intToolNo As Integer, ByVal
CATC enSettingToolKind As SettingToolKindEnum, ByVal enSettingToolSize As
SettingToolSizeEnum, ByVal enReturnMagazine As ReturnMagazineEnum)
Sub SetNextTool(ByVal intToolNo As Integer, ByVal enSettingToolKind As
CATC SettingToolKindEnum, ByVal enSettingToolSize As SettingToolSizeEnum, ByVal
enReturnMagazine As ReturnMagazineEnum)
Sub SetToolInStation(ByVal intToolNo As Integer, ByVal enSettingToolKind As
SettingToolKindEnum, ByVal enSettingToolSize As SettingToolSizeEnum, ByVal
CATC
enReturnMagazine As ReturnMagazineEnum, ByVal enTurretStation As
TurretStationEnum)
CATC Sub UnRegisterToolPot(ByVal intPotNo As Integer)
CProgram CancelMainProgram()
SelectMainProgramRSide(ByVal strMainProgramFileName As String, Optional ByVal
strSubProgramFileName As String = "", Optional ByVal
CProgram
strSystemSubtituteProgramFileName As String = "", Optional ByVal strProgramName As
String = "")
SelectMainProgramLSide(ByVal strMainProgramFileName As String, Optional ByVal
strSubProgramFileName As String = "", Optional ByVal
CProgram
strSystemSubtituteProgramFileName As String = "", Optional ByVal strProgramName As
String = "")
CalcualteToolOffset(ByVal intToolNo As Integer, ByVal enAxisIndex As
CTools OffsetAxisIndexEnum, ByVal enSubSystem As SubSystemEnum, ByVal dblValue As
Double)
AddConstantToolOffset(ByVal intOffsetNo As Integer, ByVal enAxisIndex As
CTools OffsetAxisIndexEnum, ByVal enSubSystem As SubSystemEnum, ByVal enCuttingPosition
As CuttingPositionEnum)
AddConstantNoseRadiusCompensation(ByVal intOffsetNo As Integer, ByVal enAxisIndex
CTools As OffsetAxisIndex2Enum, ByVal enSubSystem As SubSystemEnum, ByVal
enCuttingPosition As CuttingPositionEnum)
AddConstantToolWear(ByVal intOffsetNo As Integer, ByVal enAxisIndex As
CTools OffsetAxisIndex2Enum, ByVal enSubSystem As SubSystemEnum, ByVal enCuttingPosition
As CuttingPositionEnum)
SubtractConstantToolOffset(ByVal intOffsetNo As Integer, ByVal enAxisIndex As
CTools OffsetAxisIndexEnum, ByVal enSubSystem As SubSystemEnum, ByVal enCuttingPosition
As CuttingPositionEnum)
SubtractConstantNoseRadiusCompensation(ByVal intOffsetNo As Integer, ByVal
CTools enAxisIndex As OffsetAxisIndex2Enum, ByVal enSubSystem As SubSystemEnum, ByVal
enCuttingPosition As CuttingPositionEnum)
SubtractConstantToolWear(ByVal intOffsetNo As Integer, ByVal enAxisIndex As
CTools OffsetAxisIndex2Enum, ByVal enSubSystem As SubSystemEnum, ByVal enCuttingPosition
As CuttingPositionEnum)
CProgram SelectScheduleProgramLSide(ByVal strScheduleProgramFileName As String)
CProgram SelectScheduleProgramRSide(ByVal strScheduleProgramFileName As String)
CMachine Public Sub SetUserAlarm(ByVal enAlarm As UserAlarmEnum, Optional ByVal
THINC-API Release notes Okuma America Corporation, Page 7 of 10
2019
THINC-API Version: S5015-008-29
Release Notes For Lathe Date: 02/26/2019
Note: User Alarm will require OKUMA.Lathe.UserAlarm license feature in order to function on OSP-P200 or newer
controls if machine can support.
3. Features
Please refer to the help file for detail information of each function.
3.2 DATA-API
4.1 Defect
DATA-API library, Okuma.CLDATAPI.dll, cannot create directly under ASP.NET web application.
Solution/Work-arounds: Create and initialize DATA-API in a separate thread. All function calls must be called from
objects created inside separated thread mentioned above.
DATA-API library can only support applications designed with single-threaded apartment of COM threading model. The
underlying library, LDATAPI.dll, cannot be loaded during call to CMachine.Init function when an MTAThread attribute is
applied to the application.
Solution/Work-arounds: None
THINC-API libraries compiled with .NET Framework 1.1 use Firebird Database engine. The log file created by Firebird
database engine can be corrupted, unexpectedly.
Solution/Work-arounds: A bat file is created during the installation of THINC-API and will be executed every time
Windows is first started to replace the existing log.fdb located in “D:\Program files\Okuma\LoggingService” to prevent file
corruption.
New THINC-API libraries that compiled with .NET Framework 4.0 will use SQLite database for its logging service. All
applications should use new version THINC-API if possible to prevent using Firebird database and to be compatible with
Windows 10.
4.1.3 Data-API
Symptom: Failed to get correct data for Subsystem L and R side if MacMan screen is different than
current setting of subsystem. It always gets the data from current MacMan screen.
Symptom: The Z-axis position for sub system NC-AL and NC-AR does not return data correctly. It is based on the current
selection of spindle in NC panel or command program G140/G141.
Solution/Work around: None
4.2.1 DATA-API
Symptom: All functions that can support data unit in metric or inch will not add decimal value correctly when the decimal
value is 0.0001or 0.00001 inches.
Symptom: The function will not set the select group correctly when multi-edges tool spec is 12 or 4.