![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| Computers and Networking Discuss computer and Networking related questions here! |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| ||||
| ||||
| 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
__________________ “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
|
#2
| |||
| |||
| 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
| |||
| |||
| 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
| ||||
| ||||
| 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
__________________ “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management) |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming PLC on Fanuc 0M | MetLHead | Machine Problems, Solutions , Wireless DNC, serial port | 19 | 06-27-2011 07:47 PM |
| Gsoft Online CNC Programming Tool | tslawnyk | Product Announcements & Manufacturer News | 5 | 12-07-2007 08:18 AM |
| Mazak C axis programming | dpinson | General Metal Working Machines | 1 | 07-02-2005 04:06 PM |
| Conversational CNC Programming | BlueChip | Product Announcements & Manufacturer News | 0 | 07-24-2004 02:37 PM |
| Sub programming | JuiceMan | General CAM Discussion | 3 | 10-08-2003 09:32 PM |