×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Controlling robots with VB

Controlling robots with VB

Controlling robots with VB

(OP)
My projects includes a controller, sensor switches, valve, grips and
steppers motor. I am wondering how to write program in visual basic
(using .DLL to controll paralel port in c language) to move the
stepper without loosing step. I heard that pulse are not sent
properly in a windows enviroment and that is why most CNC programs
are writen in DOS or linux to prevent this but I need to run my
applications in a windows enviroment so my question is how can the
pulse or signal can be send properly or rechecked to the parallel
port (in windows enviroment) so stepper motors can run smoothly without loosing steps?

luis..

RE: Controlling robots with VB

I know a little about vb but not enough to answer effectively. I wish to do similar to you but in another field. Would it not be possible to produce an output to a DOS emulated window and then send the output to the parallel port? Just a thought.

All the best.

RE: Controlling robots with VB

I think the trick here is to utilize an external controller/processor other than the Host PC.  The problem is in the windows environment that it is a multi-tasking environment and it is difficult to Sieze control away from windows to focus on a time critical task (like sending pulses to a stepper controller).  Unfortunately windows will interrupt this task with what it deams to be more important (like a looking at a mouse click or opening an explorer page).  I know that there are real time kernals used by SCADA companies like Wonderware and Intellution, but they are expensive and kind of defeat your purpose.

What I would suggest is go out and get an external controller.  If you are looking for Cheap, get a Automation Direct PLC with a High Speed Counter.  If you are looking for really cheap, get one used on E-bay or at a second hand place like D&S Engineered Products.  With an external controller like this, your VB program just communicates to the Controller a move command and waits for it to complete.  I know many VB programmers that have been very successful with this approach.

Good Luck!

RE: Controlling robots with VB

I feel that using seperate controller will be more cheaper and accurate.I have done a similar project where I have controlled four steeper motors of a Gantry type robot with Philips microcontroller using philips ISP software

RE: Controlling robots with VB

i have positioned 3 DC-motors under windows. The only thing you need is  controllers who's take care of the position and the movement figure. Then you send an ascii code. The controller take care off the movement and will respond with a ascii code " i'm there".So you can do the next movement.

RE: Controlling robots with VB

i have some experience to do this kind of project and i never use a PC/Win do control the solution. I sugest you to use the PC only as HMI and for control use special board on PC or stand-alone or a small PLC.

You can use micro plc from Omron, AB, Scheneider, SIEMENS or SAIA for that.

if you send me the amount of signal i can help you to choice that.

RE: Controlling robots with VB

Hi,

The using external MCU is most efficient way (in my opinion) but if you are not comfortable with the MCU and
don't have money to get commercial one. Then try 2 PCs to solve this kind of application. One is to run Windows Application and the other runs DOS then build a communication program between them. Data exchanged via parallel ports. But using this way you have less control
data line.

The way to run DOS emulation on top of the Windows doesn't work well because the sampling rate for each task that Windows check on each task is still limited to 10ms (i think).

Hope it would help.

PS: Please give some suggestion if my idea is not correct. Many thx :)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close