587,553 active members*
3,226 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2003
    Posts
    24220

    API Programming Anyone

    I wondered if anyone can give me a brief run down on what I am likely to be able to do and recomendations in the way of programs/books etc.
    I have aquired a new Motion control program I would like to test on the next retro-fit I do, it is Win NT, 2000, XT based.
    At the end of the manual there is a 20 page API users guide, but it is cryptic and no examples supplied.
    A DLL file is supplied together with a list of command groups and just mentions in the manual that a working knowledge of the natural lanquage of the Motion card is necessary (I have that) and should be attempted by experienced developers ( hopefully I will attain that). The motion control program is already fairly complete but there are some custom options I was hoping to include, that the present programming is lacking.

    But having a brief knowledge of VB I wondered if any one that has done any kind of API programming could give me a rough idea how much customization etc I am likely to achieve using either VB or C++? I know this may be difficult without knowing the exact application etc, but I just want to broaden my limited (read none) knowledge of API before jumping in.
    Al :violin:
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  2. #2
    Join Date
    Jun 2004
    Posts
    487
    Hey Al. I've done some VB programing and called API, etc. Almost always there's some cryptic entries in there that are a bear to crack. Too bad they don't include an example. For the most part, however, you just need to declare the API calls (usually in a module) and then call it from your main code. I would watch out for calls that require near realtime processing as VB has layers upon layes of wrappers that cause delays and other timing issues. C will be a better option for time-sensitive tasks.

    JR

  3. #3
    Join Date
    Apr 2003
    Posts
    302
    I assume you have the source code for the motion control program? Some motion controllers (hardware) come with a packaged program and api software but you can't modify the packaged program to call the api modules because they don't give you the source code.

    In other words you can run their program or write your own but you can't modify theirs. If you have their source then you have all of the examples you need in the source itself.

  4. #4
    Join Date
    Dec 2003
    Posts
    24220
    Thanks JR & Kdoney, this and what I have gleaned from other sources has prepared me for the questions I need to ask the originators of the s/w. I just did not want to go in completely blind, as my VB programming is a bit rusty, but when I took it I had not heard of API.
    Thanks
    Al
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

Similar Threads

  1. Programming PLC on Fanuc 0M
    By MetLHead in forum Fanuc
    Replies: 21
    Last Post: 02-18-2019, 06:36 AM
  2. Gsoft Online CNC Programming Tool
    By tslawnyk in forum News Announcements
    Replies: 5
    Last Post: 12-07-2007, 02:18 PM
  3. Mazak C axis programming
    By dpinson in forum Uncategorised MetalWorking Machines
    Replies: 1
    Last Post: 07-02-2005, 09:06 PM
  4. Conversational CNC Programming
    By BlueChip in forum News Announcements
    Replies: 0
    Last Post: 07-24-2004, 07:37 PM
  5. Sub programming
    By JuiceMan in forum Uncategorised CAM Discussion
    Replies: 3
    Last Post: 10-09-2003, 02:32 AM

Posting Permissions

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