5i25-7i76 Software encoder for MPG on input pins

More
02 Apr 2015 23:22 #57442 by jbunch
I am trying to setup a software encoder using normal IO pins on the 7i76.
All my other pins are set to 24 volts input.

I am assuming that when I set a pin to DigitalX in PNCCONF it sets the pin to 5 volts.
When I try to load the software encoder based on WIKI it is unable to find base-thread.
It looks like PNCCONF does not load or use base-thread.
I am unable to find in PNCCONF where it will configure a software encoder based on I/O pins.
Everything I have looked at for this card assumes the builtin hardware encoder.
How do you setup a software encoder.

A Bit of advice would be great.

Jim

Please Log in or Create an account to join the conversation.

More
03 Apr 2015 05:31 #57457 by PCW
To use the MPG encoder on the 7I76 field I/O pins you first must set the 7I76 field I/O mode to mode 2.
This is done in the driver config line (sserial_port_0=2000xxxx sets the 7I76s field I/O mode to 2)
once this is done, you should have some new hal encoder pins available, for example:

hm2_5i25.0.7i76.0.0.enc0
hm2_5i25.0.7i76.0.0.enc1

or with later linuxcnc versions:

hm2_5i25.0.7i76.0.0.enc0.count
hm2_5i25.0.7i76.0.0.enc1.count

You do not need a software encoder component

Please Log in or Create an account to join the conversation.

More
03 Apr 2015 05:47 #57459 by cmorley
ugg when did the pin name change :(

if you really want software encoders and/ or need a base thread pncconf will not help you. you will need to modify the config yourself.


Chris M

Please Log in or Create an account to join the conversation.

More
03 Apr 2015 06:37 #57461 by PCW
the MPG pin names changed from 2.5 to 2.6 (and added features like simulated index)

Please Log in or Create an account to join the conversation.

More
03 Apr 2015 07:21 #57462 by jbunch
PCW,


How many pins does this (sserial_port_0=2000xxxx sets the 7I76s field I/O mode to 2) change. Were are the pins located in the I/O.
Do you have to define two pins, one for A and one for B.


Thanks
Jim

Please Log in or Create an account to join the conversation.

More
03 Apr 2015 07:39 - 03 Apr 2015 07:51 #57464 by PCW
In mode 2:
Field inputs	function
16    		ENC0-A
17    		ENC0-B
18    		ENC1-A
19    		ENC1-B

Note that field inputs 16,17,18,19 are still useable as 24 volt inputs
even in mode2 so if you only have one MPG you don't lose input pins
18 and 19. The threshold as inputs bits is still ~1/2 VField even though the
threshold as MPG A,B inputs is fixed at 2.5V.
Last edit: 03 Apr 2015 07:51 by PCW.
The following user(s) said Thank You: jbunch

Please Log in or Create an account to join the conversation.

More
03 Apr 2015 07:45 #57466 by jbunch
PCW,

Thank you this makes sense now. :)


Jim

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.100 seconds
Powered by Kunena Forum