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.