My 7i76e Connection Sheet

More
5 years 11 months ago #188942 by PCW
Replied by PCW on topic My 7i76e Connection Sheet
Right a 5V MPG will not work unless you use the built-in MPG
encoder counters in the 7I76E (as per the example in the link above)

The software encoder is the encoder comp you loaded in your hal example
this takes A and B encoder signals from inputs and provides a count

The 7I76/7I76E have a built in encoder counter that does this function
and in addition uses input thresholds that are compatible with 5V MPG signals

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

More
5 years 11 months ago #188974 by fons
Replied by fons on topic My 7i76e Connection Sheet
as fare as i know i use the first off two mpg encoder counters where A and B are conected to pin 1 and 2 from tb5 . i use the mpg ( www.aliexpress.com/item/32705668787.html...02_,searchweb201603_ ) its a 5v A+B(also inverted not used) when i rotate the mpg i see the pulses 0-5-0 v above i post the hal-file

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

More
5 years 11 months ago #188985 by PCW
Replied by PCW on topic My 7i76e Connection Sheet
Those are the correct pins for the built-in MPG but your
connections are wrong for using the built in encoders.

Please take a look at the linked page.

At the minimum, these lines would be removed:

loadrt encoder num_chan=1
addf encoder.capture-position servo-thread
addf encoder.update-counters base-thread
setp encoder.0.x4-mode 0
net mpg-a encoder.0.phase-A <= hm2_7i76e.0.7i76.0.0.input-16
net mpg-b encoder.0.phase-B <= hm2_7i76e.0.7i76.0.0.input-17

and this line would be changed
from:
net encoder-counts <= encoder.0.counts
to:
net encoder-counts <= hm2_7i76e.0.7i76.0.0.enc0.count

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

More
5 years 11 months ago #189071 by fons
Replied by fons on topic My 7i76e Connection Sheet
when i remove and change the entry's i god an error
like ./custom.hal:9: Pin 'hm2_7i76e.0.7i76.0.0.enc0.count' does not exist

when i enter the the hal file like you mension above

loadrt mux4 count=1
addf mux4.0 servo-thread
loadrt or2 count=4
addf or2.3 servo-thread

setp axis.x.jog-vel-mode 0
net x-jog-counter <= hm2_7i76e.0.7i76.0.0.enc0.count
net x-jog-counter => axis.x.jog-counts
net mux-in1 or2.3.in0 <= hm2_7i76e.0.7i76.0.0.input-22 => mux4.0.sel0
net mux-in2 or2.3.in1 <= hm2_7i76e.0.7i76.0.0.input-21 => mux4.0.sel1
net x-jog-enable <= or2.3.out
net x-jog-enable => axis.x.jog-enable
setp mux4.0.in0 0.0
setp mux4.0.in1 1.0
setp mux4.0.in2 0.1
setp mux4.0.in3 0.01
net x-jog-scale mux4.0.out => axis.x.jog-scale

this error return

Debug file information:
Note: Using POSIX realtime
./custom.hal:9: Pin 'hm2_7i76e.0.7i76.0.0.enc0.count' does not exist
2537
and till now no axis wil follow the mpg

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

More
5 years 11 months ago #189075 by PCW
Replied by PCW on topic My 7i76e Connection Sheet
Did you look at the linked page?
You need to change the driver load line
The following user(s) said Thank You: Promo

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

More
5 years 11 months ago #189076 by fons
Replied by fons on topic My 7i76e Connection Sheet
i do i look at the linked page for the moment al is so confiusing
i have a system that "work" the axis move when i add this lines i got an error
witch line is it and to what do i need to change the line
one time i understand how this hal realy work it will be clear to me

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

Moderators: PCW, jmelson
Time to create page: 0.149 seconds
Powered by Kunena Forum