I’ve been playing around with the idea of using Gmail as an easy way of sending commands or getting information from a machine. This is the ultimate “lazy man” solution. I wrote this application to monitor the contents of the subject line of emails sent to a Gmail account that I made specifically for a machine. When the application sees an email with subject matching one of my keywords it processes the message and sends the appropriate reply.
You could use this application to monitor a variable number or a parts counter. If you have a machine with a barfeeder you could send an email to set a variable which stops the loop or set the number of parts to make. You could even have your program waiting in a loop and command it to run a certain part by setting a common variable value. You can ask it to send you an email if the machine alarms out or when the cycle is complete. If you have any suggestions for commands put them in the comments.
The “window” for the application is a little button that sits under the vertical function keys. Pushing the button will toggle monitoring mode on/off. Pushing and holding the button will bring the settings window up. Double clicking the button with close the application.
If you want to run this on your Okuma machine you will need to have API V1.15.0 and .NET Framework 4.
Get the source code here: Gosiger GRC
Here is is a sample email message:
Control by texting:
firstname.lastname@example.org or email@example.com
Don’t wreck while “milling about” in your car!
Very cool application!
I really like what you did with the Gosiger Utility.
Thank you for the source code, I look forward to diving into this and learning.
Yeah I forgot to mention that I used the OpenPop library to send the emails. http://nuget.org/packages/OpenPop.NET/
Neat. I’d been toying around with doing similar through SMS, but GMail looks like a simpler solution. Looks like you could easily modify FetchAllMessages() to be configurable for other POP3 mail servers as well. I’ll have to try this out when I’m at a machine with VS2010.