Hal show not showing parport correctly.

More
29 Mar 2018 20:03 #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.

This browser does not support PDFs. Please download the PDF to view it: Download PDF


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.
Attachments:

Please Log in or Create an account to join the conversation.

More
30 Mar 2018 02:20 #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 or Create an account to join the conversation.

More
30 Mar 2018 10:35 #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 or Create an account to join the conversation.

More
30 Mar 2018 12:03 #108103 by BigJohnT
I don't see where you loaded a stepgen to generate the pulses...

JT

Please Log in or Create an account to join the conversation.

More
31 Mar 2018 00:52 #108158 by jensor
See the the attached 1BPstepper.hal and 2x-BoxPinOut.hal which are called in my ini.

File Attachment:

File Name: 1BPstepper.hal
File Size:2 KB

File Attachment:

File Name: 2X-BoxPinO...3-30.hal
File Size:5 KB
Attachments:

Please Log in or Create an account to join the conversation.

More
31 Mar 2018 01:48 #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 or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum