I am getting these unexpected results from the LPT port. I hope you will bear with me while I give a full explanation.
I use the circuit shown below to verify that I get the correct TTL signals from my LPT port pins. When I use a little software called LPTinterface.exe I get logical results, ie when I make say pin 2 high I get the LED in the circuit go off and when I make pin 2 low I get the LED lit up. The same happens on other pins up to 7 that I have tried. I have measured the current and the LPT can apparently supply as much as 35mA to the optocoupler at about 3.5Volts. I am in fact using a 4 pin opto instead of the 6 pin shown in the sketch. But that makes no difference as far as my problem is concerned.
The problem starts when I use the Mach3 software. All configurations are done correctly but when I try to jog in the x or y or z direction using the arrow keys, the LED toggles the first time I push the appropriate arrow key but the LED stays in the same condition indefinitely regardles of which arrow key I push next. I expect the LED to toggle when other arrow keys are pressed but this does not happen. Can anyone tell me what is happening and how to overcome this problem. I need to add that when the pins are connected to a step motor driver it won't drive the motors unless I use a buffer circuit as an interface. Is there any reason why the LPT should be able to drive the below circiut using the LPTinterface.exe but not so when using Mach3?
I will be grateful for any help.
Cheers Bluebirdiran
I use the circuit shown below to verify that I get the correct TTL signals from my LPT port pins. When I use a little software called LPTinterface.exe I get logical results, ie when I make say pin 2 high I get the LED in the circuit go off and when I make pin 2 low I get the LED lit up. The same happens on other pins up to 7 that I have tried. I have measured the current and the LPT can apparently supply as much as 35mA to the optocoupler at about 3.5Volts. I am in fact using a 4 pin opto instead of the 6 pin shown in the sketch. But that makes no difference as far as my problem is concerned.
The problem starts when I use the Mach3 software. All configurations are done correctly but when I try to jog in the x or y or z direction using the arrow keys, the LED toggles the first time I push the appropriate arrow key but the LED stays in the same condition indefinitely regardles of which arrow key I push next. I expect the LED to toggle when other arrow keys are pressed but this does not happen. Can anyone tell me what is happening and how to overcome this problem. I need to add that when the pins are connected to a step motor driver it won't drive the motors unless I use a buffer circuit as an interface. Is there any reason why the LPT should be able to drive the below circiut using the LPTinterface.exe but not so when using Mach3?
I will be grateful for any help.
Cheers Bluebirdiran
Attachments
-
26.4 KB Views: 82