On Wed, 28 Dec 2016, Jan Bos wrote:

> Date: Wed, 28 Dec 2016 10:49:33 +0800
> From: Jan Bos <rappyrip...@gmail.com>
> Reply-To: "Enhanced Machine Controller (EMC)"
>     <emc-users@lists.sourceforge.net>
> To: "Enhanced Machine Controller (EMC)" <emc-users@lists.sourceforge.net>
> Subject: [Emc-users] read analog input 7I76
> 
> I am trying to read an analog input from a digital I/O pin on my 7I76.
> According to the manual this is possible albeit in 8 bit mode only which is
> fine for me. I have a spindle drive that provides a 0 5V output for spindle
> load and I want to read this and show this in my Glade sidepanel.
>
> The manual says:
> All field input pins are capable of reading the input voltage. These are
> not highly
> accurate or high resolution but can be useful for things like potentiometer
> inputs. Input resolution is 8 bits and input full scale value is 36.3V.
> Accuracy is +-5%. Software process data modes 1 and 2 allow reading the
> analog voltage on inputs 0 through 3, in addition to the 32 digital bit
> inputs.
>
> I already used my 0 through 3 so I need to use one of my free inputs left
> on the 7I76 and 8 bit resolution is fine for this.  I looked at PncConf and
> there is no option to select an analog input for a digital I/O. I run the
> card in mode 2 combined with a 6I25.
>
> How do I go about this and read an analog voltage from a digital I/O pin on
> my 7I76?

With standard 7I76 firmware you can only read analog data from inputs 0..3
so its easier to move some digital inputs around to free up 0..3


>
> Thanks,
>
> G21
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

Peter Wallace
Mesa Electronics

(\__/)
(='.'=) This is Bunny. Copy and paste bunny into your
(")_(") signature to help him gain world domination.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to