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

More
14 Sep 2017 20:38 #98971 by rodw
Replied by rodw on topic 1 of 3 to output


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 or Create an account to join the conversation.

More
14 Sep 2017 21:11 #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 or Create an account to join the conversation.

More
15 Sep 2017 08:14 - 15 Sep 2017 10:20 #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.

File Attachment:

File Name: mpg_2017-09-15.hal
File Size:2 KB

File Attachment:

File Name: combimillx...9-15.ini
File Size:5 KB

File Attachment:

File Name: combimillx...9-15.hal
File Size:19 KB



Now to start tinkering of LUT5 to get indicator to flash when MPG is active.
Attachments:
Last edit: 15 Sep 2017 10:20 by tecno.

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

More
15 Sep 2017 10:23 #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 or Create an account to join the conversation.

More
15 Sep 2017 10:57 #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 or Create an account to join the conversation.

More
15 Sep 2017 14:00 #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
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.
The following user(s) said Thank You: tecno

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

More
15 Sep 2017 14:34 #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.

File Attachment:

File Name: mpg_2017-09-15-2.hal
File Size:2 KB

File Attachment:

File Name: combimillx...15-3.hal
File Size:16 KB

File Attachment:

File Name: combimillx...15-3.ini
File Size:5 KB



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 or Create an account to join the conversation.

More
15 Sep 2017 14:43 #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 or Create an account to join the conversation.

More
15 Sep 2017 14:46 #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 or Create an account to join the conversation.

Time to create page: 0.165 seconds
Powered by Kunena Forum