Hello,
I met last week a problem with a temp variable in a FC. I changed the program since but i want to understand because other FC/FB uses temp variable.
In the same rung i write then load a tempreal value, and get different values, when i read values online.
This temp real was used in an other rung in the same way, but it was ok. When i changed in the second rung the name of the tempreal, in the first rung, the load value wasn't the same??? then i had to change very fast the programm and delete the first tempreal value.
I don't use any L datas, and all temps (3) are real and transferd with real.
If anyone has an idea
Thanks
I met last week a problem with a temp variable in a FC. I changed the program since but i want to understand because other FC/FB uses temp variable.
In the same rung i write then load a tempreal value, and get different values, when i read values online.
Code:
L "DBWaterAir".SetPoint_LevelTeepolTank 80.0
L 5.000000e+000 5.00
-R
T "TempReal" 75.00
U(
O "DBWaterAir".TeepolRequest
O(
L "DBWaterAir".LevelTeepolTank_Pourcent
L #TempReal 26664 (something like this)
<=R
)
)
U(
L "DBWaterAir".LevelTeepolTank_Pourcent
L "DBWaterAir".SetPoint_LevelTeepolTank
<R
)
= "DBWaterAir".TeepolRequest
I don't use any L datas, and all temps (3) are real and transferd with real.
If anyone has an idea
Thanks
Last edited: