allannissen
Member
Hi
I'm trying to make a monitoring block for our tanks onboard the oilrig I'm working on.
I'm pretty new into working with S7 but so far I've managed to read the analogue input value, scale it and present it in a DB where my HMI software can read it.
L PIW288
ITD
DTR
L 2.764800e+004
/R
L 8.500000e+004
*R
L 0.000000e+000
+R
RND
T DB13.DBD10
This scales the input to height in centimeter. Max height of liquid is 8.5 meters.
L PIW288
ITD
DTR
L 2.764800e+004
/R
L 7.130910e+004
*R
L 0.000000e+000
+R
RND
T DB13.DBD 8
This scales the input to volume in m3. Max volume of tank is 713.091 m3.
The sensor is a hydrostatic sensor, installed a few centimeters from the bottom of the tanks.
Some of our tanks stores fuel or other liquids with different specific gravity than water.
How can I add that to the scaling?
My idea was that on the HMI, the user can input the density, which will be written to a db as INT (ie. 1023 for saltwater or 860 for diesel). And then the value should be read from the db, maybe converted (not sure to what) and used in the scaling.
Thanks in advance.
Allan
I'm trying to make a monitoring block for our tanks onboard the oilrig I'm working on.
I'm pretty new into working with S7 but so far I've managed to read the analogue input value, scale it and present it in a DB where my HMI software can read it.
L PIW288
ITD
DTR
L 2.764800e+004
/R
L 8.500000e+004
*R
L 0.000000e+000
+R
RND
T DB13.DBD10
This scales the input to height in centimeter. Max height of liquid is 8.5 meters.
L PIW288
ITD
DTR
L 2.764800e+004
/R
L 7.130910e+004
*R
L 0.000000e+000
+R
RND
T DB13.DBD 8
This scales the input to volume in m3. Max volume of tank is 713.091 m3.
The sensor is a hydrostatic sensor, installed a few centimeters from the bottom of the tanks.
Some of our tanks stores fuel or other liquids with different specific gravity than water.
How can I add that to the scaling?
My idea was that on the HMI, the user can input the density, which will be written to a db as INT (ie. 1023 for saltwater or 860 for diesel). And then the value should be read from the db, maybe converted (not sure to what) and used in the scaling.
Thanks in advance.
Allan