586,094 active members*
4,110 visitors online*
Register for free
Login
Page 1 of 2 12
Results 1 to 20 of 39
  1. #1
    Join Date
    Feb 2005
    Posts
    51

    Serial Port Issues

    Gentlemen,
    I am working with two Bavelloni CNC stone working machines equipped with NUM controllers. All are connected directly to a PC via Null modem serial cables RS232, one at 200' and the other at 50'. We recently upgraded our engineering room to an XP PC up from 2000 Pro and now we are having communication problems. I have toyed with and even turned off the FIFO buffer as per the manufacturers suggestions to know avail. Initially, a program would attempt to send, and stop, displaying a message on the NC " program exists do you wish to overwrite" to which I would key yes and then the program would continue sending. No matter, the end result would still be a serial line error being displayed or a program 0 ( not the number I sent) being displayed with nothing in it but a jarbled mess. After toying with the FIFO ( and then turinging it off) I can now get the machine(s) to recieve the programs in one continuous shot however, the result is still the same(serial line error or jumbled mess in "0")....If I reconnect the machines to the older computer ( switching nothing but the cables between PC's) the programs sends fine with no errors. All settings in the transfer software on the two machines is identical. The only two differences between the two PC's is that the older one has two serial ports that are wired directly to the motherboard ( OEM) and has windows 2000. The new one possess PCI card serial ports (both on the same card) and runs XP.....PLEASE HELP....the older machine is dying and I need to keep my engineering room rolling at full steam!!!!!!!!!

    your friend in technology,
    Jimbo

  2. #2
    Join Date
    Nov 2004
    Posts
    53
    I use XP all the time on Num controls as we are an OEM with Num.
    What control?? 1040 series? and are you using com1 or Ser 1?
    I would slow the baud down to 4800 and try it.

    Otherwise you may have to dump the computer you are using.

    Regards

  3. #3
    Join Date
    Feb 2005
    Posts
    51
    Debco....it is a 1040 on both machines. We have tried slowing to 4800 with no luck....Both machines are setup on the serial line.... I am going to try com1 at the NC today however I jsut dont understand why it works fine on the old computer and there are errors on the new?

  4. #4
    Join Date
    Mar 2005
    Posts
    1498
    070601-0653 EST USA

    Egar:

    I know nothing about your CNC, but I have some questions.

    1. Is there any difference if the new computer is connected thru the short cable to the short cable CNC?
    2. Are you using software handshake, meaning XON/XOFF?
    3. Can you take the new computer to the machine, and run a short RS232 cable to the CNC?
    If this is possible, then connect the safety ground pin of your 3 prong AC plug with a #16 wire to the metallic chassis of the CNC and see if this makes any difference.

    Do run with the FIFO disabled.

    In general I suggest 7 data bits, even parity, and 1 stop bit. Both ends must be exactly the same except for a few strange machines where apparently the parity is not check in the UART.

    .

  5. #5
    Join Date
    Feb 2005
    Posts
    51
    Gar,
    Thank you for your attentive response!!!!
    To answer your questions:
    1. There is a difference in result between the long and short cables on the new computer. On the short cable I recieve an actual " Serial Line Error Block N0" with no info at all being sent. On the long cable I do not recieve any error messages, however I get the " Program exists do you wish to overwrite?" message which I must clear a few times before for the program coming from the PC to be completely sent. However, the only thing I get on the long cable is a jumbled mess.
    2. The protocol in the software ithat is working on the old computer is RTS, I do not believe there is any software hand shake being used
    3. I will take the new PC down to the NC and see if a super short cable makes a difference on Monday as I did not get your post until late. Is it possile we are having a grounding issue? I am not sure how the cables are grounded they were purchased on line before I began with this company.

    Thank you so much in advance for your help!
    Jimbo

  6. #6
    Join Date
    Mar 2005
    Posts
    1498
    070601-1831 EST USA

    Egar:

    That you are not using software handshake, but are using hardware, RTS/CTS, means you must run at least 5 wires between the computer and the CNC. You may also need to jumper pins 6, 8, and 20 together at the CNC 25 pin connector. For reference: on HAAS controls 6, 8, and 20 are do not care, but on Fanuc are required and maybe under some circumstances have to also handshake with the computer.

    See my web site www.beta-a2.com for some wiring information on the E232 Photo page. This may or may not apply in your particular case. The schematic is not for computer to CNC, but it and the description give you broad background information.

    Do study the information on grounding and noise.

    If you are using hardware handshake at your CNC, then you must use hardware handshake at the computer. And this means at least 5 wires. But I believe you have other problems, like noise, and I think the short cable test and solid ground at the CNC chassis may help prove this. The common wire, pin 7 in the 25 pin connector, pin 5 in a 9 pin connector, is inadequate to reduce a ground voltage difference when there is an external ground difference with high current capability.

    Your answer 1 is confusing. But I believe you are saying with the new computer you can not get any transfer with the long cable, but with the short cable you get error messages and after many tries may get the program to load.

    Relative to your answer 3. By NEC (National Electrical Code) code your CNC should get a safety ground connection from the chassis of the CNC (meaning conductive, metallic, material on on the CNC) back to the service entrance from where power is supplied. This conductor must be as large as a power conducting wire. Similar requirement from the wall outlet where your computer is connected back to its main power panel. These safety ground wires are a much lower impedance than the signal common wire in your RS232 cable.

    If when the computer is near the CNC you still have problems call me. The phone number is on the web site. I am in the eastern time zone.

    .

  7. #7
    Join Date
    Feb 2005
    Posts
    51
    Gar,
    Thanks so much for the input...answer 1: short cable(50') gives serial line error. Long cable....I recieve no error but the program gets stuck and comes through in pieces...when i open the program on the NC ( long cable) it is nothing but garbage.
    thanks Jimbo!



    ps do...you know of any reason why the old PC still sends ok...but the new one does not?

  8. #8
    Join Date
    Mar 2005
    Posts
    1498
    070601-1936 EST USA

    Egar:

    If the RS232 board has less output swing or a defective output driver, then this might expalin the problem.

    On the 9 pin computer connector pin 3 is the output and at rest, a logic 1, no data being sent should be present. Older RS232 drivers have a voltage of about -9 to -12 V relative to pin 5, or the computer chassis. Newer drivers may be nearer -5 V which will reduce the noise margin. Also a driver might not swing equally between equal +/- voltages.

    .

  9. #9
    Join Date
    Jan 2007
    Posts
    355
    Egar,

    Try a different PCI serial card.

    I agree with Gar, the problems you are having can be caused by low voltage levels on the serial lines. The fact that you are experiencing different problems with different lengths of cable is a dead giveaway.

  10. #10
    Join Date
    Feb 2005
    Posts
    51
    gentlemen,
    thank you for the as always prompt responses.
    Would it be accurate to say that because i have a twin port card the voltages is being split between the two ports thus rendering rendering each individual transmission in adequate because of the split voltage. Would single cards, each on its on pci slot drawing its own voltage remedy this?
    It make sense....! Good deal
    thank you all for your help
    Jiimbo
    i will try two single cards monday

  11. #11
    Join Date
    Mar 2005
    Posts
    1498
    070601-2139 EST USA

    Egar:

    Twin portness should have nothing to do with your problem.

    Two, 10 or whatever number of ports does not split voltage. The voltage is set by the circuit design.

    .

  12. #12
    Join Date
    Jan 2007
    Posts
    333
    The PCI bus does not support -12 volts as the older ISA bus did. If you have an available ISA slot in your XP machine, get an ISA card with a serial port. Don't buy another PCI card.
    I'd put a new powersupply in your 2000 computer and clone the harddrive to a new harddrive, replace the CPU fan (and any others), then use the 2000 machine for another 5-7 years.

  13. #13
    Join Date
    Feb 2005
    Posts
    51
    Looking inside my older machine,
    The serial ports are not put into expansion slots at all...neither PCI or ISA.
    They are connected to the motherboard via skizzy ribbon cables. Would a viable solution be to try and clone this type of setup in the newer computer. Would this type of setup yield more voltage then using any kind of expansion slot? Or should I purchase a new board with ISA slots and move on?
    Thanks !
    Jim

  14. #14
    Join Date
    Jan 2007
    Posts
    333
    Its the generation of technology that is hindering you. The serial port in your 2000 computer is called "on board" meaning its built into the motherboard and uses ribbon cables to mount the connector onto the chassis for access.
    Did you see any ISA (PCI slots are smaller and usually white) inside your 2000 computer? Are there any ISA slots inside your XP computer? ISA is older technology that supports the -12v in serial communications and even if the serial port is "onboard", the existence of ISA slots on the motherboard are an indication of the boards generation.

  15. #15
    Join Date
    Mar 2005
    Posts
    1498
    070602-1116 EST USA

    Egar:

    I think you should try the computer close to the CNC as I previously suggested before anything else.

    Another experiment you can perform is to make a short 9 pin female to 9 pin female cable with pin 2 to 3, 3 to 2, 7 to 8, 8 to 7, and 5 to 5. This will allow you to connect the computers together.

    Download a 30 day free trial of Cimco Edit 5 from www.cimcosoftware.com . This program I know will allow you to send data from one computer to another.

    There maybe PCI cards that locally generate the +/-12 either in the RS232 interface chip or as a separate small onboard power supply. You can tell if your PCI RS232 board is working in the range of 9 to 12 V by measuring on the computer 9 pin male connector the voltage from pin 3 to pin 5, or the computer chassis instead of pin 5. There is no reason to guess what this voltage is in the rest state since it can be measured. There should be no load on the pin except the meter. A second test you can run on the voltage from this pin is when data is being sent. On a DC meter this should fall within about +/- 1 V. You may need more information on how to do this.

    .

  16. #16
    Join Date
    Feb 2005
    Posts
    51
    I drove to work and connected the New computer to the NC with a short cross cable and success.....Program sent fine....the voltage readout from the cuurent card is 5v....from what I have learned from you guys the last few days this is not enough!.....Is it safe to say I can purchase PCI with 12v external power source and we will be okay? or do we still need to trouble shoot further?

    Thank you for all of your help so far!

  17. #17
    Join Date
    Mar 2005
    Posts
    1498
    070602-1240 EST USA

    Egar:

    I believe this indicates you have a ground path noise problem.

    You may or may not find a PCI card that will marginally solve the noise problem. If it appears to solve the noise problem it still will not protect you from large (over maybe 30 V) ground voltages from an electrical fault which can burn out all sorts of components at both ends of the RS232 path.

    What you need to consider is our I232B-2 Isolator System that provides +/-2000 V short time isolation, continuous at 1200 V peak (this is in excess of the peak of a 480 line, 480 * 1.4 V = 672 V peak), long cable length at high baud rate. Typically 115.2 kbaud at 4000 ft.

    .

  18. #18
    Join Date
    Jan 2007
    Posts
    333
    ***Are there any ISA slots inside your XP computer?***

    Since you didn't answer I'm GUESSING you don't have an ISA slot in your XP machine, am I right? Do you ONLY send from the PC to the machine, or do you have to also send from the machine to the PC? (I can't guess at this one)

  19. #19
    Join Date
    Mar 2003
    Posts
    4826
    Another option: Moxa wireless ethernet to RS232 converter. Look Ma, no cables, no ground loops! Mind you if the distance is really 200 feet as the crow flies, I'm not sure what kind of signal strength you'd get from ethernet in a big shop area. Across open spaces, its pretty good. I'm running at 30 feet from router to converter, but it takes a 50 ft cable to get there. In case you didn't know such things existed!
    First you get good, then you get fast. Then grouchiness sets in.

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  20. #20
    Join Date
    Jan 2007
    Posts
    333
    You can lower your baud rate, try 2400, 1200 or even 600. You can improve your cable quality, yours is probably just standard multi-conductor stranded wire. You can purchase an RS232 extender/booster (around $100 or less), or a couple RS232 to RS422 convertors.

Page 1 of 2 12

Similar Threads

  1. EMC2 Serial Port?
    By willhrt in forum LinuxCNC (formerly EMC2)
    Replies: 8
    Last Post: 02-12-2012, 07:55 PM
  2. Serial Port Issues with GE Fanuc OT-C
    By keystoneprec in forum Fanuc
    Replies: 7
    Last Post: 04-05-2007, 03:39 PM
  3. USB to serial port
    By stampman in forum DNC Problems and Solutions
    Replies: 7
    Last Post: 12-30-2006, 08:17 PM
  4. VK45 serial port
    By TJ in CT in forum Mazak, Mitsubishi, Mazatrol
    Replies: 16
    Last Post: 11-07-2005, 04:52 PM
  5. Using A Laptop Without Serial Port
    By mtech in forum Computers / Desktops / Networking
    Replies: 6
    Last Post: 08-17-2003, 02:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •