Solved

Writing VB code for CNC machines

Posted on 2001-09-18
7
304 Views
Last Modified: 2012-06-27
This is a bit of a long shot, but I'm wondering if anyone can help me with some code I'm trying to write regarding CNC machines.  I've noticed that quite a few people using this site also work in the manufacturing area so I'm hoping one of you can help.  I'm trying to send and receive data from a PC to a CNC machine (FANUC control).  I'm looking for some literature pointing me in the right directions as at the moment all I'm getting is polarity errors from the CNC's (but at least it means I'm sending something right?!).  I'm basically after any sample code if possible or just some literature about the subject as I can't find any anywhere.
Cheers,
Luke
0
Comment
Question by:Luke_Stephens
  • 4
  • 2
7 Comments
 
LVL 6

Expert Comment

by:xSinbad
Comment Utility
0
 

Author Comment

by:Luke_Stephens
Comment Utility
Cheers mate, but they just give me information on writing NC programs, I need to know how to send these programs into a CNC through VB.
0
 
LVL 6

Expert Comment

by:xSinbad
Comment Utility
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 6

Expert Comment

by:xSinbad
Comment Utility
still looking
0
 
LVL 6

Expert Comment

by:xSinbad
Comment Utility
0
 
LVL 4

Accepted Solution

by:
frankd earned 300 total points
Comment Utility
Luke,

Your question brings up several questions in my mind:

1.) Do you know what the protocol is? i.e. 9600N1 etc.
2.) Do you know the format that the Fanuc is expecting the data?

I would think that Fanuc would be your best bet to get these answers.  If this is not possible and you have another device that is hooked up to the serial port on the Fanuc and it sends information correctly then yoy can intercept the communications both ways.

B&B electronics (www.bb-elec.com) has a full featured serial data and protocol analyzer that helps in these cases.

Hope this helps.

Frank
0
 

Author Comment

by:Luke_Stephens
Comment Utility
Frank,
Cheers mate, I'll give you the points because I want to close this question now and you're the nearest so far!  Sorry xSinbad, thanks for your help.  

In the end I went to a guy called Dan Fritz who wrote a package called PC-DNC.  He's helped me out loads.  Fanuc are surprisingly useless regarding this!  Their website is a disgrace at least!

Nice one,
Luke
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now