584,812 active members*
5,228 visitors online*
Register for free
Login
IndustryArena Forum > WoodWorking Machines > Commercial CNC Wood Routers > Chinese Machines > 3040-T ROUTER MAKING SPINDLE TURN ON /OFF WITH PROGRAM
Page 3 of 7 12345
Results 41 to 60 of 128
  1. #41
    Join Date
    Nov 2007
    Posts
    361

    Re: 3040-T ROUTER MAKING SPINDLE TURN ON /OFF WITH PROGRAM

    So looking at what came with the mpg and what is on the link posted the difference is the pin numbers I just went down starting at 1 with 5v-red
    2 with 0v-black...and so on ...so the pin numbers are not right does this mean i have to rearrange the wires to what the pin numbers are on the website???

  2. #42
    Join Date
    Mar 2007
    Posts
    2083

    Re: 3040-T ROUTER MAKING SPINDLE TURN ON /OFF WITH PROGRAM

    It depends

    Are you going to connect the MPG directly to the printerport or use an interface like the C22 board ?


    using a direct connection to the 2nd printerport

    A 5V power supply needs connecting to the red +5V wire and encoder 0V / printerport common / GND


    the incremental encoder A&B outputs and axis select and feed rate switches connections can go to any printerport input
    as long as you assign the correct function in pins & ports

    on the 2nd printerport
    pins 2 to 9 are inputs as well as pins 10 to 13 & 15 giving you 13 inputs



    from what I can see

    this Chinese digram
    Attachment 432680


    agrees with this
    Attachment 432682

    the green/black LED + wire can go to the +5V
    and white /black LED - wire can go to the -5V / GND

    you could use a USB cable to taket the 5V supply from the PC
    +5V going to the red wire
    -5V going to the black ground wire and the switch commons plus printerport Ground (pins 18 to 25)

    ( see table on page 6 of the C22 manual )
    https://www.cnc4pc.com/pub/media/pro...ser_manual.pdf

    Attachment 432684


    John


    PS

    just spotted on page 5 of the C22 manual a ref to a brain file

    https://www.cnc4pc.com/pub/media/pro...ser_manual.pdf

  3. #43
    Join Date
    Nov 2007
    Posts
    361
    Quote Originally Posted by john-100 View Post
    It depends

    Are you going to connect the MPG directly to the printerport or use an interface like the C22 board ?


    using a direct connection to the 2nd printerport

    A 5V power supply needs connecting to the red +5V wire and encoder 0V / printerport common / GND


    the incremental encoder A&B outputs and axis select and feed rate switches connections can go to any printerport input
    as long as you assign the correct function in pins & ports

    on the 2nd printerport
    pins 2 to 9 are inputs as well as pins 10 to 13 & 15 giving you 13 inputs



    from what I can see

    this Chinese digram
    Attachment 432680


    agrees with this
    Attachment 432682

    the green/black LED + wire can go to the +5V
    and white /black LED - wire can go to the -5V / GND

    you could use a USB cable to taket the 5V supply from the PC
    +5V going to the red wire
    -5V going to the black ground wire and the switch commons plus printerport Ground (pins 18 to 25)

    ( see table on page 6 of the C22 manual )
    https://www.cnc4pc.com/pub/media/pro...ser_manual.pdf

    Attachment 432684


    John


    PS

    just spotted on page 5 of the C22 manual a ref to a brain file

    https://www.cnc4pc.com/pub/media/pro...ser_manual.pdf
    Does item number = pin number on a db25 on the 2nd picture

  4. #44
    Join Date
    Mar 2007
    Posts
    2083

    Re: 3040-T ROUTER MAKING SPINDLE TURN ON /OFF WITH PROGRAM

    "Does item number = pin number on a db25 on the 2nd picture"

    that depends on if your using the C22 board



    if you look at the table in the 3rd picture

    the pins on the pendant connector connect to different pins on the PC connector


    for example

    on the pendant pins 1 & 2 go to a 5V supply

    on the PC connector pin 1 is a PC printerport output controlling the LED
    and pin 2 is the input from the incremental encoder channel A


    Wiring the MPG directly to a DB25 connector to connect to the PC printerport

    you will need to bring the MPG red & black wires out of the DB25 to a 2 pole connector to go to a 5V supply -
    which could be a USB cable to take power from the PC



    John

  5. #45
    Join Date
    Nov 2007
    Posts
    361
    Quote Originally Posted by john-100 View Post
    "Does item number = pin number on a db25 on the 2nd picture"

    that depends on if your using the C22 board



    if you look at the table in the 3rd picture

    the pins on the pendant connector connect to different pins on the PC connector


    for example

    on the pendant pins 1 & 2 go to a 5V supply

    on the PC connector pin 1 is a PC printerport output controlling the LED
    and pin 2 is the input from the incremental encoder channel A


    Wiring the MPG directly to a DB25 connector to connect to the PC printerport

    you will need to bring the MPG red & black wires out of the DB25 to a 2 pole connector to go to a 5V supply -
    which could be a USB cable to take power from the PC



    John
    Ok I am using a 2nd printer port added to my pc . So I would then need to reroute my pin 1 and 2 ? Damn it so how does that work john ??

  6. #46
    Join Date
    Nov 2007
    Posts
    361
    Quote Originally Posted by Michael82 View Post
    Ok I am using a 2nd printer port added to my pc . So I would then need to reroute my pin 1 and 2 ? Damn it so how does that work john ??
    Sorry if I seem helpless I have never done anything like this before I am use to plugging the plug in the socket and turning the machine on thanks again in advance for explaining all this. Where would I get the 5v from on the desktop ?? USB... but how I need a breakout board for this too ??

  7. #47
    Join Date
    Mar 2007
    Posts
    2083

    Re: 3040-T ROUTER MAKING SPINDLE TURN ON /OFF WITH PROGRAM

    my initial thoughts on how the C22 board works resulted in this
    Attachment 432714
    note - I have not found any circuit details on line


    adapting the diagram to hard wire the MPG

    resulted in this
    Attachment 432716

    John

    PS

    second version of hard wired MPG with LED connected to +5V
    so printerport pin 1 grounds the LED cathode (negative terminal)

    the printerport pin1 may not be able to source very much current to light the LED indicator

    Attachment 432718

  8. #48
    Join Date
    Nov 2007
    Posts
    361
    Quote Originally Posted by john-100 View Post
    my initial thoughts on how the C22 board works resulted in this
    Attachment 432714
    note - I have not found any circuit details on line


    adapting the diagram to hard wire the MPG

    resulted in this
    Attachment 432716

    John

    PS

    second version of hard wired MPG with LED connected to +5V
    so printerport pin 1 grounds the LED cathode (negative terminal)

    the printerport pin1 may not be able to source very much current to light the LED indicator

    Attachment 432718
    So would it be better to buy a c22 board

  9. #49
    Join Date
    Mar 2007
    Posts
    2083

    Re: 3040-T ROUTER MAKING SPINDLE TURN ON /OFF WITH PROGRAM

    the C22 board has the advantage of having the 2 buffer IC's
    and terminals making it easier to connect the 5V supply to the MPG

    John

    PS

    if you take 5V from a USB socket

    Attachment 432722

    Click image for larger version. 

