586,637 active members*
2,981 visitors online*
Register for free
Login
Page 1 of 2 12
Results 1 to 20 of 25
  1. #1
    Join Date
    Mar 2005
    Posts
    523

    usb to breakout box

    does anyone here redirect there software to the usb port to control there stepper, servo drives.
    - i am asking because i considering making an interface to do so.
    - if there is one out there i would like to see the spects and find out how well it works.
    - also anyone using ethernet to printer port interface with a breakout box on the end of it.
    - same .... if there is questions.
    thank all

  2. #2
    Join Date
    Apr 2005
    Posts
    421
    I think realtime response with any of those methods are the issue.

  3. #3
    Join Date
    Mar 2003
    Posts
    35538
    If your talking about software like TurboCNC or Mach2/3 it MUST be run using a parallel port. There will be a version of MachX, however that will control the new Gecko G100 pulse generator via usb or ethernet.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

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

  4. #4
    Join Date
    Mar 2005
    Posts
    523
    the computers os will redirect the output/input to/from the usb or ethernet port.
    the users software will think it is going to the printer port.
    at the far end the data will be disassembled or assembled into the data, and control bits

  5. #5
    Join Date
    Mar 2003
    Posts
    35538
    What software do you plan on using this with?
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

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

  6. #6
    Join Date
    Mar 2005
    Posts
    523
    if the computers opperating system (be it - xp, me, 98 ,dos, linx) redirects the printer ports outputs or gets the printer ports inputs from somewhere somewhere else, it doesn't matter what software one is using.
    the user's software only for example sends and recieves data to and from the ports handlers, the opperating system sets up the 8255 control register and moves data to and from ram to the ppc programable periferal controller.. etc etc.
    i use acrobat distiller which (if i tell it to) makes all printer outputs into a pdf file.

  7. #7
    Join Date
    Apr 2005
    Posts
    421
    Thsi may be true but the interupt handler is directly connected to the hardware. With a printer port converter or usb the change in line state needs to be protocol converted then transmitted where it is buffered and then delivered to the device. This is acceptable for printers and like devices.

    Somebody correct me if I am wrong but with most PC CNC software, a direct handler is written to talk to the hardware to keep the speed up and the service rates high. In the case of MACH 2/3 I believe it is a dll that interface via the HAL to the printer port taking it over and providing near realtime access. In the case of turbocnc I suspect it is a piece of assembly language placed in line in the pascal code. You need to remember that the line pluse train in these software generators operate at least 25 - 40 Khz in a controlled fashion across multiple axis of motion. Time is everything here.

    An interesting development is the new Gecko product which in effect is it's own single purpose computer that just takes commands via ethernet/usb and then generates it's own pulse train directly driving the motor driver. The command structure is something simplistic like move in an arc from point A to point B at X feed rate. this intermediate computer then just generated the correct pulse train to feed the drives but at a whooping rate of 2Mhz or some silly fast number like that. I can't wait to see one in action.

  8. #8
    Join Date
    Nov 2004
    Posts
    131
    I think it's possible with some sort of external clock source. You must have a way to
    read the frequency of the step pulses generated by the software and set the external clock to the same frequency.

    I believe Mach3 uses the modbus protocol (wich I think DieGuy refers to) and this is
    perfect for such an interface. You can find lot's of info on www.modbus.org .
    I'm playing with the idea of intergrating this in a atmega16 or another atmel cpu.
    Maybe anonther cnczone opensource project ?
    ____________________________________
    Jeroen

  9. #9
    Join Date
    Mar 2005
    Posts
    523
    some newer laptops have no printer ports, and newer printer are usb.
    - i think the day is not far off when we will see the centronics printer port disapear altogether.
    - i know there are cables out there, with micro's in them that are usb on one end and the 50 pin centronics connector on the other.
    used for machines without printer ports.
    - i suspect within 12 months the printer port will disapear from newer machines, just like the cassette port did, years ago, the rs232 port will go the way of the dodo as well. ( where's the pc104 bus, and scsi port )
    - the theory is , why use 18-25 wires and a bulky 25 pin connector when you get away with 4, sometimes 6, also they call it a UNIVERSAL serial bus, and has a bit of smarts.
    usb mice (not rs232), usb keyboards, ... goodbye printer port (nuts)

  10. #10
    Join Date
    Mar 2003
    Posts
    35538
    Quote Originally Posted by smarbaga
    - the theory is , why use 18-25 wires and a bulky 25 pin connector when you get away with 4, sometimes 6, also they call it a UNIVERSAL serial bus, and has a bit of smarts.
    usb mice (not rs232), usb keyboards, ... goodbye printer port (nuts)
    Because it just won't work. But you're welcome to try. Sure the parallel port will go away. But by then, there will be low priced external pulse generators like the Gecko G100, or DeskCNC,which are already available that will give far better performance and are already usb or ethernet. I suspect that there will be cheaper and faster ones as time progresses, and noone will need the parallel port anyway.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

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

  11. #11
    Join Date
    May 2003
    Posts
    550
    Quote Originally Posted by smarbaga
    if the computers opperating system (be it - xp, me, 98 ,dos, linx) redirects the printer ports outputs or gets the printer ports inputs from somewhere somewhere else, it doesn't matter what software one is using.
    the user's software only for example sends and recieves data to and from the ports handlers, the opperating system sets up the 8255 control register and moves data to and from ram to the ppc programable periferal controller.. etc etc.
    i use acrobat distiller which (if i tell it to) makes all printer outputs into a pdf file.

    No, not entirely true. Step direction management of CNC machines required a timed synchronous datastream. Printers do not.

    Dos based turbocnc has direct unshared access to the hardware printer port and takes its timing from the PP hardware. Thats why , in part , it does that max speed check on startup. Its not the processor its testing and using for timing, it's the PP hardware.

    Windows applications do not have direct hardware access, it's through a windows driver and that's fine for time independant apps like printer drivers where there's handshaking or driver supported protocols ( usually time independant) going on. It doesn't work for any apps that require *application* synched time events. That's why Turbocnc doesn't run well in a windows box - its using windows managed PP instead of dedicated direct access.

    Mach2/3 entirely *replaces* the windows PP driver with a driver that allows the MACH2 app direct control of the port - and to take it's timing from.

    USB is a serial conection. just two wires do the work and the ends manage a serial link. entirely different to a parallel port operation. And theres no reasonable means to maintain the timing (interupt handler) across usb to parallel to whatever while using the available software.

    thats why Gecko have spent a year of so developing the USB or ethernet connected G100 which manages the timing off the PC.

  12. #12
    Join Date
    Dec 2003
    Posts
    24223
    There seems to be a general move by most of the automation manuf. in the direction of the Industrial Ethernet Protocol such as earlier mentiond ModBus and others like Galil and drives like AMC are using Canopen http://www.a-m-c.com/canopen/default.htm
    BTW for anyone developing a Pic setup using a Modbus setup there is this program that I have found usefull for testing.
    http://www.oceancontrols.com.au/modbus/modview.htm
    Al.
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  13. #13
    Join Date
    Mar 2003
    Posts
    35538
    Regarding Modbus, from what I've read on the Mach2 Yahoo group, it seems like I read that it's not fast enough for step pulses. Is this correct? Or is that Mach3's implementation that is'nt fast enough, because it's used for other things?
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

    Mach3 2010 Screenset
    http://www.thecncwoodworker.com/2010.html

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

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

  14. #14
    Join Date
    Oct 2004
    Posts
    742
    I think you have to purchase a license in able to buy the hardware chips used to build a USB type interface. At least that was true about a year ago when I checked into building some USB interface circuits.

    I was told without paying a license fee that I could not purchase the hardware IC's since the technology was licensed.

    Hope you have better luck. Also, hope things have changed since then.

  15. #15
    Join Date
    Mar 2005
    Posts
    523
    if you plan on selling a consumer related device a 1500 dollar address licene is required.
    if something is non consumer related there is no royalty fee driver charge
    usb interface chips:
    http://www.ftdichip.com/
    some usb and ethernet chips are glue blocks and take very little to no support logic.
    there is one of these ftdi chips in my pic programmer.
    hec , y not just forget about wires and go wireless, everything else is
    in 1989 i had a wireless connection sending data from the printer port, reliably at 720 kbps., that was on/off keying (OOK)
    this was developed into an overhead crane radio control. in a factory enviorment.
    --- another brain wave that was going to make me rich (nuts)

  16. #16
    Join Date
    Oct 2004
    Posts
    742
    in 1989 i had a wireless connection sending data from the printer port, reliably at 720 kbps., that was on/off keying (OOK)
    this was developed into an overhead crane radio control. in a factory enviorment.
    --------------

    Glad to hear that one is not required to purchase a license in order to experiment. Also, I have experience in troubleshooting and repairing of the crane radio controls.

    Jerry

  17. #17
    Join Date
    Mar 2005
    Posts
    523
    could this be jerry from dymo cranes, my good budy whom i haven't seen in eones

  18. #18
    Join Date
    Oct 2004
    Posts
    742
    Sorry. Not the same. Have never had any connection with Dymo Cranes.

    Jerry

  19. #19
    Join Date
    Nov 2004
    Posts
    131
    Quote Originally Posted by ger21
    Regarding Modbus, from what I've read on the Mach2 Yahoo group, it seems like I read that it's not fast enough for step pulses. Is this correct? Or is that Mach3's implementation that is'nt fast enough, because it's used for other things?
    I don't think that there are actualy pulses send through modbus but commands like "x axis 25 steps left" or in a more simple form "x-25". On the other end there would be a microcontroller wich translates those commands in pulse and direction.
    ____________________________________
    Jeroen

  20. #20
    Join Date
    Mar 2005
    Posts
    523
    i am thinking of something like this :
    i can write controller codes and layout pcb's but i am not good at the pc (computer) end of the software vb, c++, etc) . if anybody her is let me know .
    thanks
    Attached Files Attached Files

Page 1 of 2 12

Similar Threads

  1. Parallel Breakout Board
    By Sanghera in forum CNC Machine Related Electronics
    Replies: 31
    Last Post: 03-14-2012, 02:06 AM
  2. Breakout Board
    By ckirchen in forum News Announcements
    Replies: 11
    Last Post: 06-20-2005, 05:52 PM
  3. Port to Breakout to Drives?
    By LeeWay in forum CNC Machine Related Electronics
    Replies: 3
    Last Post: 05-11-2005, 02:38 PM
  4. How to use a DB25 serial breakout box
    By HuFlungDung in forum CNC Machine Related Electronics
    Replies: 11
    Last Post: 03-25-2005, 12:05 PM
  5. in lieu of a breakout board
    By fly_champ in forum CNC Machine Related Electronics
    Replies: 3
    Last Post: 03-02-2005, 04:42 AM

Posting Permissions

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