584,860 active members*
4,992 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Fanuc > Host monitor application for FANUC controller
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2011
    Posts
    0

    Host monitor application for FANUC controller

    Hi,

    I am looking for a sample codes including source writing in C/C++ using the FANUC FOCUS library to talk to the FANUC controller. Any sample code is appreciated.

    Thanks,
    Henry

  2. #2
    Join Date
    Jul 2008
    Posts
    20

    Fanuc FOCAS help

    henry95, Did you ever find anything on this? I'm looking for the same thing.

  3. #3
    Join Date
    Jan 2011
    Posts
    0

    Host App fpr Fanuc controller

    Not really, but it's more simple than I thought. First, I assume you already have the Focus library from FANUC, here is an example:

    unsigned short FlibHndl; // Focus Library hanlde
    int status;

    // Get handle by calling cnc_allclibhndl, cnc_allclibhndl2,
    // or cnc_allclibhndl3 depends on what you want
    status = cnc_allclibhndl(&FlibHndl);

    if (status == EW_OK)
    {
    // Ok, we get the handle. now use the handle to call
    // other functions
    short spdl;
    status = cnc_rdnspdl(FlibHndl, &spdl);
    if (status == EW_OK)
    {
    // So we got the number of spindles
    printf ("Number of spindles = %d", spdl);
    }

    ....
    // Release the handle
    cnc_freelibhndl(FlibHndl);
    }


    And that's all folks!!

    Good luck,
    Henry

  4. #4
    xvanic04 Guest
    Hello,
    how did you add the library into the project? I got these error:
    Click image for larger version. 

Name:	errorCPP1.png 
Views:	1 
Size:	24.5 KB 
ID:	186180
    Thanks for any help.
    Regards,
    Radek

Similar Threads

  1. Fanuc 18i MB Host Set-up
    By Helmuth in forum Fanuc
    Replies: 12
    Last Post: 07-05-2012, 02:29 PM
  2. PC MONITOR FOR FANUC
    By CHANDRU in forum Fanuc
    Replies: 1
    Last Post: 01-03-2011, 08:25 PM
  3. Fanuc monitor info
    By Dave3891 in forum Fanuc
    Replies: 6
    Last Post: 11-03-2010, 03:57 PM
  4. Replies: 2
    Last Post: 06-14-2007, 09:33 PM
  5. A host of EMC newbie questions - sorry!
    By gfixler in forum LinuxCNC (formerly EMC2)
    Replies: 19
    Last Post: 01-05-2007, 03:31 PM

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
  •