Name:	USB pinout.jpg 
Views:	0 
Size:	49.0 KB 
ID:	432724

  10. #50
    Join Date
    Nov 2007
    Posts
    361
    Quote Originally Posted by john-100 View Post
    the C22 board has the advantage of having the 2 buffer IC's
    and terminals making it easier to connect the 5V supply to the MPG

    John

    PS

    if you take 5V from a USB socket

    Attachment 432722

    Click image for larger version. 

Name:	USB pinout.jpg 
Views:	0 
Size:	49.0 KB 
ID:	432724
    John after doing as much research I can stand I have not found anyone that has wired their mpg directly to the printer port without a c22 board . I dont have a c22 board so I have to try and do this without it ....or buy one .... so could I use an outside 5v power source for the 5v and the 0v and use the rest of the pins as shown in the pinout ??

  11. #51
    Join Date
    Nov 2007
    Posts
    361
    Quote Originally Posted by Michael82 View Post
    John after doing as much research I can stand I have not found anyone that has wired their mpg directly to the printer port without a c22 board . I dont have a c22 board so I have to try and do this without it ....or buy one .... so could I use an outside 5v power source for the 5v and the 0v and use the rest of the pins as shown in the pinout ??
    Hey john what about getting the 5 volts from the PC's power supplys disk driver cable would that work??

  12. #52
    Join Date
    Mar 2007
    Posts
    2083

    Re: 3040-T ROUTER MAKING SPINDLE TURN ON /OFF WITH PROGRAM

    a USB cable as in post 49 is an easy solution that enables you to just plug into an existing external socket

    25pin D-type plug and USB plug to MPG cable

    if the USB cable joint is hidden inside the D-type shell
    the USB cable can be held under the clamp with the MPG cable
    ( use heatshrink sleeving to insulate the joint )
    the LED indicator can be wired to the 5V supply


    Click image for larger version. 

