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: