587,513 active members*
3,045 visitors online*
Register for free
Login
IndustryArena Forum > Machine Controllers Software and Solutions > Dynapath > I could use some advice on the "handshake" between control and computer
Page 1 of 2 12
Results 1 to 20 of 26
  1. #1
    Join Date
    Jan 2011
    Posts
    48

    I could use some advice on the "handshake" between control and computer

    I have a delta 20 on a journeyman and have been able to load and run many programs succesfully, but I now need to iron out my "handshake" issue. I have ordered the rs232 cable I was previously advised in earlier post but no mattter what I cannot get the flow to pause when the storage is full.I can slow the baud rate down to 600 and wont let it overflow but then I aill get into the complex moves and it is loading too slow. I have tried many different settings and think that thee machine is not sending the signal to laptop. I tryed to force the handshake with using the graphics and dialing down the feed but it continues to flow info. I cannot get a program to " record" at all. I use a cimco program to feed and have played with all the settings. One thing I was explaning to Dynapath that they thought was odd is how I cannot start the control box if it is atttched to the laptop. The screen will stay blank, also when I set the flow conrol to " software" it will immidiately shut down my laptop and I have to reboot the laptop. I have a good grounding rod, it works flawlessly with every other aspect, I am just sick of the "buffer imput error" when I do comlex programs causing me to do way too much babysitting. IN the manual it talks about crossing the RTS and CTS lines but im am not sure about this. I set the cimco flow control to hardware and when I start the mill just sits an waits for a signal that it never begains.Then in the hardware flow type settings I choose "RTS/CTS+DTR/DSR" and it runs but it still overloads the buffer. Any solutions for this will be greatly appreciated, I wish there is a simple affordible to increace the size of memory, I find it frusterating that it will only hold about 2000 lines of code! I know this seems garbled, but I have had to peice all the know how to run this machine from this site as it not exactly up to date cutting edge tech, but it cuts like a brandnew machine, after reading other posts I enjoy this problem, It could be much worse! Thanks:tired:

  2. #2
    Quote Originally Posted by paynebros View Post
    IN the manual it talks about crossing the RTS and CTS lines but im am not sure about this.
    That's what you need. Essentially a "null modem" cable which you can look up or buy an adapter. Looks like your manual gives you the pinouts. If you want to try different cable configurations before butchering your cable get ahold of an RS232 breakout box. It plugs in series with your cable and uses jumper wires or dip switches.

  3. #3
    Join Date
    Oct 2006
    Posts
    106
    1.) If you are using software handshaking (XON/XOFF as the DynaPath calls it), the data flow to the control is stopped (in Buffered Input only) by sending an XOFF character from the control to the laptop. If "Record" does not work in sending a part program from the control to the laptop, then it's a sure bet that the software control (sending the XOFF character) won't work either.

    2.) I would recommend using hardware handshaking, as it seems to work better with the newer operating systems (Windows 7, in particular).

    3.) Always start the receiving device first. If going from the laptop to the control in Buffered Input (DNC), the control should be in cycle before starting to send from the laptop.

    4.) Does your laptop have a serial port, or are you converting from an USB to serial? What operating system are you using on your laptop?

    5.) There is more information on the DynaPath website under 'Control Support.'

    6.) Consider the possibility that the transmit side of the UART chip (the actual serial port) is blown on the Delta 20 Aux Control board. DynaPath can fix it or check it out, but I know it will cost a couple hundred and the card will have to be sent in. You'll lose the machine for a couple weeks.

  4. #4
    Join Date
    Jan 2011
    Posts
    48

    Handshake issues

    I am using windows 7 sometimes 32bit ,and sometimes 64 bit laptop. I have a 32bit hooked up now but If it works better I can create a "virtual computer" with win 7 and run it as a xp. I have tried 3 different cables and the one that I got that was recently recommended to me from this site works without the null modem. That may be odd in itself because when I attached the null it lost activity and then when I removed it it worked just without handshaking ability.The machine was used as a school model and I was the first to cut metal on it even though it is old. It cut wax in our class. I know it was taken care of well ut electronics do go bad I suppose. I have a rs232 jumper with a removable top that allows the ability to rewire the connection, my fear is to short something out and cause damage to circuitry. Is there a way to see that the signal is sent or received? is there code that can be written to test that or does it run behind the scenes un-seen? I will go back to the dyna site you recommended and thank you for the advice.

  5. #5
    Join Date
    Feb 2009
    Posts
    6028
    Actually, it's not weird at all that you remove the null modem and it works. Some models of Tree were indeed parallel, not serial. However, with the straight cable, you are missing the jumpers that enable Xon, Xoff. Easiest thing to do is to remove the DB25 connector on the machine, swap 2 and 3 wires on the plug, install your null modem and go. Also sounds like your trying to use record mode, you should be in drip mode.

    From the program directory, type in rs232c, that puts the control in buffer mode.

  6. #6
    Join Date
    Oct 2006
    Posts
    106
    Because Windows 7 usually only runs on newer equipment, I assume that you are using an USB to serial converter. Based on user feedback, I have to say that some work and some don't. It could explain some of the issues you are having.

    Also, whether you simulate running Windows XP or not, there is no way to reliably determine how the data buffering is take place on a laptop running Windows 7. From some experimentation, it appears to me that the software buffers do not respond correctly or do not react fast enough to perform software control. This is why I recommend hardware control, since it takes the operating system out of the picture (kind of). An USB to serial converter still clouds the issue because many, if not all converters need software drivers to function.

    That being said, if you were to disconnect the laptop and connect a "breakout" box with LEDs to the serial port of the DynaPath control, you could "Record" a part program and verify that the control is sending data out of the serial port.

  7. #7
    Join Date
    Jan 2011
    Posts
    48

    drip feed/ Handshake

    I followed the advice and tried to send a program before pushing the start button and It will not load the program when the flow is set to Hardware or software. Only when I put the setting to "None" does it send successfully. It also will not wait and it loads the program regardless of the start button is pushed or not. I Tried every way except now I will follow the tip and convert my computer to a xp . I will also attempt the "breakout box" I assume it is the same as testing the pin coming out with a meter to see if it "tickles" as I load the program. Am I doing that correctly or is there a different "breakout box"? Thanks again for the tips it helps to narrow down the problems and saves a tremendous amount of time troubleshooting. In looking through the dnc program I see there is a million different settings for drip feeding and I just use the default settings, but I wonder if there is a special character It should be set to or if again it is all automatic regardless of the settings on the software side. I am leaning to the dynapath not sending a signal, because of how the software sits and waits without loading when I have the flow control set to that.

  8. #8
    Join Date
    Jan 2011
    Posts
    48

    What is the db25?

    I am only trying the record mode as a attempt to follow the feedback from dynapath to "force the handshake" I am running the rs232 well and it works fine except with large programs that overload the buffer. I need the connection to pause the flow to avoid the error. I think that I am heading in the right direction with the wires crossed. can you please expand a little on that so I can make sure I do it right? Thanks for the help. I sure do appreciate all I get.

  9. #9
    OK couple things:
    Are you using a USB to RS232 adapter? If so there are only a few that will work.
    I recommend (as I did) getting a "port replicator" or "docking station" for your laptop so you have a real serial port. I tried a converter (it didn't work), sent it back, & bought a new IBM docking station off (auction site) for $15. Works great.
    The next issue is, what are the connectors, DB9 or DB25 or some combination?
    If both have DB25 the pinouts are pretty simple. DB 25 to DB9 a bit more complicated, but try this article: Null modem - Wikipedia, the free encyclopedia
    Third, stick with hardware handshaking, the software (XON/XOFF) creates problems because it sends a special character on the data line that must be interpreted and other controls need to be in place.
    You've got the data transfer going and that's half the battle. Just need to get the handshaking working.
    The "RS232 Breakout Box" (do a search) can be had for around $20. It hooks up in series with your cable (between the host computer and machine control) and allows you to try different pinouts. One I have has LED's so you can see the signal (green +, red -). Don't worry about getting it wrong, it's a ~2V signal and can't do any damage. Most common configuration is: 1 straight thru, 2&3 crossed, 4&5 crossed, & 7 straight thru (db25 TO DB25). On the breakout box you should be able to turn off the other signals. There are dip switches and if you use a jumper make sure those lines are "off". I've been using a straight thru cable & breakout box until I make the time to solder up a cable with parts I bought at radio shack.
    Software settings are another subject. I'd try 1200 baud on both ends until you get it working, try a 5ms End Of Block Delay (EOB) if it's available (gives the machine some time to respond to the RTS/CTS signal). You must have parity & stop bit set correctly or you wouldn't have made it this far.

  10. #10
    Join Date
    Jan 2011
    Posts
    48

    Cool Thanks! Off to get a breakout box.

    I see much of what you have here is what I have been looking for. I guess the good part of all this is the great experience I will have with these connections by the time I am done with this. I will post my progress as I may run into more roadblocks. Thanks for the great advice . Hopefully I will be able to pick one up today and test this out tonight. I have a "old time" electrical supplier in town he seems to have anything I can think of at reasonable pricing. I have tried several different cables and USB converters and see that they don't all work as you said. The combination I have now works well, all but the cts/rts is my assumption. Thanks again for the hand in this, I think I am close!

  11. #11
    Join Date
    Jan 2011
    Posts
    48

    Ran a Test with the breakout box with expected results

    As I watched the LED light up when I connected to the port, I noticed the (two rows of lights, one green, one red) red #8 showed on when the control was switched on, the red 4 and 20 along with the opposing side green(RTS and DTR) woulds blink until I activated the port. Then all 4 (R4,R8,G RTS, G DTR)stayed light up. I set flow control to "None" sent prog. and red# 2 light up as it transferred until complete. I set control to "Hardware,flow cont. to RTS,CTS" and sent a prog, the computer prepared to send but held waiting for a response to send and would not transfer. I switched to " Hardware, DTR,DSR for flow" and it sent same as usual where it loaded completely and ran. I could not get it to pause with the feed rate it was all or nothing,and only loaded with the control start buttton pressed first. So If I understand correctly, I should swich the #2 and #3 wire and then add the "null adapter" and it should have the connection correct to facilitate the handshake. I will now go through all the last set of instructions from previous posts and try each step watching the led feedback and note the changes. Here is a picture of the box I used, thanks for the pointers,I hope to have continued success. This gives me a good idea whats going on in my transmitting.
    Attached Thumbnails Attached Thumbnails IMAG0532.jpg  

  12. #12
    You are using a tester, which does not give you the ability to try different "pinouts." If you look at this "breakout box," you have the LEDs, plus dip switches for each line, and jumper wires you can use to, for example, cross 2&3. Keep in mind if you use a jumper you need to open the dip switch for each pin (in most cases).

    (I am not endorsing this specific product, just looks like the one I use)

  13. #13
    Join Date
    Jan 2011
    Posts
    48

    Running out of possibillities, could still use a little feedback

    I am trying to eliminate all the factors one by one and hope to reach my ultimate goal, completing the Handshake! I have spoken to dynapath to give me the correct wiring for the cords I have and I have everything connected through the recommended "breakout box and when connected I see all the led's light up. I am able to run it with the software mode or the hardware,but it still flows right through the point where it should pause and overflows the buffer. I now have it connected directly to a new computer running windows xp and have 2 different dnc controllers to try and eliminate all the variables. It still gives me the error buffer overload. I have a couple questions to try now, One; should I see the led flickering when the buffer is sending the signal to pause or is that happening way to quick to see. Is there any way to directly test for that signal? I also wonder about somethings people have said about similar connections, one said how they twist all the wires together,such as the 4,6,7,8? I think it was the dynapath guy but he didn't elaborate he just said he did it differently by jumper several wires together and doing something differently with his programming. I would appreciate any help, I am close to the end, just hope its the end I like! Thanks.

  14. #14
    Join Date
    Jun 2007
    Posts
    3735

    Cool

    DB25-DB25 hardware.
    2-3,3-2,4-5,5-4,6-20,20-6,7-7. Leave others not connected.

    DB9-DB25 hardware.
    2-2,3-3,7-5,8-4,6-20,4-6,5-7. Leave others not connected.

    DB9-DB9 hardware.
    2-3,3-2,7-8,8-7,4-6,6-4,5-5. Leave others not connected.

    DB25-DB25 using XON/XOFF
    2-3,3-2,7-7. At each end bridge 4-5,6-20.

    DB9-DB9 using XON/XOFF
    2-3,3-2,5-5. At each end bridge 4-6,7-8.

    DB9-DB25 using XON/XOFF
    2-2,3-3,5-5. At DB9 end bridge 4-6,7-8. At DB25 end bridge 4-5,6-20.

    As you can see, there are plenty of opportunities to fail!
    You can use the first 3 setups with a null modem, and use XON/XOFF.

    The null modem does the bridging stuff in the last 3 setups.
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.

  15. #15
    Join Date
    Jan 2011
    Posts
    48

    Thanks for the wiring info, Is there anything else?

    I got the impression he was sending it differently then I do. I seem to remember him saying he puts something on the line? I don't do anything special in the post processing, but I see there are a few different options in the ascll from 17-255. Thanks again for the help.

  16. #16
    Join Date
    Jan 2005
    Posts
    12
    I have a "new to me" dynapath 10" control. Last Saturday I got the "dnc" mode to work flawlessly. I am working with a Windows"XP" computer with a serial port installed in it (RS232). I ran it for 2 hours at 9600 baud without a single flaw. The secret was the cable, which I wired myself, and to set up the computer serial port to be type2 handshake" rts/cts (hardware handshake)". My cable is a 9 pin on the computer end and a 25pin on the dynapath. It only takes 5 wires. Wired as follows:
    computer (9pin) Dynapath (25 pin)
    1 (No Connection)
    2 REC 3 REC
    3 TX 2 TX
    4 DTR 5 CTS
    5 Gnd 7 GND
    6 (No Connection)
    7 (No Connection)
    8 CTS 20 DTR

  17. #17
    Join Date
    Dec 2006
    Posts
    20
    Seems like everyone has their own "Secret recipe" as far as the wiring goes. I'm going to keep trying them one by one until i get one that works

    For now I am able to send to the controller, but get nothing from the controller to the laptop. Luckily i do have a serial port on the laptop so that makes it a bit easier.

  18. #18
    Join Date
    Jun 2007
    Posts
    3735
    It is very dependent on the protocols, or lack thereof used.

    Use a strange protocol, now use our strange custom/expensive DNC software.

    Most PCs and terminals mostly work to the standards, but the rest swap bits and all sorts of terrible hidden techniques to force suckers to buy their overpriced software.

    USE our special communications card. Same caper.

    Software often uses the bits for obscure purposes. Always a special reason!!
    At the computer end BUY our special DRIVER and software.
    At the other end. You must use our special cable and software.

    Drivers can readily swap the functionality of these bits making a 'standard' cable useless.

    DSR - data set ready.
    DTR - Data terminal ready.
    RTS - request to send.
    CTS - Clear to send.

    We will use your machine as an expensive dongle, in other words.
    Our special software protocol makes it immune to noise, and still fast enough... It makes our machine failsafe, and all sorts of reasons...
    The list goes on.
    And I have defeated quite a few strange ones.
    The second hand machine buyer often gets burnt.
    Super X3. 3600rpm. Sheridan 6"x24" Lathe + more. Three ways to fix things: The right way, the other way, and maybe your way, which is possibly a faster wrong way.

  19. #19
    Join Date
    Jan 2011
    Posts
    48

    As you can imagine, i have bought into many forms of "snake oil"

    But I think I have come to the conclusion I made the first time I ran into the problem almost a year ago, the wire does not work. I have been able to run fine, except if I try to use any form of hand shaking. I began to split my large programs to a thousand lines or so, its a pain, but it works. I keep looking at the other jacks wondering if there is any way to tap into a working (CTS) line. Just in case it works like my two outlet truck trailer wiring, the multiple attachment plug ends are different , but in a few feet, they merge and all go to the same place. I spoke to the dynapath tech and he said it is probably a bad wire with all the steps I have done to eliminate the variables. In response to the delta 10 input, I am trying to get drip feed to pause and restart automatically, unless your system is different, a Delta 10 does not have that ability. Your wiring is the same except you don't connect the other wires because your system does not have rs232c options, thanks anyways.

  20. #20
    Join Date
    Mar 2006
    Posts
    92

    DB9 To DB9

    I have DB9 on a Dyna 40 controller and I have tried every pin out I could find. The only communication I have gotten was a series of "1"'s and "0"'s. and that was in transmit mode to the PC. I dnc all day with the same PC, (different cable) to my VF3. So I know it's not the PC or serial port. I'm using DNC4U. I am starting to get pissed off that these two devices aren't talking.

    Phoodieman

Page 1 of 2 12

Similar Threads

  1. Control will "punch" but not "read"
    By dansteinmetz in forum Fanuc
    Replies: 7
    Last Post: 04-06-2010, 10:10 PM
  2. How to check "heartbeat" on BTC-1 computer?
    By Goslowjimbo in forum Bridgeport / Hardinge Mills
    Replies: 7
    Last Post: 06-14-2008, 12:28 PM
  3. "You might be a computer geek if..."
    By HogDog in forum Community Club House
    Replies: 18
    Last Post: 01-10-2006, 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
  •