Name:	mpg wiring to d type & usb.jpg 
Views:	0 
Size:	86.2 KB 
ID:	432930


    yes you can connect the MPG to a PC power supply black 0V wire and red +5V wire ( not the yellow + 12V wire !!!! )

    you can either use a 4 pin molex connector or 15 pin SATA connector as used on internal disk drives and then thread the cable through the PC case

    Click image for larger version. 

Name:	MPG   pulse generator + 4 pin molex.jpg 
Views:	0 
Size:	74.3 KB 
ID:	432928


    John

  13. #53
    Join Date
    Nov 2007
    Posts
    361
    Quote Originally Posted by john-100 View Post
    a USB cable as in post 49 is an easy solution that enables you to just plug into an existing external socket

    25pin D-type plug and USB plug to MPG cable

    if the USB cable joint is hidden inside the D-type shell
    the USB cable can be held under the clamp with the MPG cable
    ( use heatshrink sleeving to insulate the joint )
    the LED indicator can be wired to the 5V supply


    Click image for larger version. 

Name:	mpg wiring to d type & usb.jpg 
Views:	0 
Size:	86.2 KB 
ID:	432930


    yes you can connect the MPG to a PC power supply black 0V wire and red +5V wire ( not the yellow + 12V wire !!!! )

    you can either use a 4 pin molex connector or 15 pin SATA connector as used on internal disk drives and then thread the cable through the PC case

    Click image for larger version. 

