Creating a New Solution
If you want to create your own solution, simply click "New" in the Solution Manager and follow the Wizard steps.
Once the loading is complete, you'll see the Designer Home Page, that contains all of the basic information for this solution.
Data Explorer and MQTT Tools
The DataExplorer tools allow you to easily perform data mining and monitoring from various data sources, including MQTT Brokers, OPC-UA, PLCs and SQL databases. Here, let's see how you can connect to our MQTT Simulator to browse its data.
Go to Data Explorer → MQTT Tools to start. You can connect to your own broker, or use own built-in MQTT Broker.
Out platform also offers a MQTT Publisher Simulator, that has customizable data being published. Simply click both of the green "start" buttons to start the Broker and Simulator.
When first starting the MQTT Broker, it does an auto-connect, but anytime is necessary, you can manually Connect and Disconnect, using the Play and Stop buttons.
Once you've done so, click Connect to see and browse the generated data.
Creating Tags and Device Points
We'll be using this simulated data to make it easier to build a simple solution. Select DeviceD1, from the list of simulated data, and click Export to Solution. This will create a new Data Model with the device properties. In this example, we named the new Data Template SolarPanel. In the Module option, we'll leave the first option selected, which represents the traditional behavior of mapping tags to external devices.
The platform also has the TagProviders functionality, which allows consuming directly data from other sources, without having to create tags.
Unified Namespace and Tags
In the Unified Namespace section, you'll be able to define the data models you'll use in the solution.
The AssetsTree is the central point, where you can manage Asset Folders, Create and Edit Tags, and link data from TagsProvider Connections.
In this Getting Started, as you can see on the RootTags folder, the Export of the DataExplorer created already a Tag Device01.
You can go ahead to review the Devices configuration, or explore a bit more functionalities on Unified Namespace:
Field Communication, Industrial Protocols
The Wizard from Data Explorer created automatically a connection with the MQTT Broker, but it's important to understand what happened behind the scenes.
In addition to MQTT, OPC, Rockwell PLCs and Codesys devices, we offer 70+ native industrial communication protocols.
The use of those communication protocols is a straight forward process:
- Create a Channel, which is an instance of the Protocol with optional configuration settings
- Create a Node within that Channel, which specifies the location of that Device in your network, using the PrimaryStation Field
- Map a Tag in your application to an Address in the Device Node.
The Export Wizard we used on the DataExplorer did those 3 steps automatically to you.
As an Exercise you can create one more Tag and its mapping.
Creating a Simple Display with Symbols
Let's start by exploring the Draw Environment. To access, go to Displays → Draw, or simply click the Draw button at the top menu.
This opens the main Draw Environment. By default, the first page created will be the MainPage, where your main content should go.
On the left side of the screen, you'll find all of the components you can use to build your display. They're categorized by different types of graphical components, such as icons, charts, navigation and symbols (incluindo high-performance graphics). You can also search for something specific in our library using the search input.
To add a component to your display, simply click and drag to the drawing environment. In this example, we'll grab a simple button from the Symbol library. If you double click the symbol, you'll open a popup box where you can map the component's properties to your tags. In this case, the button only has one property (IsPressed), which will map to the device status. To find a specific tag, you can either type "Tag." and it'll show you the options or click the three dots next to the input to navigate on your Asset Tree.
That is all you have to do! The value of Tag is now connected to drive the visual of the Select Symbol.
Optional exercices:
Create a Real-Time Alarm
To test out the Alarming functionalities in the platform, let's create an alarm.
On Alarms → Items, simply type on the first line of the table to create a new Alarm. Type "DeviceD1." and you'll see the available properties associated with that Device - for this example, establish a condition, limit, select a group (there will be a few available as default) and a message to showcase when that limit is reached.
In the Draw Environment, search for AlarmWindow and drag it into the display.
Running your Solution
It's time to run your solution by clicking on the Runtime module (or selecting the play icon on the top of the page for a quick shortcut). In this page, you'll find information regarding the solution, including redundancy settings and command lines and URL for the clients.
To run your solution, simply click "Run Startup".
The first time you Open and Run solutions after a new installation, Windows Firewall may request you authorize its use. Just press OK if a User Authorization request, or firewall message, is prompted.
Click on the HTML5 Client URL to see your solution running also as a Web Client!
In this section: