Search the Community
Showing results for tags 'conversion', 'gpm' or 'pulse'.
Found 3 results
Hello, I'm have some problems with the conversion of two integers to a floating point value. I have a modbus energy meter (SDM120) who works with 32bit IEEE745 floats values. In visilogic I receive two 16bit integers (MI); MI0 : 15643 MI1: -23069 I converted these integers to bits by the 'num to bit' function block. These are the converted value's : MI0 : 15643 --> 0011 1101 0001 1011 MI1: -23069 --> 1010 0101 1110 0011 If I put the two value's behind eachother I get the following binary code: 0011 1101 0001 1011 1010 0101 1110 0011 (MI0,MI1) When I fill in these binary code on a online binary to IEEE745 converter I get the following result: 0,038 This matches with the amps showing on the energy meter's display. The question is; How can can I make from MI0(15643) and MI1(-23069) a float in Visilogic So, MI0(15643) and MI1(-23069) -------------- some kind of formula -----------> MF0 = 0,038 Annyone who can help? Best regards, Jelmer
Community, I'm experimenting with a program where I need to convert a pulsed flow meter signal into GPM. No big deal, right?! Here's the catch: the turbine style flowmeter is calibrated at 1 pulse per gallon. The well flows right around 60 GPM 24/7. There is a self contained totalizer at the site now that is "jittery" in it's GPM indications. I already know all the ways I could count pulse or measure frequency and factor my way to GPM. With a range of 0 to 100 GPM at 1 pulse/gallon what is the best way? The shorter the sampling period the higher the multiplication factor and the poorer the instantaneous resolution becomes. A 1000mS sampling with about a pulse per second has a resolution of nearly plus/minus 60 GPM ? which is not so useful. Doubt that changing the flow meter to a unit with pulsed and 4 to 20 mA is in the cards. I have a feeling I have answered my own question already with the laws of physics. Any comments, ideas, or remarks are welcome. Sincerely, -HW
Hello, first please accept my apology for my bad english. I`m using SB 13, which should do a pulse everytime SB 3 rises (every second). I`m increasing value by INC function block by positive transition contact of SB 13. Works well for like a minute and then it starts increasing around 50 values per second. It lasts for around 5 seconds and then it goes back to normal. When I`m watching online test and this situation happen, the ---[P]--- of SB 13 starts flashing a lot. Joining my VisiLogic project. (there are unconnected nets and timers, please, don`t give it attention) Thanks in advance for quick reply. Best regards, Martin Půta V280-2016_15_5 (1).vlp