Pendant with 7i73: question with analog inputs
01 Sep 2024 21:51 #309171
by Ho Er
Pendant with 7i73: question with analog inputs was created by Ho Er
Hi,
i've built a custom pendant using the 7i73 (connected to my main 7i96s), most stuff works, but I cannot get more than 4 analog inputs working.
Here is how the pendant looks (3D-Joystick for quickly moving the axis and an encoder for exact positioning - modeled after the Estlcam pendant):
Here is how it looks inside - some classic wiring (after a bit twiggling, the 7i73 fits nicely into the free space of the Bopla enclosure):
I have almost everything running in LinuxCNC, but I cannot find any way to use the I4-I7 inputs as analog inputs (I0-I3 work as analog inputs). I actually only need one additional analog input (I4) and asked the MESA support for help - they answered that "That would take a fair amount of changes" and suggested using another card (which would not fit into the enclosure anymore).I checked their website again and they advertise the card as having 8 analog inputs - after digging through the manual however there is some explanation: "Inputs 0 through 7 can read analog signal values however only inputs 0 through 3 are supported for analog input by available interface modes". So even though the hardware supports 8 inputs, the software does not - pretty misleading.
The card is set to NO KEYPAD MODE / NO LCD MODE (W5=DOWN, W6=DOWN, W7=DOWN), I am using inputs IN0-IN3 for analog in, IN5-IN7 for digital, IN8/9 for ENC0 and IN10-15 for digital inputs and would like to use IN4 as analog input.
Here is a screenshot of the hal:
So my question is: has anybody been able to get more than 4 analog inputs working with the 7I73 and how?
Thanks!
i've built a custom pendant using the 7i73 (connected to my main 7i96s), most stuff works, but I cannot get more than 4 analog inputs working.
Here is how the pendant looks (3D-Joystick for quickly moving the axis and an encoder for exact positioning - modeled after the Estlcam pendant):
Here is how it looks inside - some classic wiring (after a bit twiggling, the 7i73 fits nicely into the free space of the Bopla enclosure):
I have almost everything running in LinuxCNC, but I cannot find any way to use the I4-I7 inputs as analog inputs (I0-I3 work as analog inputs). I actually only need one additional analog input (I4) and asked the MESA support for help - they answered that "That would take a fair amount of changes" and suggested using another card (which would not fit into the enclosure anymore).I checked their website again and they advertise the card as having 8 analog inputs - after digging through the manual however there is some explanation: "Inputs 0 through 7 can read analog signal values however only inputs 0 through 3 are supported for analog input by available interface modes". So even though the hardware supports 8 inputs, the software does not - pretty misleading.
The card is set to NO KEYPAD MODE / NO LCD MODE (W5=DOWN, W6=DOWN, W7=DOWN), I am using inputs IN0-IN3 for analog in, IN5-IN7 for digital, IN8/9 for ENC0 and IN10-15 for digital inputs and would like to use IN4 as analog input.
Here is a screenshot of the hal:
So my question is: has anybody been able to get more than 4 analog inputs working with the 7I73 and how?
Thanks!
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
02 Sep 2024 01:09 #309177
by COFHAL
Replied by COFHAL on topic Pendant with 7i73: question with analog inputs
In the smart serial configuration in the hal file, you have to enable mode 1, I think that is what enables those inputs as analog, not only the configuration of the jumpers is needed. Right now I don't have my configuration at hand, but tomorrow I can share it with you.
Please Log in or Create an account to join the conversation.
02 Sep 2024 04:46 - 02 Sep 2024 04:48 #309187
by spumco
Replied by spumco on topic Pendant with 7i73: question with analog inputs
Something like:
loadrt [HM2](DRIVER) board_ip=[HM2](IPADDRESS) config="sserial_port_0=01000000"
After the "=" sign, the first digit is the host board (i.e. 7i96s, 7i76e, etc.), and the 2nd digit is the sserial board connected to the host.
=01000000 - host board mode (7i76e, 7i96S)
=01000000 - sserial daughter board mode (7i73)
Make sure to figure out (i.e not overwite) what your existing host board mode needs to be.
loadrt [HM2](DRIVER) board_ip=[HM2](IPADDRESS) config="sserial_port_0=01000000"
After the "=" sign, the first digit is the host board (i.e. 7i96s, 7i76e, etc.), and the 2nd digit is the sserial board connected to the host.
=01000000 - host board mode (7i76e, 7i96S)
=01000000 - sserial daughter board mode (7i73)
Make sure to figure out (i.e not overwite) what your existing host board mode needs to be.
Last edit: 02 Sep 2024 04:48 by spumco.
Please Log in or Create an account to join the conversation.
02 Sep 2024 05:13 #309188
by cornholio
Replied by cornholio on topic Pendant with 7i73: question with analog inputs
Yeah that's not the issue. From his screen shot of hal show the OP has everything setup correctly. Communication appears to be good.
The issue is that the OP wants to use more than 4 analogue inputs, but the 7i73 is only reporting 4. The question is how to access the other analogue inputs.
Unfortunately reading the 7i73 manual, it appears only the first four of eight are available.
Would it be possible to ditch the analogue joystick, thereby freeing up the 4 inputs and using pots to set up the jog speed ? Not quite as convenient.
Another option could be an SPI A to D and bit bang the data through.
This is an example using the parallel port, but should be adaptable.
www.wallacecompany.com/machine_shop/EMC2/serial_adc/
The issue is that the OP wants to use more than 4 analogue inputs, but the 7i73 is only reporting 4. The question is how to access the other analogue inputs.
Unfortunately reading the 7i73 manual, it appears only the first four of eight are available.
Would it be possible to ditch the analogue joystick, thereby freeing up the 4 inputs and using pots to set up the jog speed ? Not quite as convenient.
Another option could be an SPI A to D and bit bang the data through.
This is an example using the parallel port, but should be adaptable.
www.wallacecompany.com/machine_shop/EMC2/serial_adc/
Please Log in or Create an account to join the conversation.
02 Sep 2024 05:35 #309190
by Ho Er
Replied by Ho Er on topic Pendant with 7i73: question with analog inputs
Exactly - the sserial is working correctly, but I can only access analog I0-I3.
As the card was advertised as having 8 inputs, I wonder how they can be acessed - or are the specs on the Mesa webpage simply wrong?
Thanks for the A/D hint - this should work as a workaround, but making the existing hardware work should only be a software thing...?
As the card was advertised as having 8 inputs, I wonder how they can be acessed - or are the specs on the Mesa webpage simply wrong?
Thanks for the A/D hint - this should work as a workaround, but making the existing hardware work should only be a software thing...?
Please Log in or Create an account to join the conversation.
02 Sep 2024 05:44 #309191
by cornholio
Replied by cornholio on topic Pendant with 7i73: question with analog inputs
Not being entirely familiar with the chip used it's hard to say. It cold be a case of having to give up one feature for an other, can't really say.
Please Log in or Create an account to join the conversation.
Time to create page: 0.111 seconds