Encoder improvements for THCAD

More
6 years 4 months ago #172633 by tommylight
There is also a lot of other encoder related pins missing as can be seen on the attached picture.

Attachment not found

Please Log in to join the conversation.

More
6 years 4 months ago #172635 by PCW
Replied by PCW on topic Encoder improvements for THCAD
Here what I get:
pins:
halcmd: show pin hm2_7i92.0.encoder.00*
Component Pins:
Owner Type Dir Value Name
26 s32 OUT 0 hm2_7i92.0.encoder.00.count
26 s32 OUT 0 hm2_7i92.0.encoder.00.count-latched
26 bit I/O FALSE hm2_7i92.0.encoder.00.index-enable <=> spindle-index-enable
26 bit OUT TRUE hm2_7i92.0.encoder.00.input-a
26 bit OUT TRUE hm2_7i92.0.encoder.00.input-b
26 bit OUT FALSE hm2_7i92.0.encoder.00.input-index
26 bit IN FALSE hm2_7i92.0.encoder.00.latch-enable
26 bit IN FALSE hm2_7i92.0.encoder.00.latch-polarity
26 float OUT 0 hm2_7i92.0.encoder.00.position
26 float OUT 0 hm2_7i92.0.encoder.00.position-latched
26 bit OUT FALSE hm2_7i92.0.encoder.00.quad-error
26 bit IN FALSE hm2_7i92.0.encoder.00.quad-error-enable
26 s32 OUT 0 hm2_7i92.0.encoder.00.rawcounts
26 s32 OUT 0 hm2_7i92.0.encoder.00.rawlatch
26 bit IN FALSE hm2_7i92.0.encoder.00.reset
26 float OUT 0 hm2_7i92.0.encoder.00.velocity
26 float OUT 0 hm2_7i92.0.encoder.00.velocity-rpm

26 bit IN TRUE hm2_7i92.0.encoder.hires-timestamp
26 u32 IN 0x007F2815 hm2_7i92.0.encoder.sample-frequency
26 s32 IN -1 hm2_7i92.0.encoder.timer-number



Parameters:
Owner Type Dir Value Name
26 bit RW FALSE hm2_7i92.0.encoder.00.counter-mode
26 bit RW TRUE hm2_7i92.0.encoder.00.filter
26 bit RW FALSE hm2_7i92.0.encoder.00.index-invert
26 bit RW FALSE hm2_7i92.0.encoder.00.index-mask
26 bit RW FALSE hm2_7i92.0.encoder.00.index-mask-invert
26 float RW 1 hm2_7i92.0.encoder.00.scale
26 float RW 0.5 hm2_7i92.0.encoder.00.vel-timeout

So your parameters look correct

This is current master on a 64 bit X86 OS

Please Log in to join the conversation.

More
6 years 4 months ago #172640 by tommylight
Here is what i get while LinuxCNC is running, with and without hires enabled, same in both cases:

Attachment not found


But LinuxCNC shows more pins with it disabled:

Attachment not found

Please Log in to join the conversation.

More
6 years 4 months ago #172649 by PCW
Replied by PCW on topic Encoder improvements for THCAD
OK I can duplicate it here
I was testing by setting the pin dynamically which works
but if you setp the hires pin true in the hal file it fails

(you can fix it by setp-ing the pin low and then high)

Will push a fix sometime today or tomorrow

Please Log in to join the conversation.

More
6 years 4 months ago #172665 by PCW
Replied by PCW on topic Encoder improvements for THCAD
Fixed in master

Please Log in to join the conversation.

More
6 years 4 months ago #172712 by tommylight
Thank you, will have another go at it later and report back.

Please Log in to join the conversation.

Time to create page: 0.048 seconds
Powered by Kunena Forum