# 0-10v analog output with X20 AO4622 Module

**URL:** <https://community.br-automation.com/t/0-10v-analog-output-with-x20-ao4622-module/5199>\
**Category:** B&R Software & Runtime\
**Tags:** automation-studio, automation-runtime, plc\
**Created:** [December 11, 2024, 12:24pm UTC](https://community.br-automation.com/t/0-10v-analog-output-with-x20-ao4622-module/5199 "2024-12-11T12:24:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![eem.ferhat](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/eem.ferhat/32/4602_2.png) [@eem.ferhat](https://community.br-automation.com/u/eem.ferhat)\
**Post date:** [December 11, 2024, 12:24pm UTC](https://community.br-automation.com/t/0-10v-analog-output-with-x20-ao4622-module/5199/1 "2024-12-11T12:24:09Z")

</div>

Hello  
I have an analog module and I want to drive a 0-10v asynchronous motor with it.  
Write references with LCRLimScal  
I assigned it with LREAL\_TO\_INT. The code is as in the vaccine. When I tried it in simulation it worked. When I do this on a real plc, the plc gets many errors. plc falls into service error. example errors  
error:  
30023  
-1067378812  
-1067317245  
-1064303625

code  
(LCRLimScal\_0=LCRLimScal  
HMI\_VEL=INT  
OUTPUT\_AO=INT)  
LCRLimScal\_0.x:=HMI\_VEL;  
LCRLimScal\_0.x1:=0;  
LCRLimScal\_0.x2:=50;  
LCRLimScal\_0.y1:=0;  
LCRLimScal\_0.y2:=32767;  
OUTPUT\_AO:=LREAL\_TO\_INT(LCRLimScal\_0.y);

```
	LCRLimScal_0();

```

---

<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:** [December 11, 2024, 1:29pm UTC](https://community.br-automation.com/t/0-10v-analog-output-with-x20-ao4622-module/5199/2 "2024-12-11T13:29:39Z")

</div>

Hi,

From the error numbers you’ve shared, I don’t think that these are related to your analog motor control.

Error 30023 is “Configured module not found during boot”. Do you have any modules in your project that are not connected to the real PLC? I suggest turning off Module Supervision for all modules in the project to avoid this error. This is probably causing the Service mode.

The other errors are motion errors, but they’re related to motion control with mapp Motion or ACP10. From what you’ve shared, it doesn’t sound like you’re using either of these solutions as the motor is controlled by a single analog output value and your own control code.

---

<div class="post-metadata">

**Author:** ![eem.ferhat](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/eem.ferhat/32/4602_2.png) [@eem.ferhat](https://community.br-automation.com/u/eem.ferhat)\
**Post date:** [December 11, 2024, 1:41pm UTC](https://community.br-automation.com/t/0-10v-analog-output-with-x20-ao4622-module/5199/3 "2024-12-11T13:41:32Z")

</div>

Dear Administrator, how can I turn off Module Control?

---

<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:** [December 11, 2024, 1:54pm UTC](https://community.br-automation.com/t/0-10v-analog-output-with-x20-ao4622-module/5199/4 "2024-12-11T13:54:59Z")

</div>

For each module, right-click on it in the Physical View and select Configuration. In the window that appears, you’ll find the setting towards the top:

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

If you miss one, the error message in the Logger (as well as the System Diagnostics Manager) will tell you which module is missing.

---

<div class="post-metadata">

**Author:** ![eem.ferhat](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/eem.ferhat/32/4602_2.png) [@eem.ferhat](https://community.br-automation.com/u/eem.ferhat)\
**Post date:** [December 11, 2024, 1:55pm UTC](https://community.br-automation.com/t/0-10v-analog-output-with-x20-ao4622-module/5199/5 "2024-12-11T13:55:02Z")

</div>

I went into the configuration settings but I couldn’t see it in the analog module section.

---

<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:** [December 11, 2024, 1:56pm UTC](https://community.br-automation.com/t/0-10v-analog-output-with-x20-ao4622-module/5199/6 "2024-12-11T13:56:33Z")

</div>

Can you open the System Diagnostics Manager and send a screenshot of the hardware tree?

---

<div class="post-metadata">

**Author:** ![eem.ferhat](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/eem.ferhat/32/4602_2.png) [@eem.ferhat](https://community.br-automation.com/u/eem.ferhat)\
**Post date:** [December 11, 2024, 2:12pm UTC](https://community.br-automation.com/t/0-10v-analog-output-with-x20-ao4622-module/5199/7 "2024-12-11T14:12:19Z")

</div>

Thank you, I found it, I was looking in the wrong place
