hm2 documentation - encoder

More
6 years 4 months ago #170668 by zz912
I bought an encoder so I could play with it and learn Linux CNC. I found that hostmot2 has a lot of PINs and PARAMETERS for the encoder.
Code:
Component Pins: Owner Type Dir Value Name 11 s32 OUT -114937 hm2_7i96.0.encoder.00.count 11 s32 OUT 0 hm2_7i96.0.encoder.00.count-latched 11 bit I/O FALSE hm2_7i96.0.encoder.00.index-enable 11 bit OUT FALSE hm2_7i96.0.encoder.00.input-a 11 bit OUT FALSE hm2_7i96.0.encoder.00.input-b 11 bit OUT TRUE hm2_7i96.0.encoder.00.input-index 11 bit IN FALSE hm2_7i96.0.encoder.00.latch-enable 11 bit IN FALSE hm2_7i96.0.encoder.00.latch-polarity 11 float OUT -114937 hm2_7i96.0.encoder.00.position 11 float OUT 0 hm2_7i96.0.encoder.00.position-latched 11 bit OUT FALSE hm2_7i96.0.encoder.00.quad-error 11 bit IN FALSE hm2_7i96.0.encoder.00.quad-error-enable 11 s32 OUT -113080 hm2_7i96.0.encoder.00.rawcounts 11 s32 OUT 1857 hm2_7i96.0.encoder.00.rawlatch 11 bit IN FALSE hm2_7i96.0.encoder.00.reset 11 float OUT 0 hm2_7i96.0.encoder.00.velocity 11 float OUT 0 hm2_7i96.0.encoder.00.velocity-rpm 11 u32 IN 0x017D7840 hm2_7i96.0.encoder.sample-frequency 11 s32 IN -1 hm2_7i96.0.encoder.timer-number Parameters: Owner Type Dir Value Name 11 bit RW FALSE hm2_7i96.0.encoder.00.counter-mode 11 bit RW TRUE hm2_7i96.0.encoder.00.filter 11 bit RW FALSE hm2_7i96.0.encoder.00.index-invert 11 bit RW FALSE hm2_7i96.0.encoder.00.index-mask 11 bit RW FALSE hm2_7i96.0.encoder.00.index-mask-invert 11 float RW 1 hm2_7i96.0.encoder.00.scale 11 float RW 0.5 hm2_7i96.0.encoder.00.vel-timeout

Unfortunately, I can only estimate the meaning of some PINs and PARAMETERS. Is there a manual or help that I can study? I am mechanical designer.

Please Log in to join the conversation.

More
6 years 4 months ago #170672 by PCW
Replied by PCW on topic hm2 documentation - encoder
The hostmot2 manual page describes the pins and parameters of all hostmot2 modules

man hostmot2

Please Log in to join the conversation.

More
6 years 4 months ago #170932 by zz912
Replied by zz912 on topic hm2 documentation - encoder
Thank you for answer. I have been looking for this information for a long time.

Please Log in to join the conversation.

More
6 years 4 months ago #171073 by zz912
Replied by zz912 on topic hm2 documentation - encoder
I did "sudo apt-get update / upgrade"
I have everything up to date.

I did "man hostmost2" and it gave me a manual
LinuxCNC Documentation 2008-05-13 HOSTMOT2 (9)

Do I have an old manual?

Not described here:
- count-latched
- input-index
- latch-enable
- latch polarity
- position-latched
- quad-error
- quad-error-enable
- rawlatch
- ........

Please Log in to join the conversation.

More
6 years 4 months ago #171079 by bbsr_5a
Replied by bbsr_5a on topic hm2 documentation - encoder
hi what version of linuxcnc did you install
Code:
(bit in) quad-error-enable When this pin is true quadrature error reporting is enabled. when false, existing quadrature errors are cleared and error reporting is disabled (bit out) quad-error This bit indicates that a quadrature sequence error has been detected. It can only be set if the corresponding quad-error- enable bit is true

Please Log in to join the conversation.

More
6 years 4 months ago #171096 by zz912
Replied by zz912 on topic hm2 documentation - encoder
LinuxCNC 2.8

Please Log in to join the conversation.

More
6 years 4 months ago #171251 by PCW
Replied by PCW on topic hm2 documentation - encoder
There are a bunch of addition to the manual but just in master.

I think most of the encoder latch pin stuff is undocumented
because it was intended for use with probing (so a common
probe input pin can latch all channels) and that's never
been finished on the driver/linuxcnc side

Please Log in to join the conversation.

More
6 years 4 months ago #171380 by zz912
Replied by zz912 on topic hm2 documentation - encoder
Thank you for the explanation.

Please Log in to join the conversation.

Time to create page: 0.173 seconds
Powered by Kunena Forum