I am trying to build a sort of OEE / KPI dashboard that should include this machine. To do that, I need to somehow pull out the machine state. I can see two possible ways to do this:
- Via the DLL interface, i.e. the Plugin SDK
- Via Modbus
I think the easiest way would be to do it using modbus, but to do that I think I would have to develop a simple brain that reads the machine status and then writes it to an external modbus device. I have been searching the forums to try to figure out machine state and I found this:
https://www.machsupport.com/forum/index.php/topic,36548.msg250379.html#msg250379that lists a bunch of useful states: IDLE, RUN, JOG, HOME ... maybe that would be a good place to start. From that, I think I could build a pretty simple cycle counter as well, and count the number of cycles that completed normally vs. ended in some kind of error.
My questions are:
- Where can I find this machine state variables accessible from within a Brain?
- If I use the SDK / DLL method instead, how do I access this MC_STATE?