-1

We are developing a project to send G Code programs from a server to an OKUMA CNC. We will need to do a Program Select on the OKUMA CNC for these files.

I couldn't find an example of this. Kindly help me.

Scott Solmer
  • 3,871
  • 6
  • 44
  • 72
  • 1
    Have you attempted to solve the problem yourself first? – Daniel Mann Jun 09 '19 at 23:27
  • Daniel, sorry me this is my first question. we will start to develop this project and i cant find proper way on thinc api examples about this issue. thats way i asked you to find the way. – Erkan Erden Jun 10 '19 at 13:27
  • Possible duplicate of [Source code for THINC API test application?](https://stackoverflow.com/q/18770520/2596334) – Scott Solmer Jun 10 '19 at 16:14

1 Answers1

0

File Transfer can be accomplished any number of ways.
Typically people will enable Windows File Sharing and use the System.IO classes for automation.

And example of how to perform Part Program Select can be found in the example program's "Program" tab with the Button labeled "Select Program". Looking at the THINC API 1.21.1.0 Lathe Sample Application, this leads you to Line 18495 in the frmMain.vb file.

Private Sub progSelectProgramButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles progSelectProgramButton.Click
    Try
        m_objCMDProgram.SelectMainProgram(prog1.Text, prog2.Text, prog3.Text, prog4.Text)
    Catch ae As ApplicationException
        DisplayError("CMD program", ae.Message)
        'Exit Sub
    Catch ex As Exception
        DisplayError("CMD Program", ex.Message)
    End Try
End Sub

Please find additional information in the API Help file under the Command API - CProgram class.

CProgram.SelectMainProgram

Scott Solmer
  • 3,871
  • 6
  • 44
  • 72