# X20AP3131 Input value Issue

**URL:** <https://community.br-automation.com/t/x20ap3131-input-value-issue/4199>\
**Category:** Programming\
**Tags:** library\
**Created:** [August 29, 2024, 9:39am UTC](https://community.br-automation.com/t/x20ap3131-input-value-issue/4199 "2024-08-29T09:39:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mtwzinga](https://avatars.discourse-cdn.com/v4/letter/m/FF8800/32.png) [@mtwzinga](https://community.br-automation.com/u/mtwzinga)\
**Post date:** [August 29, 2024, 9:39am UTC](https://community.br-automation.com/t/x20ap3131-input-value-issue/4199/1 "2024-08-29T09:39:37Z")

</div>

Hi everybody,

i’ve installed on a machine a X20AP3131 to monitoring its power consumption, but an input value (AenergyT) don’t give me back the read-out value and i’m not able to find an explanation.

I attach a screen to explain better what i mean.

any suggestions?

 ![Screenshot 2024-08-29 112852](https://europe1.discourse-cdn.com/brcommunity/original/2X/0/01cb6a498b6337446738825c6a3c4d9a6f6d0a66.png)

---

<div class="post-metadata">

**Author:** ![michael\_w](https://avatars.discourse-cdn.com/v4/letter/m/FF8800/32.png) [@michael\_w](https://community.br-automation.com/u/michael_w)\
**Post date:** [August 30, 2024, 11:00am UTC](https://community.br-automation.com/t/x20ap3131-input-value-issue/4199/2 "2024-08-30T11:00:21Z")

</div>

Hi,  
what I don’t see in the screenshot is the “ControlOutput” register, which you’ll need.  
[https://help.br-automation.com/#/en/6/hardware%2Fx20ap31x1%2Fx20ap31x1\_sw%2F22\_gesamtwirkarbeit\_komb.html](https://help.br-automation.com/#/en/6/hardware%2Fx20ap31x1%2Fx20ap31x1_sw%2F22_gesamtwirkarbeit_komb.html)  
and  
[https://help.br-automation.com/#/en/6/hardware%2Fx20ap31x1%2Fx20ap31x1\_sw%2F23\_gesamtblindarbeit\_komb.html](https://help.br-automation.com/#/en/6/hardware%2Fx20ap31x1%2Fx20ap31x1_sw%2F23_gesamtblindarbeit_komb.html)  
both state, that they need explicit activation for permanent or manual reading:

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

→ [B&R Online Help](https://help.br-automation.com/#/en/6/hardware/x20ap31x1/x20ap31x1_sw/08_steuersignale.html)

Hope that helps

---

<div class="post-metadata">

**Author:** ![mtwzinga](https://avatars.discourse-cdn.com/v4/letter/m/FF8800/32.png) [@mtwzinga](https://community.br-automation.com/u/mtwzinga)\
**Post date:** [August 30, 2024, 12:03pm UTC](https://community.br-automation.com/t/x20ap3131-input-value-issue/4199/3 "2024-08-30T12:03:56Z")

</div>

thank you so much for your answer.

I’ll find and check that register.

Best regards.

---

<div class="post-metadata">

**Author:** ![michael\_w](https://avatars.discourse-cdn.com/v4/letter/m/FF8800/32.png) [@michael\_w](https://community.br-automation.com/u/michael_w)\
**Post date:** [August 30, 2024, 1:00pm UTC](https://community.br-automation.com/t/x20ap3131-input-value-issue/4199/4 "2024-08-30T13:00:30Z")

</div>

Hi

not really hard to find:  
[https://help.br-automation.com/#/en/6/hardware%2Fx20ap31x1%2Fx20ap31x1\_sw%2Fregisterubersicht\_-\_standard.html](https://help.br-automation.com/#/en/6/hardware%2Fx20ap31x1%2Fx20ap31x1_sw%2Fregisterubersicht_-_standard.html)  
From there, knowing that the bits are actually having their own names …

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/3/34fd6718be85061b05c90449c991c58c6fd73366.png)  
… one can observe that they are actually already present in the IOmapping:

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

So for a first test you can force the value of “EnabEnergy” to TRUE in monitor mode and see if your RenergyT now changes. After that, create a new variable, map it there and set the bit there

BR

---

<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:** [October 31, 2024, 12:25pm UTC](https://community.br-automation.com/t/x20ap3131-input-value-issue/4199/5 "2024-10-31T12:25:37Z")

</div>

Automatically bumped on October 31, 2024, 12:25pm UTC



---

<div class="post-metadata">

**Author:** ![marcusbnr](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/marcusbnr/32/256_2.png) [@marcusbnr](https://community.br-automation.com/u/marcusbnr)\
**Post date:** [October 31, 2024, 1:06pm UTC](https://community.br-automation.com/t/x20ap3131-input-value-issue/4199/6 "2024-10-31T13:06:40Z")

</div>

Hi @mtwzinga

Were you able to figure out how to add the ControlOutput register and get your program working correctly?
