This guide will explain step by step, Ways to Write Values in OnPing using different HMI components and directly in driver configuration.
Preliminary #
In the driver configuration, for this example āManual Entry Driver Controlā is used. It is possible to write to parameters that have a ‘Write’ button visible in the ‘Write’ column.
Step 1: Write in driver configuration #
In the driver page, when the āWriteā button for a parameter is selected then the corresponding Value can be updated, and āWrite functionalityā has to be confirmed by the āSaveā button, or discarded by āCancelā.
Step 2: Write from the HMI using the Status Indicator component #
For this example āNew Exampleā HMI is used. First, enter the āEdit modeā by selecting the āwrenchā icon in the top right corner.
āEdit modeā is indicated by the feature bar being visible on top of the opened HMI screen.
The green āarrowā icon is pressed to open the component panel.
By selecting the āIndicatorā component, the object’s properties are visible and can be adjusted. In our example, the title is āTest Writes in OnPingā, the āBackgroundā color is adjusted to gray, and the āValueā color to black
To add a parameter, the āParameterā icon next to the field has to be selected.
The required parameter has to be selected, in this example, the used parameter is āDemo Setpointā.
After confirmation, it will be visible in the properties of the āIndicatorā component.
* In the presented example the parameter later on will be changed to āExample Parameter To Editā to stay consistent with the other methods of writing value to parameter.
After the configuration of the component is finished, it must be confirmed by selecting the āSaveā button at the bottom of the properties panel.
Then the object will be visible on the HMI and can be moved by drag and drop in the required position. After positioning it, the āSave Changesā button has to be selected.
To get out of the edit mode āwrenchā icon has to be selected.
In the next step select the ālittle pencilā icon on the āIndicatorā component.
This opens a pop up where it is possible to perform the āwriteā function. Pop up description is āTest Writes In OnPing āDemo Setpointā @ SCADA Dataā. āTest Writesā is what is written to the āDemo Setpointā and the location is āSCADA Dataā.Ā
In this example, the value is changed to ā1ā and confirmed by selecting the āWriteā button.
After pressing the āWriteā button the pop up disappears, at the bottom right of the screen, there is an indication that there was a successful write parameter action, and the value on the Indicator component has updated to ā1ā.
The other possibility instead of typing in the value from the keyboard is to use a number pad.
It is accessible in the pop up when the āIndicatorā component is selected.
After selecting āUse numpadā it will appear and the desired value can be selected.
Click āWriteā and that changes the value, in the presented example, it is 3.
Step 3: Write from the HMI using the Table Component #
Another way to write value in OnPing is through the Table component. To add another component to the HMI enter the āEdit modeā by selecting the āwrenchā icon in the top right corner.
The green āarrowā icon is pressed to open the component panel.
By selecting the āTableā component, the object’s properties are visible and can be adjusted. In our example, the title is āWrite Example Tableā, the Column number is ā1ā and the āTest Writes in OnPingā Cell is added. Select the āwrenchā icon to add a new parameter to the cell configuration.
In this example, the used parameter is āExample Parameter To Editā.
It has to be confirmed by selecting the āConfirm Parametersā button.
After the configuration of the component is finished, it must be confirmed by selecting the āSaveā button at the bottom of the properties panel.
Then the object will be visible on the HMI in the top left corner and can be moved by drag and drop in the required position.Ā
After positioning it the āSave Changesā button has to be selected.
To get out of the edit mode āwrenchā icon has to be selected.
Edit HMI features are not visible anymore. In the next step select the ālittle pencilā icon on the āTableā component.
The control pop up is the same as it was for the āIndicatorā component.
After pressing the āWriteā button the pop up disappears, at the bottom right of the screen, there is an indication that there was a successful write parameter action, and the value on the āTableā component has updated to ā4ā.
Step 4: Write from the HMI using the Control Button component #
Another option to write value in OnPing is through the āControl Buttonā component. It is a little bit different from previous components because the numeric value cannot be inserted directly. Instead, a button with defined functionality is created. To add another component to the HMI enter the āEdit modeā by selecting the āwrenchā icon in the top right corner.
The green āarrowā icon is pressed to open the component panel.
By selecting the āControl Buttonā component, the object’s properties are visible and can be adjusted.
In our example, the three buttons are added by selecting the āAdd buttonā.
Three buttons were configured: āWrite 1ā, āWrite 2ā, and āResetā. The āWrite Valueā defines the value that will be written to the parameter when the corresponding button is clicked, āActive valueā based on the defined parameter indicates if the button is active.Ā
In our example, the title is āTest Writes In OnPingā, the Width (px) is ā160ā and the āRead Parameterā, and the āWrite Parameterā are defined as āExample Parameter To Editā. The parameters are configured in the same way as for the other objects. Notice that āRead Parameterā, and āWrite Parameterā can be different, but in this example, the same parameter is used for both properties.
After the configuration of the component is finished, it must be confirmed by selecting the āSaveā button at the bottom of the properties panel.
[The Table component was not positioned manually? this is not visible on the video but I guess it was done similarly as previously for other components]
To get out of the edit mode āwrenchā icon has to be selected.
None of the buttons is active but all of them are writable. The current value of the parameter is ā5ā which means that no āActive Valueā condition for any button is fulfilled.
In the first step select the āResetā button. The control pop up informs that the āExample Parameterā value will be overwritten to ā1ā.
After confirmation, the āWrite 1ā button on the HMI becomes active based on the defined āActive Valueā.Ā
In the next step select the āWrite 2ā button.
The control pop up informs that the āExample Parameterā value will be overwritten to ā2ā.
After confirmation, the āWrite 2ā button on the HMI becomes active based on the defined āActive Valueā. The current parameter value is visible on the previously created āIndicatorā and āTableā components.
In the next step select the āWrite 1ā button.
The control pop up informs that the āExample Parameterā value will be overwritten to ā1ā.
After confirmation, the āWrite 1ā button on the HMI becomes active based on the defined āActive Valueā. It is possible to turn off this notification.
To turn the mentioned notification off, the configuration of the component has to be adjusted. Those actions have to be performed in the āEditā mode. The āWrite confirmationā property has to be disabled.
After the configuration of the component is finished, it must be confirmed by selecting the āSaveā button at the bottom of the properties panel. Notice that now there will be no confirmation required when any of the āControl Buttonsā is pressed, the value will be written immediately.
After disabling the āEdit Modeā whenever the button is pressed the value is changed without need of a confirmation. In the example the āWrite 2ā button is selected.
The value has changed to ā2ā.
The button controls have other functions that will be described and presented next. For instance, the buttons can change color depending on their write state. In the āEdit Modeā with the āControl Buttonā component selected, in the properties panel under the buttons section, there is a cardinal that when clicked will expand the button color properties.
In the following example the active āCell Colorā and āText colorā are adjusted to black for all of the buttons.
The āBackground Colorā has been changed to black and the āTitle Colorā to white.
After the configuration of the component is updated, it must be confirmed by selecting the āSaveā button at the bottom of the properties panel.
In the next step, the gird configuration is updated. To open the grid configuration select the āmenuā icon in the top right corner of the HMI screen.
āGrid Fillā and āGrid Strokeā are changed to black. The configuration has to be confirmed with the āSave Changesā button.
To have the functionality of the button disappear when it is being pressed then the āActive Valueā configuration in the āControl Buttonā properties has to be updated as on the attached screen.
In the following functionality whenever the button is selected then it will disappear from the screen. In the example, the āWrite 2ā button is not visible and the āWrite 1ā button is pressed.Ā
After the value has been updated the āWrite 1ā button is not visible anymore, the āWrite 2ā button is tested next.
After the value has been updated the āWrite 2ā button disappears.
This functionality resembles the āOnā and āOffā buttons. The button’s text descriptions are updated to āOnā and āOffā and the corresponding āActive Cell Colorā is updated respectively to green and red.
In the following example, the āOnā button is pressed.
When the āOnā button is pressed then the parameter value will change to ā1ā and the āOnā button will not be visible anymore and the āOffā button will show up.
Similarly when the āOffā button is selected.
Then the parameter value updates to ā2ā and the āOffā button disappears. In the following example, the āResetā button is pressed.
When the āResetā button is pressed then the parameter value will change to ā1ā, the āOnā button will not be visible anymore and the āOffā button will show up.
That’s an example of how the properties of the āButton Controlā component can be utilized in the HMI configuration.
Step 5: Write from the HMI using the Custom Table component #
There is one more way to write, and that’s from a custom table. In the presented example there is already a custom table configured which is accessible from āInfo Tableā.
When the value in the āInfo Tableā is selected then the options show up to āWrite Valueā and āView Historyā.
By selecting the āView Historyā button the trend for the value will show up.Ā
It is possible to do a āWrite Valueā from here and change the value of the parameter.
When selected then the value window becomes interactive and it is possible to type in the desired value and confirm with the āWriteā button or decline with the āCancelā button.
When selecting the āWriteā the value is updated.