Hamilton Electronics EPHUM011 manual 2 PA9 Moving Average, Effect of Moving Average n=1 vs n=16

Page 27

pH ARC Sensors Modbus RTU Programmer’s Manual (EPHUM011)

2.6.2 PA9: Moving Average

The pH ARC Sensor provides new pH readings every 3 seconds. One has the possibility to smoothen the pH reading (PMC1) by means of a moving average applied to the 3-seconds-readings.

PA9 can be applied on 1 to 16 3-seconds-readings. The default value is 2.

Effect of Moving Average (n=1 vs n=16)

5.5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov av = 1

 

 

4.5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov av = 16

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

pH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3.5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2.5

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15:46

15:46

15:46

15:46

15:46

15:47

15:47

15:47

15:47

15:48

15:48

15:48

15:48

15:49

15:49

15:49

15:49

15:50

15:50

15:50

tim e

Effect of Moving Average (n=1 vs n=16)

5.2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5.18

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

mov av = 1

 

 

 

 

 

 

5.16

 

 

 

 

 

 

 

 

 

 

 

mov av = 16

 

 

 

 

 

pH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5.14

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5.12

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5.1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15:46

15:46

15:46

15:46

15:46

15:47

15:47

15:47

15:47

15:48

15:48

15:48

15:48

15:49

15:49

15:49

15:49

15:50

15:50

15:50

tim e

Figure 2.6.2.1: Comparison of the response of a pH ARC Sensor to a change from pH 5.1 to pH 2.5, using no moving average (n=1) or a moving average over 16 3-seconds-readings.

Using moving average, the short term signal stability can be improved; on the other hand, the response time of the sensor increases with increasing moving average. A moving average over 16 samples results in a response time of at least 48 s.

Note:

PA9 is applied to both PMC1 and PMC6.

624300/01

page 27 / 67

Image 27
Contents PH ARC Sensors Important Notice Sensor Identification and Information Configuration of the Serial RS485 InterfaceConfiguration of the Analog Interfaces Configuration of the MeasurementIntroduction Visiferm do Modbus RTU Programmer’s Manualp/n 624179/01EPHUM011 0x03 Operator levels and PasswordsReading / Setting Operator Level General0x0B 18111978 Changing Passwords for Operator Level0x30 0x0C 18111978Reading the Device Address Limits Configuration of the serial RS485 InterfaceDevice Address Reading and Writing the Device AddressBaud Rate Reading and Writing the Baud RateReading the Baud Rate Limits 0x07 Configuration of the Analog InterfacesAvailable Analog Interfaces Available Analog Interface ModesMA interface #2 Selection of an Analog Interface ModeDescription of the Analog Interfaces 1 MA interface #1Configuration of the 4-20 mA Interface 0x210x01 PH ARC Sensors Modbus RTU Programmer’s Manual EPHUM011 Reading the Selected Physical Unit for Analog Interface 0x001000Defining the Measurement Values for 4, 12 and 20 mA Output PH ARC sensor 4-20mA inte rface linear Defining a Constant Current Output for Testing 0x010001 99186 99742 Reading the Internally Measured Output CurrentDefinition of Measurement Channels and Physical Units MeasurementSpecial 0x201000 Primary Measurement Channel 1 pHDescription of PMC1 Selecting the Physical Unit for PMC1Reading the measurement value of PMC1 0x1000 02503 0x000x200000 175.9922 0x00 954.6541 0x06 Primary Measurement Channel 6 TemperatureDescription of PMC6 Selecting the Physical Unit for PMC60x04 24.35834 0x00 130 Input of an Externally Measured TemperatureDefinition of the Measurement Status for PMC1 / PMC6 Reading the measurement value of PMC6 Description of SMC Secondary Measurement Channels0x8000 247.56 Reading the measurement value of SMCAvailable Parameters Configuration of the MeasurementEffect of Moving Average n=1 vs n=16 2 PA9 Moving AverageSelecting the Physical Unit and Writing the Value for PA9 Description of PA9 Moving AverageReading all Values for PA9 3 PA12 Moving Average R Description of PA12 Moving Average RSelecting the Physical Unit and Writing the Value for PA12 Reading all Values for PA12 Available Calibration Points CalibrationCP2 Definitions of Calibration PointsCalibration Points 1 and 2 Standard Calibration CP1CP6 Calibration Point 6 Product CalibrationCalibration at CP1 and CP2 Standard Calibration Calibration ProcedurePH ARC Sensors Modbus RTU Programmer’s Manual EPHUM011 Choose one of the calibration points CP1 or CP2 0x00000000 0x00001000 Calibration at CP6 Product Calibration 100200 Product calibration Initial measurement Definition of the commands for product calibrationProduct calibration Assignment Product calibration CancelProduct calibration Restore product calibration Product calibration Restore standard calibrationReading the Calibration Status of CP1 and CP2 Reading the Calibration Status0x00000080 0x00001000 0x00000180 0x00001000Reading the Calibration Status of CP6 Product Calibration 0x14000000 0x00001000 0x01000000 0x000010000x08000000 0x00001000 0x0A000000 0x000010000x10000000 0x00001000 0x00000004 29.93368 379.5167 Currently active Calibration Parameters part0x00000004 24.35184 23.78 0x00000004 24.37691 16.45607782 59.47631 298.15 003401 179.927 297.1378006804 099747 296.6901 10469 298.3302Special Commands for Calibration with Visical 0x0000003F Calibration StandardsAvailable Sets of Calibration Standards LSB 0x00000001 Set180 Definitions for Individual Sets of Calibration Standards0x0FFF0FFF 0x05540FFF 0x02480FFFNist Standard DINMettler Toledo Radiometer Sensor Status Temperature Ranges168.3667 Operating Hours and CountersCurrently Active Warnings History of WarningsDefinition of Warnings Errors Currently Active ErrorsHistory of Errors Definition of Errors Reading Definition of SIP and CIP SIPCIP 120 130 Reading the Sensor’s Quality IndicatorEPHFI010 Sensor Identification and InformationGeneral Information Sensor IdentificationFree User Memory Space 0001001Freeuserspace 732255 System CommandsRecall Sensor’s Factory Settings Hello WorldPH ARC Sensors Modbus RTU Programmer’s Manual EPHUM011