Encoder improvements for THCAD
- tommylight
- Away
- Moderator
Less
More
- Posts: 19198
- Thank you received: 6436
24 Jun 2020 21:31 #172633
by tommylight
Replied by tommylight on topic Encoder improvements for THCAD
Attachments:
Please Log in or Create an account to join the conversation.
24 Jun 2020 21:44 - 24 Jun 2020 22:05 #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
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
Last edit: 24 Jun 2020 22:05 by PCW. Reason: use non muxed config
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19198
- Thank you received: 6436
24 Jun 2020 22:16 #172640
by tommylight
Replied by tommylight on topic Encoder improvements for THCAD
Attachments:
Please Log in or Create an account to join the conversation.
24 Jun 2020 23:35 #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
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
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
25 Jun 2020 01:59 #172665
by PCW
Replied by PCW on topic Encoder improvements for THCAD
Fixed in master
The following user(s) said Thank You: tommylight, rodw
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19198
- Thank you received: 6436
25 Jun 2020 12:04 #172712
by tommylight
Replied by tommylight on topic Encoder improvements for THCAD
Thank you, will have another go at it later and report back.
Please Log in or Create an account to join the conversation.
Moderators: snowgoer540
Time to create page: 0.145 seconds