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???
3 Attachment(s)
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
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
3 Attachment(s)
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
2 Attachment(s)
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
Attachment 432724
2 Attachment(s)
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
Attachment 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
Attachment 432928
John
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
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?
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
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
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