Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get Cycle Time Using Okuma API

Tags:

okuma

Control: Okuma OSP-P200L
Machine: LB3000
API: 1.15.0.0

I need to get the cycle time for a part program in an Okuma Lathe using the THINC API. The help file mentions a cycle complete method:
public bool CycleComplete( MachineSideEnum enMachineSide )
But I'm not finding any way to detect a cycle start.
Any ideas?

like image 631
Scott Solmer Avatar asked Mar 23 '23 12:03

Scott Solmer


1 Answers

Another possible approach is to use the CmachingReport.GetMachiningReports method. It returns an ArrayList of the CMachining class which has a property called OperatingTime. This is a cumulative timer representing actual time from start to finish each time the program is run.

You can calculate the average cycle time for a particular program by dividing the OperatingTime by the NumberOfWork property. Doing it this way would give you some flexibility in case the app isn't running or you don't want to poll.

like image 193
jweaver Avatar answered Apr 09 '23 09:04

jweaver