# B&R automation studio Programming Load cell with C

**URL:** <https://forumautomation.com/t/b-r-automation-studio-programming-load-cell-with-c/2003>\
**Category:** PLC (Programmable Logic Controllers)\
**Created:** [May 19, 2017, 6:32am UTC](https://forumautomation.com/t/b-r-automation-studio-programming-load-cell-with-c/2003 "2017-05-19T06:32:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sunshine2017](https://forumautomation.com/letter_avatar_proxy/v4/letter/s/d6d6ee/32.png) [@sunshine2017](https://forumautomation.com/u/sunshine2017)\
**Post date:** [May 19, 2017, 6:32am UTC](https://forumautomation.com/t/b-r-automation-studio-programming-load-cell-with-c/2003/1 "2017-05-19T06:32:21Z")

</div>

Hi I am programming a Loadcell using B&R Automation Studio in C. I have found out the builtin function which is WghScale. I have included the library and created a local structure so that i can use the variables. Assigned my analog Output to the raw Value and called the function. But I am not getting the corresponding weight.

What should i do? Can anyone help me please?
