Newbie Programming with Focas library


Results 1 to 4 of 4

Thread: Programming with Focas library

  1. #1
    Registered
    Join Date
    Jul 2008
    Location
    US
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default Programming with Focas library

    Hey guys, I'm new to the forum and I'm an ME student interning at a manufacturing company. We use mostly 4 axis machines with Fanuc controllers. The project I was just given was to use the Focas1/2 libraries and create a program that will display simple actions (spindle on/off, etc.) of the machines at any time. I have been researching and reading through the Focas documentation but I cannot figure out how to even start this project. I have done a little VBA and C++ and plan on using VB.NET for this project, but I am no programmer. Any help that you guys can provide or even just pointing me towards some tutorials would be amazing.

    Thanks!

    Similar Threads:


  2. #2
    Registered
    Join Date
    Mar 2005
    Location
    France
    Posts
    12
    Downloads
    0
    Uploads
    0

    Default

    First Code in VB6 for Focas; Just in ordre to test the connection between your PC and the NControler

    '---------------------
    ' Ethernet connection
    '---------------------
    ' allocate library handle 3
    Declare Function cnc_allclibhndl3 Lib "fwlib32.dll" (ByVal sIPaddr As String, ByVal nPort As Integer, ByVal nTimeout As Long, FlibHndl As Integer) As Integer

    Private Sub Form_Load()
    Dim LibHndl As Integer
    Dim Ret As Integer

    Ret = cnc_allclibhndl3("192.0.0.1", "8193", 10, LibHndl)

    End Sub



  3. #3
    Registered
    Join Date
    Feb 2017
    Location
    India
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default Re: Programming with Focas library

    Can u be little more specific with a sample code ??



  4. #4
    Registered
    Join Date
    Mar 2008
    Location
    Germany
    Posts
    26
    Downloads
    0
    Uploads
    0

    Default Re: Programming with Focas library

    Hi,
    although we're doing C++ programming the following might help:
    https://www.inventcom.net/support/fa...-states#SOURCE

    You can also take a look at the FOCAS documentation here:
    https://www.inventcom.net/support/fanuc/focas-library

    Martin



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Programming with Focas library
Programming with Focas library