Dear Flex727, Thank you indeed for your replay.
I want to measure the amount of water flowing into a storage. I use the HSI counter and correct it with a constant value. it soon happens, that the MI is larger than 32767 and it start counting in the reverse direction. I tried with long integer (SB82) however, it does not work. I do not know why. I have a Jz20-R16
I checked the long integer help section. however, it seems, that long integers do not work in my script. I attached the file.
I will divide the signal from the HSI (MI30) by 435, this will give me the cumulated amount in litres. I would expect litre-values of about 1000 . This would then give a value for MI30 (and MI31) of 435'000.
Have a look at section 18 (the above mentioned calculation) and 17 (reset of the display)
As in the help menu, I used
MI30 and MI31 (input from HSI)
MI32 and MI33
MI34 and MI35
MI36 and MI37 (display)
as a long integer pair
Thank you indeed and kind regards Thomas
Teich Steuerung v70.U9079.76 kB · 3 downloads