# How to Shift the Decimal Point on a B&R MappView Numeric Input

**URL:** <https://community.br-automation.com/t/how-to-shift-the-decimal-point-on-a-b-r-mappview-numeric-input/3225>\
**Category:** HMI & Visualization\
**Tags:** mapp-view, opc-ua\
**Created:** [May 17, 2024, 10:17am UTC](https://community.br-automation.com/t/how-to-shift-the-decimal-point-on-a-b-r-mappview-numeric-input/3225 "2024-05-17T10:17:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romain\_Montalibet](https://avatars.discourse-cdn.com/v4/letter/r/FF8800/32.png) [@Romain\_Montalibet](https://community.br-automation.com/u/Romain_Montalibet)\
**Post date:** [May 17, 2024, 10:17am UTC](https://community.br-automation.com/t/how-to-shift-the-decimal-point-on-a-b-r-mappview-numeric-input/3225/1 "2024-05-17T10:17:44Z")

</div>

My problem is that I receive integers via OPC UA and I would like to display these integers with a decimal part in MappView.

Example: I receive the position 156964 and I would like to display 1569.64.

Is there a trick for this?

---

<div class="post-metadata">

**Author:** ![Simon\_Stoll](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/simon_stoll/32/445_2.png) [@Simon\_Stoll](https://community.br-automation.com/u/Simon_Stoll)\
**Post date:** [May 17, 2024, 10:35am UTC](https://community.br-automation.com/t/how-to-shift-the-decimal-point-on-a-b-r-mappview-numeric-input/3225/2 "2024-05-17T10:35:20Z")

</div>

HI Romain,

you could use unit conversion.

How it works is descriped in here:  
[B&R Online Help (br-automation.com)](https://help.br-automation.com/#/en/4/unitsystem%2Ftranslationformulas.html)

Define an own unit for your output and assign it to the NumericOutput widget.  
Don’t forget to use NodeBinding. 🙂

---

<div class="post-metadata">

**Author:** ![Romain\_Montalibet](https://avatars.discourse-cdn.com/v4/letter/r/FF8800/32.png) [@Romain\_Montalibet](https://community.br-automation.com/u/Romain_Montalibet)\
**Post date:** [May 22, 2024, 4:52pm UTC](https://community.br-automation.com/t/how-to-shift-the-decimal-point-on-a-b-r-mappview-numeric-input/3225/3 "2024-05-22T16:52:23Z")

</div>

Hi Simon,

Thank you very much for your response!

Unfortunately, this solution does not work. I tried to implement it this afternoon. I can subtract 10 from my variable by setting 10 for the variable n, but I must admit that I don’t quite understand. Which formula is used? The normal or the inverted one? ^^

In my case, I want to divide by 10, but none of the attempts were successful. For your information, the OPC UA variables come from a SIEMENS PLC that I have declared in OpcUaServer.

And if I understand correctly, this method will only work for a display, right? Because I also have numeric inputs to process. I need to type 15.6 on the keyboard, and the OPC UA value should be equal to 156.

Thank you for your time.

---

<div class="post-metadata">

**Author:** ![Simon\_Stoll](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/simon_stoll/32/445_2.png) [@Simon\_Stoll](https://community.br-automation.com/u/Simon_Stoll)\
**Post date:** [May 23, 2024, 6:39am UTC](https://community.br-automation.com/t/how-to-shift-the-decimal-point-on-a-b-r-mappview-numeric-input/3225/4 "2024-05-23T06:39:44Z")

</div>

Salut Romain,

first of all you have to define a unit translation:

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/7/71541bd44ef52844f258fbcf315471d845a7a079.png)

I used some fake units. You can also define your own units.

In next step you have to set input unit to your OpcUa value. I did this in Automation Studio. Don’t know how to do this for Siemens OpcUaServer:

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/0/08343c29038fd14dc0a8635a963554ecfda7acc1.png)

Last step is to do a node binding in mappView and select right output unit and translation formula:

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/8/8a11c679127cd6b9321db31e2f5437b7db4e1724.png)

As result I got this:  
 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/2/28702324e67e721313c0e826af0d6dbc3214095c.png)

Maybe there is a possibility to do this without any (fake) units. But I don’t know how to do this.

Hope, this is a solution for you and also works with Siemens OpcUaServer.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/brcommunity/original/1X/a202d64f0f03e22a662ed33fbbca6879f1efb794.jpeg) [@system](https://community.br-automation.com/u/system)\
**Post date:** [June 22, 2024, 7:43pm UTC](https://community.br-automation.com/t/how-to-shift-the-decimal-point-on-a-b-r-mappview-numeric-input/3225/5 "2024-06-22T19:43:27Z")

</div>



---

<div class="post-metadata">

**Author:** ![kovarj](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/kovarj/32/537_2.png) [@kovarj](https://community.br-automation.com/u/kovarj)\
**Post date:** [June 23, 2024, 3:10pm UTC](https://community.br-automation.com/t/how-to-shift-the-decimal-point-on-a-b-r-mappview-numeric-input/3225/6 "2024-06-23T15:10:10Z")

</div>

I marked reply from @Simon_Stoll as a solution.
