|
Function INTEGRATOR
To perform an easy integration function e.g. for calculation of energy, volume use the function
INTEGRATOR ( channelnumber , mode , state , measurement number)
e.g.: INTEGRATOR (K123,2,1,3)
Possible values for mode are 0 displayes the actual value of the channel, depending the syntax of the channel number (K123,M123,I123 or P123) 1 The value of the channel will be multiplied with K000 ( time differenz in h) and integrated. 2 The value of the channel will be integrated
Possible values for state aret 0 The result is set to "0", the integration function is switched off 1 The integration function is active 2 The result is set to "0" when the measurement n starts 3 The integration function is only active is the measurement n is running
Measurement number
The channel will only be integrated if state=2 and the measurement with the measurement number is running. So You can connect an integration with a running measurement.
If the channel value exceeds ABS(99.999.999,00) the channel value will be set to 0 and the integrations starts from the beginning. This is to prevent overflow effects.
Error codes:
9990 Wrong channel number ( only 1..512 ) 9991 Channel not defined 9992 Error mode m 9993 Error state s 9994 Error measurement number
Use for :
- Calculate the energie from a given power (kW to kWh)
- Calculate the volume from a given flow rate (L/h to L )
|