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 AppFzx said, you'd have to poll. Have user start the application, then start their part program. Your application will need to poll
GetProgramRunningState()
(not faster than 100ms interval!) to see when the part program starts. Then pollCycleComplete()
to see when it finishes. On that thread though, events are an interesting idea for future API releases...