Name:	MPG   pulse generator + 4 pin molex.jpg 
Views:	0 
Size:	74.3 KB 
ID:	432928


    John
    I like that setup you have posted rather than the 1 I suggested and I have that exact db25 connection too!

  14. #54
    Join Date
    Nov 2007
    Posts
    361
    Quote Originally Posted by Michael82 View Post
    I like that setup you have posted rather than the 1 I suggested and I have that exact db25 connection too!
    After trying every combo possible I still can not get this dang thing to work so I ordered a c22 board from cnc4pc it should be here in a few days ..if anyone out there has successfully wired there manual pulse generator direct to the LPT2 without using a c22 board please let me know how you did it

  15. #55
    Join Date
    Mar 2007
    Posts
    2083

    Re: 3040-T ROUTER MAKING SPINDLE TURN ON /OFF WITH PROGRAM

    I would disable the onboard printerport and set up the printerport adaptor as the "first" port at 278 hex
    then set it up in ports and pins with the setting you used for the onboard port

    with the correct card address you should be able to control the stepper motors as before
    proving the printer port adaptor is working

    if the adaptor works we need to look closer at how you set up the adaptor for the manual pulse generator

    if I remember correctly the onboard printer port is at 378 hex and the adaptor printer port is at 278 hex

    John

  16. #56
    Join Date
    Nov 2007
    Posts
    361

    Re: 3040-T ROUTER MAKING SPINDLE TURN ON /OFF WITH PROGRAM

    john , the 2nd pci printer port has the address of e000 so that is what I put in the 2nd port no mach 3 and I checked the box use pin2-9 as well so you are saying disable the 378 #1 port and make that 2nd port ( E000) the only port enabled?

  17. #57
    Join Date
    Mar 2007
    Posts
    2083

    Re: 3040-T ROUTER MAKING SPINDLE TURN ON /OFF WITH PROGRAM

    yes

    With the onboard port disabled
    and mach3's only port set to E000 (if thats what the motherboard & windows 7 sees it as )

    You should be able to set the port up to replace the onboard port with the same pins and ports setting copied from the onboard port

    If the adaptor card is working
    you should be able to jog the stepper motors as before



    depending on the test result
    you will know if the problem is with the printerport adaptor or the MPG

    in Mach3 the first port gives you 5 inputs and 12 outputs


    The second port gives you the option of setting pins 2 to 9 either as 8 inputs or 8 outputs

    To use your MPG , pins 2 to 9 needs to be set as inputs
    giving you 4 outputs and 13 inputs

    As the axis and step select switches grounds the selected input
    the inputs need to be set to ACTIVE LOW

    set to active high will result in mach3 seeing too many active inputs - not sure how mach3 will respond

    John

  18. #58
    Join Date
    Nov 2007
    Posts
    361

    Re: 3040-T ROUTER MAKING SPINDLE TURN ON /OFF WITH PROGRAM

    ok I will try that later this afternoon and I will post the findings

  19. #59
    Join Date
    Nov 2007
    Posts
    361
    Quote Originally Posted by john-100 View Post
    yes

    With the onboard port disabled
    and mach3's only port set to E000 (if thats what the motherboard & windows 7 sees it as )

    You should be able to set the port up to replace the onboard port with the same pins and ports setting copied from the onboard port

    If the adaptor card is working
    you should be able to jog the stepper motors as before



    depending on the test result
    you will know if the problem is with the printerport adaptor or the MPG

    in Mach3 the first port gives you 5 inputs and 12 outputs


    The second port gives you the option of setting pins 2 to 9 either as 8 inputs or 8 outputs

    To use your MPG , pins 2 to 9 needs to be set as inputs
    giving you 4 outputs and 13 inputs

    As the axis and step select switches grounds the selected input
    the inputs need to be set to ACTIVE LOW

    set to active high will result in mach3 seeing too many active inputs - not sure how mach3 will respond

    John
    John the weirdest thing happened I disabled port 1 and used the 2nd port like it was the only port nothing happened but when I went back to the way it was now the selector switches work in the port 1 pins current state on the bottom row but still no movement from the wheel . So now I know the selector switches work so where should I go from here
    Ps
    Port 1 is back to the main port and the 2nd port is for the mpg

  20. #60
    Join Date
    Mar 2007
    Posts
    2083

    Re: 3040-T ROUTER MAKING SPINDLE TURN ON /OFF WITH PROGRAM

    I've had odd results with windows either not seeing new hardware or loading drivers correctly first time the PC boots



    Do you have a multimeter to check the 5V supply to the rotory encoder ?

    once you confirm the 5V supply is correct


    measure the voltage between the common 0V and A output

    depending on its position when stopped you will either have 0V or +5V


    while your rotating the knob the output will switch between 0 & 5V (50% of the time at 0V and 50% at 5V)


    ( see the Quadrature outputs here :-

    https://en.wikipedia.org/wiki/Incremental_encoder )



    your meter will read the average 2.5V

    you should see the same measuring between 0V and the B output

    John

Page 3 of 7 12345

Similar Threads

  1. 8 spindle rotary Cnc router making craket bat
    By omnisales6 in forum Videos
    Replies: 0
    Last Post: 06-29-2016, 04:02 AM
  2. Replies: 3
    Last Post: 12-20-2012, 07:09 PM
  3. Replies: 9
    Last Post: 07-05-2012, 08:57 AM
  4. Router Won't Turn On At Beginning of Program
    By notselrach in forum DNC Problems and Solutions
    Replies: 1
    Last Post: 02-06-2009, 10:08 PM
  5. G-Code to turn on and off router, non-spindle
    By Sam A in forum G-Code Programing
    Replies: 6
    Last Post: 10-25-2008, 02:02 AM

Tags for this Thread

Posting Permissions

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