In this article, you will learn:
- How to add machine types to group your machines
- How to add attributes to organize data coming off multiple machines
Once you have set up an OPC UA connector, you are ready to start adding machine types and attributes.
Attributes organize individual fields from an OPC UA server across multiple machine types.
Machine Types allow you to group machines by brand or functionality.
This guide will help you set up these two data structures before you start adding individual machines.
Setting Up Attributes
Click "Machine Attributes" in the top left to set up a new attribute.
You can create attributes that can be used across multiple machine types, or just used by one machine. You will map them to individual OPC UA fields when you set up individual machines.
Click "Create Attribute" in the top left to create a new one.
Attributes have one of the following data types:
An example might be "Alert" or "machineStarted" or "machineStopped". Then, when you add OPC UA fields under each machine, you can map them to one of these attributes.
This will help you run analytics and make it easier to switch machines between stations. For example, if you wanted to see all "Alert"s that had fired on your shop floor over the past 24 hours, you could run an Analysis based on that specific attribute.
Or, if you buy a new machine and want all your existing triggers to work automatically, you can map OPC UA fields from the new machine to the same attributes as the old machine.
Setting Up Machine Types
After you have attributes, you are ready to create a new machine type and assign attributes to it.
Choose "Machine Types" from the dropdown in the top left of the screen.
Then, choose "Create Type" in the top right.
Name the new machine type by clicking the name in the top left of the screen.
You can set up three different data tracking tools for each machine type:
- "States", which allow you create an activity history of each machine that can be analyzes in the Analytics Builder
- Attributes, which are previously defined attributes that can be linked to machines of this type.
- Machine Triggers, which allow you to update the state of the machine based on the value of an attribute
Here's more detail on each one.
States are used in OEE calculations as well as other analyses. You can add new states by clicking the "+" sign in the upper right corner of the section.
Each state can have a color and a name. Click "Save" after you have selected the color and the name.
In the example above, any visualization in an app will turn blue when the machine reaches "My new state". The box next to "Uptime" is not checked, so this state will not be considered uptime in analytics.
Click the "+" sign in the top right of the attributes section to add an attribute to this machine type.
Click any attribute from the resulting menu on the right side of the screen to add it to this machine type.
Click the "+" sign in the top right of the Machine Triggers section to create a new machine trigger.
These triggers allow you to create rules for updating states.
Here's an example:
- "Machine Attributes" "peluga" ">" "Static Value" "Number" "10" "in last" "30 seconds"
- "Set Activity History" field: "State" value: "Enum" "Running"
This will set the state of the machine to "Running" any time the value of the attribute "Peluga" is greater than 10 in the past 30 seconds.