Machine State Events
We want to create a machine state as if we had a CNC that sends us a "1" every time a part is created, otherwise the input signal returns to "0".
Machine state action
Before creating the events for our CNC, let's go through how they are used:
- We create an event ON and an event OFF with the rules engine, according to the value of the state variable.
- Theses events are read by the Machine State tile, the Timeline tile and the Availability tile to get the uptime of your machine.
- In the BI reports, you can see your events over weeks to monitor the uptime of your machines.
Creating the rules
It will be the same structure that before:
- One Value Change trigger
- One action to create the event
You will have two rules: one for the machine state ON and one for the machine state OFF.
The triggers
This is what the trigger will look like for the machine state ON:
We listen to changes on our state variable, only when it changes to true.
It will be the same for the machine state OFF rule except the trigger will listen to changes to false.
The actions
For the action, we just have to fill in our machine, give it a name and a status (ON or OFF).
Both of your ON and OFF actions should have the same event name. Otherwise your data will not concur with what you want.
The ON or OFF events will now create according to your machine data.
You can see your events on the events page.
The next and final part will be on how to display your Machine State related tiles on a dashboard.