Hello and welcome to a new quick start guide on how to best use Movicon.NExT™.
In this technote, we shall show you how to customize alarm thresholds by assigning them to a tag so that they can be changed during a Movicon.NExT™ project runtime.
To do this, we will use a very simple example by creating a Uint16 tag that will be used to simulate the value to trigger the alarm. We will also create four more tags for the alarm thresholds. When entering values for the thresholds and then changing the simulation tag’s value at runtime, a message corresponding to the threshold should appear in the Alarm Window object.
First, open the Movicon.NExT editor and create, or load, a project. Then, create the first tag to simulate the value to trigger the alarm:
Name | UIntTag |
Model Tyoe | Variabile |
Data Type | UInt16 |
To create the alarm's threshold tags:
Name | Model Type | Data Type |
---|---|---|
HiHiThreshold | Variable | UInt16 |
HiThreshold | Variable | UInt16 |
LoThreshold | Variable | UInt16 |
LoLoThreshold | Variable | UInt16 |
To create the alarm:
Now that we have created and configured the tags and alarm, we can associate them:
Assign the previously created alarm threshold tags to the UIntTag tag:
High-High Limit Tag | HiHiThreshold |
High Limit Tag | HiThreshold |
Low Limit Tag | LoThreshold |
Low-Low Limit Tag | LoLoThreshold |
Now that we have created the logical side of the example, we shall
go ahead and create the graphical side.
This will consist of a screen with five Display objects and an Alarm
Window object.
Create the screen in this way:
Once the screen has been created, we can then change the project's properties by inserting the screen as the project's Main screen to show at project startup. To do this:
Once you have finished configuring the project startup page, click on the Save All icon found in the toolbar at the top to save the project.
Make sure that the Main screen is open, and then click on the Toolbox tab on the far left of the editor, next to the Properties window, to open the Toolbox library provided by Movicon.NExT.
Expand the Display folder, select and drag the Display object onto the screen. Assign the UIntTag tag to this object. To do this:
Make four duplicates of this object by using the Ctrl+C and Ctrl+V keyboard keys so that you have a total of five Display objects.
Repeat the above procedure for each Display object to assign the alarm threshold tags:
Open the Toolbox library once again and place an Alarm Window object from the Alarm Viewers folder on the Main screen.
Save the project by clicking on the Save All icon on the toolbar at the top.
Launch the project into runtime mode by clicking on the Start Runtime button on the editor's toolbar.
While the project is running in runtime mode, it will be possible to enter values in the Display objects that represent the alarm's thresholds and change the value in the Display object associated to the UIntTag tag. If this value exceeds one of the alarm thresholds, the alarm associated to the exceeded threshold will show in the Alarm Window.