- Posts: 84
- Thank you received: 0
Hal show not showing parport correctly.
8 years 7 months ago #108082
by jensor
Hal show not showing parport correctly. was created by jensor
My setup is for quadrature output, where channel is composed of A and Anot, Channel B composed of B and Bnot.
When checking Hal configuration, Pins, Parport, Hal show does not agree with measured voltages on the selected port. This shows what I get as I advance step by step on the pins that drive the x axis.
I've attached the appropriate ini and Hal files of concern The crazy thing is it works as configured. If something breaks and I need to fix it, I need to understand what is going on.
When checking Hal configuration, Pins, Parport, Hal show does not agree with measured voltages on the selected port. This shows what I get as I advance step by step on the pins that drive the x axis.
Attachment not found
I've attached the appropriate ini and Hal files of concern The crazy thing is it works as configured. If something breaks and I need to fix it, I need to understand what is going on.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 3
8 years 7 months ago #108090
by tommylight
Replied by tommylight on topic Hal show not showing parport correctly.
Paralel port does not have differential inputs for encoders, so just A and B will do fine, you do not need to connect Anot and Bnot.
Please Log in to join the conversation.
8 years 7 months ago #108098
by jensor
Replied by jensor on topic Hal show not showing parport correctly.
My motor drivers do require differential input and if you look at my hal file you will see it is configured for the differential output.
Please Log in to join the conversation.
8 years 7 months ago #108103
by BigJohnT
Replied by BigJohnT on topic Hal show not showing parport correctly.
I don't see where you loaded a stepgen to generate the pulses...
JT
JT
Please Log in to join the conversation.
8 years 7 months ago #108158
by jensor
Replied by jensor on topic Hal show not showing parport correctly.
See the the attached 1BPstepper.hal and 2x-BoxPinOut.hal which are called in my ini.
Attachment not found
Attachment not found
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 3
8 years 7 months ago #108159
by tommylight
Replied by tommylight on topic Hal show not showing parport correctly.
Hmmmmm my bad, thought you had them as inputs.
net X_phaseA => parport.1.pin-07-out
net X_phaseA => parport.1.pin-08-out
setp parport.1.pin-08-out-invert TRUE <
try 1 instead of true
net X_phaseB => parport.1.pin-05-out
net X_phaseB => parport.1.pin-06-out
setp parport.1.pin-06-out-invert TRUE
Try the above, i know for sure it works on my configs.
net X_phaseA => parport.1.pin-07-out
net X_phaseA => parport.1.pin-08-out
setp parport.1.pin-08-out-invert TRUE <
try 1 instead of true
net X_phaseB => parport.1.pin-05-out
net X_phaseB => parport.1.pin-06-out
setp parport.1.pin-06-out-invert TRUE
Try the above, i know for sure it works on my configs.
Please Log in to join the conversation.
Time to create page: 0.119 seconds
