B&R Automation Studio Loadcell programming in C

resmimurali

Level-1
Beiträge
13
Reaktionspunkte
0
Zuviel Werbung?
-> Hier kostenlos registrieren
Hello,

I have used AGHscale() from B&R Automation Studio.


fbTestVar.enable=1;
fbTestVar.doTare=1;
fbTestVar.doStandardize1=1;
fbTestVar.t_measure=1;
fbTestVar.pWGHscalePara =(unsigned long int)&TestVar1;
TestVar1.ref1_raw=3000;
TestVar1.ref1_std=1000;


fbTestVar.doStandardize2=1;
TestVar1.ref2_raw=23700;
TestVar1.ref2_std=31500;


fbTestVar.raw_value=analogInput1;

WGHscale(&fbTestVar);


I have attached a screenshot with the Monitor values. As you can see its not doing the second Standardisation. What could be wrong?
 

Anhänge

  • screen.jpg
    screen.jpg
    65,3 KB · Aufrufe: 13
Hi,

Everything is ok. And it is working fine. Only this much Code is needed.

fbTestVar.enable=1;
fbTestVar.t_measure=1;

TestVar1.ref1_raw=3000;
TestVar1.ref1_std=1000;


TestVar1.ref2_raw=23700;
TestVar1.ref2_std=31500;

fbTestVar.pWGHscalePara =&TestVar1;
fbTestVar.raw_value=analogInput1;
WGHscale(&fbTestVar);


fbTestVar is a function block of type WGHscale and TestVar1 is a structure of Type WGHscalePara_typ.

:D:D:D:D:D
 
Zurück
Oben