Is there a way to print a message to AXIS?
- Rick G
-
- Offline
- Junior Member
-
- Posts: 26
- Thank you received: 155
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.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
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
Is there a command line audio player that would do that?
John
Please Log in or Create an account to join the conversation.
- dgarrett
- Offline
- Platinum Member
-
- Posts: 567
- Thank you received: 325
/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.
- ArcEye
- Offline
- Junior Member
-
- Posts: 24
- Thank you received: 758
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.
- garymcrobertpdx
- Offline
- Premium Member
-
- Posts: 101
- Thank you received: 1
Also thanks to John for his suggestion.
Please Log in or Create an account to join the conversation.
- beltramidave
- Offline
- Elite Member
-
- Posts: 174
- Thank you received: 4
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.
- beltramidave
- Offline
- Elite Member
-
- Posts: 174
- Thank you received: 4
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.
- BigJohnT
-
- Offline
- Administrator
-
- Posts: 7000
- Thank you received: 1175
John
Please Log in or Create an account to join the conversation.
- beltramidave
- Offline
- Elite Member
-
- Posts: 174
- Thank you received: 4
I have tried that as well, with no luck.
Dave
Please Log in or Create an account to join the conversation.
- beltramidave
- Offline
- Elite Member
-
- Posts: 174
- Thank you received: 4
#!/bin/bash
eog /home/ubuntu/emc2/nc_files/stopmessage.png
exit 0
Thanks
Please Log in or Create an account to join the conversation.