Phase-A pin on the hm2 encoder module?
- tnl.lambert
- Offline
- Junior Member
Less
More
- Posts: 37
- Thank you received: 1
13 May 2014 03:47 #46847
by tnl.lambert
Phase-A pin on the hm2 encoder module? was created by tnl.lambert
I've posted about encoder-related issues before, but this time it's about an upcoming fix. I want to use the M19 command, but I understand that it will not be available until 2.6 is released. I would like to stay with the stable version (2.5). I've seen topics that discuss the orient.comp module, but it seems that the correct motion pins do not exist in 2.5.
I was thinking about writing my own comp script (or ladder program) that would attach to the phase A pin in order to orient the spindle, but I seem to be using the hm2 encoder module, rather than the standard hal encoder module. I used Pncconf to create my original hal file - is there a way to make the hal encoder work with the 7i76? Do I need a different xml?
I would also be open to using the 'standard' spindle orientation method, if there is one. Thanks in advance.
I was thinking about writing my own comp script (or ladder program) that would attach to the phase A pin in order to orient the spindle, but I seem to be using the hm2 encoder module, rather than the standard hal encoder module. I used Pncconf to create my original hal file - is there a way to make the hal encoder work with the 7i76? Do I need a different xml?
I would also be open to using the 'standard' spindle orientation method, if there is one. Thanks in advance.
Please Log in or Create an account to join the conversation.
13 May 2014 20:22 #46875
by PCW
Replied by PCW on topic Phase-A pin on the hm2 encoder module?
You can read the state of the 'A' encoder input on the 7I76
if you take a look at the 7i76x2 firmware pinout (5i25_7i76x2.pin)
You can see that Quad-A is located on GPIO 16
GPIO16 is accessible in the HAL file as hm2_5i25.0.gpio.016.in
Not sure why you need the A pin though unless you have a 1 PPR encoder
if you take a look at the 7i76x2 firmware pinout (5i25_7i76x2.pin)
PIN GPIO
11 14 IOPort QCount 0 Quad-IDX (In)
12 15 IOPort QCount 0 Quad-B (In)
13 16 IOPort QCount 0 Quad-A (In)
You can see that Quad-A is located on GPIO 16
GPIO16 is accessible in the HAL file as hm2_5i25.0.gpio.016.in
Not sure why you need the A pin though unless you have a 1 PPR encoder
The following user(s) said Thank You: tnl.lambert
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.389 seconds