• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 505
  • Last Modified:

Writing VB code for CNC machines

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
Luke_Stephens
Asked:
Luke_Stephens
  • 4
  • 2
1 Solution
 
Luke_StephensAuthor Commented:
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
xSinbadCommented:
still looking
0
 
xSinbadCommented:
0
 
frankdCommented:
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
 
Luke_StephensAuthor Commented:
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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now