it looks correct but it is not correct.
you must first take off the 3 lower bits and then divide by resolution (12 bits )is 4096.
the lower bits are used as status bits.
the highest is not used
the minimum is 8 and the maximum is 32760 so division is 32752
if status, changes the value is changing when using your way.
hope you got it.
not clear in manual.
in oscat function block ain1 explains this
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I'm trying to make a visualisation with analogue inputs. This application has previousely been presentet in MoviconX.
The input values from Wago 750-466, is treated this way: AI_1 * 1000 / 32760.
This results in a analogue range of 0-1000.
In Movicon this is formatted as 0.0 to 100.0 Β°C.
Using %3.1f in CoDeSys does'nt display this value with one decimal
I assume that the input should have been in REAL format but a block with the name LIMITALARM needs this input in INT format.
I can change the formula to get the range to 0-100 but a temperature monitoring system is'nt usable with that lousy resolution.
Is there a way to format the analogue value only in the visualisation or is there another way to solve this issue?
Any replay is higly appreciated
Vis. element configuration:
Text: %3.1f
Variables, Textdisplay: (.AI_1 /REAL#32760) * 100
Regards
Yes, that did it
Thanks
that rocks
thank YOU:)
it looks correct but it is not correct.
you must first take off the 3 lower bits and then divide by resolution (12 bits )is 4096.
the lower bits are used as status bits.
the highest is not used
the minimum is 8 and the maximum is 32760 so division is 32752
if status, changes the value is changing when using your way.
hope you got it.
not clear in manual.
in oscat function block ain1 explains this