Hal show not showing parport correctly.

More
8 years 7 months ago #108082 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.

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.

More
8 years 7 months ago #108090 by tommylight
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.

More
8 years 7 months ago #108098 by jensor
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.

More
8 years 7 months ago #108103 by BigJohnT
I don't see where you loaded a stepgen to generate the pulses...

JT

Please Log in to join the conversation.

More
8 years 7 months ago #108158 by jensor
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.

More
8 years 7 months ago #108159 by tommylight
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.

Please Log in to join the conversation.

Time to create page: 0.119 seconds
Powered by Kunena Forum