Hal show not showing parport correctly.
29 Mar 2018 20:03 #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.
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 or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19219
- Thank you received: 6440
30 Mar 2018 02:20 #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 or Create an account to join the conversation.
30 Mar 2018 10:35 #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 or Create an account to join the conversation.
30 Mar 2018 12:03 #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 or Create an account to join the conversation.
31 Mar 2018 00:52 #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.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19219
- Thank you received: 6440
31 Mar 2018 01:48 #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 or Create an account to join the conversation.
Time to create page: 0.072 seconds