Is there a way to print a message to AXIS?

More
19 Jan 2012 09:11 #16928 by Rick G

Another easy way to do this is to use a 'user M code'.


ArcEye that is a neat trick, I will have to try it.

Rick G

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

More
19 Jan 2012 12:18 #16938 by BigJohnT
ArcEye wrote:

Maybe the guy that wanted the computer to holler at him when done could do something similar.


Yeah, mpg123 Hey_Come_and_Reposition_the_Workpiece.mp3 would do it :woohoo:


Is there a command line audio player that would do that?

John

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

More
19 Jan 2012 14:57 #16941 by dgarrett
/usr/bin/aplay (plays formats voc, wav, raw, au)

/usr/bin/arecord (records)

for ogg there is

/usr/bin/canberra-gtk-play --file=bark.ogg

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

More
19 Jan 2012 15:42 #16942 by ArcEye

Is there a command line audio player that would do that?


mpg123 IS a command line player! Or you could use any of the ones Dewey mentioned.

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

More
20 Jan 2012 00:42 #16967 by garymcrobertpdx
Now thats slick, just the thing I was hoping for thanks!
Also thanks to John for his suggestion.

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

More
16 Feb 2012 16:26 #17718 by beltramidave
ArcEye,
This looks very interesting. I tried this out, but my message doesn't pop up. The program stops...but no message. My Ubuntu uses Gnome to open the message, could this be the problem? Do I need to somehow tell it to use Gnome instead of "qiv"? I am not sure what "qiv" is.
I am very new at this, so please be patient.
Thanks

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

More
16 Feb 2012 17:06 #17720 by beltramidave
Sorry, I didn't read all the posts and I see BigJohnT had already addressesd the Gnome issue. I still cannot get my message to pop up. I am running the LiveCD as I am just playing around at the moment. I have also made a new message from what ArcEye had used.
This is what I have stored in my folder (/home/ubuntu/emc2/nc_files)

My message is called: stopmessage.png

My M112 files consists of the following:

#!/bin/bash
eog/home/ubuntu/emc2/nc_files/stopmessage.png
exit 0

I have M112 in my Gcode (which does stop the program from running). Do I need any variables after M112?

Any help would be appreciated. Thanks

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

More
16 Feb 2012 18:04 #17724 by BigJohnT
There needs to be a space between eog and the path to the file.

John

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

More
16 Feb 2012 19:36 #17728 by beltramidave
John,
I have tried that as well, with no luck.
Dave

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

More
16 Feb 2012 19:48 - 16 Feb 2012 19:50 #17729 by beltramidave
I have attached my file.

#!/bin/bash

eog /home/ubuntu/emc2/nc_files/stopmessage.png

exit 0


Thanks
Last edit: 16 Feb 2012 19:50 by beltramidave.

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

Time to create page: 0.089 seconds
Powered by Kunena Forum