1 of 3 to output // 7i73 MPG not functioning

More
9 years 1 month ago #98971 by rodw
Replied by rodw on topic 1 of 3 to output

tecno wrote:
If I understand Peters message there is no need to have software MPG thus the code from PNCCONF should work.


I think the encoder side is OK but the example also shows you how to set up the axis select with mux4 and by the sound of it you have totally chosen to ignore my suggestion.

If you are not using a binary coded switch as the example expects, you are on your own to work out how to map switch positions to an axis select

Please Log in to join the conversation.

More
9 years 1 month ago #98975 by tecno
Replied by tecno on topic 1 of 3 to output
Sorry not so at all Rod, PCW jumped in and had another opinion, awaiting his reply how he wants to do it as he should know how to.

My hal is a mess from PNCCONF and what is remarkable there is no 7i73 hal MPG examples anywhere.
Was recommended to buy 7i73 for my setup but now I am like fish on dry land.

Please Log in to join the conversation.

More
9 years 1 month ago #98983 by tecno
Replied by tecno on topic 1 of 3 to output
As I get no reply how to do it the 7i73 PNCCONF way I did it the linuxcnc.org/docs/html/examples/mpg.html way.

Attachment not found

Attachment not found

Attachment not found




Now to start tinkering of LUT5 to get indicator to flash when MPG is active.

Please Log in to join the conversation.

More
9 years 1 month ago #98989 by tecno
Replied by tecno on topic 1 of 3 to output
Question

How do I net following
net mpg <= hm2_7i76e.0.7i73.0.1.input-03-not when it is FALSE

to
net ?????? => hm2_7i76e.0.7i73.0.1.output-15

Please Log in to join the conversation.

More
9 years 1 month ago #98991 by tecno
Replied by tecno on topic 1 of 3 to output
:ohmy:

# Activate MPG - ON flashing light in frontpanel

net light <= hm2_7i76e.0.7i73.0.1.input-03
net light => hm2_7i76e.0.7i73.0.1.output-15

So now to get the output to flash.

Please Log in to join the conversation.

More
9 years 1 month ago #98997 by Todd Zuercher
Replied by Todd Zuercher on topic 1 of 3 to output
You can use siggen to make an output flash (also need an and2).
linuxcnc.org/docs/html/man/man9/siggen.9.html
Code:
loadrt siggen count=1 loadrt and2 count=1 addf siggen.0.update servo-thread addf and2.0 servo-thread #Set flash frequency here in Hz setp siggen.0.frequency 1 net light-in <= hm2_7i76e.0.7i73.0.1.input-03 => and2.0.in0 net flash <= siggen.0.clock => and2.0.in1 net light-out <= and2.0.out => hm2_7i76e.0.7i73.0.1.output-15
If you already have other and2s in your config, you will need to adjust the and2 count and pin names accordingly.

Please Log in to join the conversation.

More
9 years 1 month ago #98998 by tecno
Replied by tecno on topic 1 of 3 to output
Hi Todd,

Just back from my shop and this is what I have done before your input, all working now as wanted.

Attachment not found


Attachment not found


Attachment not found




As always I am much appreciated for all your kind support and help here.

Now I have to change to GMOCCAPY and install NATIVECAM as I have the basics ironed out.

Cheers
Bengt

Please Log in to join the conversation.

More
9 years 1 month ago #98999 by Todd Zuercher
Replied by Todd Zuercher on topic 1 of 3 to output
Glad to hear things are progressing well for you. Sounds like you are almost out of the weeds.
I do not use Gmoccapy or Nativcam, so I won't be of much help there.

Please Log in to join the conversation.

More
9 years 1 month ago #99000 by tecno
Replied by tecno on topic 1 of 3 to output
Slowly but getting forward day by day and learning my ways in the weed ;)

I am sure others will chime in when time comes, I know Norbert will give support if he has time and FernV also.

Have a nice weekend
Bengt

Please Log in to join the conversation.

Time to create page: 0.104 seconds
Powered by Kunena Forum