Adding widgets

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Adding widgets

mapp Services V5.16

Adding widget "LadderEditor"

Widget "LadderEditor" can then be added to the mapp View HMI application. For more information, see Concept.

The same mapp Link that was connected to MpCodeBoxCore is used.

Adding button widgets

To test the program later, two "ToggleButton" widgets are added:

Inputs:

In order to set variable "Input" to TRUE or FALSE, the first "ToggleButton" widget is added. Variable "Input" is selected under property "value". "Input" is specified as "text".

The important thing here is that the variable is enabled via OPC UA:

add_input_button

 

opc_ua_active

 

Powerflow:

Powerflow for widget "LadderEditor" can be used for diagnostic purposes.

Two "Button" widgets are added for this purpose. One button enables Powerflow ("Start Powerflow"); the other button disables Powerflow ("Stop Powerflow").

For more information about Powerflow, see Powerflow.

add_start_stop_powerflow_button

For Powerflow to be activated or deactivated, an event binding must be carried out. It can look like this, for example:

Enabling Powerflow with action "SetPowerflow" = True

<EventBinding>

<Source xsi:type="widgets.brease.Button.Event" contentRefId="content_1"

        widgetRefId="StartPowerflow" event="Click" />

<EventHandler>

  <Action>

    <Target xsi:type="widgets.brease.LadderEditor.Action" contentRefId="content_1"

            widgetRefId="LadderEditor1" >

      <Method xsi:type="widgets.brease.LadderEditor.Action.SetPowerflow" value="true"/>

    </Target>

  </Action>

</EventHandler>

</EventBinding>

Enabling Powerflow with action "SetPowerflow" = False

<EventBinding>

<Source xsi:type="widgets.brease.Button.Event" contentRefId="content_1"

        widgetRefId="StopPowerflow" event="Click" />

<EventHandler>

  <Action>

    <Target xsi:type="widgets.brease.LadderEditor.Action" contentRefId="content_1"

            widgetRefId="LadderEditor1" >

      <Method xsi:type="widgets.brease.LadderEditor.Action.SetPowerflow" value="false"/>

    </Target>

  </Action>

</EventHandler>

</EventBinding>