ELMA

Control System

User’s Guide

Version 16.0

ELMA - Control System User‘s Guide

Contents

1. ELMA Control Program Characteristics ...... 5 2. Program Installation and Backup ...... 5 2.1 Configuration of databases ...... 6 3. Program Measurement Processes ...... 7 3.1 Setup and Calibration of Local Evaluation Units (OPS) ...... 7 3.2 Warming-up of Meters ...... 8 3.3 Tests in Adjustment and Verification Mode ...... 9 3.3.1 Automatic Test ...... 9 3.3.2 Manual Test ...... 10 3.3.3 Dial Test ...... 10 3.3.4 Maximum Test ...... 12 3.3.5 Parameterization Tests ...... 12 3.3.6 Special tests ...... 13 3.3.7 Data Input from a Handheld Terminal ...... 16 3.4 Protocol Generation and Printout ...... 17 4. Program Control Description ...... 18 4.1 Shortcuts ...... 18 4.1.1 Global ...... 18 4.1.2 Measurement tests window ...... 18 4.1.3 Shortcuts related to DB of Measurements ...... 18 4.2 Main Window ...... 19 4.2.1 Program Menu ...... 20 4.2.2 Start-up Bar ...... 21 4.2.3 Measurement Selection Rollup Menu ...... 22 4.2.4 Type Selection Rollup Menu ...... 22 4.2.5 Tests Menu ...... 25 4.2.6 Stands Window ...... 27 4.2.7 Information Line ...... 31 4.2.8 Status Bar ...... 32 4.3 Information Window ...... 33 4.4 Results Window ...... 33 4.5 Manual Control ...... 35 4.6 Program Parameters Window ...... 35 4.6.1 Measurement Tab ...... 36 4.6.2 Back Control Page ...... 43 4.6.3 Evaluation Page ...... 44 4.6.4 OPS Page ...... 47 4.6.5 Handheld Terminal Page ...... 48 4.6.6 Protocols Page ...... 49 4.6.7 Archiving ...... 62 4.6.8 Shortcuts ...... 62 4.6.9 Databases...... 63 4.6.10 Service Page ...... 64 5. Database system ...... 66 5.1 Database of Measurements ...... 66 5.1.1 Editing Test Parameters ...... 67 5.1.2 Deleting Test from the Tests Database ...... 70 5.1.3 Creating a New Test ...... 70 5.1.4 Creating a New Measurement ...... 70 5.1.5 Deleting a Measurement ...... 70 5.1.6 Measurement Name Modification ...... 71

2 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

5.1.7 Adding Tests to Measurement ...... 71 5.1.8 Deleting a Test from Measurement ...... 71 5.1.9 Protocol Template Setup ...... 72 5.1.10 Tolerance Table Setup ...... 72 5.1.11 Saving Changes into the Measurements Database ...... 72 5.1.12 Selective Filtering of Measurements ...... 72 5.1.13 Test Parameters ...... 72 5.1.14 Special Test Definition ...... 78 5.1.15 Stop Test Definition ...... 83 5.2 Database of Meters ...... 84 5.2.1 Adding New Electricity meter Type into Database of Meters ...... 88 5.2.2 Deleting the Electricity meter from Database of Meters ...... 88 5.2.3 Renaming Electricity meter Type ...... 89 5.2.4 Table of meter register definitions ...... 89 5.2.5 Table of definitions of communication commands ...... 90 5.3 Database of Tolerances ...... 95 5.3.1 Creating New and Deleting Tolerance Table ...... 96 5.3.2 Defining Tolerances for Individual Load Points ...... 96 5.3.3 Format for Current Formula ...... 97 5.3.4 Editing Tolerance Table Items ...... 98 5.3.5 Adding and Deleting Tolerance Point ...... 98 5.3.6 Modification of Tolerance Table Name ...... 98 5.4 Stands Database ...... 98 5.4.1 Adding New Stand and Deleting the Stand ...... 99 5.5 Database of OPS units Addresses ...... 99 5.5.1 Address Modification ...... 100 5.6 Database of Stations and Equipment ...... 100 5.7 Database of User Defined Signal Shapes ...... 101 5.7.1 Harmonic signal type ...... 101 5.7.2 Voltage dips signal type ...... 102 5.8 Database of Uncertainties ...... 104 5.9 Ripple Control Signals ...... 105 6. Generating and Printing Protocols ...... 106 6.1 Using the templates – diagram ...... 106 6.2 Generating and Printing the Output Protocol ...... 107 6.3 Creating Protocol Template ...... 108 6.4 Command Template and Protocol Commands ...... 108 6.4.1 Rules for Using Commands in Command Template ...... 113 6.4.2 Syntax of Commands used inside #TESTxx … #ENDTEST Blocks ...... 113 6.4.3 Commands used outside #TESTxx … #ENDTEST Blocks ...... 114 6.4.4 Using TSTATUS, STATUS, STATUSINFO Commands ...... 115 6.4.5 Using VAL Command ...... 116 6.4.6 Example of how to Use VAL Command ...... 117 6.5 Uncertainties ...... 117 6.5.1 Standard Uncertainty of Type A ...... 117 6.5.2 Standard Uncertainty of Type B ...... 117 6.5.3 Combined Standard Uncertainty ...... 117 6.5.4 Expanded Uncertainty of Measurement ...... 118 6.6 FastReport reporting system ...... 118 6.6.1 FastReport configuration ...... 119 6.6.2 Starting FastReport ...... 119 6.6.3 Editing templates ...... 119 6.6.4 Preinstalled templates ...... 120

www.appliedp.com ELMASW-UG160-EN 3

ELMA - Control System User‘s Guide

7. System of User Permissions ...... 124 8. Data Exchange with Meters ...... 125 8.1 Data Readout modes ...... 125 8.2 Meter Parameterization Modes ...... 125 8.3 Readout via OPS and its OPTH 1000 ...... 126 8.4 Parallel Readout via EDEX ...... 127 8.5 Parameterization via OPS and its OPTH 1000 ...... 128 8.5.1 Direct Parameterization - sequential ...... 129 8.5.2 Advanced Direct Parameterization - sequential ...... 132 8.5.3 External Command Line Program Parameterization - sequential ...... 133 8.6 Parallel Parameterization via EDEX and OPTH 2000 ...... 139 9. Running Tests...... 142 9.1 Auto-run Test Mode ...... 142 9.2 Auto-run Infinity Test Mode ...... 143 10. Batch Test Block ...... 145 10.1 Principle ...... 145 10.2 Practical example of batch test block ...... 145 11. Testing meters with different constants and ratios ...... 147 11.1.1 Meter Constant Entering ...... 147 11.1.2 Meter Ratio Entering ...... 147 11.1.3 Meter Tolerance Entering ...... 147 11.1.4 General notes ...... 147 12. EDEX System Overview ...... 149 12.1 Main Features ...... 149 12.2 System Components ...... 149 12.3 Principle ...... 149 12.4 Data Exchange Database ...... 150 12.4.1 Structure of EDEX database ...... 150 12.5 Advantages ...... 168 13. DLMS ...... 169 13.1 Main Features ...... 169 13.2 Description of changes in ELMA SW related to testing of DLMS meters ...... 169 13.2.1 Database of meters ...... 169 13.2.2 Measurements database ...... 175 13.3 External program for reading / writing DLMS meters ...... 177 14. Data Export ...... 179

4 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

1. ELMA Control Program Characteristics

ELMA is a control program for Electricity Meter Test equipment. Basic program characteristics: • user-accessible control; the program is designed for MS Windows 7 and newer • possibility to communicate with the program in any chosen language, to switch between languages without necessity of quitting the program, and user definition or modification of language-specific texts • automatic generation and printout of user-defined protocols using Microsoft Word program or Fast Report system • user-defined electricity meter types, tests, measurements and tolerances. All of those are stored in the database of the program • simple control of the measuring part of the program (warming up, adjustment, verification, protocol creation and printout) • full user control of the program configuration part (program configuration, database system, system of language localization and protocol templates creation) • built-in possibility of keeping the records of measured results (processing of the archive database by means of an external program) The program can be split into two basic parts: • measurement - involves measuring processes - the basic program activities aimed at tasks related to error evaluation of tested meters (setup and calibration of evaluation (OPS) units, warming up, tests, protocol generation and printout • configuration - comprises program activities associated with configuration and proper setup activities performed in the measuring part (program configuration, database system, language localization system and protocol templates generation) Control of the measuring part is simple and intuitive. The configuration part, however, requires deeper knowledge of the program, of the operating system (MS Windows) and of the utilized external programs (MS Word, Firebird database (older versions with Interbase support)). After system installation, default configuration is loaded and intervention is necessary only in special cases (for example introduction of new type of electricity meter, modification of output protocol, norm change, etc.). That’s why two possible approaches on how to work with program are possible: • measuring and configuration part are controlled by the same properly qualified personnel • the configuration part is accessed by an acknowledged properly qualified person and the measuring part i.e. the measurement itself is executed by skilled laborers having no access to the configuration

2. Program Installation and Backup

The program is installed from a CD (or USB flash drive) by running installation file (install.exe). Installer creates and installs all necessary files (program files, support communication libraries, initialization files, language files, databases, MS Word templates, Fast Report templates, …) into directory C:\ELMA. It is recommended (usually after a month or so) to backup periodically all files by copying the program's directory structure into a safe location, so that after an eventual operating system or disk drive breakdown it will be possible to complement the current versions of all the files within the new installation.

www.appliedp.com ELMASW-UG160-EN 5

ELMA - Control System User‘s Guide 2.1 Configuration of databases Newest ELMA Control Software uses databases defined in configuration file database.ini located in same directory in which program exe file resides (typically c:\ELMA). Typically only one database pair is configured in this file and it contains only one block similar to this: [Local] ARCHIVE=c:\ELMA\DATABASE\archive.gdb ELMA=c:\ELMA\DATABASE\elmadb.gdb AliasNumber=0

Description of the content of database.ini file block: First line … name of the DB connection (showed in status bar of Control Software) defined by user Second line … definition (path and name) of archiving database file Third line … definition (path and name) of technology database file Fourth line … alias (block) number (0-99)* * Remark: Alias number can be specified as command line parameter when ELMA Control Software should be used with some database pairs directly. Syntax of program calling is: elma.exe -aX where X is alias number present and defined in database.ini file. In case when command line parameter -aX is not defined then default alias number 0 is used. In case when more separate databases should be prepared for usage (via command line parameters) then more blocks have to be present in database.ini file. Example of database.ini file with more blocks (more database definitions): [Local] ARCHIVE=c:\ELMA\DATABASE\archive.gdb ELMA=c:\ELMA\DATABASE\elmadb.gdb AliasNumber=0

[Old] ARCHIVE=c:\ELMA\DATABASE\archiveOLD.gdb ELMA=c:\ELMA\DATABASE\elmadbOLD.gdb AliasNumber=9

[ELMA02] ARCHIVE=10.114.35.51:c:\ELMA\DATABASE\archive.gdb ELMA=10.114.35.51:c:\ELMA\DATABASE\elmadb.gdb AliasNumber=22

Example of configuration of ELMA desktop shortcut for usage with databases defined under alias 9:

6 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

3. Program Measurement Processes

Measuring process is essential action of the program towards performing necessary tasks of meter testing. The program involves following measuring processes: • setup and calibration of the (OPS) evaluation units • meters warming-up • tests in adjustment or verification mode • protocol creation and printout

Running of ELMA Control Software is hardware dependent. It is necessary to be connected to ELMA system (which consists of Signal Generator, Reference Standard, OPS units and optionally CMR-I units) or to Portable Test Equipment - PTE. However, if neither of such devices is available or demonstration purposes are required, ELMA SW will also run in DEMO mode, when no HW (except a PC) is required. If HW units are expected but not connected (intentionally or not) this window appears at ELMA SW start up (if enabled in Service tab of Configuration):

User can enter DEMO mode, check possible HW units’ communication issues by rechecking it again or close the program.

3.1 Setup and Calibration of Local Evaluation Units (OPS) The evaluation unit (OPS) is a computer operated system device which, in cooperation with the reference meter, scans and evaluates the electricity meter error. Each measurement position has its own evaluation unit. Correct functionality of the OPS requires its correct setup and calibration. It is necessary to perform the setup and calibration process each time the measuring system is switched on (OPS loses its previous calibration data each time it is switched off), after replacement or position change of the electricity meter or after change of the optical sensor head position. It is possible to perform the OPS setup and calibration in two ways: • individually (one specified OPS) • simultaneously (all OPSs on all activated measuring positions)

www.appliedp.com ELMASW-UG160-EN 7

ELMA - Control System User‘s Guide

Setup and calibration of a single OPS evaluation unit does not require a computer; it can be performed anytime, on condition that the electricity meter is supplied with sufficient energy (the induction electricity meter disk must move; the output LED of static electricity meter has to emit impulses). This setup and calibration type is usually used during the test performance in order to fine- tune the optical sensor setup. This process is started manually - first, user must set the proper position of the sensor and then initiate the auto calibration mode by pressing the SET button of OPS evaluation unit in MEAS mode. Auto calibration mode is terminated after approximately 15 seconds or the user can terminate it manually by MODE button of the OPS. Manual termination shouldn’t occur sooner as the meter’s disk makes whole disk rotation (two mark passages) or the LED of static meter once flashes. Simultaneous setup and calibration of the OPS is a process which can be run from the main program window by pressing the respective start button or from the program menu. After activation of this process, the computer initializes generation of respective load point and prompts the user to set all scanning heads. Control software adjusts OPTS units according to mounted meters on the bench (static or dynamic). It is necessary to adjust the position of the optical sensor head on the supporting arm with respect to the type of meter. With induction meter OPTS shines on a disk and captures the reflection of light. The quality of the captured reflection is shown by analogue way of LED INFO. This LED lights with maximum intensity in the transition mark. With static electricity meter OPTS is set to capture the flashing meter’s LED. Here the LED MARK flashes with the same intensity as the meter’s LED and LED INFO flashes with half-frequency. Then the computer upon user’s confirmation starts the auto calibration of OPS evaluation units. If the result of auto calibration does not reach the sufficient level, which is indicated by LED ERR, the setup process of the OPS evaluation units is necessary to repeat. The user’s most important task in the process of setting and calibration of OPS evaluation unit is the accurate setting of its optical sensor.

3.2 Warming-up of Meters The warm-up process is used to provide sufficient warming-up of all mechanisms of the meters being verified. It is possible to run the process and to quit it after a required time from the main program window by pressing the respective button or from the program menu. After activation of this process, computer generates the output signals of the respective load point and switches the OPS into the measuring mode.

8 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

3.3 Tests in Adjustment and Verification Mode A test is a basic measuring process of the program. In the verification mode the test result is directly sent to the output protocol. The program comprises two modes of tests: • adjustment mode • verification mode The main differences between the two modes are the following: • in the adjustment mode the automatic test is finished upon operator’s intervention while in the verification mode the test is completed automatically after measurement of specified number of samples, • manual test performed in the adjustment mode is always finished upon operator’s intervention, while in the verification mode it can be set also to automatic termination after a specified time, • in the adjustment mode, the OPS error tolerance window is set up wider than in the verification mode, so it is possible to evaluate meters with error many times exceeding the specified accuracy class. It is possible to run test from the main program window, by a mouse double-click on the respective line in the test window, or by selection in test window and pressing the respective start button, or running it from the program menu. The program distinguishes following test types: • automatic test • manual test • test of electricity meter constant verification (dial test) • maximum test • data input from a handheld terminal (input of serial numbers, dial final states, arbitrary user text) 3.3.1 Automatic Test Result of an automatic test is directly a value of electricity meter error in percentage (e.g. -1.23%) and is always provided by OPS. After setting the load point test signals, the computer reads measured individual error values from the OPSs and after completing the test, it automatically evaluates the final meter error by statistical processing of measured values. The automatic test is terminated upon user's instruction in adjustment mode (by pressing the start button or from the program menu) or, in verification mode, after the specified number of samples being measured.

www.appliedp.com ELMASW-UG160-EN 9

ELMA - Control System User‘s Guide

3.3.2 Manual Test Manual test is expected to have a logical character (with "Pass" or "Fail" result type). The test result is obtained manually from the operator or automatically from the OPS evaluation unit operating in a special mode. Test evaluation OPS After running the test, the load point for the given test is generated. This type of evaluation can operate in two approaches (using one is not excluding the other): a) Manual evaluation: OPSs display text "YES" indicating positive (Pass) test result. By means of the OPS button it is possible to change the pre-set state to "NO" indicating negative (Fail) result of a test. After the time necessary for the test to elapse and the results are entered via OPS evaluation buttons, operator can terminate the test. b) Automatic evaluation: The choice of this type of evaluation of starting current test and no load test allows evaluating these tests without the necessity of operator’s intervention, however still possible. The evaluation unit scans the flashing of LED (for static electricity meters) or movement of the disk (for dynamic electricity meters). Based on the number of flashes or the number of disk rotations it evaluates the test while taking into account the marginal number of flashes or rotations set in the program parameters. After starting the test, the load point for the given test is generated. The OPS units display text “CNT”. After finishing the test (necessary time for the test elapses or it is terminated by an operator) the program automatically evaluates the test.

Evaluation using terminal (HHU): After starting the test, the load point for the given test is generated. After necessary time for the test to elapse, the operator enters the test result (Pass/Fail) for each position into the handheld terminal manually. After test completion, the operator is prompted to load the test results from the handheld terminal into the computer. Manual evaluation using a PC After starting the test, a load point for the given test is generated by the system. After defined time expiration operator terminates the test manually, afterwards the program prompts the operator to evaluate individual positions by opening the window "Manual Input". In this window, the operator individually evaluates logical states for all positions.

3.3.3 Dial Test The electricity meter constant verification (dial test) is used for verification of correct dial performance (in case of multi-rate meters, all dials consecutively) and thereby for verification of electricity meter’s constant. The amount of generated energy (or time) is specified at the test definition in the measurements database either by a direct entry of dosed energy quantity in kWh or by entering the time in minutes.

10 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Test evaluation Manual evaluation using a PC (Manual from PC) After starting the test, the operator is prompted to load the initial dial status data from the handheld terminal. After the data are loaded, the energy flow is initiated. When the predefined energy volume is depleted, the operator is prompted to load the final dial states from the handheld terminal. When they are uploaded, the window "Manual Input Data" appears. Here the operator evaluates manually each measurement position according to the displayed initial and final states. Manual evaluation using OPS evaluation units (Manual from OPS) After starting the test, the operator is prompted to load the initial dial states from the handheld terminal. After loading, OPS units display consecutively the final states, calculated from the initial states and energy batch size. Consequently, energy batch load is initiated. When energy batch load is terminated, the operator is prompted to evaluate individual meters by pressing a button of the OPS evaluation unit at the respective measured position. The operator has to find out himself the deviation of the dials’ current states from the states displayed at the OPS units and to determine the logical result (Pass/Fail) for all meters. By pressing a button at positions with a Fail result, the operator informs the computer which meters passed and which failed the test. Automatic evaluation The test is evaluated automatically from the uploaded values of initial and final states. It is also possible to consider the result of the automatic test, which has been performed in the same load point. Eventually it is possible to enable meter error measurement during dosing of energy (during dial test). The dial error is then calculated using the following formula:

FINAL − INITIAL − ENERGY RESULT = .100 ENERGY The electricity meter passed if: RESULT +U  ACCURACY

and simultaneously when considering meter error measured in same load point: RESULT − ERROR  LIMIT

and ERROR +U  LIMIT err err where: INITIAL dial state before the test FINAL dial state after the test ENERGY energy volume ERROR electricity meter error measured at the given load point (only if to be considered and already measured; otherwise ERROR = 0) U uncertainty of measurement of energy (coverage factor k=2) Uerr uncertainty of measurement of meter error (coverage factor k=2) ACCURACY accuracy of meter LIMIT limit for dial error (entered into program parameters) LIMITerr limit for meter error (from tolerance table)

At start the operator is prompted to load the initial data. Subsequently, batch energy load is initiated. After batch energy load is terminated, the operator is prompted to upload the final states. When done, the test is evaluated. The test type, evaluation type, consideration of the result of respective automatic test and error limit are defined in the program measurements database.

www.appliedp.com ELMASW-UG160-EN 11

ELMA - Control System User‘s Guide

3.3.4 Maximum Test The maximum test is used for verification of correct measurement of maximums of meters. Load point of the test and test measurement period are defined in measurements database.

Test evaluation Using OPS evaluation units When the test is completed, operator is prompted to evaluate the test using OPS buttons. Each button press changes the state from "YES" to "NO" and vice versa. Using those states, the computer is capable of evaluating the test. Using hand-held terminal (HHU) After applying dose of power program will prompt the operator to enter maximum indicator states to hand-held terminal. Data entered to hand-held terminal are transferred to PC and used for calculation and evaluation of the test. Program will calculate error of maximum test for each meter under the test. Resulting error is in percentage and is calculated by the formula:

MAX − MAX RESULT = elmer etal .100 MAX etal where: MAXelmer maximum measured by meter under the test MAXetal maximum measured by reference standard of ELMA system Meter passes the test when the absolute value of result is less or equal to accuracy of meter. System evaluation by a PC When the test is finished, the operator is prompted to load the resulting measurement data from a handheld terminal. PC evaluates the complete test automatically.

When optical communication heads are used PC evaluates the complete test automatically. For static meters with supported communication protocols registers readout is used to check the internal values. User evaluation by a PC When the test is finished, the operator is prompted to evaluate the test in PC’s window "Manual Input Data" to evaluate each measurement position manually. 3.3.5 Parameterization Tests These types of tests are for meters equipped with optical interface for communication. Details are described in chapter “8 Data Exchange with (p. 125)”.

12 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

3.3.6 Special tests This type of test is used for electronic (static) meters. There are several modes of this test: Compare HHU data with meter display data This is used for visual test of displaying data on the meter display. Data transferred to HHU are visually compared by operator with data displayed on meter’s display. Data transferred to HHU are results of up to three tests executed in measurement. After running the test; program will show window “Results upload to HHU”. In this window it is required to choose three tests which results will be uploaded to hand-held terminal HHU. Use drag & drop method to add test names to bottom box. In case of dial test final states of counter are transmitted to HHU. Upload process is activated by pressing the “Send to HHU” button. After communication OPSs will show text “YES” on their displays (indicating pass state for meter). By pressing the OPS button it is possible to switch state for desired position to “NO”. In terminal HHU it is required to activate “View window” with results for each position. Operator should compare results in HHU with results on display of meter for each position in case of data mismatch should sign position as bad by pressing OPS button to show text “NO”. When there is no need to upload data to HHU this step can be bypassed by pressing “Skip” button.

Compare registers with data in HHU This test provides possibilities for comparison of data read from meter’s registers with data collected by a hand-held terminal HHU. For example, it is possible to compare serial number stored in registers with serial number displayed on meter label. This test requires prior executed test of reading registers. After starting this test program will prompt operator to enter data from terminal HHU.

Type of registers and data for comparison are defined in details of this test (Database of Measurements). When data from HHU and registers match, given position will pass the test.

www.appliedp.com ELMASW-UG160-EN 13

ELMA - Control System User‘s Guide

Compare register content with specified data This type of test is used for verification of data from meter registers. This test requires executed test of reading registers. Parameters of this test are defined in Database of Measurements.

Compare register content with Reference Standard This type of test is used for verification of values read from meter registers with values measured by Reference Standard and result is evaluated with optional evaluation limit (class of meter is used if omitted).

Compare results of 2 tests This type of test is used for comparison of two tests results. Only tests with string result can be compared. It means following test types: • EM serial number • EM type • EM user text Tests to be compared are identified by their Codes. Test to be compared must be finished prior to running comparison test. It is possible to reject characters from the beginning or end of the string from comparison by defining their count in the definition of the test. Result of such test is 1 (or +) when strings are equal, otherwise 0 (or -).

14 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Compare test results with specified data This type of test is used for verification of result of test (defined by test code) with defined value, string or regular expression. Regular expression possibilities are defined in this webpage: http://regexpstudio.com/TRegExpr/Help/regexp_syntax.html

www.appliedp.com ELMASW-UG160-EN 15

ELMA - Control System User‘s Guide

3.3.7 Data Input from a Handheld Terminal

Data input from a handheld terminal is necessary when performing the following activities: • serial number test • electricity meter type test • final states test • user text load test • constant verification test • maximum measurement test Loading data from a handheld terminal is performed in a "Terminal Input selection" dialogue window. Depending on test type, this window displays individual items which have to be loaded from the handheld terminal. Only items with the checkbox enabled will be loaded. Each box represents one rollup list which, when expanded, lists the tests available in the active databank of the handheld terminal. Therefore, data from the test stored in a handheld terminal chosen from the rollup list will be loaded into the item with a marked checkbox. This method is used to load, for example, the serial number into the electricity meter type. The data from a single handheld terminal are stored in the PC in special file. If the "Use data from the previous communication" checkbox is enabled, pressing the "Load" button will load the data from a file already created in a PC and containing data from previous communication with handheld terminal. If it is needed to load data directly from the handheld terminal, leave this field blank. Pressing the "Load" button will, in this case, display a window prompting the operator to insert the handheld terminal into the docking holster. After inserting the handheld terminal with its program in idle state you can start communication by pressing the "OK" button. The ELMA program is capable to communicate with several handheld terminals. The configuration of the number of terminals and the number of docking holsters is set up in the program parameters in the "Hand-held units" tab. Possible configurations: single communication terminal - single handheld terminal single communication terminal - several handheld terminals multiple communication stations - several handheld terminals This setup determines program communication with handheld terminals as well as with the operator. Only the required tests data are transferred from handheld terminal. In addition, you can set up transfer of modifications only, i.e. of data not yet transferred into the PC. This setup is located in program parameters, in the "Hand-held units" tab. Exclusive transfer of modifications only has to be used when loading data from several terminals. If the "Read register values from text file" checkbox is enabled, pressing the "Load" button will display a window prompting the operator to load the file from a PC containing register values.

16 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

3.4 Protocol Generation and Printout The process of output protocol generation and printout together with eventual adding of the measured results into the archive database is usually the last process undertaken with the actual batch of meters. This process may be run from the results window by pressing the respective button or from the program menu. A separate chapter (6 Generating and Printing Protocols (p. 106)) describes the process more in detail.

www.appliedp.com ELMASW-UG160-EN 17

ELMA - Control System User‘s Guide 4. Program Control Description

Program control is performed in multiple basic windows. Some of the activities being accomplished communicate with the user also by means of dialogue windows.

4.1 Shortcuts 4.1.1 Global F4 ...... View application configuration F5 ...... View results F6 ...... Manual Input F7 ...... Open measurement database F8 ...... Open electricity meter database F9 ...... Adjustment Ctrl + W ...... Warm up Ctrl + S ...... Sensors Ctrl + 0 ...... Switch user interface to English language Ctrl + [Num] ...... Switch user interface to localized user interface F11 ...... Service mode F12 ...... View application logs 4.1.2 Measurement tests window Ctrl + Shift + Enter .... View test details Enter ...... Run test Space ...... Select/deselect test to be run in autorun mode (activity column must be visible) Ctrl + A ...... Select all tests (activity column must be visible)

4.1.3 Shortcuts related to DB of Measurements Global

Ctrl + Enter ...... Close window and save changes Esc ...... Close window without saving changes Alt + I ...... Toggle “Include in list” checkbox Ctrl + F, F3 ...... Display search bar Tests Alt + D, Delete, F8 ..... Delete test Alt + C, Insert, F5 ...... Copy test Alt + N, F4 ...... New test Alt + V, Enter, F9 ...... View test details Ctrl + F, F3, any key present in test code or test name ...... Display search bar

18 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Measurements Alt + D, Delete, F8 ...... Delete measurement Alt + C, Insert, F5 ...... Copy measurement Alt + N, F4 ...... New measurement List of tests in measurement Alt + D, Delete, F8 ...... Remove test from measurement Alt + C, Insert, F5 ...... Synchronization of two measurements Alt + V, Enter ...... Display test details Alt + Down...... Move test down Alt + Up ...... Move test up

4.2 Main Window This window, displayed after the program start-up, is accessible to user throughout program run, provided no other basic or dialogue window is active. From the main window user can run all activities of the measurement part of program and to enter the program’s configuration part.

1 2

3

4

5

6 7

www.appliedp.com ELMASW-UG160-EN 19

ELMA - Control System User‘s Guide

The main program window contains the following basic regions: • program menu1, • start-up bar with buttons and a switches2, • rollup menu of measurement selection3, • rollup menu of electricity meter type selection with its basic characteristics3, • chosen measurement tests window4, • window of stands with switching tabs5, • information line6, • status bar7 The appearance of the program can be configured also by selecting color schemes that influence color variety of different program parts (the main window, test icons, results window, program parameters …). These color schemes can be switched in the Configuration/Colours menu. 4.2.1 Program Menu The program menu is located in the uppermost part of the main menu. Using this menu basic functions of program’s measurement part can be run - warming-up, verification, etc. And also entering the configuration part, termination the program and more are accessible.

The menu structure - System menu - results table - window for data input manual or from HHU - start of warming-up - start of sensors calibration

- start of verification or adjustment - activates/deactivates voltage presence between tests - adjustment/verification switch - activates/deactivates auto-run mode - activates/deactivates auto-run mode infinity - disables auto-run mode after finish of currently running test - enables auto-run mode after finish of currently running test - activates/deactivates automatic measurement repeat

- opens Manual Control window where load point generation is possible without tests and measurements definition - opens Load Monitor Window - opens Load Monitor Window with data from external Reference Standard - opens Harmonics Window - opens Signal Shapes Window - opens Last Batch Info Window

- deletion of all results from Results table - exports data from Results table into given csv table and stores in dedicated directory - temporary protocol generation during measurement - forced repeated recalculation of results

- Evaluation units menu - Protocol menu - Run MS Word - starting MS Word - Create protocol template - creates protocol template from opened command template - Generate - runs protocol generation process - Open Fast Report Designer – open Fast Report Designer (more in this chapter) - Commands - database of protocol commands External Software - definition of shortcuts for external SW or internal command Change user - change of logged in user Log off current user - sign-off of the current user Exit - program termination

20 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

- Configuration menu

Parameters (F4) - displaying the Parameters window Language - Language menu English [default] (Ctrl+1) - switching to default English - switching to specified user language Colours - menu for setting the program colors Service mode (F11) - switching the service mode on/off

- Database menu

- entering the measurements’ and tests’ database - entering the electricity meter type’s database Tolerances - entering the tolerances’ database OPS addresses - entering the OPS units’ address database Meter com. ports - entering the Meter communication ports database Stands - entering the racks’ database Stations and devices - entering the stations’ and instruments’ database User defined signal shapes - entering the user shape signals’ database Uncertainties - entering the uncertainties’ database Ripple Control Signals - entering the menu of RCS Refresh data - restoring data loaded from databases

- Measurement menu

The main purpose of this feature is to have the possibility to stop the measurement and export results which were measured until now. Then in future it is possible to import previously stored data and continue in the measurement. Import results - importing the results from the .zip file previously stored Export results - exporting the results to the .zip file (predefined name configurable in menu Configuration – Parameters – Measurement tab – Import/Export Measurement section

Help - Info menu About - program information window Service - Service menu (accessible only in service mode)

4.2.2 Start-up Bar The start-up bar is located right under the program menu and contains buttons with following functions: • Results - display of the results window • Terminal Input - display of the window for manual or HHU data input • Warm up - start and stop of warming-up process • Sensors - start-up of sensors calibration • Test / Adjustment - activation of verification or adjustment process with a test highlighted in the Tests window • Active voltage - control of permanent voltage activation

www.appliedp.com ELMASW-UG160-EN 21

ELMA - Control System User‘s Guide

4.2.3 Measurement Selection Rollup Menu The measurement selection rollup menu is located left under the start-up bar. Its purpose is selection of measurement with tests which will be performed at meters of the chosen type. Individual tests of chosen measurement are displayed in the Tests window. Measurement can be switched by selecting from the rollup menu only if there are no tests of the current measurement already performed; otherwise, this is possible only after removal of measured results of the actual measurement from the results window. 4.2.4 Electricity meter Type Selection Rollup Menu The electricity meter type selection rollup menu is located left under the measurement selection rollup menu. It is used for selection of intended electricity meter type, which corresponds to the meters being verified. For information purposes, basic parameters of the chosen electricity meter type are displayed under this rollup menu.

22 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Electricity meter type filtering The program allows filtering from the electricity meter type database some types so as to make the menu shorter and more transparent when selecting the needed type of electricity meter in the main program window. This is important especially for those stations where large quantities of electricity meter types are defined and moreover several types are similar and differ only in minor details. Filter is available through context menu (by clicking the right mouse button) in the main program window on the dropdown list of available electricity meter types. A list of available options appears so it is possible to select various options. When selected the dropdown list of available meter types will immediately modify accordingly. This context menu is available only when dropdown list is not shaded (typically when no results are measured yet). The context menu displays several items which you can use to set the required filtering of the offered electricity meter types: • "All types" – clearing all filters (displays all types) • wiring type items ("3P4W, 3P3W", ... "1P2W") • construction type items ("Inductive" and "Static") • connection type items ("Direct", "Half direct" and "Indirect (CT/VT)") • measurement type items ("Active Energy", "Reactive Energy" and “4- Quadrant”) • tariff items ("Tariff 1" - " Tariff 4")

Any of these items can be set (by mouse click) in any combination with other options. For example it is possible to filter all electricity meters measuring (also) tariffs 2 and 3 by selecting the next to last or the one which is before the next to last item in the context menu. You can cancel all filters by selecting "All types". If right mouse click is made upon any parameter from the table beneath “Electr. meters” button, “Configure items” button will appear. Clicking on it opens “Electricity meter type parameters”. This allows showing / hiding parameters in the given table.

www.appliedp.com ELMASW-UG160-EN 23

ELMA - Control System User‘s Guide

Displaying the electricity meter type parameters Database with all parameters of defined electricity meter types can be activated by button “Electr. meters” located on the main screen or from Database menu

The primary use of this window is a quick view of main parameters of given electricity meter type.

24 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

4.2.5 Tests Menu The tests menu is located under the start-up bar, right from both rollup menus. This window contains a list of all tests of selected measurement. In each window line, several parameters of these tests are displayed. These parameters (such as test status icon with test name, number of samples, test time (min), etc.) are presented in columns which can be enabled or disabled by user and their sequence can be also changed. In front of the name of each test there is a small icon displaying the test status.

Summary or all possible combinations of test status icons: - (blue arrow) - test in progress - (yellow square) - test to be entered into protocol, not done yet - (light green square) - manual test to be entered into protocol, not done yet - (grey square) - test not to be entered into protocol (usually some parametric tests), not done yet - (yellow square with red check mark) - test to be entered into protocol, already done and evaluated - (grey square with red check mark) - test not to be entered into protocol, already done and evaluated - (yellow square with sky-blue check mark) - test to be entered into protocol, already done but still not evaluated - (grey square with sky-blue check mark) - test not to be entered into protocol, already done but still not evaluated - (yellow square with red check mark and exclamation mark) - test to be entered into protocol, done with errors - (grey square with red check mark and exclamation mark) - test not to be entered into protocol, done with errors The window is also used to run the tests in the following ways: • by double-clicking the line with the required test • by highlighting the line with the required test (using the keyboard arrow keys or the mouse) and subsequently pressing the verification / adjustment start button or ENTER key on a keyboard

www.appliedp.com ELMASW-UG160-EN 25

ELMA - Control System User‘s Guide

Using context menu (right mouse click) user can bring this menu upon any given test:

Show chart Opens Test Evaluation window with errors and standard deviation (applicable only for done tests with proper results):

Show Test Details Opens Test Details window which is the same as opened from Measurements Database window. Quick way of opening this window is Ctrl + Shift + Double Click.

26 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

4.2.6 Stands Window The Stands window is the largest part of main window located in its center. It is used to inform the operator about measurement progress on respective measuring positions of attached stands. The Stands window has a number of tabs between which can be switched via keyboard (ESC, F1, F2 keys etc.) or by clicking with the mouse at respective tabs located under the Stands window.

In Total and stands tab it is possible to do activation, deactivation or “activation as not used” for the selected measured positions or group thereof. Deactivation of the measured positions is necessary if the number of measured electricity meters is smaller than the total number of measured positions of the whole system. By deactivating a measured position the program receives an information saying, that there is no electricity meter on the given position, which would be actually connected to the current and voltage circuit. In such case the program does not take into account the impedance of the electricity meter on the given position when setting the correct range of the electronic source, and it also does not activate the OPS unit on the given position. Activation of the measured position as not used is required, if it is necessary to measure only part of the connected electricity meters, or there is a need to exclude electricity meter from measurement although it will remain connected. In this case the program takes into account the impedance of the electricity meter on the given position when setting the correct range of the electronic source, but it does not activate the OPS unit on the given position while measure. There are two similar tabs: • Total with All stands view • individual Stands with detailed view

www.appliedp.com ELMASW-UG160-EN 27

ELMA - Control System User‘s Guide

Total tab (All stands) displays all positions Individual stand’s tab displays all positions per regardless of its state (activated, deactivated, stand with their particular state (activated, etc.) During test it shows various icons per deactivated, etc.) along with sample error during positions with different meanings, see below. It test. It also displays measured samples per test also displays measured samples per test per per position when test in progress. position when test in progress:

The summary view is displayed in each Stand window for each measuring position its state at all the attached system rack by means of a small icon. Displayed are the following states: Deactivated measured position: (empty square) - deactivated measuring position Active measured positions which are not used:

- (letter R with grey background) - active not used measured position, with the OPS unit in Ready state Active measured points:

- (letter R with orange background) - OPS unit in Ready state - (letters BG) - OPS unit in Bargraph state - (letter M) - OPS unit in Meas state - (letter C) - OPS unit in Calib state - (letters PAR) - OPS unit in Copy state - parameterization via optical communication - (letters CNT) - OPS unit in Counter state - impulse counting state - (large question mark) - error in communication with the OPS unit - (large exclamation mark) - sensor did not capture the mark - incorrect value - (black plus sign on green background) -meter has a positive error within tolerance - (black minus sign on green background) -meter has a negative error within tolerance - (black plus sign on red background) -meter has a positive error out of tolerance

28 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

- (black minus sign on red background) -meter has a negative error out of tolerance - (green plus sign on grey background) -meter measurement ended with a preliminary resulting positive error within tolerance - (green minus sign on grey background) -meter measurement ended with a preliminary resulting negative error within tolerance - (red plus sign on grey background) -meter measurement ended with a preliminary resulting positive error within tolerance - (red minus sign on grey background) -meter measurement ended with a preliminary resulting negative error out of tolerance - (black plus sign on green background with a small exclamation mark) - meter has a positive error within tolerance and the condition of increased result variation is fulfilled - (black minus sign on green background with a small exclamation mark) - meter has a negative error within tolerance and the condition of increased result variation is fulfilled - (black plus sign on red background with a small exclamation mark) -meter has a positive error out of tolerance and the condition of increased result variation is fulfilled - (black minus on red background with a small exclamation mark) - meter has a negative error out of tolerance and the condition of increased result variation is fulfilled The last four errors are displayed only if “Elevated swing of samples indication” is allowed in the program parameters (Measurement - Automatic test). In detail view of each stand window the measuring positions with symbolic indication are displayed as following:

- (no picture) - measuring position is inactive

- (picture of an electricity meter) - measuring position is active

- (struck out picture of an electricity meter) - measuring position active as not used

Deactivation or Activation as Not Used of particular positions can be carried out even when a test is in progress (only in stand view on Main Screen). Using context menu it is allowed to disable any meter, however it is not possible to reactivate such meter during test in progress. This feature is helpful in situations when some meter or its position goes malfunction but the rest of them can proceed with testing. During an automatic test it is possible, in the detail mode view, to detect the actual error of the electricity meter for each position. If the program allows setting up stand types, the detail view displays also the type for each stand. The stand type information in case of using multiple systems must be given into the program to achieve correct setup of electronic power source ranges. Selection of activation type for the measuring position can be performed in several levels: • selection of activation type for a single measuring position - through context menu displayed after clicking the right mouse button in detail view at appropriate electricity meter picture • selection of activation type for a part of a stand - through context menu displayed after clicking the right mouse button in detail view on a panel grouping numerous measuring positions (in most cases, a half of stand) • selection of activation type for the whole bench - through context menu displayed after clicking the right mouse button in detail view out of the panel grouping numerous measurement positions

www.appliedp.com ELMASW-UG160-EN 29

ELMA - Control System User‘s Guide

• selection of activation type for all stands - through context menu displayed after clicking the right mouse button in the summary view

“Set meter error dispersion” is for internal use only and is available only in demo mode.

During running test context menu upon particular enabled position allows to choose “Restart test on this position”. This is available from Stand’s tab and performs re- initialization of samples. In other words all samples will be deleted and measured from the beginning. This feature is useful if some problem occurred during test start regarding that position and already been resolved. User might not wait until test is done for other enabled positions but rather reinitialize this position. In the end all other positions will be finished but this one will obtain its remaining samples, anyway this feature saves time. Load Point View Load Point view is activated by click on “LP” tab. This window displays values of quantities generated by a Signal Generator and measured by a Reference Standard.

30 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

4.2.7 Information Line The information line can be seen only under certain circumstances (during measurement) and is located in the lower part of the main window at its right edge, under the stands region and above the status bar. It consists of numerous individual parts, each of them having its specific usage.

2 1

The current program version uses the following parts of the information line: • the first part from the right - time indicator 1 • the second part from the right - progress indicator • the third part form the right - back control indicator 2 The time indicator informs the user about duration of the test in process, of warming-up or calibration of the sensors. The indicator is located at right edge of the information line. Displayed time format is mm:ss (e.g. 01:23) - if the time is shorter than 60 minutes h:mm:ss (e.g. 1:23:45) - if the time is longer than 60 minutes The indicator is normally in a mode of displaying time elapsed from launching the test or other operation and it is displayed in the information line only. However, also some extended modes of time display are accessible through the context menu displayed after clicking the right mouse button on this indicator: • display of time also in a separate window, the location and size of which and thereof derived size of digits provide the user with a good survey of test duration also from a larger distance from the monitor. The user can arbitrarily customize the location and size of this window and he can cancel this window by standard method anytime.

www.appliedp.com ELMASW-UG160-EN 31

ELMA - Control System User‘s Guide

• display of time countdown starting from the value entered in this menu (e.g. if the entered countdown value is 20:00, the program will count down from 20 minutes downwards). When the value 00:00 is achieved, the program notifies the user by a sound alert and, until the test or other operation is completed (automatically or upon user initiation), the program will continue the countdown by transition into negative time values, i.e. 00:00 will be followed by -00:01, -00:02 etc. The program remembers the display mode and placement of a possible individual window on the screen for each test type (automatic test, manual test, dial test, maximum test, optical readout of the electricity meter registers, OPS unit calibration and warm-up), and these data are stored also after program shuts down. Progress indicator informs the user about the state of subsequent sample readings from measuring positions during an automatic test. The indicator is located left from the time indicator. The form of the progress displayed is: X / C resp. N - X / C - automatic verification test X / ( C ) resp. N - X / (C) - automatic adjustment test P% - mm:ss - dial or maximum test with the following meaning of individual parts: N - minimum number of samples read at all active measuring positions X - maximum number of samples read at all active measuring positions C - required number of samples read for the test currently in process, P% - percentage representation of elapsed portion of the test, mm:ss - number of minutes and seconds remaining till the end of test. If the minimum and maximum number of the samples read equals, only one of those numbers is displayed. In the adjustment mode, the required number of the samples read is enclosed in brackets, because (on contrary to the verification mode) achieving this number is not a condition of automatic termination of the test. Back control indicator informs the user of voltage and current in the system, measured by reference standard (RS) and processed by the program back check. The back control acquires backward system information from a reference gauge (RS) and from an electronic source. From this information the two most important quantities (voltage and current) are displayed, in individual phases, in the part of information line reserved for the back control indicator. Values of further quantities obtained during the process can be displayed by activating a separate back control window, using the context menu which displays after right-clicking this indicator. The separate back control window displays the following quantities: • voltage, current and phases of the electronic source (the Signal Generator device), • the basic reference’s quantities: voltage, current, phase and frequency, • some additional gauge quantities: active power, reactive power and some other. The additional quantities of the reference are visible only when this window height is sufficiently large. The program stores this window display mode and placement on the screen for each test type (automatic test, manual test, dial test, maximum test, optical readout of the electricity meter registers, OPS unit calibration and warm-up), and these data are stored also after program termination. The quantities as voltage, current and phase are displayed in colour (other than black), if their inspection is turned on in the program settings. According to the defined boundary values, green colour indicates that everything is OK for the given parameter; yellow colour indicates that the lower boundary has been exceeded, and red colour warns that the upper (critical) boundary has been exceeded. 4.2.8 Status Bar The status bar is located in the lowest part of the main window and spans its whole width. It displays miscellaneous useful information for the program user. The status bar is split into a number of parts, each of them having its specific usage. Recent program version uses following parts of the status bar:

32 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

• leftmost section - displays the text and description language indexes, if their display in the language submenu is allowed • the second section from the left - displays identification of the logged-in user • the third section from the left - displays auxiliary informative language descriptions, if the display thereof is permitted in the configuration menu

4.3 Information Window The information window appears after choosing the item "Help / About program" in program menu or after mouse double clicking on the logo located in the right upper edge of the main window. In this window, it is possible to identify the recent program version.

4.4 Results Window The results window is displayed by pressing the respective activation button, from the program menu, using F5 or Ctrl + R keyboard shortcut.

In this window, test results for meters at individual positions are displayed. After performing any test, here you can find the results of tests already done. The window includes the following buttons: • the OK button closes the window • the Delete button clears the results of all tests. It is used after the measurement is finished (all the tests done) as well as the necessary operations with the protocol (generation, printout, archiving). After removal of all results, it is possible to start measure the same measurement with a new batch of meters or to change the electricity meter type or to change measurement as well (if all the test results of the current measurement are not erased at the time of change of measurement type or electricity meter type in the main window, this type of change is allowed only after confirming of deleting all test results). • the Protocol button starts the process of protocol generation and printout associated with archiving of measured test results • the Details button displays data read from registers of static electricity meters. These data are displayed in additional window, if the register readout test cell in the results window is selected and the given electricity meter has been read.

www.appliedp.com ELMASW-UG160-EN 33

ELMA - Control System User‘s Guide

• the arrow keys are used for horizontal display shift of a number of positions depending on the window size. Those two arrows may be controlled also via plus and minus keys of the numerical part of the PC keyboard. In the results window each position with an electricity meter which did not pass the test is marked with red color and number sign # (hash). The program checks serial numbers with each opening of the results window. If it finds same serial numbers in several fields, they will be displayed in red color. While there are duplicate serial numbers, it will not be possible to continue with protocol printing after pressing the Protocol button (window with following message will be displayed: “Protocol printing not possible - duplicate serial numbers”). The highlighted serial number can be changed by double-clicking it. New window will be displayed, where you can enter a new serial number. In the results window it is possible to acquire (except the visible results of individual tests) also summary information or execute some special operation with the results: • by double-clicking the test code or the field belonging to a particular test and position you can display the graphical view of results of the automatic tests • by double-clicking the position name you display the electricity meter’s load curve • using the context menu displayed after right-clicking the test code you can erase the results of one test or of a special group of tests Additional information in bubbles The result window also allows, for a short moment, to acquire additional information by holding the mouse over respective part of the window: • holding the mouse over the position’s name will display the address and firmware version of the OPS unit • holding the mouse over the test code will display its code and name and for tests with generated load point also the parameters of the point • holding the mouse over any result will display information which depends on the test type: o for the automatic test, average (avg) and standard deviation (stDev) calculated from measured values and individual samples (maximum of 34 values) will be displayed o for the test of electricity meter constant verification (dial test), three values will be displayed: ▪ dial status before the test as No. 1 ▪ dial status after the test as No. 2 ▪ the actual energy dosed for the test as No. 3 o for maximum test, the first line will show the value read from electricity meter and the second line value measured by reference o for register readout test, the content of given electricity meter’s registers will be displayed o for remaining test types, test result will be shown (an identical value to that displayed in the results window) Selective removal It is possible to select more rows by mouse (as depicted) and delete selected results for all positions or only for selected positions.

Confirmation window before deletion.

34 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

4.5 Manual Control Manual Control allows controlling of Power Source (Signal Generator) without defining tests and measurements. This feature is accessible through menu System – Manual Control. Main purpose is to allow user to easily define all essential parameters such as frequency, meter constant, voltage, current, phase angle etc. Seeing also the values from Reference Standard (Measured Values in top right corner) helps quickly evaluate the outcome. “Individual” checkbox - if unchecked allows to control all 3phase controllers per quantity.

In voltage and current section user defines maximum values and then using the color bars set percentage of the maximum value per individual (if checked in top) channel. Small timeout (2-3 seconds) is applied after each change in this window to enable change of more quantities in one batch before applying to Signal Generator in case when Power Source is not in standby state (voltage and/or current are generated).

4.6 Program Parameters Window The parameters window can be activated in the main window from the program menu. The window consists of multiple tabs: • Service (this page is accessible in service mode only) • Measurement • Evaluation • Hand-held units • Protocols • OPS • Back control • External Software All those pages use three common buttons: • OK confirming changes and quitting the window • Cancel discard changes and quitting the window • Apply confirming changes without quitting the window

www.appliedp.com ELMASW-UG160-EN 35

ELMA - Control System User‘s Guide

4.6.1 Measurement Tab This page contains parameters influencing the measuring processes.

Test Single-phase meters on Three Phases It enables to test single phase meters on all three phases of three phase testing equipment. This enables to multiply the capacity of test bench 3 times in comparison to three-phase meters. Enable concurrent batch tests It serves the purpose of allowing execution of batch tests (dial test, maximum test) concurrently, if the circumstances (setting of test order and of test parameters) allow it. Show measurement time Enables showing of total measurement time in status bar. Show stand with customizable positions view This option allows the user to set visible from 1 to 5 positions (with the drop down button Number of custom positions to display) in a customized view in the Main Screen from all available positions. Changing the number of positions and particular positions can be made even during test running. This serves to see only those (somehow altered) positions which are occupied with meters ready for any non-standard situation or measurements.

36 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Enable measurements with external Reference Standards This option enables the new tab “Ext.RS” in database of meters, where operator can define the type of external reference standard as well as many other parameters used during measurement. After enabling this feature also new values are stored into the EDEX database and used during the protocol generation(if such protocol is available). Check measurement compatibility This option enables the new tab “Compatible Measurements” in database of meters, where operator can define the compatibility of meter type with different measurements. Automatically select measurement If enabled, selection of compatible measurement is done automatically during the change of meter type. (if defined for this meter type, otherwise no change) Show Test Devices tab This option enables the Test Devices tab on the bottom of the Main Screen, where operator can define different types of meters and their parameters on individual positions. Use automatic ranges Enables switching between manual/automatic ranges of the reference standard during the run of measurement. Delay before measurement Defines the time delay in miliseconds after voltage/current activation and before the start of measurement. Evaluate interrupted tests automatically This option enables to automatically evaluate and store also the prematurely interrupted tests. This behavior is valid only for Manual test and Dial test. Naming of results file This option allows the user to set the default naming of results file during the export of measurement.

www.appliedp.com ELMASW-UG160-EN 37

ELMA - Control System User‘s Guide

Automatic test This field is used to set up parameters for automatic tests. It contains these parameters: Use last sample in adjusting mode It toggles on/off automatic test termination in the verification mode after measuring the specified number of samples (if switched off, the test must be terminated by the user using a button). Elevated swing of sample indication It toggles on/off indication of increased oscillations of the measured samples. If switched on, it is possible to define the limit at which the display will be indicated. Measurements timeouts First sample + All other samples Defines the maximum waiting time for error sample. Timeout algorithm Defines the algorithm for calculating the maximum waiting time. After error detection wait additional Defines the time in seconds to wait for error sample, when the test is finished, but no sample was detected. The ‘Error’ message on yellow background is shown on this position during this period.

Manual test The field is used for parameters setup for manual tests. External test If checked, the manual tests are considered as external (made in another equipment). Evaluation This field is accessible for internal tests only. The external manual tests are always evaluated by read- in of data from the handheld terminal. OPS For static electricity meters, choosing this type of evaluation selects automatic test evaluation in form of scanning the number of the electricity meter LED flashes, while taking into account the boundary number of flashes set in the test parameters. For dynamic electricity meters it is possible to choose between manual or automatic evaluation via OPS.

38 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

In case of manual evaluation of dynamic electricity meters, the test for each position is evaluated individually using a button on the OPS. By pressing this button the text on the display changes to either „YES“ (pass) or „NO“ (fail). Automatic evaluation of dynamic electricity meters is available only when the software and hardware of the whole system allows it - only then the detection of disk movement is available, which allows to turn on the automatic test evaluation. In such case, test is evaluated automatically based on detected disc movement, with respect to the boundary number of revolutions set in the test parameters. HHU For test evaluation, data input at the handheld terminal are used. PC The manual test is evaluated by the operator directly in displayed program window. The operator enters for each position the electricity meter state for given test (pass/fail). Dialogs with magnetic mover This parameter specifies whether the dialog window for moving the disk mark into the initial position should be displayed. The disk is moved with optional solder iron at the beginning of starting current test and no load test. Automatic test finishing This parameter specifies whether the manual tests have to be terminated automatically after the time pre-set in the test parameters elapses. Show last mark period If enabled, the parameter ‘Last mark period’ is shown in the bubble help of manual test in the Results window. This period means the interval between 2 last flashes of the LED. Enable concurrent tests If enabled, the parallel tests are allowed in blocks of tests, available only for Dial test and Maximum demand test. Starting current test Test duration calculated from first LED flash This parameter specifies time measurement of given test starting from first LED flash. This means, that time before first LED flash will be ignored. Impulse counting starts after first LED flash This parameter specifies impulse counting of given test starting from first LED flash. This means, that first LED flash will be ignored.

www.appliedp.com ELMASW-UG160-EN 39

ELMA - Control System User‘s Guide

Dial Test (Constant verification test) The field contains parameters, which are used for constant verification test setup. Evaluation External For external tests only. Handheld terminal data are necessary for evaluation. Data contain the entered logical Pass/Fail states for individual positions. Therefore, read-in of test results from the terminal is obligatory, read-in of the dial states before and after the constant test verification is optional. Manual from PC For internal tests only. The operator evaluates the meters directly in the program window by choosing Pass/Fail result based on comparing the dial states before and after the test. Reading dial states is not obligatory; however, if they are not read they will be either not displayed in the window to be evaluated by the operator. Manual from OPS For internal tests only. The operator evaluates the meters manually by means of the individual OPS buttons. Pressing the button, two states of the OPS unit are switched. The actual state is shown on the display. If reading-in of initial dial states from a handheld terminal is allowed, display of the calculated final state (meaning Pass) is switched over with a "NO" text (meaning Fail). If the initial states were not read in, the text "YES" (Pass) and "NO" (Fail) are being switched over. Automatic The test is evaluated by calculating the dial error from dial states before and after the test. If the dial error is smaller than the limit entered, the electricity meter passed. The check box "Consider load point results" adjusts dial error calculation so that the calculation includes measured error of the automatic test in the same loading point as the constant verification test is performed. For automatic test evaluation, read-in of dial states before and after the test is required. Reading Data from the HHU Determines the items, which have to be read from handheld terminal. Corrections Power correction It toggles on/off the energy batch duration compensation with respect to the actual output power level. Time correction Time correction of dosage given in seconds. The Parameter Allow batch changing enables or disables the batch size change, when starting of test.

40 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Maximum demand test The field is used to set up parameters for the maximum test. External test Used to setup the test type. If this field is checked, tests are considered external. Also the other field items adapt to the state of the checking parameter „Extern“. Evaluation This field is accessible for internal tests only. External manual tests are always evaluated by reading in the data from the handheld terminal. OPS The operator evaluates the test by means of a button on OPS unit for each position. By pressing the button, „YES“ (pass), „NO“ (fail) printouts switch over the display. HHU Data entered via the handheld terminal are used to evaluate the test. PC (system evaluation) The test is evaluated automatically by computer after reading in the numeric results of meters from the handheld terminal. PC (user evaluation) The test is evaluated by operator directly in the displayed program window. Operator enters result state at each position for given test (pass/fail). Use before test status If enabled, the test is evaluated as difference of register value at the end and at the start of the test, otherwise the maximum value at the end of test is evaluated.

Data exchange test The field is used for parameters setup for data exchange test between electricity meter and computer, i.e. to read out the registers of static meters. Extern test Used to set up the test type. If the field is checked, the tests are considered external. Also the other field items adapt to the „Extern test“ check parameter. Accept higher baudrate This parameter specifies whether during readout via OPS also higher communication speed, different from the standard, can be used, if the electricity meter allows this.

www.appliedp.com ELMASW-UG160-EN 41

ELMA - Control System User‘s Guide

Initial Baudrate [bps] Standard communication speed can be changed in this field. Default speed is 300 baud. Manual input of register values when optical communication fails If enabled, ELMA automatically offers the manual input of values to the operator, if the optical communication fails. Use parallel communication if enabled in test properties This parameter allows the parallel communication on all positions, if it is allowed in the test properties.

End state test The field „End state test“ is used to set up the parameters of the final states test. Load from dial test Enables read-in of dial states after the constant verification test into final states. That means, after the dial test, the final states are filled-in, too. Evaluation This field is accessible for internal tests only. External manual tests are always evaluated by reading in the data from the handheld terminal. Rounding Active Used for activation of rounding of the final state values. If the rounding is active, also other items of the „End state test“ field are accessible. Position Specifies the number of digits for which rounding is active 100 rounding to hundreds 10 rounding to tens 1 rounding to an integer 0.1 rounding to one decimal point 0.01 rounding to two decimal points System Choice of rounding method. It is possible to round upwards, downwards and in a standard way.

42 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

4.6.2 Back Control Page

1

2

3

This page allows configuring the back control system. Back control monitoring 1 This parameter allows to switch on/off the back control system monitoring. Main quantities controlling 2 The parameter allows switching on/off checking of the main quantities (voltage, current, phase).

www.appliedp.com ELMASW-UG160-EN 43

ELMA - Control System User‘s Guide

Voltage, Current, Phase 3 These groups of settings allow setting separately for each quantity the following: • enabling display of warning if the parameter value in the system exceeds the lower limit, • enabling automatic test termination if the parameter value in the system exceeds the upper limit, • setting the values of the lower and upper limit separately for ranges determined in advance, CMRI current loop state This feature is available only in case, that CMRI’s are controlled by external SW (DevControl_CMRI). This SW monitors if the current loop is closed and sends this information to ELMA SW. • ‘warning’ is shown if current loop is opened during test run, but test will continue • ‘automatic test end’ will stop the test if current loop is opened after time defined in seconds 4.6.3 Evaluation Page

1

2 3

4

5 6

7

44 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

8

9

10

11

This page contains parameters influencing display and evaluation of measurement’s results: • parameter 1 allowing to switch on/off graphic evaluation after automatic test completion • parameter 2 allowing to switch on/off checking for all defined measurement’s tests before printing the protocol or archiving the results • parameter 3 allowing to switch on/off the possibility of phase to phase voltage input in the database of electricity meters, if the current database version allows this

• parameter 4 allowing to choose the type of uncertainties: o none o fixed uncertainty (usage of selected table from database of uncertainties) o calculated uncertainty according to EA-4/02 document with definable “k” parameter (the remaining two parameters Chi and Zmax are defined on the service page) o using special formula o uncertainty set according to EN 62058-31 • Parameter “Adjust error according to Power Factor” - if enabled, the raw/measured error value is multiplied with Power Factor of the loadpoint. Then both values are present in the bubble help of ‘Results’ window.(the measured value in square brackets) • Parameter “Allow error values recalculation from Result Window” - allows to switch between these two values(see previous parameter) in the ‘Results’ window using checkbox ‘Values related to Power Factor’. • Parameter “Use System Of Asymmetric Tolerances” - it enables the system of asymmetric tolerances (limits) for evaluation of tests - more information you can find in the chapter 5.3 Database of Tolerances (p. 95) • Parameter “Use System Of Multiple Tolerance Bands” 5 - it enables the system of multiple tolerance bands for evaluation of tests - more information you can find in the chapter 5.3 Database of Tolerances (p. 95) • Parameter “Special Evaluation” 6 enables special evaluation of test - currently implemented as demonstration version - subject to changes in near future • Parameter “Enable Selective Filtering of Electricity Meter Types (or Measurements)” 7 enables using “Include In List” option in Electricity meters’ database (or Measurements’ database). This switch, if unchecked, hides given meter type (or measurement) from the list in program’s main screen rollup. • Parameters of “Average test error” - allows to set the average test error calculation, e.g. if the data from bad positions or results outside tolerances should be included into the average error. Moreover allows to exclude special errors with value 99.99% from average test error calculation.

www.appliedp.com ELMASW-UG160-EN 45

ELMA - Control System User‘s Guide

• Parameters of “Average position error” - allows to set the average position error calculation, that means allows to exclude special errors with value 99.99% from average position error calculation. • Parameter “Show good / bad position count in results window header” - enables showing the good/bad position count in the header of the ‘Results’ window. • Parameter 8 allowing to switch on/off filtering of measured samples. If filtering is switched on, it is possible to define criteria 9, 10 and 11 for samples rejection. Filtration consists of two steps: o 1st STEP: User defined number of initial samples is rejected. Number of rejected samples can be specified either by (global) parameter 11 or in test properties. The setting in test properties has higher priority than global setting. Count of automatically rejected initial samples 11 – defines number of unconditionally rejected initial samples during different type of tests: cosines tests (tests with power factor other than 1), tests with low currents, tests with higher currents and remaining tests. These samples are not counted to limit specified in parameter 9. Even if parameter 9 is zero and count of automatically rejected input samples is one, one sample will be rejected (it will not appear in results and it will not influence the calculation of average or standard deviation of result). If number of raw measured samples is less than or equal to parameter 11, all raw measured samples will be rejected and test on specified position will fail (user will see in result special value defined in application configuration, most probably 99.99%). o 2nd STEP: Outliers are detected by iterative method: In every iteration first a dataset average AVG(n) and standard deviation STDEV(N) is computed. Next the absolute deviation between each data point and the average is determined. Then most extreme point is temporarily removed from dataset. Average AVG(N-1) and standard deviation of dataset STDEV(N-1) are calculated. If the ratio STDEV(N) / STDEV(N-1) is less than first part of criteria 10 and STDEV(N-1) is less then second part of criteria 10 iteration algorithm terminates. If this condition is not satisfied (for example because STDEV(N-1) equals or is more than second part of criteria 10), most extreme value is (permanently) deleted from dataset and next iteration of algorithm is started. The maximum number of samples rejected in step 2 is determined by parameter 9. For example if allowed number of rejected samples is set to 19% and dataset after step 1 contains 5 points, no sample can be rejected in step 2 irrespectively of dataset distribution. The algorithm stops also in case when number of samples in dataset equals 3 (so there will be at least 3 samples after step 2 from which final average and standard deviation will be calculated).

46 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

4.6.4 OPS Page

1

2

Resolution 1 This item enables to toggle high / low resolution of displaying the measured meters error. High resolution means displaying the measured meters error on 3 decimal places on OPS units’ displays and in ELMA control software. Otherwise Standard Resolution will be used - error will be displayed on 2 decimal places and resolution will be 0.01%. We recommend using Standard Resolution for testing meters with classes up to 0.2. High resolution should be used for measuring reference standards. Evaluation window switch 2 This field allows switching on/off the measurement window of OPS units (this measurement window specifies the maximum electricity meter error in both positive and negative direction from zero, measurable by OPS unit at its given setup). Separately for adjustment and separately for test it is possible to define for electronic and for electromechanical meters independent values of the measurement window of evaluation OPS units. For static meters, the size of this window can be set up to maximum. We recommend using max. window size in all cases.

www.appliedp.com ELMASW-UG160-EN 47

ELMA - Control System User‘s Guide

4.6.5 Handheld Terminal Page

1

2

3

4 5 6

This page is used for basic setup concerning communication with the HHU handheld terminals. The ELMA program supports cooperation with multiple handheld terminals. Therefore, it is possible to improve data capture effectiveness by using multiple terminals. Multiple docking holsters for communication can be attached to a PC simultaneously. Maximum number of holsters is 4. Each holster has to be connected to a PC through a using an RS232 interface. The „HHU1“ - „HHU4“ checkboxes 1 are used to allow communication with a particular holster. A dropdown menu 2 underneath each checkbox is used for selecting the serial port through which the holster is attached to a PC. Configuration of terminals usage 3 One docking holster - one terminal Only the „PSION1“ checkbox and the assigned PC serial port setup are displayed. After readout of the required data from the terminal, communication is terminated. One docking holster - multiple terminals Only the „PSION1“ checkbox and the assigned PC serial port setup are displayed. After readout of the required data from the terminal, the operator is prompted to insert another terminal into the holster and to start communication. If all required terminals have been read already, it is sufficient to cancel further communication by pressing the „Cancel“ key in the communication dialogue. Multiple docking holsters All „PSION1“ - „PSION4“ checkboxes and the assigned PC serial port setups are displayed. During communication, the terminals in the individual holsters are read one by one. Communication speed 4 Used to set up communication speed for all terminals. The default communication speed is 19200b/s. Show HHU data after data transfer 5 When this checkbox is checked, after each communication with the HHU handheld a HHU data window will be automatically displayed, where it is possible to perform additional editing and control of the read data. Download only changes 6 When this checkbox is checked, only data not yet transferred from the terminals into PC will be read. The ELMAP handheld terminals program labels the data not transferred with an asterisk „*“. Transfer of changes has its importance only when using multiple handheld terminals for data capture.

48 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

4.6.6 Protocols Page

Protocol files main location User can choose the default location of protocols being saved in PC drive. Protocol templates location User can choose the default location of protocol templates. Give filled protocol file protocol number name If enabled, the protocol number (as defined in ‘Protocol number’ tab) is used for generated protocol file name. Otherwise the last used value is pre-filled. Format Main format switch allows to change between ANSI and UTF-8 formats. Separators Column separator determines which sign separates columns when for instance MS Excel is used to work with CSV files. Decimal separator defines which sign (point or comma) is used to separate decimal numbers. Serial number mask This field specifies the conversion type of serial numbers read by a bar code reader integrated in the handheld terminal. Choosing Format 1 enables to set up the number of truncated characters from the beginning and back from the end; choosing Format 2 enables to set up zeros truncation from the beginning of read character string and the required length of the serial number. Auto fill measurement protocol after autorun finish If enabled, the measurement protocol is automatically filled and stored after autorun is finished. The ‘Silent automatic mode’ means, that ‘Protocol header’ and ‘Protocol’ windows are not visible during this process. Auto archive results after autorun finish If enabled, the results are archived automatically after autorun is finished. The ‘Silent automatic mode’ means, that ‘Protocol header’ and ‘Protocol’ windows are not visible during this process.

www.appliedp.com ELMASW-UG160-EN 49

ELMA - Control System User‘s Guide

Protocol Number

1

2

3

Protocol list number format It is used to set up the format of protocol number, which is automatically embedded into the protocol template in protocol generation process (LISTN command). The protocol number can consist of: • three random user-defined texts - TEXT1, TEXT2, TEXT3 [Values] • date - DATE, time - TIME, sequential number – NUM, position number [Formats] Formats 1 DATE The date is always taken as the operating system current date. In the „DATE“ edit field, the date display format is specified. Y - represents one digit of a year (e.g. for the year 1974 it is 4) YY - represents two digits of a year (e.g. for the year 1974 it is 74) YYY - represents three digits of a year (e.g. for the year 1974 it is 974) YYYY - represents four digits of a year (e.g. for the year 1974 it is 1974) M - display format of month number; only as many digits as included MM - display format of month number; two-digit format D - display format of a day in a month; only as many digits as included DD - display format of a day in a month; two-digit format Also small letters may be used. All other characters will be displayed in the date as well. Example: format: DD/MM/YYYY date displayed: 11/08/1999 TIME Time is always taken as the operating system current time. In the „TIME“ edit field, the time display format is specified. H - displays hour; only as many digits as included HH - displays hour; two-digit format M - displays minutes; only as many digits as included MM - displays minutes; two-digit format S - displays seconds; only as many digits as included SS - displays seconds; two-digit format Also small letters may be used. All other characters will be displayed in the time as well.Example: format: HH:MM:SS

50 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

date displayed: 12:35:59 NUM Used to set up the display of the NUM sequential number. D - displays the sequential number; only as many digits as included DD - displays the number in two-digit format; if it includes more digits, all of them are displayed DDD - displays the number in three-digit format; if it includes more digits, all of them are displayed DDD….. POS Used to set up the display of the position number. NUM 2 Generate on server Used to allow automatic protocol numbers allocation from the server. NUM Specifies a number entering the protocol acquired from the server. Start every day from If this field is checked, the sequential number is set to a predefined value, each day at the first start of the program. Always editable Number will be editable during process before protocol generation. Always new Every time new number will be generated. Mask 3 Specifies the protocol number mask. Example: Formats DATE: YYYYMMDD TIME: HHMMSS NUM: DDDD Values TEXT1: ELMA NUM: 356 Mask: TEXT1_DATE_TIME_NUM Gener No. of protocol: ELMA_19990810_190527_0356 Example 3 It gives an example of a protocol number according to an actual mask. Show in title bar Enables showing of protocol number in title bar, e.g. ELMA Control Software – ELMA-20191104-01.

www.appliedp.com ELMASW-UG160-EN 51

ELMA - Control System User‘s Guide

FastReport protocol

This page contains configuration of FastReport reporting system. More information about this can be found on page 118. Output formats Contains list of supported output formats from which user can choose which one will be used for creating measurement protocol. User can choose also more than one type from the list. Open finished report before export for preview Generation of report is divided into two phases. In first phase protocol template is filled with real data from EDEX database1. In second phase output protocol (in internal format of FastReport component) is converted to one or more output file types. When this box is checked after first phase preview window with finished report is displayed. User can made minor changes to final appearance of document if needed. After closing this window report is automatically exported to selected output formats. If the user wants he can manually export measurement protocol from preview window (in addition to automatic export influenced by checkboxes selected Output formats section). This checkbox doesn’t influence generation of online reports.

1 More info about EDEX database can be found in chapter 8.4 Parallel Readout via EDEX on page 125.

52 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Show filter settings before export Every output file format can be customized by a unique set of settings. If this box is checked then after closing Preview window and before the output file is created dialog box with output format settings will be displayed. User can change these settings if he wants. List of settings available for PDF format are shown in next figure. For every selected output format separate dialog box will be displayed. This checkbox doesn’t influence generation of online reports.

www.appliedp.com ELMASW-UG160-EN 53

ELMA - Control System User‘s Guide

Open finished report after export If this box is checked then after saving measurement protocol it will be opened in associated program (for example PDF file in Adobe Acrobat Reader). If more output formats are exported then every output file will be opened. Some output formats don’t support this option (BMP, JPEG, TIFF, GIF). For these formats this option will be ignored. This checkbox doesn’t influence generation of online reports. Online results If this box is checked then after finishing and evaluating every test measurement protocol will be created again. User can choose template for online measurement protocol creation by selecting one of two radio buttons.

54 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

MS Word protocol

Copy also to this backup location User can choose optional secondary location of protocols being saved in PC drive. Fill only satisfactory This parameter enables to set up printing of protocols so that only the results of meters which passed all the tests will be included in protocols. Show register status digits by meter type setting The parameter enables to set up printing of the protocols so that only the results of meters which passed all the tests will be included in the protocols. Highlight bad values in MS Word protocol This feature enables to show adequate number of digits in dial state, otherwise it will use as many digits as much the state value requires. This option depends on setting of register in Meters’ database. Highlight serial numbers of bad positions The parameter allows setting highlighting of values which are out of set limit in protocol. Result resolution User can choose from several options for decimal numbers (from 0 up to ppm, and default). Password protection of protocols It is used to set up of password to protect generated MS Word protocols. Resulting DOC(X) protocols can be opened without password knowledge only in read-only mode.

www.appliedp.com ELMASW-UG160-EN 55

ELMA - Control System User‘s Guide

Standard CSV

Standard CSV format User can enable the option of automatic and manual generation of such exports. Generate automatically along with output protocol generation Automatically saves CSV export files when OK button is pressed in Protocol window, which is the last window in results archiving procedure (from Results window). CSV file is stored in the given folder. That folder has to be set, otherwise export will not be made. Generate during manual exports To generate manual export CSV files, make right clik upon Results button in the Main program screen and choose “Export CSV”. CSV file is stored in the given folder. That folder has to be set, otherwise export will not be made. Data blocks User can select which type of data will be stored in this type of CSV export files (Standard CSV). …..

56 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Special CSV

Special CSV format User can enable the option of automatic and manual generation of such exports. Data blocks can be split into multiple files with particular check box. Generate automatically along with output protocol generation Automatically saves CSV export files when OK button is pressed in Protocol window, which is the last window in results archiving procedure (from Results window). CSV file is stored in the given folder. That folder has to be set, otherwise export will not be made. Generate during manual exports To generate manual export CSV files, make right click upon Results button in the Main program screen and choose “Export CSV”. CSV file is stored in the given folder. That folder has to be set, otherwise export will not be made. Data blocks User can select which type of data will be stored in this type of CSV export files (Standard CSV). …..

www.appliedp.com ELMASW-UG160-EN 57

ELMA - Control System User‘s Guide

Online results XLS/CSV

There is also one more export available which can be made from results. This outcome is called Online Results and may have one of two formats – XLSX or CSV. The main difference (and also the name is derived from) is that this feature allows having instant results in exported files (also even opened) after each done test even when ELMA SW still doing other tests. Online results can be made from final values or also with additional values. Backup online results files to directory User can set a directory (existing or new) which will save online exported file(s) in a case that some problem occurs or when ELMA SW is closed.

58 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Header configuration User can select which attributes of tests will be stored in the header. Included test types User can select which types of tests will be included in this type of export. Additional values configuration User can select which attributes of tests will be stored within additional values. Readout

This feature when enabled generates automatic export files from carried out readouts into given directory. File Name There are several options which attributes will be included in the file name. File extension User definable extension of output readout file.

www.appliedp.com ELMASW-UG160-EN 59

ELMA - Control System User‘s Guide

Stock letter

This feature when enabled generates automatic stock protocols into given directory.

Certificate

This feature when enabled automatically generates certificates into given directory during output protocol creation.

60 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Files locations

1

2

3

4

5

6

7

8

9 10

11

This page contains user-defined locations of various file types: • directory of protocol templates 1 • directories for storage of generated protocols 2 • directory for storage of standard protocol CSV files (basic) 3 • directory for storage of standard export CSV files 4 • directory for storage of special protocol CSV files (basic) 5 • directory for storage of special export CSV files 6 • directory for storage of Online results CSV files (backup location) 7 • directory for readout exported files 8 • directory for storing generated stock files 9 • directory for storing generated certification files 10 • directory for exporting measurement results 11 It is necessary to have all directories set up according to the actual location of files on a disk. You can change any directory by pressing the respective Browse button and list it in the directory structure.

www.appliedp.com ELMASW-UG160-EN 61

ELMA - Control System User‘s Guide

4.6.7 Archiving

Parameter “Always archive” - if enabled, the checkbox ‘Archive results’ in ‘Protocol’ window is automatically checked during protocol generation. 4.6.8 Shortcuts

This page allows configuring user defined buttons to run various utilities or third parties software. If enabled the button appears in the top of main window:

62 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

4.6.9 Databases

1 2

parameter 1 - if enabled, operator is asked for copy creation of test during editing, in case that test is part of multiple measurements. parameter 2 - if enabled, during synchronizing od databases the operator is asked when identical records are found, either to make a copy of existing record, or to leave only existing record.

www.appliedp.com ELMASW-UG160-EN 63

ELMA - Control System User‘s Guide

4.6.10 Service Page The Service page parameters are accessible only in the service mode for the user with appropriate rights. They are used to set up the working system at initial installation. Any modification of the service parameters is restricted.

1 3

2 4

5 6 8

7

9

10

11

After each change of service parameters it is strongly recommended to restart ELMA SW. Test Bench 1 In this section user can choose another bench which is designed by Code (defined in Database / Stations and Devices; Stations table, column Numb.) and can assign it as 3 phase or 1 phase. “Uncertainty system parameters” should not be changed and they effect each test result. More about the usage of uncertainties see chapter 6.5 Uncertainties. Multiple frequency output …. Stands 2 In this section user can set the stand type – how many positions, what type of stand, etc.

64 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Signal Transducer + Power Unit 3 Allow current range switching – ELMA SW is enabled for automatic current range controlling during load generations. Control Unit 4 In this section user can set tariff related parameters. ELMA HW devices with communication 5 - 8 In this section user can set communication related parameters with all devices of ELMA HW which are controlled by ELMA SW. SG allows to set also Back Control behavior. Hardware configuration Opens special window which allows to configure current and voltage ranges according to technical specification of connected hardware. Demo 9 In this section user can set special conditions and behavior of ELMA SW if operated without connected HW, usually for DEMOnstration purposes. Demo mode can be activated even if operational HW is connected (Activate (unconditionally) is checked). Autoclose serial ports When checked software closes communication serial ports always when they are not used. This enables to use them for other purposes (external tasks, servicing etc.). Use external CMRI controller 10 In standard situation CMRI units (current transformers) are governed by ELMA SW but in rare specific cases some other external utility can be used. SYSDBA password 11 Using button ‘Set Password’ it is possible to change the SYSDBA password, which ELMA SW uses for database connection. Menu Service When Service by righteous user was enabled, new menu item also appears in the top of Main screen. It gives the user a few useful tools especially when troubleshooting ELMA SW is needed. Individual HW components can be switched into DEMO mode. Log of communication and its categories (Logged items) can be enabled and sent to [email protected] for error checking.

www.appliedp.com ELMASW-UG160-EN 65

ELMA - Control System User‘s Guide 5. Database system

5.1 Database of Measurements

1

2 3

Definition of tests, measurements, including tests into measurements and generation of new measurements is performed in the „Measurements database” window. This is activated by choosing from the main menu: „Database” - „Measurements” or clicking on Measurements beneath Results button on main screen.

66 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

The upper half of the „Measurements database” window displays the „Tests“ 1 field in which all in advance defined tests with their parameters are displayed. It is possible to sort the tests by items of their individual parameters by clicking on particular column head. The size of the upper and lower half can be changed by mouse dragging the middle part of the window, which divides the two parts. The lower left part of the window is called “Measurements” 2. Highlighted measurement shows its content on the right 3. This bottom right view of measurement content allows re-ordering the tests within this measurement or to add / delete some tests. Copy Tests button opens special window which helps synchronizing measurements contents. 5.1.1 Editing Test Parameters Editing of test parameters is activated by pressing the Details (F9) button or by mouse double-click on a line with desired test (upper part of the window). The window „Test details“ is displayed which lists all parameters of the given test which can be configured. To save the changes press OK.

www.appliedp.com ELMASW-UG160-EN 67

ELMA - Control System User‘s Guide

If editing of test parameters is activated from upper part of the window, the changes will be made for all occurrences of given test per each measurement it is associated with. If editing of test parameters is activated from the part of the window where given test is already associated with particular measurement, user will be asked for conclusion (see picture in the right): - either a copy of this test will be made for given measurement (original test remains intact) or - the changes will be made for all occurrences of given test per each measurement it is associated with

Right mouse click above given test or group of tests will open Quick Edit Tests window which allows to directly edit any of available parameters of selected tests. This window allows quick editing of multiple parameters in tabular form. Also Copy, Delete and Details features are available.

User can select multiple rows and columns by mouse and perform Fill Down operation (Ctrl + D) which carries out overwritting selected parameters by the top selected row. All enables test parameters are available in this window. Which parameters are visible can be checked in Measurement Database window under button Columns.

68 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

www.appliedp.com ELMASW-UG160-EN 69

ELMA - Control System User‘s Guide

5.1.2 Deleting Test from the Tests Database Test removal is performed by Delete (F8) button. It is possible to delete the test only if it is not included in any measurement and if the currently logged in user has the appropriate rights (see chapter 7 System of User Permissions, page 124). Otherwise the program displays information that given test cannot be deleted.

If the test is associated with some measurements. Logged in user has no appropriate rights to delete given test. To find out which measurements are associated with the test to be deleted, use right mouse click above given test and choose “Show measurement list” option:

Then, this test has to be excluded from all measurements for deletion. Useful can be also the last column called Used – it holds the number of usages of each tests in measurements. 5.1.3 Creating a New Test After pressing New button, the „Test details“ window with empty fields of individual parameters is displayed. Once the parameters are entered, the OK buttons saves this new test into the tests’ database. Another option is to use the Copy button to replicate highlighted test and then to edit it. This helps to create similar tests. 5.1.4 Creating a New Measurement Creating a new measurement in database is activated by New or Copy button. Their functionality is self-explanatory. 5.1.5 Deleting a Measurement Deleting a measurement from a database is performed by Delete button. After pressing it a confirmation window appears yet.

70 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

5.1.6 Measurement Name Modification The measurement name can be modified by repeated delayed clicking on the measurement’s name and its standard editing. Right from the measurements list included in the measurements database, items belonging to the highlighted measurement are displayed. Tests including the given measurement are displayed in a table with Number, Code and Name columns. 5.1.7 Adding Tests to Measurement Adding a test to measurement is carried out by left mouse button (drag operation) from „Tests“ field (upper part of window) in line with desired test(s) and dropped to the content of highlighted measurement (lower right part of window). The test will appear in the measurement configuration window. During dragging, user simultaneously choses the position of dragged test within the measurement. It is possible to drag more tests. A specific test may occur only once in the same measurement. It is also possible to select more tests within a measurement (with a mouse and Ctrl or Shift key) and afterwards move them with arrow keys located beneath measurement content table. Next to the arrow keys is a Copy button. This button activates “Copy Tests” window. This is very helpful to simply copy tests amongst measurements back and forth.

5.1.8 Deleting a Test from Measurement Deleting a test from a measurement is performed by selection (highlighting) of particular test by mouse click and pressing Delete button or DEL key on a keyboard.

www.appliedp.com ELMASW-UG160-EN 71

ELMA - Control System User‘s Guide

5.1.9 Protocol Template Setup For each measurement it is possible to define a name of a protocol template for creation of measurement protocol in the MS Word. This template represents a MS Word document which has to be generated for this purpose first. In the edit field you have to enter the name and path of this document the contents of which corresponds with the tests in the given measurement. It is possible to enter the name and path directly from the keyboard or by pressing the „Browse“ button, which displays a dialogue window in which you can find the file in the disk directory structure and select it. 5.1.10 Tolerance Table Setup The tolerance table provides the allowed tolerances for evaluation of meters errors for individual tests in given load points. It is possible to have only one tolerance table for each measurement. The name of the table is selected from the „Tolerances Table“ dropdown menu. The dropdown menu contains all tolerance tables available for the program. By choosing the required table from the list, the table is assigned to the given measurement. 5.1.11 Saving Changes into the Measurements Database In case any changes were made in the measurements database, the Update button is accessible. Pressing it saves all the changes in the measurements database. 5.1.12 Selective Filtering of Measurements Each measurement has a parameter “Include In List”. Checked status of this parameter means that this measurement will be showed in “Measurement” combo box in main screen of program. When unchecked measurement will not be showed in “Measurement” combo box and therefore will be hidden for operator. This is a possibility how to restrict amount of records in “Measurement” combo box and make process of measurement selection easier and faster. This feature has to be allowed in Parameters of the program. 5.1.13 Test Parameters Code Specifies the test identification code which length can be up to 10 characters. It is used to determine the method of calculation and evaluation of a special test and for distinguishing the test in the (temporary) measurements results window.

Name User specified test name. The maximum test name length is 80 characters. Type Specifies the test type. The type is represented by a numerical value that depends on selected button. It is possible to set the following test types: Automatic (error measurement) Load test with a numeric result expressing the electricity meter recent error. The test is always evaluated automatically by OPS evaluation units. Manual (no load/starting current) Load test with a logical (Pass/Fail) result. The test is evaluated automatically by the measuring station or manually by operator.

72 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Dial test Load test which verifies the mechanism of registering energy by given meter. Result is logical (Pass/Fail) or numerical. Numerical is percentage error of counter mechanism, which is calculated from measured initial and final states of meter counter upon defined dose of energy (or time) together with other parameters related to chosen test subtype: - only energy dose (only dial error is evaluated) - dose with power error measurement (dial error, power error and differential error are evaluated) • it also requires the definition integration time (pulses count) and samples count - dose with pulse error measurement (only pulse count error is evaluated) • pulse count error is evaluated by: Meter Under Test or By Reference Standard - dose with pulse error and dial error calculation (pulse count error, dial error and differential error are evaluated) • pulse count error is evaluated by: Meter Under Test or By Reference Standard - dose with dial error calculated from pulses (only dial error is evaluated) Maximum demand test Load test with logical (Pass/Fail) or numerical result - percentage error of registering of maximum calculated from maximum measured by meter under the test and reference standard of system ELMA. Data exchange test Tests for communication with meters through optical interface EM serial number Test for entering serial number of meter EM type Test for entering meter type EM end state of register Test for entering final state of dial into meter’s registers EM user text Input of user text for each position (bar codes, inventory numbers, and year of manufacture…). Special Test for verification of data read from register of meter Stop test Test enables to stop the auto-run mode with additional message with other conditions which are described at page 83, chapter 5.1.15. EM Constant for LED/Disc This test allows the user to define specific LED / Disc constants individually per position. It means that each meter can differ in this constant. Other tests following this test will already use changed values of LED / Disc constants in their calculations in order to evaluate the error. EM Constant for S0 This test has similar utilization as the previous type although it concerns S0 input. EM Ratio Test enables to enter meter constants and ratios for each tested meter. Tests of these types are required when meters with different constants and ratios have to be tested. EM Tolerance Test enables to enter meter tolerances (accuracy classes) for each tested meter. Tests of these types are required when meters with different classes have to be tested. Attest numbers input Test serves for input of sequence number of meters that have passed testing. Usually, such test is run in the end of measurement. Register association is not used.

www.appliedp.com ELMASW-UG160-EN 73

ELMA - Control System User‘s Guide

Disc positioning Test enables to set disc mark of all meters mounted on a bench to the same position. Load point type It can be standard or special. Selection is performed by clicking on the type required. If standard load point is selected, parameters current, voltage, power factor and channel are displayed. If special operating point is selected, parameters voltage, current, voltage phase and current phase for each phase are displayed. Standard load point

11

12 9

8 3 13 1 7 2

4 5 10 6

Voltage 1 Specifies the value of voltage generated at the test. The value is entered either in percentage of nominal voltage of measured electricity meter or in exact value of volts. Optionally (if HW enables it) there is a possibility to choose Neutral wire disconnection Current 2 Specifies the value of current generated at the test. The value is entered either in percentage of minimal / nominal / maximal current of measured electricity meter or in exact value of amperes. If it is necessary to use maximum current value, it is possible to check the „Imax“ checkbox; in this case the current percentage value will be ignored. Signal shapes 3 Specifies the shape of the signals created during the test - it is possible to select either: • standard (sinusoid without harmonic components) or • Burst-Fire (according to IEC 1036) or • Phase-Fired (according to IEC 1036) or • user defined - shape where the harmonic component basic frequency can be entered. User defined signal shapes are defined in the Database of user defined signals.

74 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Channels 4 Specifies the phases to which the given values of voltage, current and power factor will be generated. Angle 5 The edit field is used for entering the power factor numerical value (cos(phi)). The character is selected by clicking on the field with the respective character (L or C). Basic Harmonic Frequency 6 This parameter allows to directly set the frequency for basic harmonic or this frequency can be same as defined in meter. Back Control (in SG) 7 This parameter allows changing Back Control setting (during execution of this test only). Evaluation 8 This button opens Test Evaluation window which allows: - to set Tolerance – it is either associated to Tolerance DB or user defined (more information in chapter 5.3 Database of Tolerances, page 95) - to reject initial samples according to global settings or by user defined number Measurement Constant 9 This parameter allows: - to directly set constant for this test or - to leave the constant set by meter type definition and - to set external divider by given number Energy Flow Direction 10 This parameter allows to define the energy direction – import (consumption) or export (delivery). Ripple Control Signal 11 This parameter allows to define the RCS. This requires definition in advance of RCS in RCS database (see chapter 5.9 Ripple Control Signals, page 105). RS operation mode 12 This parameter allows to define the RS operation mode, either default (means that ELMA SW will choose automatically) or user defined where operator can select from predefined values. Harmonics Meas. Limitation (in RS) 13 This parameter allows to define the number of harmonics, which will be measured.

www.appliedp.com ELMASW-UG160-EN 75

ELMA - Control System User‘s Guide

Special operating point

9

12 7 10

1 5 8 11

2

3 6

4

Voltage 1 Specifies the voltage in percentage of nominal voltage of tested meters for the respective phase. Current 2 Specifies the current in percentage of nominal current of tested meters for the respective phase. Voltage phase 3 Specifies the phase shift of the voltage of respective phase. Current phase 4 Specifies the phase shift of current of respective phase. Energy Type 5 Specifies the type of energy when multi-quadrant meters are tested. RS energy channel 6 This parameter allows to directly set channels for energy measurement. Measurement Constant 7 This parameter allows: - to directly set constant for this test or - to leave the constant set by meter type definition and - to set external divider by given number

76 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Evalution 8 This button opens Test Evaluation window which allows: - to set Tolerance – it is either associated to Tolerance DB or user defined (more information in chapter 5.3 Database of Tolerances, page 95) - to reject initial samples according to global settings or by user defined number

Ripple Control Signal 9 This parameter allows to define the RCS. This requires definition in advance of RCS in RCS database (see chapter 5.9 Ripple Control Signals, page 105). RS operation mode 10 This parameter allows to define the RS operation mode, either default (means that ELMA SW will choose automatically) or user defined where operator can select from predefined values. Harmonics Meas. Limitation (in RS) 11 This parameter allows to define the number of harmonics, which will be measured. Samples / Batch / Duration time For an automatic test, this field specifies the number of samples (values) which have to be measured during a test for each electricity meter. For manual tests it specifies time duration of test, after which the test will be terminated if it is allowed in the program parameters. Test duration can be also appended (determined) by symbolic expression in special window: “Edit test duration” (see picture in the right). For an electricity meter constant verification test (dial test) this field specifies the amount of dosed energy or time duration of energy dosage (only static meters) for the test.

Tariff Specifies for which tariff is the electricity meter test defined. Measurement Input This parameter relates to automatic and dial tests only. Combo box includes several options for error measurement: • AUTO - automatic. For inductive meter it means sensing of disc, for electronic meter sensing of metrological LED. • S0 - activate measure input for sensing impulses from impulse output of meter

www.appliedp.com ELMASW-UG160-EN 77

ELMA - Control System User‘s Guide

• LED - activate measure input for sensing metrological LED by an optical scanning head • DISC / LCD - activate measure input for sensing disc by an optical scanning head • S0-X - activate special S0 input (hardware dependent) • xxx2 - used in case when two sensors are connected to one OPS unit (AUTO2, LED2, DISC2) • RTC - used for verification of meter’s internal real time clock Integration Time / Pulses Count This parameter relates to automatic and dial tests only. It means minimal period between two measured results. Default and minimum value is 1s. 5.1.14 Special Test Definition Test for verification of data read from register of meter. Available are these types of special test: • Compare HHU data with emeter display data • Compare registers with data in HHU • Compare register content with specified data • Compare register content with Reference Standard • Compare test results of 2 tests • Compare test results with specified data

78 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Compare HHU data with emeter display data Useful for transmitting measured results to hand-held terminal and following comparing data stored in hand-held terminal with data displayed on meter’s display. Data comparison is visual by operator.

Compare registers with data in HHU Useful for verification of contents of chosen registers with data collected in hand-held terminal. “Register” 1 column defines the name of register name, which has to be checked. Such register has to be dragged from the very left column “Registers” 2, where all available registers are present (must be defined in association of registers in meters database). “Psion data” 3 column determines the name of item from hand held terminal which will be compared with register in “Register” column in the same row. On the right side - field “HHU data” are data groups provided by hand-held terminal. Each defined line means one comparison. Use drag&drop method to add items to table, press Del key to erase item from table.

3

2 1

www.appliedp.com ELMASW-UG160-EN 79

ELMA - Control System User‘s Guide

Compare register content with specified data Useful for verification of contents of chosen registers with direct data. On the left side in field “Register” 1 are available registers (must be defined in association of registers). Use drag & drop to add register name to the table and “Del” key to erase register name from table. Columns “Value” and “Quantity” 2 are for defining the desired values in particular register. If value read from desired register match the defined value meter will pass the test when not, tested meter will fail. Column “Quantity” is optional when not defined; quantity of register will be neglected. Column “Value” is required. Only entered number of decimal places will be compared. For example: when there is a definition to verify “Max. power tar. 1” register to value 0.00 only 2 decimal places of register content must be 0, following decimal places are irrelevant. Regular expression switch enables usage regular expressions in Value column. Available regular expressions are described in this webpage: http://regexpstudio.com/TRegExpr/Help/regexp_syntax.html

1 2

Compare register content with Reference Standard Useful for verification of contents of chosen registers with data from Reference Standard (Applied Precision make). Register 1 – one from available registers Limit 2 – evaluation limit (in %) … if difference is higher than limit then result of this test is FAIL

80 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

1 2

www.appliedp.com ELMASW-UG160-EN 81

ELMA - Control System User‘s Guide

Compare results of 2 tests This type of test is used for comparison of results of two tests. Only tests with string results can be compared. It means following test types: • EM serial number • EM type • EM user text Tests to be compared are identified by their Codes. Test to be compared must be finished prior to running comparison test. It is possible to reject characters from the beginning or end of the string from comparison by defining their count in the definition of the test. Result of the test is 1 (or +) when string are equal, otherwise 0 (or -).

Compare test results with specified data This type of test is used for verification of result of test (defined by test code) with defined value, string or regular expression. Regular expression possibilities are defined in this webpage: http://regexpstudio.com/TRegExpr/Help/regexp_syntax.html

82 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

5.1.15 Stop Test Definition Stop test stops execution of auto-run process, displays message and waits for operator’s interaction.

1 2

6 4

5

3

Show Message Box 1 Enables to display message window with user definable message. Message 2 User definable text which will be displayed in the message window. LP Definition 3 Enables to apply defined load point during stop test Stop Condition 4 This condition determines when measurement procedure (autorun) will stop. There are options when automatic run of tests will cease: - Always - Only when the very previous test ended with errors - Only when all previous tests ended with errors Continue Condition 5 These settings defines when measurement procedure will resume. - No automatic resume - Semaphore file behavior Play Sound 6 Measurement ceasing is accompanied with a user selectable (or default) sound. Stop Test Modes • Without evaluation o When load point definition is disabled

www.appliedp.com ELMASW-UG160-EN 83

ELMA - Control System User‘s Guide

o After running the test message window with defined message will be displayed, program will wait until operator presses OK o Afterwards test will finish and auto-run mode stays interrupted o This test will be visible in the tests table on the main program window; however it will not be visible in the results window • With evaluation o When load point definition is enabled o After running the test message window with defined message will be displayed, program will wait until operator presses OK o Afterwards defined load point is applied and OPS units in manual mode show text YES on their displays o Operator can optionally evaluate each position by pressing button on the OPS - toggle between text YES/NO - pass/fail o Test will be finished after defined time period elapses. Each position will be evaluated according to set states on OPS. o This test will be visible in the tests table on the main program window and also in the results window

5.2 Database of Meters

7

2 8 16 9 10 1 3 11 12 17 4

5 13 14 6 18 15 19 20

The database of electricity meter types contains parameters of all types of electricity meters. The present electricity meter for measurement is selected in the main program window, from the „Meters“ dropdown list which includes all enabled meter types defined in the meter database. The database of meter types is activated from the „Database“ - „Electricity meters“ menu. The window „Database of electricity meter types“ is also displayed by clicking on “Electr. meters” beneath Results button on main program screen. In the left part 1 of database window, the list of types of already defined meters is displayed. Clicking on a specific line you select an electricity meter; its data can be further edited. Activation of an electricity meter for editing is indicated by an arrow located left from the meter type name. It is possible to define the following electricity meter parameters:

84 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Circuit type 2 specifies the electricity meter type from the point of view of its wiring within the electric circuit: • 3P4W • 3P3W (Aaron’s wiring) • 2 phases • 1P3W • 1P2W • ANSI Construction type 3 specifies the electricity meter construction type : • Inductive (electromechanical) • Static (electronic) Connection type 4 specifies the type of the electricity meter connection to the energy source: • Direct • Indirect (CT/VT)

In case of choosing the indirect meter type, the parameters Inom, Imax and Unom will be displayed separately for secondary and primary part of the meter. Measurement type 5 specifies the measurement character: • Active Energy - Power Factor defined in test details is treated as Cosine, Energy Type is set as Active • Reactive Energy - Power Factor defined in test details is treated as Sine, Energy Type is set as Reactive • 4-Quadrant - Power Factor defined in test details is treated according to set Energy Type Tariff 6 specifies the electricity meter tariffs: • each of the four possible tariffs can be separately enabled or disabled • the Passive Tariff parameter allows to set the way of switching tariffs for the given meter: o is the passive rate is disabled, the system sends Lx phase voltage to the tariff connectors o if the passive rate is enabled, the system sends N voltage (form the neutral wire) to the tariff connectors - this type of tariff switching is used by some special meters Class [%] 7 electricity meter precision class [%] Class (reactive) [%] 7 electricity meter precision class for reactive LED (only for 4-Quadrant meters) [%] f [Hz] 8 signal frequency for the electricity meter [Hz] Default or Secondary (depend on Connection type): Imin [A] 9 electricity meter minimal current [A] Inom [A] electricity meter nominal current [A] Imax [A] 10 electricity meter maximum current [A] Unom [V] 11 electricity meter nominal voltage [V] Multiplier 12 Allows virtually add decimal point for electricity meter dial (default is 1, no virtual decimal point)

www.appliedp.com ELMASW-UG160-EN 85

ELMA - Control System User‘s Guide

Primary (visible only if Connection type is set to Indirect): Imin [A], Inom [A], Imax [A], Unom [V] If "Delta voltage input in electricity meters database" option is enabled on “Evaluation” tab in program parameters, by selecting the Caret sign (^) marked box it is possible to define the entered value as voltage to voltage. In such case the program will accordingly recalculate, form the entered value, the size of the phase voltage sent into the system and prevent so the rounding errors which a user could cause, if he would calculate the value himself and enter it into the database with insufficient number of decimal places. MD Indicator 13 checkbox indicating whether the specified electricity meter type is also equipped with a maximum gauge. If it’s selected, the neighbouring field specifies the maximum meter transfer constant with unit W/d. Calibration validity 14 specifies calibration validity period of the electricity meter, in years Resistivity 15 Specifies the resistivity of meter current coil. Default value 0 means that program will use its own algorithm for calculation of meter’s resistivity. Input of precise value is necessary if the station generates currents at wrong ranges. Constants 16 Field is dedicated for setting the meter constants. It’s possible to set constant for LED/Disc and impulse output of meter. Combo Box Constant Unit enables to select constant unit. Register 17 The Mechanical parameter determines type of the register (mechanical or electronic) and below you can find the description of number of places on the dial (in front of and behind the decimal point). OPS settings 18 Includes button Details for entering window with setting of OPS: • predivider for LED sensors - this parameter indicates the minimum value set for the pre-divider of the OPS unit when measuring the electricity meter’s LED output and thereby also the minimum frequency of OPS unit measured values refresh - the parameter is accessible only for static electricity meters. • predivider for SO sensors - this parameter indicates the minimum value set for the pre-divider of the OPS unit when measuring the electricity meter’s SO output and thereby also the minimum frequency of OPS unit measured values refresh - the parameter is accessible only for static electricity meters. • copy mode threshold - this parameter indicates the minimum value set for the OPS unit, and it determines its sensitivity to the transmitter in the electricity meter’s optical interface - the parameter is accessible only for static electricity meters. • meas threshold factor - this parameter indicates the value set for the OPS unit, and it determines its sensitivity to the electricity meter’s LED output for static electricity meters, or sensitivity to disk reflexivity for dynamic electricity meters - the parameter is accessible for both dynamic and static electricity meters.

All four parameters are set to predefined values when creating a new type of an electricity meter (1, 1, 300, 4). These values are suitable for most types of electricity meters and they should be changed only if the measurement fails (copy mode threshold) or it is necessary to change the frequency of the OPS unit measured values refresh (pre-divider minimum value change).

86 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

All those parameters are required and they have to be specified for the given electricity meter. They are necessary for calculations and evaluation of measurements. Others 19 Contains two buttons for adjusting load point currents for processes of warming up of meters and adjustment and calibration of OPS. Warm Up Used for adjusting warm-up current. There are 2 options: • Imax - maximal current of meter • percentage of Inom - nominal current of meter Default value is nominal current. Sensors calibration Used for adjusting for OPS adjustment and calibration. There are 3 options:

• Imax - maximal current of meter • percentage of Inom - nominal current of meter • number of rounds (disc), flashes (LED), impulses (S0) per second - current is calculated automatically to meet this condition, Imax - will not be exceeded

Default value for newly created meter in database is 100% Inom. In case that more than 100% Imax is set, the software does not allow to generate the load point. Imax current will be generated, instead. Results evaluation Used when this type of evaluation chosen in program parameters.

SO output Operator can define tolerance for time interval, when the signal is ON or OFF on SO output of electric meter.

www.appliedp.com ELMASW-UG160-EN 87

ELMA - Control System User‘s Guide

Current overload 20 Used for allowing and adjusting overload current in % of Imax. Data Exchange tab 21 Includes the Registers and Commands buttons which allow, for the static electricity meters with an optical interface, entry into the table of electricity meter’s register definition and into the table of communication commands definitions for the given electricity meter.

21

Protocol parameters 22 Those ones are optional and they are used to specify the data written in the protocol further in detail: • Manufacturer • Type • Class - electricity meter precision class • Note • Model • U, I ,k, f, Imp. output - voltage, current, electricity meter constant, frequency and electricity meter pulse output values

22

5.2.1 Adding New Electricity meter Type into Database of Meters Adding a new electricity meter type into the database is performed by pressing the New button. After pressing the button, new electricity meter type name has to be entered. The newly created electricity meter type will have all its values empty. The other option is to start with Copy button. Then it’s necessary to change only the name and differing parameters. 5.2.2 Deleting the Electricity meter from Database of Meters Deleting the highlighted electricity meter from the database is performed by pressing the Delete button. Before performing this operation, the computer prompts for its confirmation.

88 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

5.2.3 Renaming Electricity meter Type The electricity meter name can be changed by repeated delayed click on the electricity meter type name and standard editing. 5.2.4 Table of meter register definitions

2 1

3

This table is displayed after pressing the Registers button in the meter type database window, and it contains definitions of those registers which will be used during the measurement, for the static meters of given type with optical communication interface. In the right part of the window 1 there is a list of all to system known register types and in the left part 2 there are user defined assignments of address (designation) of registers for the given register type. The assignment can be created by entering an address and dragging it form the register type window in the right part into the respective address to the left.

www.appliedp.com ELMASW-UG160-EN 89

ELMA - Control System User‘s Guide

The Delete all 3 button allows deleting all defined assignments. Next to that button two arrows are present. They serve to change the order of register – address assignments 2. 5.2.5 Table of definitions of communication commands Window “Electricity Meter Communication Commands” is displayed after pressing the “Commands” button in the meter type database, Data Exchange tab. Window “Electricity Meter Communication Commands” provides access to definitions of commands for data exchange with meters. There are two tabs: • Page “Data Readout” - enable entering of commands for reading data from meters, reading meter registers • Page “Parameterization” - enable entering of command for setting parameters/writing data into meters or executing action in meters Page ‘Data Readout’ Contains definitions of communication commands for reading the data from meters depended on the communication standards for data exchange with meters. Data Readout enables to set configuration for 3 types of communication: All Data - Internal Readout • not implemented yet - reserved for future enhancements All Data - External Readout • used for parallel (simultaneous) data readout - all meters under test are communicating at one time • external parallel data readout is available only via external program which should support this type of data exchange - program Readout_FLAG.exe is supplied as standard with OPS 300 and provides function of parallel register readout • enables to enter full path for external data readout program • enables to enter paths for ‘Input file’, ‘Output file’ - additional input and output file paths can be specified when required by data readout program. When data readout program is executed token [INPUT] is replaced with input file path (when specified), token [OUTPUT] is replaced with output file path (when specified), token [COM] is replaced with COM port number, which is used for communication with OPS units.

90 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Defined Data Readout

1

2

3 4

Enable to define single commands for reading particular register. Command 1 • enable to enter command in ASCII form • when binary characters are required - character $ should be as a prefix for hexadecimal value • example command in hexadecimal: $24$06$44$00$00$66 Answer 2 • enable to enter expected answer from meter which must match with received characters • when binary characters are required - character $ should be as a prefix for hexadecimal value • character * can be used as wildcard - substituting any characters • example of accepted answer: $24$24$29* Answer Length 3 • enable to define the required length of the answer • when length of received answer doesn’t match defined length it is treated as communication error Serial Port Settings 4 • enable to define communication setting as baud rate, number of data bits, number of stop bits, parity and handshake

www.appliedp.com ELMASW-UG160-EN 91

ELMA - Control System User‘s Guide

Page ‘Parameterization’ Contains definitions of communication commands depended on the communication standards for data exchange with meters. Left side of the window contains the list of available commands or actions 1. The names of command/action is not possible to change. Each command/action can have its definition of communication command. Right side of window enables to select from 3 different pages: “IEC 1107”, “External”, “Special” 2. Page “IEC 62056-21” Dedicated for defining commands according to communication protocol called FLAG - standard: IEC 62056-21.

2

1

92 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Page “External” • Dedicated for definition of external program to be executed • “Parameterization program” 1 - executable path with optional switches and parameters when required • “Input file”, “Output file” 2 - additional input and output file paths can be specified when required by parameterization program. When parameterization program is executed token [INPUT] is replaced with input file path (when specified), token [OUTPUT] is replaced with output file path (when specified).

1

2

www.appliedp.com ELMASW-UG160-EN 93

ELMA - Control System User‘s Guide

Page “Special” • Dedicated for entering the commands which should be directly sent to meter - supported are only ASCI characters • Special characters (unprintable) can be entered in brackets (<>). Accepted are following characters: , , , , , . Character is dedicated for checksum (longitude parity). Character will be replaced by calculated check sum during communication with meter.

94 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

5.3 Database of Tolerances

3 4

2 1

To evaluate automatic tests, the program has to know for each load point the allowed limits of percentage errors. Limits depend on precision class of given electricity meter type. The allowed percentage error limits are exactly specified in the standards concerning electricity meter verification. Verified electricity meter fulfils the requirements for given precision class if in every tested point the absolute value of error increased by the expanded uncertainty is lower than the limits of percentage specified in the table. The expanded uncertainty uses expansion coefficient kU = 2. The program allows generating and editing the tables of allowed percentage errors. Each table should contain a set of load points in which verification of given electricity meter type together with specified limits of allowed percentage errors for individual precision classes is performed. Using program it is possible to create any number of tolerance tables 1. Each tolerance table is stored in an individual database file. For each measurement from the measurements’ database the selected tolerance table is used for evaluation of results. Editing and maintenance of toleration tables is accessible from the „Database“ - „Tolerances“ menu. In the left side of the window, a list of already created tolerance tables is located. Highlighted line indicates the tolerance table the parameters of which can be found in the table right from the list 2. Selecting (highlighting) of particular tolerance table can be performed by mouse click or by buttons under the list. When System of Asymmetric Tolerances is enabled (“Parameters - “Evaluation” Tab - “Use System of Asymmetric Tolerances”) on the right side from column “Tolerance” there will be a column “-Toler” 3 for entering lower boundary of tolerance. When System of Multiple Tolerance Bands is enabled (“Parameters - “Evaluation” Tab - “Use System of Multiple Tolerance Bands”) in tolerance table will appear additional columns 4 for specifying tolerances for all boundaries. System of bands and boundaries of tolerances is displayed in the following figure:

Toler

Toler2

-Toler2 -Toler

www.appliedp.com ELMASW-UG160-EN 95

ELMA - Control System User‘s Guide green shade lining - meter pass purple shade lining - meter in transition band red shade lining - meter fail 5.3.1 Creating New and Deleting Tolerance Table Pressing the New button and enter a new table name. Afterwards, a new empty table is generated which becomes highlighted, thereby enabled for further tolerance points definition.

Use Delete button to remove selected table. 5.3.2 Defining Tolerances for Individual Load Points The table to the right from the list of tolerance tables displays all items of the highlighted tolerance table:

4 1

5 2 7

6

3

Construction type 1 specifies the type of electricity meter construction for which the allowed percentage error is specified • inductive (0) • static (1) Measurement type 2 specifies the energy measurement type • active (0) • reactive (1) • apparent (2) Circuit type 3 specifies the type of wiring and the character of phase load of the electricity meter for which a value of allowed percentage error is defined

96 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

• symmetrical (0) • asymmetrical (1) • L1 • L2 • L3 Class 4 specifies electricity meter precision class for which the limit of allowed percentage error is specified. Power Factor 5 specifies the power factor of the load point for which a value of allowed percentage error is specified. Current Formula 6 expression with special syntax which specifies the current value of the load point for which a value of allowed percentage error is specified. The syntax format of the current expression is described in the next chapter. Tolerance 7 specifies numerical value of allowed percentage error. 5.3.3 Format for Current Formula Current expression is a string used for identification of given tolerance point. The tolerance points of particular tolerance table are defined as limits of allowed errors for evaluation of automatic tests. The current formula specifies the current value in load point for which the value of allowed percentage error is specified. For purposes of universality and compliance with the standards, current value is specified in relation to nominal or maximum current of the electricity meter being verified. The syntax has 4 possible variations: 1. Current value of the load point must be equal to the specified current: syntax: [k1]P[*] 2. Current value of the load point must be lower or not greater than the specified current: syntax: IZ[k]P[*] 3. Current value of the load point must be greater or not lower than the specified current: syntax: [k]PZI[*] 4. Current value of the load point must fall within the interval: syntax: [k1]P1Z1IZ2[k2]P2[*] symbols used: [] - the rectangular brackets contain optional text k, k1, k2 - multiplication constants P, P1, P2 - current denomination which can have the following values: In - nominal current Imax - maximum current Z, Z1, Z2 - comparison sign: < or <= * - if specified it indicates that the allowed percentage error and its load point is generated only if the values of electricity meter nominal and maximum current are equal. Syntax: [ki]Pi means that the current (nominal or maximum) is multiplied by the value of the ki constant. Examples: 0.1In ... the load point current value must equal to 10% of electricity meter nominal current Imax ... the load point current value must equal to electricity meter maximum current I<2In ... the load point current value must be lower than double electricity meter nominal current I<=2In ... the load point current value must be lower or not greater than double electricity meter nominal current 0.25Imax

www.appliedp.com ELMASW-UG160-EN 97

ELMA - Control System User‘s Guide

0.01In<=I

5.4 Stands Database

1

2

3

4

5

The database of stands contains information about current circuit of the stand used within the system: 1 Imax [A] Maximum current allowed for the stand. The Imax parameter is checked during load point generation. This ensures that Imax will not be exceeded even in case of faulty setup of electricity meter parameters or inappropriate electricity meter/rack combination.

98 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

R [Ohm] 2 Stand’s own resistance without meters. It is necessary for optimal current source output impedance match in order to ensure maximum power output. Current Ratio (prim/sec) 3 It allows to define the ratio of primary against secondary side in case, when current transformer is used in order to achieve higher power (current). Using this ratio the control system (especially RS and SG) “knows” to apply necessary calculations, even if there is lower (higher) power on primary side than on secondary due to unequal number of loops on both sides. Enabled positions 4 Parameter allows an automatic change of position activation after changing a stand: • no change - after the change into the given type, the automatic change of activated positions will not be performed • all - after the change into the given type, all positions will be automatically activated • even - after the change into given the type, all even positions will be automatically activated • odd - after the change into such type of stand, all odd rack positions will be automatically activated • user defined - after the change into given type of stand, all stand positions entered into the text box in the following form, will be automatically activated: 1,2,3,5,8,9,12,18 CMRI 5 This option allows to enable / disable the usage of CMR-I units on the stand. If enabled detection of 1st unit can be set via its communication address. This feature allows to work with mobile stands each mounted with different CMR-I units. 5.4.1 Adding New Stand and Deleting the Stand Adding a new stand to the database is performed by New button. Afterwards, user has to enter data for individual items. Deleting a stand is performed by pressing the Delete button and action confirmation.

5.5 Database of OPS units Addresses

1 2

www.appliedp.com ELMASW-UG160-EN 99

ELMA - Control System User‘s Guide

Each OPS evaluation unit is addressed by its unique address within the whole system. The address comprises three bytes. Immediately after powering on, the OPS successively displays: -AP- followed by the highest address byte in hexadecimal format and, after a short pause, the middle and lowest address bytes in hexadecimal format. The OPS addresses valid for positions are stored in the database of addresses. The database of addresses is accessible from the „Database“ - „OPS addresses“ menu. This window contains a table with two columns, „Position“ 1 and „Address“ 2. The position specifies the position name and the address displays the specific address for the position given. The addresses are displayed and entered in hexadecimal format. The addresses with zero lowest byte (e.g. 27FA00h) are reserved for special use and are not accepted by the program. 5.5.1 Address Modification Any address can be edited by double click on item in database. A dialogue window will appear in which user can enter new address for given OPS. If entered address is valid, it is subsequently stored in database of stands. Press „Use“ before closing the window.

5.6 Database of Stations and Equipment

1

2

The database of stations and devices stores information of all measuring stations connected to the system where sharing common databases are applied and to preserve information on equipment which is a part of the system. The database is split into measuring stations part 1 and the devices part 2. A part of the measuring stations preserves the following parameters of every station: • sequential number • name • serial number • type • precision • last verification date

100 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

• last verification validity termination date • note A part of equipment preserves the following parameters of every station: • equipment type (1=POWER ANALYZER, 2=SIGNAL GENERATOR ...) • serial number • type • precision • last verification date • last verification validity termination date • communication address In both parts it is possible to create a new record using „New“ button, to delete chosen record using the „Delete“ button, and to display parameters of the chosen record and optionally change them using the „Details“ button or mouse double-click. The „Save“ button is used to save the performed changes immediately. The „OK“ button closes the database window with saving the changes and the „Cancel“ button closes the database window without saving the changes.

5.7 Database of User Defined Signal Shapes This database defines user signal shapes which can be chosen in test definitions. Database items can be of one of these two signal types: • HARMONICS • VOLTAGE DIPS Signal type of each item is selected in Signal type 3 selection box. Left part of the database window contains list of user defined signal shapes 1. 5.7.1 Harmonic signal type This signal shape can contain any combination of first to hundredth harmonic component in any configuration of the six system channels.

4

1 2

3

Right part contains parameters 2 of the harmonic signal type item: • Harmonic number - number of the harmonic component contained within the signal • Amplitude - size of the amplitude of the given harmonic component relative to the first (basic) harmonic component (for the first one it is constantly 100%) • Phase - the phase shift of the harmonic component as compared with the first (basic) harmonic component • U1, I1, U2, I2, U3, I3 - designation of a channel in which the given harmonic component should appear

www.appliedp.com ELMASW-UG160-EN 101

ELMA - Control System User‘s Guide

New signal harmonic record can be created using the New button and defining parameters of harmonic point. Deletion of the marked records can be done by Delete button. Details button enables to display the window with record parameters and change them if required.

Switching to Signal shape 4 tab toggles view of harmonic content into signal shape view. It is possible to view separate channels (U1/U2/I3/I1/I2/I3) and change phase offset of the view.

5.7.2 Voltage dips signal type This signal shape contains definition of voltage dips present in the signal.

Definition of the signal:

where: t1 ...... duration of each voltage dip t2 ...... distances between dips N ...... quantity of dips A ...... percentage of change of amplitude (100% = no change) Channel … definition of channels for this signal (any combination of L1/L2/L3) Remark for ELMA software functionality: Active voltage functionality will be disabled before starting voltage dip signal generation!

102 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Signal shape tab shows overview of dips in time basis:

www.appliedp.com ELMASW-UG160-EN 103

ELMA - Control System User‘s Guide 5.8 Database of Uncertainties

The database allows creating uncertainty tables, which can be chosen for fixed uncertainty usage. In the left part of the window there are names of user defined uncertainties tables and in the right part there are parameters of points which define validity of uncertainties: • Measurement type - type of measurement (any combination of P, Q, S) • Current formula - current formula (conventions as in chapter 5.3.3 Format for Current Formula (p. 977)) • Power Factor – in range (-1 .. 0 .. 1) with it’s character: L (LAG) / C (LEAD) • Uncertainty – uncertainty numerical value Individual points are created using New button and deleted using Delete button. Details button displays the window with record parameters and allows changing them if required.

104 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

5.9 Ripple Control Signals

The database allows creating ripple control signals. These signals are used to communicate with the meters over distance only via current cables. The main RCS window allows to set RCS telegrams with parameters: various time delays, modulation frequency, voltage and reference channel. Bellow there is a field for data bits entry in binary form.

www.appliedp.com ELMASW-UG160-EN 105

ELMA - Control System User‘s Guide 6. Generating and Printing Protocols

The program enables user defined design of protocol and automatic generation and print of the output protocols using the MS Word profiting from all of its capabilities. Generating of output protocol is performed by automatic filling-in of measured and calculated output data into the previously created MS Word protocol templates and their subsequent saving in a file with an appropriate name and optional printer output. As a standard, a number of protocol templates is delivered with the program; although, the user has an option of creating custom ones. The protocol templates necessary for generation of the output protocol are automatically generated by the program from the command templates generation of which enables the user to get full control of the final look of the output protocol. When creating command templates, you can take full use of the MS Word program features.

6.1 Using the templates – diagram

Protocol Measured and commands, prefix calculated values

Command Template generating Generated protocol Template filling template process template process

Template protocol filled Printing of protocol with data = Saving of protocol in new document output protocol name

106 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

6.2 Generating and Printing the Output Protocol For output protocol generation is necessary a protocol template which corresponds with the number and types of tests performed in the given measurement. Automatic generation of an output protocol, its saving into file, archiving and printing are activated in the Results window using „Protocol“ button. After pressing this button, „Protocol heading“ is displayed. Here it is possible to fill in necessary protocol heading items.

As next, the „Protocol“ window is displayed:

1

2

3

4

5

www.appliedp.com ELMASW-UG160-EN 107

ELMA - Control System User‘s Guide

In this window you have to specify whether: • the results have to be saved in the archiving database 1, • the output protocol 2 has to be generated and if so to specify: o protocol template 3 - the name of the template which was specified for the actual measurement in the database of measurements appears here. If it is necessary to use another template it is possible to enter its name or use the „List“ button. o whether the generated output protocol has to be saved automatically into a file with the specified name 4. If the file name does not contain path specification, the file will be saved into a directory for saving MS Word protocols which was defined in the program parameters. o whether the generated output protocol has to be printed from MS Word automatically 5. After pressing the „OK“ button, the chosen operations are executed in the following sequence: • archive of results • generation of output protocol • saving the protocol in a file with specified name • printing the protocol via system printer

6.3 Creating Protocol Template The program can generate the protocol template automatically from previously prepared command template. This is a process in which the command template is gradually scanned and recognized protocol commands are substituted by text fields with bookmarks. Those text fields are later used as marks specifying in course of the program which data have to be written to specified locations. Before starting generation of protocol template it is necessary to start MS Word and open a command template intended for protocol template generation. If there are more files opened in MS Word, the document with command template has to be activated. The process of generation of the command template is launched from main menu „System“ - „Protocol“ - „Creating the Protocol Template“. After activating an information window is opened which shows the progress of generation. After generation is successfully finished it is necessary to save the newly created protocol template in a file with a specific name for later output protocol generation.

6.4 Command Template and Protocol Commands The command template is used as a pattern for automatic creation of protocol template. It is a standard MS Word document and, therefore, during its creation the user can use all MS Word features (for example insert company’s logo, insert tables, change the font, highlight the text etc.). To input the measured and calculated values into the protocol and to specify the type of this data, it is necessary to insert appropriate protocol commands into the document. The commands in the command template are marked by defined command prefix. The pattern is: command prefix + protocol command (e.g. #TEMP). The protocol commands are stored in the database of protocol commands (in the „System“ - „Protocol“ - „Commands“ menu).

108 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

5

3 4

1

2

The protocol commands are listed here in a table in two versions: Default commands 1 are protocol commands that are predefined and cannot be changed by the user directly. User commands 2 are protocol commands which may be customized by the user (localized into his language). The user command may not contain the „_“ character and its maximum length is 10 characters. It is possible to change the command by mouse double click on the line with the particular command and entering a new expression. Each command has its description which may be supplemented and edited. The „Use commands“ 3 option allows to choose which commands will be used for creation of command templates. In the „Command Prefix“ 4 window it is possible to define the command prefix. The predefined character for the prefix is „#“. The „_“ sign is not allowed. In the „Protocol result and status texts“ 5 window region, text strings substituting the evaluation commands (VAL, TSTATUS a STATUS) are defined. Those text strings are defined separately for individual evaluation types and for the cases when the electricity meter passed, failed or was not measured. More detailed description of those commands can be found in further text.

In the database of commands, the following commands are implemented:

www.appliedp.com ELMASW-UG160-EN 109

ELMA - Control System User‘s Guide

Predefined User Command description ANUM ANUM Meter Calibration Number CNTERR CNTERR Register test Error (absolute) COS COS Load point power factor DACT DACT Current date DATE DATE Date DATESEC DATESEC Date 2 DEL DEL Delta - balanced mean value calculated from measured values DIFF DIFF Dial values difference before and after test EACCUR EACCUR Precision class ECALUNTIL ECALUNTIL Year of validity of electricity meter calibration ECNT ECNT Filtered Meters Count (Archiver) ECNTALL ECNTALL Number of tested meters ECNTF ECNTF Register (counter) format ECNTFAIL ECNTFAIL Number of failed meters ECNTPASS ECNTPASS Number of passed meters ECNTR ECNTR Register (counter) range ECONST ECONST Electricity meter constant ECOUNTD ECOUNTD Number of dial digits ECOUNTM ECOUNTM Dial multiplier EFREQ EFREQ Frequency [Hz] EFREQPROT EFREQPROT Frequency EIMAX EIMAX Maximum current (Secondary) EIMAXPRIM EIMAXPRIM Maximum current - Primary EIMP EIMP Pulse output constant EIMPPROT EIMPPROT Pulse output constant (text) EIMPQUANT EIMPQUANT Unit of electricity meter constant EINOM EINOM Nominal current (Secondary) EINOMPRIM EINOMPRIM Nominal current - Primary EIPROT EIPROT Current EMANUFACT EMANUFACT Electricity meter manufacturer EMODEL EMODEL Meter model ENERGY ENERGY Batch energy during dial constant test ENERQUANT ENERQUANT Energy quantity - kWh/kvarh ENERTYPE ENERTYPE Energy type - active/reactive ENPHASES ENPHASES Number of phases ENTARR ENTARR Number of tariffs ERATIO ERATIO Meter Ratio EREM EREM Meter Note ETYPE ETYPE Electricity meter type EUNOM EUNOM Nominal voltage (Secondary) EUNOMPRIM EUNOMPRIM Nominal voltage - Primary EUPROT EUPROT Voltage for specifying electricity meter voltage EXP EXP Primary multiplier of register (counter) EXS EXS Secondary multiplier of register (counter) FDATEMAX FDATEMAX Filter - Date (MAX) only program Archiver FDATEMIN FDATEMIN Filter - Date (MIN) only program Archiver FETYPEMAX FETYPEMAX Filter - Meter Type (MAX) only program Archiver FETYPEMIN FETYPEMIN Filter - Meter Type (MIN) only program Archiver FNAME1MAX FNAME1MAX Filter - Person1 (MAX) only program Archiver FNAME1MIN FNAME1MIN Filter - Person1 (MIN) only program Archiver FNAME2MAX FNAME2MAX Filter - Person2 (MAX) only program Archiver

110 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

FNAME2MIN FNAME2MIN Filter - Person2 (MIN) only program Archiver FPOSMAX FPOSMAX Filter - Meter Position (MAX) only program Archiver FPOSMIN FPOSMIN Filter - Meter Position (MIN) only program Archiver FPROTMAX FPROTMAX Filter - Protocol Number (MAX) only program Archiver FPROTMIN FPROTMIN Filter - Protocol Number (MIN) only program Archiver FREMMAX FREMMAX Filter - Meter Note (MAX) only program Archiver FREMMIN FREMMIN Filter - Meter Note (MIN) only program Archiver FSNUMMAX FSNUMMAX Filter - Meter Serial Number (MAX) only program Archiver FSNUMMIN FSNUMMIN Filter - Meter Serial Number (MIN) only program Archiver FSTATMAX FSTATMAX Filter - Test System-Station (MAX) only program Archiver FSTATMIN FSTATMIN Filter - Test System-Station (MIN) only program Archiver FSTATUSMAX FSTATUSMAX Filter - Meter Status (MAX) only program Archiver FSTATUSMIN FSTATUSMIN Filter - Meter Status (MIN) only program Archiver HTEXT1 HTEXT1 Protocol header - User Text 1 HTEXT2 HTEXT2 Protocol header - User Text 2 HTEXT3 HTEXT3 Protocol header - User Text 3 HUM HUM relative humidity of air CHAR CHAR character of load point power factor CHI CHI Value of chi constant I1 I1 Load point current for phase 1 I2 I2 Load point current for phase 2 I3 I3 Load point current for phase 3 KON KON Final counter state for dial test KR KR Value of expansion constant for calculation of expanded uncertainty of measurement LISTN LISTN Number of verification letter PAACCUR PAACCUR Reference’s precision class PACALNUMB PACALNUMB Reference’s verification number (PA) PACALUNTIL PACALUNTIL Reference’s verification validity date (PA) PASNUM PASNUM Reference’s serial number PATYPE PATYPE Reference’s type PERSON1 PERSON1 Test person name PERSON2 PERSON2 Test person name PHI1 PHI1 Load point current phase for phase 1 PHI2 PHI2 Load point current phase for phase 2 PHI3 PHI3 Load point current phase for phase 3 PHU1 PHU1 Load point voltage phase for phase 1 PHU2 PHU2 Load point voltage phase for phase 2 PHU3 PHU3 Load point voltage phase for phase 3 POC POC Initial dial state for dial test PRESS PRESS Air pressure REG REG Content of meter registers REM REM Meter/Protocol Note SACCUR SACCUR Station’s precision SAMPLES SAMPLES Number of measured values SBMC SBMC Test System/Station BMC SCALNUMB SCALNUMB Station verification number SCALUNTIL SCALUNTIL Station verification validity date SGACCUR SGACCUR Generator precision SGCALNUMB SGCALNUMB SG verification number SGCALUNTIL SGCALUNTIL Date of SG verification SGSNUM SGSNUM Generator serial number

www.appliedp.com ELMASW-UG160-EN 111

ELMA - Control System User‘s Guide

SGTYPE SGTYPE Synthetic generator type SNUM SNUM Serial number SSNUM SSNUM Station serial number STATINFO STATINFO List of states of all tests for the given electricity meter STATUS STATUS Electricity meter Pass/Fail information STYPE STYPE Station type SYSTERR SYSTERR Systematic Meter Error Measured during register test TARR TARR Tariff TAVG TAVG Average Error calculated for all passed meters at defined test TCNTFAIL TCNTFAIL Number of failed meters for defined test TCNTPASS TCNTPASS Number of passed meters for defined test TCODE TCODE Test code TEMP TEMP Air temperature TNAME TNAME Test name TOLER TOLER Limit for meter error (high) TOLERB TOLERB Limit additional - transition high TOLERC TOLERC Limit additional - transition low TOLERD TOLERD Limit low TPOWER TPOWER Applied Power for defined test TPWRPRIM TPWRPRIM Applied Primary Power for defined test TPWRSEC TPWRSEC Applied Secondary Power for defined test TSTATUS TSTATUS Electricity meter Pass/Fail information for the given test TSTDEV TSTDEV Standard Deviation for all passed meters at defined test U1 U1 Load point voltage for phase 1 U2 U2 Load point voltage for phase 2 U3 U3 Load point voltage for phase 3 UA UA Standard uncertainty of type A UB UB Standard uncertainty of type B UC UC Combined standard uncertainty UR UR Expanded uncertainty UTARR UTAR Voltage for given tariff VAL VALUE Test Result XAVG XAVG Average Error (only in program Archiver) XSTDEV XSTDEV Standard Deviation (only in Archiver) XTCNT XTCNT Test Count (only in Archiver) XTCOSCHAR XTCOSCHAR Test Power Factor Character (only in Archiver) XTCOSFI XTCOSFI Test Power Factor Value (only in Archiver) XTCURR XTCURR Test Applied Current (only in Archiver) XTTYPE XTTYPE Test Type (only in Archiver) ZMAX ZMAX Value of Zmax contact When creating the template, two more commands are necessary that are not included in the command database, namely the #TESTxx and #ENDTEST commands. They are used to mark the blocks associated with individual tests. That means, to display data of the 1st test of the selected measurement, it is convenient to close the 1st test data of the selected measurement into a block using the #TESTxx, #ENDTEST commands: #TEST01 … Commands to display specific data … #ENDTEST The number following the #TEST command specifies the test sequential number within the actual measurement. This number must always be entered as two-digit. The lowest number for #TEST is 01, the highest is 99.

112 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

6.4.1 Rules for Using Commands in Command Template The #TESTxx and #ENDTEST commands are removed in the process of protocol generation. It is convenient to locate them in separate lines which will be then automatically removed. The commands from the commands database are recognized only if they are preceded by a valid prefix. The prefix is recognized up to the nearest white character (the following characters are considered to be a white character in this case: dash, move to next paragraph, tab character, character of moving to another table cell). All command parameters have to follow the command without any white character between them. The command itself must not contain the „_“ character which is reserved to separate the command parameters. The parameters are described in the following sections. 6.4.2 Syntax of Commands used inside #TESTxx … #ENDTEST Blocks Those are the commands concerning display of the measured or calculated values and commands for displaying the load point parameters. However, they always concern one specific test and therefore it is necessary to specify in the template to which test the commands belong. This specification is performed by embedding the mentioned commands into the #TESTxx … #ENDTEST block. The test number can be, however, specified also directly as a command parameter; but in this case the command may not be located in the #TESTxx … #ENDTEST block. Used labels: Pos - position number Test - test number Val - sequential number of the measured value

Commands for display load point parameters and test parameters Command Syntax in the #TESTxx …#ENDTEST Syntax outside the #TESTxx block …#ENDTEST block U1 U1 U1test U2 U2 U2test U3 U3 U3 test I1 I1 I1test I2 I2 I2test I3 I3 I3test COS COS COStest CHAR CHAR CHARtest PHU1 PHU1 PHU1test PHU2 PHU2 PHU2test PHU3 PHU3 PHU3test PHI1 PHI1 PHI1test PHI2 PHI2 PHI2test PHI3 PHI3 PHI3test ENERGY ENERGY ENERGYtest SAMPLES SAMPLES SAMPLEStest TARR TARR TARRtest UTARR UTARR UTARRtest TNAME TNAME TNAMEtest TCODE TCODE TCODEtest

www.appliedp.com ELMASW-UG160-EN 113

ELMA - Control System User‘s Guide

Commands for display of measured values Command Syntax in the #TESTxx …#ENDTEST Syntax outside the #TESTxx block …#ENDTEST block VAL VALpos_val VALpos_test_val POC POCpos POCpos_test KON KONpos KONpos_test SNUM SNUMpos SNUMpos_test

Commands for display of calculated values Command Syntax in the #TESTxx …#ENDTEST Syntax outside the #TESTxx block …#ENDTEST block VAL VALpos VALpos_test DEL DELpos DELpos_test DIFF DIFFpos DIFFpos_test UR Urpos URpos_test UA Uapos UApos_test UB Ubpos UBpos_test UC Ucpos UCpos_test TSTATUS TSTATUSpos TSTATUSpos_test TOLER TOLERpos TOLERpos_test

6.4.3 Commands used outside #TESTxx … #ENDTEST Blocks Commands for protocol description and Commands for display of commands for display of the station parameters electricity meter parameters

Command Syntax Command Syntax ETYPE ETYPE LISTN LISTN EACCUR EACCUR DATE DATE EUNOM EUNOM DACT DACT EINOM EINOM TEMP TEMP EIMAX EIMAX REM REM ECONST ECONST PERSON1 PERSON1 EFREQ EFREQ PERSON2 PERSON2 EUPROT EUPROT STYPE STYPE EIPROT EIPROT SSNUM SSNUM EFREQPROT EFREQPROT SACCUR SACCUR ENTARR ENTARR SCALNUMB SCALNUMB ENPHASES ENPHASES SCALUNTIL SCALUNTIL ECOUNTD ECOUNTD ZMAX ZMAX ECOUNTM ECOUNTM K K EIMP EIMP CHI CHI EMANUFACT EMANUFACT EIMPPROT EIMPPROT ECALUNTIL ECALUNTIL

114 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Commands for display of the Power Commands for display of the Signal Analyzer device parameters Generator device parameters Command Syntax Command Syntax PATYPE PATYPE SGTYPE SGTYPE PASNUM PASNUM SGSNUM SGSNUM PAACCUR PAACCUR SGACCUR SGACCUR PACALNUMB PACALNUMB SGCALNUMB SGCALNUMB PACALUNTIL PACALUNTIL SGCALUNTIL SGCALUNTIL

Evaluation commands Command Syntax STATUS STATUSpos STATINFO STATINFOpos 6.4.4 Using TSTATUS, STATUS, STATUSINFO Commands The TSTATUS command is used to display the final state of the specified test. The text for the test final state display is entered in the „Commands of protocol formatting“ field in the edit fields „Test Evaluation“. There are three edit fields to enter the test status: pass, fail, test not performed. Afterwards, the TSTATUS value corresponds with the text which complies with the measured test status. TSTATUS is evaluated for the individual test types as follows: Automatic tests The electricity meter passed if the sum of absolute values of the weighted average and expanded uncertainty is lower or equal to the threshold value. The threshold values are specified for the given load point and the electricity meter type from the tolerance table associated to given measurement. Manual tests The electricity meter passed if the operator evaluates the electricity meter as Passed. Special tests The electricity meter passed if the test result passed the condition specified in the tests database for the given test and its respective tolerance point. Constant verification tests In case of manual evaluation of the constant verification test, the electricity meter passed this test if the operator evaluated it as Passed. At automatic evaluation of the constant verification test, the test is evaluated by computer. The evaluation is based on the dial states before and after the test. The STATUS command is used to display the final state of the electricity meter after all tests or the tests required by the operator are performed. The text to display the electricity meter states: pass, fail, was not evaluated, is user-defined in the field „Commands of protocol formatting“ in the „Electricity meter evaluation“ edit fields for all three states. The STATINFO command is used to display a string, which lists the states of all tests for the given electricity meter. The states are displayed sequentially by the test order, just as they are defined in the selected measurement. The individual tests are separated by a comma. The state of individual tests is illustrated by user-defined text defined as text for display of the test final state.

www.appliedp.com ELMASW-UG160-EN 115

ELMA - Control System User‘s Guide

6.4.5 Using VAL Command The VAL command is used to display the measured test results. Therefore, it is useful to use the command within the #TESTxx … #ENDTEST block. Syntax: VAL Position number[_Value sequential number] If only the Position number parameter is specified, the command is used to display the following values depending on the type of test the order of which is then specified by the #TEST command parameter: for serial number test electricity meter serial number for final states test final state of the electricity meter dial for manual test the result of the manual test is displayed and the text entered by the user in the „Commands of the formatting protocol“ dialogue window, in three edit fields „Manual test result“, are used. One under the other, the possible text for all the test states is given: pass, fail, the test not performed. Instead of the VAL command, in the process of filling in the protocol the entered text is displayed, corresponding with the test state. for automatic and special test the average error value calculated from series of values measured for the given test are displayed. The average value is calculated from the following formula: 1 n  =  i n i=1 where: −  is the percentage errors selective mean i i is the percentage error obtained from i-th measurement of the series of repeated measurements in the given test point, n is the number of measurements Specification of the sequential number is reasonable only for automatic tests during which specified number of values is measured; those are then used for statistical evaluation of the test. Specified measured value is entered into the protocol. If the test is not automatic and the measured values are specified with their sequential number, blank strings will be displayed at the given positions. The position number as well as the sequential number of the measured value starts with number 1.

116 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

6.4.6 Example of how to Use VAL Command The following example provides displaying values of 5th test in the actual measurement for positions 1, 2, 3, 4. This test is supposed to be automatic. In the column specified as  the values of calculated balanced averages for positions 1- 4 will be displayed. In other columns, there are commands to display measured values 1 - 5 for all four positions.

#TEST05 Position No. − 1 [%] 2 [%] 3 [%] 4 [%] 5 [%]  [%] 1 #VAL1 #VAL1_1 #VAL1_2 #VAL1_3 #VAL1_4 #VAL1_5 2 #VAL2 #VAL2_1 #VAL2_2 #VAL2_3 #VAL2_4 #VAL2_5 3 #VAL3 #VAL3_1 #VAL3_2 #VAL3_3 #VAL3_4 #VAL3_5 4 #VAL4 #VAL4_1 #VAL4_2 #VAL4_3 #VAL4_4 #VAL4_5 #ENDTEST

6.5 Uncertainties The program can, within the protocol, display values of calculated measurement uncertainties. 6.5.1 Standard Uncertainty of Type A Its value is displayed by predefined UA command. It is calculated from the formula: n 1 2 u A ( ) = ( i − ) n.(n −1) i=1 6.5.2 Standard Uncertainty of Type B Its value is displayed by predefined UB command. It is calculated from the formula:

zmax uB =  zmax is the maximum specified error of the utilized standard meter in the given load point. It is calculated by comparing the largest allowed error from the technical specifications of the manufacturer and from the determined systematic mistakes from the last calibration lists of used reference. If, during calibration, no bigger error than the largest allowed has been determined, we will use the technical specifications of the reference for zmax calculation. If this is not the case, we will calculate the zmax value using the values of systematic errors from the calibration list. χ is a constant which specifies the distribution of probability variances. For uniform probability variance distributions the value is: χ = 1,73. 6.5.3 Combined Standard Uncertainty Its value is displayed using the predefined UC command. It is calculated from the formula: u ( ) = u 2 ( ) + u 2 ( ) C A B where: uA ( ) is the A type standard uncertainty, uB () is the B type standard uncertainty, u ( ) C is the resulting combined standard uncertainty.

www.appliedp.com ELMASW-UG160-EN 117

ELMA - Control System User‘s Guide

6.5.4 Expanded Uncertainty of Measurement It is displayed using the predefined UR command. It is calculated from the formula: U = k .u U C where: ku is the expansion coefficient, ku and zmax have predefined values: ku = 2, zmax = 0.05

The choice of factor ku, which is usually in the range 2 < ku < 3, is based on coverage probability or level of confidence (denoted as p) required of the interval x – U to x + U (where x is measured value or average of more measured values). In most cases k = 2 is recommended. The value ku=2 determine the probability of finding the real (true) value within the range x ± U as equal to 95% (assuming that random errors are following Gaussian distribution). It is customary to write the measured value as x ± U.

Modification of zmax and χ values is possible only in service mode in the „Parameters“ window of the „Workbench“ bookmark. The value of the expansion coefficient can be modified in the „Parameters“ window of the „Evaluation“ bookmark in the „Uncertainties“ field.

6.6 FastReport reporting system FastReport is large software component with many functionalities. FastReport system needs for its function SQL database, where measurement configuration and test results are stored. For ELMA such database is EDEX (usually located in C:\ELMA\EDEX\edex.gdb file). More information about EDEX subsystem can be found in chapter 12 EDEX System Overview on page 149. ELMA software is preinstalled with set of default templates which should meet the needs of most users. If someone wants to create custom template or edit existing one he must be familiar with SQL language (except for very simple changes). For power users who wants to write their own templates there is specialized manual which can be downloaded from http://www.appliedp.com/download/software/edex/FR5UserManual- en.pdf. The main advantages of FastReport system in comparison with old system based on MS Word are as follows: • greater flexibility – no need to define separate templates for stations with different number of positions or different measurements with different number of tests • ability to filter tests displayed in table (user can for example remove rows corresponding to stop tests or dosage tests as an example) • ability to highlight results which are outside of limits with bold font or red color • No need to remember names of template parameters. All supported parameters are displayed in toolbar window grouped by database tables in which they are stored. • Greater scale of output formats. ELMA currently supports following output formats: o MS Word 2003 (*.doc), MS Word 2007 (*.docx), o MS Excel 2003 (*.xls), MS Excel (*.xlsx), o MS PowerPoint 2007 (*.pptx), Open Document Spreadsheet (*.ods), o Open Document Text (*.odt), HTML4 (*.html), o HTML5 (*.html), Scalable Vector Graphics (*.svg), o Portable Document Format (*.pdf), Rich Text Format (*.rtf), o bitmap image (*.bmp), JPEG image (*.jpeg), o TIFF image (*.tiff), Gif image (*.gif), o simple text file (*.txt), CSV file (*.csv) • Ability to fill selected template “online” which means that in autorun mode template will be automatically filled after finishing some test in measurement. This mode of function shouldn’t slow autorun mode because template filling happens in background (except for very large measurements containing more than 1000 tests combined with tests whose duration is less than 1 minute). • Ability to export sample values measured so far while the test is running. Sample values can be exported for example to MS Excel and user can analyze them while the test continues to run.

118 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

• ability to add charts to output protocols • if dynamic content is needed, templates can be customized by C++ or Pascal scripts • ability to add data from customer specific database 6.6.1 FastReport configuration FastReport configuration page is located in main menu item Configuration → Parameters → Protocol → FastReport. Configuration parameters are described on page 52 of this manual. 6.6.2 Starting FastReport There are four ways how a user can invoke functionality related to FastReport: 1. Clicking on main menu item System → Generate quick protocol. 2. Running archiving process by clicking on button Protocol in Results window. 3. Opening FastReport template designer by clicking on main menu item System → Protocol → Open FastReport designer. 4. Enabling online protocol creation. More information can be found on page 54 of this manual. Cases 1 and 2 are essentially the same as generating MS Word protocol by using old system for protocol creation. The only difference is that in window Protocol user must choose FastReport protocol template. FastReport template is identified by file extension “fr3”.

6.6.3 Editing templates FastReport reporting system is based on templates. This is basically the same as with old system which was based on MS Word templates. But there are also some differences: • FastReport uses only one type of template. Compared with old system which used command template from which final protocol template was generated (refer to diagram on page 106). • FastReport templates are created and edited in its own visual designer which can be run from ELMA. • Less need to memorize names of template commands. All supported commands are listed in toolbar window grouped by database table to which it belongs. Complete list of supported commands with detailed description of each one is contained in chapter 12.4.1 on page 1508. • FastReport templates are more abstract than MS Word protocol templates, which means that in many cases one template can be used for broad range of measurements on different stations with different number of positions. If the table is too wide to fit page FastReport automatically breaks it into more parts each printed on separate page. The same rule applies in case if the table contains many rows (corresponding to tests in measurement).

www.appliedp.com ELMASW-UG160-EN 119

ELMA - Control System User‘s Guide

FastReport template designer can be started by clicking on main menu item System → Protocol → Open FastReport designer. If the active measurement has assigned FastReport template it will be automatically opened. This is how template designer looks like:

1 2

6

3 7

4

5

The workspace is divided into following parts: 1 – menu bar 2 – toolbars 3 – object toolbar 4 – “Object inspector” pane 5 – “Report tree” pane 6 – report design workspace 7 – “Data tree” pane – elements can be dragged from this pane onto a report page For detailed description of designer please refer to FastReport manual which can be downloaded from http://www.appliedp.com/download/software/edex/FR5UserManual-en.pdf. To fill template with data from database please use shortcut Ctrl + P (preview) or use menu item File → Preview. 6.6.4 Preinstalled templates ELMA is preinstalled with set of templates stored in directory C:\ELMA\TEMPLATE. These are some of them:

Template name Purpose BasicReport_Portrait.fr3 General purpose template printed on portrait paper format. BasicReport_Landscape.fr3 General purpose template printed on landscape paper format.

For these 2 templates it is possible to define the final look of the protocol using a variables. If you want to configure the variables, please use main menu item Report → Variables. It opens the Edit Variables window.

120 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

To select the particular variable you must click on it in the left part of the Edit Variables window. Then in bottom of the window called Expression you can see the actual value of this variable. Here you can change it to required value. After editing of all variables to required values, it is necessary to store changes using the green pipe (see red circle in the picture).

Description of all predefined variables and their possible values: BlocksHighlight ... when enabled (value 1) then some types of tests will have another background color - default is 0 DosageTestDetails ... when enabled (value 1) then dosage tests will have more lines also with additional subresults - default is 0 MeterErrorTestPrecision ... defines precision (number of decimals) for meter error tests ... default is 2 CounterStatesPrecision ... defines precision (number of decimals) for printing final states of counters ... default is 0 ExecutedTestsOnly ... when enabled (value 1) then only executed tests will be present in the protocol ... default is 0 SamplesVisible ... when enabled (value 1) then for all meter error (and some dosage) tests will be printed (in separate lines) also measured samples ... default is 0 PowerInfoVisible ... when enabled (value 1) then also columns 'POWER' and 'UNIT' are visible in the protocol ... default is 0 UserTextTestsSuffix ... user defined text, which has to be added at the end of test name of input data tests ... default is "" (empty quotes/empty string) UserTextTestsSeparation ... when enabled (value 1) then input data tests are printed on separate page than results tests ... default is 0 LongTextWrap ... when enabled (value 1) then long cell texts are printed on multiple rows without changing the font size ... default is 0 SinglePositionPerPage ... when enabled (value 1) then only one position per page is printed ... default is 0 TestNumbersVisible ... when enabled (value 1) then also column '#'(means sequence number) is visible in the protocol ... default is 0 TestNumbersOriginal ... when enabled (value 1) then order number instead of sequence number is visible in '#' column ... default is 0 DosageTestDetailsUnits ... defines units for dosage test details dependant on energy type(rows Initial and Final) ... 0-Wh/varh, 1-kWh/kvarh, 2-MWh/Mvarh, 3-GWh/Gvarh ... default is 1

www.appliedp.com ELMASW-UG160-EN 121

ELMA - Control System User‘s Guide

Example: Here is an example how setting of variable PowerInfoVisible changes the final look of the protocol. Default value for this variable is 0 and protocol looks following:

Now we set the variable PowerInfoVisible to value 1, then new columns will be visible in the protocol:

122 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Template name Purpose BasicReport_Dosage.fr3 Template customized for measurements containing dosage tests with power error measurements. Results for dosage tests are printed in separate table with additional information (dial state before the test, dial state after the test, dial difference during the test, dosage error, power measurement error – related to LED blinking, differential error which is difference between two of previous types of errors). BasicReport_Dosage_Landscape.fr3 The same as above but printed on landscape paper format. LiveTestMonitoring.fr3 Template specialized for exporting sample values while the test is running. It can be used for long-time measurements containing tests with large number of samples. Sample values from first position are exported to chart.

This is how sample values exported by using LiveTestMonitoring.fr3 template can look in MS Excel:

www.appliedp.com ELMASW-UG160-EN 123

ELMA - Control System User‘s Guide 7. System of User Permissions

Certain program tasks can be carried out only whit required user permissions. The system can register several predefined users, while each of them has its own password and certain user permissions. The program divides the users according to their user permissions into three categories: 1. OPERATOR - he can operate the program, possibly also set its parameters 2. TESTER - he can do all what the previous category users, plus he can print protocols and archive results 3. TECHNICIAN - he can do all what the previous category users, plus he can switch the program into service mode, and he can also create, modify and delete any items in the program databases

After the program is started, one of defined user can be logged automatically (given in elma.ini file) or login window may appear to prompt the operator to log in. If you need to switch users, you can do so from the program menu, by clicking System / Change user. After the correct user name and password are entered, the current program user will be logged off. Name of the current user is always displayed in the main window, in the second part of the status bar from the left. If you want to log off the current user and log on the basic user, you can do so from the program menu by clicking System / Log off current user. Last logged user can be saved / reused at start-up (saveActiveUser parameter)

124 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

8. Data Exchange with Meters

Data exchange with meters is mostly performed via optical interface of meter. Data exchange is accessible only for meters defined as static (electronic). System ELMA is equipped with optical communication heads. Data exchange task can be divided into two groups: • Data Readout (reading meter serial number, energy state, …) • Meter Parameterization - sending command(s) to meters to set their parameters or perform some action (service mode enter, registers deletion, etc.)

8.1 Data Readout modes 1. Readout via Local Evaluation Unit (OPS) and its Optical Communication Head OPTH 1000 a. data exchange is in one time realized only with one meter, when finishes, data exchange continues on the next meter b. OPS is during data exchange switched to COPY mode. In this mode OPS works as gateway between PC and meter optical interface c. ELMA software supports FLAG (IEC 62056-21) protocol mode C for meter register readout or user defined commands for reading particular register d. In the test details it is referred as Direct Data Readout

2. Parallel Readout via EDEX (ELMA Data Exchange System) and Optical Communication Head OPTH 2000 a. data exchange with meters is performed via external program which communicate simultaneously with all tested meters via USB optical communication heads b. data between ELMA software and external data exchange program are exchanged via EDEX system database accessible by edex.dll and its functions c. ELMA software is supplied with program Readout_FLAG.exe which supports FLAG (IEC 62056-21) protocol mode C for meter register readout d. EDEX system enables to use user data exchange software to perform readout if required e. In the test details it is referred as ‘Direct Data Readout’ with checked ‘Use simultaneous readout if supported’ and ‘Use external program’ checkboxes

8.2 Meter Parameterization Modes 1. Parameterization via OPS and its Optical Communication Head OPTH 1000 a. data exchange is in one time realized only with one meter, when finishes, data exchange continues on the next meter b. Local Evaluation Unit (OPS) is during data exchange switched to COPY mode. In this mode OPS works as gateway between PC and meter optical interface c. ELMA software supports following possibilities for performing parameterization: i. FLAG (IEC 62056-21) protocol mode C with predefined commands (telegrams) - in the test details it is referred as ‘Direct Parameterization’. Data exchange with meter finishes when all commands are send. ii. FLAG (IEC 62056-21) protocol mode C with user definable commands (telegrams) - in the test details it is referred as ‘Advanced Direct Parameterization’. Data exchange with meter finishes when all commands are send. iii. Parameterization with external program - enables to run external program which performs data exchange with meter - input and output files are generated for data exchange between ELMA and external program. Data exchange with meter finishes when external program is closed. In the test details it is referred as ‘External Command Line Program Parameterization’.

www.appliedp.com ELMASW-UG160-EN 125

ELMA - Control System User‘s Guide

2. Parallel Parameterization via EDEX (ELMA Data Exchange System) and Optical Communication Head OPTH 2000 a. data exchange with meters is performed via external program which communicate simultaneously with all tested meters via USB optical communication heads b. data between ELMA software and external data exchange program are exchanged via EDEX system database accessible by edex.dll and its functions c. ELMA software is supplied with program Write_FLAG.exe which supports FLAG (IEC 62056-21) protocol mode C for meter parameterization d. EDEX system enables to use user data exchange software to perform data exchange with meters according to user communication protocol requirements e. In the test details it is referred as ‘External Command Line Program Parameterization’ with checked ‘Use simultaneous data exchange if supported’ checkbox.

8.3 Readout via OPS and its OPTH 1000 Meter must be defined as static. It is required to define Meter Register Association which enables to recognize meter registers and assign data to particular register.

Readout via OPS support • FLAG (IEC 62056-21) protocol mode C • user defined commands for reading particular register It is required to define data exchange test as displayed on the following screen shot:

Use test as block margin • when checked, readout test is treated as block margin - dosage tests enclosed between two readout tests are evaluated as dosage block (refer to chapter “10 Batch Test Block” on page 145 for more details)

126 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Use simultaneous readout if supported • when checked parallel readout is performed Register – All registers • Empty - readout of all register according to FLAG (IEC 62056-21) protocol mode C • Selected particular register - readout of selected register using command defined in Meter Type Database - Commands - Data Readout - Defined Data Readout (Refer to chapter „Page ‘Data Readout’” on page 90) Test behavior • After running the test system will apply nominal voltage to the meters (if not already applied) • Switches OPS on first enabled position to COPY mode and starts data readout with meter • When meter data readout on this position finishes, continues on the next enabled position until last enabled position • Successful readout is indicated with + mark in green field, failed readout is indicated with - mark in red field • System will try to perform data readout on failed positions another two times

8.4 Parallel Readout via EDEX EDEX system is compatible with older OPTH 2000 (USB) and with recent OPTH 1000 ( / RS422). Either of optical heads is visible for ELMA software as serial port. Meter must be defined as static. It is required to define Meter Register Association which enables to recognize meter registers and assign data to particular register. Parallel Readout via EDEX supports • FLAG (IEC 62056-21) protocol mode C - as standard supplied by Readout_FLAG.exe • Any communication protocol - depends on implementation of data exchange into data exchange program

Test type • data exchange test Parameters • Direct Data Readout Register combo box • Empty Use test as block margin When checked, readout test is treated as block margin - dosage tests enclosed between two readout tests are evaluated as dosage block (refer to chapter “10 Batch Test Block” on page 145 for more details). Use external program • Must be checked to perform data readout via external software Use simultaneous readout if supported • must be checked for parallel readout It is required to define external software which should be executed during test. Example shows settings for supplied software Readout_FLAG.exe:

www.appliedp.com ELMASW-UG160-EN 127

ELMA - Control System User‘s Guide

Test behavior • After running the test system will apply nominal voltage to the meters (if not already applied) • all OPS stay in RDY mode - OPS will not be used during this test • ELMA software will run external software and left the control, over data exchange with meters via OPTH 2000, to external software • External software performs data exchange (readout) with meters. All measured and collected data are stored into EDEX database by ELMA SW and are accessible to external software via interface edex.dll. • When external software closes ELMA software takes control and uses data stored by external software to EDEX database for evaluation of the test

8.5 Parameterization via OPS and its OPTH 1000 Meter must be defined as static. Parameterization via OPS supports: • FLAG (IEC 62056-21) protocol mode C with predefined commands (telegrams) - test details in the section ‘Parameters’ set ‘Direct Parameterization’ - more in chapter “8.5.1 Direct Parameterization - sequential” (p. 129) • FLAG (IEC 62056-21) protocol mode C with user definable commands (telegrams) - test details in the section ‘Parameters’ set ‘Advanced Direct Parameterization’ - more in chapter 8.5.2 Advanced Direct Parameterization - sequential (p. 132) • Parameterization with external program - enables to run external program which performs data exchange with meter - input and output files are generated for data exchange between ELMA SW and external program. Data exchange with meter finishes when external program is closed. Test details in the section ‘Parameters’ set ‘External Command Line Program Parameterization’ - more in chapter 8.5.3 External Command Line Program Parameterization - sequential (p. 133)

128 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

8.5.1 Direct Parameterization - sequential This type of parameterization test performs parameterization directly from program ELMA without use of an external parameterization program. Commands are already predefined in the program ELMA. Commands and their names correspond to commands defined in the FLAG (IEC 62056-21) standard. Direct parameterization has several advantages when compared with external parameterization programs - it is universal, independent of other programs, faster and more transparent. When defining this type of parameterization test it is necessary to select commands to be performed during communication with the meter. You can select the commands by dragging them from the list of supported commands (the upper window) using the mouse to the list of selected commands (lower window). Any of the commands listed in the list of selected commands can be deleted by clicking the ‘Delete’ button, or you can change their order using the arrow keys. The parameters of commands which use parameters, can be set after selecting the given command in the list of selected commands - if set, the parameters are displayed to the right of the command.

Use simultaneous readout if supported • Must be unchecked

www.appliedp.com ELMASW-UG160-EN 129

ELMA - Control System User‘s Guide

Test behavior • After running the test system will apply nominal voltage to the meters (if not already applied) • Switches OPS on first enabled position to COPY mode and starts data exchange with meter • When meter data exchange on this position finishes, continues to the next enabled position until last enabled position is finished • Successful data exchange (parameterization) is indicated with + mark in green field, failed readout is indicated with - mark in red field • System will try to perform data readout on failed positions another two times Implemented Commands Set Time & Date • Command is used to set the date, time, and sequential number of day and indicator of daylight - saving time • Selecting the Actual values from PC parameter, you can achieve setting of the time according to the time of the PC at the moment of parameterization • Selecting the User defined values parameter; you can set the time parameters by yourself Date (DD-MM-YY), Time (Week, Day, Daylight-saving time). The Set Week & Day and Set Summer Time parameters determine whether this type of time parameters should be set too • Not all types of electricity meters must support all combinations of set time parameters Set Day Counter & Season Number • command is used to set the days counter and season number and it has the parameters Day and Season Set Day Counter • command is used to set the days counter and it has the parameter Value Set Last Programming Date & Time Stamp • command is used to set the date and time of the last programming and it has the following parameters: Date (DD-MM-YY) and Time (HH:MM) Set Identification Number • command is used to set the electricity meter ID which according to the norm can be spread across several rows and so the command has the following parameters: Row and Identification number Set Parameter Set ID • command is used to set the identification code of parameters file and it has the parameter Value. Set Season Length • command is used to set the length of season and it has the following parameters: Channel and Value Set Password • command is used to set the electricity meter password and because one electricity meter according to the norm can have several passwords it has the following parameters: Password number and Password Set Address • command is used to set the address of the device and it has the parameter Value Set Channel Type • command is used to set the type of channel and it has the following parameters Channel and Value Set Cumulation Counter • command is used to set the cumulating counter and because this value is set separately for each channel, it has the following parameters: Channel and Value

130 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Set Power Fail Counter • command is used to set the power fail counter and because this value is set separately for each channel, it has the following parameters: Channel and Value Set Overvoltage Counter • command is used to set the overvoltage counter and because this value is set separately for each channel, it has the following parameters: Channel and Value Set Undervoltage Counter • command is used to set the undervoltage counter and because this value is set separately for each channel, it has the following parameters: Channel and Value Set Battery Hour Counter • command is used to set the battery hour counter and it has the parameter Value Set Error Code • command is used to set the error code and it has the parameter Value Set Reverse-Running Flag • command is used to set the reverse-running flag and it has the parameter Value Perform a Season Change • command is used to change the season of the electricity meter and it has no parameters Perform a Cold Start • command is used to perform the electricity meter cold start and it has no parameters Neutralize Cumulation Inputs • command is used to perform the neutralization of cumulative inputs of the electricity meter and it has no parameters Activate Ripple-Control-Unit Self-Test • command is used to perform the internal self-test of the electricity meter and it has no parameters Calibration Mode On • command is used to turn on the calibration mode of the electricity meter and it has no parameters Calibration Mode Off • command is used to turn off the calibration mode of the electricity meter and it has no parameters Reset All Prevalues • command is used to reset all pre-set values of the electricity meter and it has no parameters Reset All Total reg. • command is used to reset all total registers of the electricity meter and it has no parameters Reset reg. + Total reg. • command is used to reset all registers and it has no parameters

www.appliedp.com ELMASW-UG160-EN 131

ELMA - Control System User‘s Guide

8.5.2 Advanced Direct Parameterization - sequential This type of parameterization is designed for meters communicating according to FLAG (IEC-62056- 21) standard. User must specify telegrams for communication with meter in definition of commands in database of meters. These telegrams are available from meter manufacturer. Definition of test is similar to definition of direct parameterization test.

When defining this type of parameterization test it is necessary to select commands to be performed during communication with the meter. You can select the commands by dragging them from the list of supported commands (the upper window) using the mouse to the list of selected commands (lower window). Any of selected commands can be deleted by clicking the ‘Delete’ button, or you can change their order using the arrow keys.

Use simultaneous readout if supported • Must be unchecked

132 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Selected command must have appropriate definition of command (telegram) syntax in the database of meter types as follows:

Test behavior • After running the test system will apply nominal voltage to the meters (if not already applied) • Switches OPS on first enabled position to COPY mode and starts data exchange with meter - send defined telegram to meter and receive meter answer • When meter data exchange on this position finishes, continues to the next enabled position until last enabled position is finished • Successful data exchange (parameterization) is indicated with + mark in green field, failed readout is indicated with - mark in red field • System will try to perform data readout on failed positions another two times 8.5.3 External Command Line Program Parameterization - sequential This type of parameterization is designed for data exchange with meters via external program. This program can be parameterization software supplied by meter manufacturer or user parameterization or calibration software. When defining this type of parameterization test it is necessary to select commands to be performed during communication with the meter. You can select the commands by dragging it from the list of supported commands (the upper window) using the mouse to the list of selected commands (lower window). Any of the commands listed in the list of selected commands can be deleted by clicking the ‘Delete’ button, or you can change their order using the arrow keys.

www.appliedp.com ELMASW-UG160-EN 133

ELMA - Control System User‘s Guide

1

Use simultaneous readout if supported • Must be unchecked LP Definition 1 • optionally it is possible to activate load point generation - apply voltage and current to meter and also run measurement of meter error • when check box is ‘enabled’ then load point definition is accessible via button ‘LP definition’ • when in load point definition number of Samples is equal to zero - only defined load point will be applied then data exchange will start • when in load point definition number of Samples is non-zero value - defined load point will be applied and subsequently meter error measurement will start. When system measures defined amount of meter errors (samples) for each enabled position then data exchange will start.

134 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Selected command must have appropriate definition of external program details in the database of meter types as follows:

Parameterization program file • enables to enter external program path and all required switches or parameters • parameter [INPUT] will be substituted with path of Input file during staring external software • parameter [OUTPUT] will be substituted with path of Output file during staring external software • when no Input file is specified default file input.par will be created into the same folder from which external program is executed • when no Output file is specified default file output.par will be expected by program ELMA in the same folder from which external program is executed

Test behavior • After running the test system applies nominal voltage to the meters (if not already applied) or applies defined load point and performs measurement of meter error • Switches OPS on first enabled position to COPY mode, creates Input file for current position and releases communication port • Runs external program and waits until external program is closed • When external program starts it can read all required information from Input file, then can execute data exchange with meter • When external program finishes meter data exchange (parameterization/calibration) it should create Output file with data exchange status information and should be closed • When external program closes, ELMA takes control - reads status of data exchange from Output file and uses this information for meter evaluation, then continues with external data exchange on the next enabled position • Successful data exchange (parameterization) is indicated with + mark in green field, failed readout is indicated with - mark in red field

www.appliedp.com ELMASW-UG160-EN 135

ELMA - Control System User‘s Guide

User interface for calling external program

USERprogram [INPUT] [OUTPUT] [additional parameters] USERprogram • full path name of executable (external program) [INPUT] • optional token for Input file - during starting of USERprogram it will be replaced by Input file path (specified in window Electricity Meter Communication Commands) • if not specified, default input file will be created into folder of executable, file name will be ‘input.par’ [OUTPUT] • optional token for Output file - during starting of USERprogram it will be replaced by Output file path (specified in window Electricity Meter Communication Commands) • if not specified, default output file will be expected to be created by external software into folder of executable, file name should be ‘output.par’ Input File Format This file is used for storing data from ELMA and thus provides access to them for external program (USERprogram). Structure of this file is standard Windows INI file with sections and parameters (each on separate line). File can contain more (for some users unnecessary) lines (information). Accessible information in Input File: Section Name Item Name Description Serial (COM) port identification (values COM1, COM2, ... COM16) port Typically COM3 Comm position Meter Position on the test system (values are 1, 2, ... 60) Parameter allows to set higher baud rate during communication with accept_hi_baudrate meter (0/1) par_file Parameterization file name - if provided Data Serial_number Meter Serial Number meter_status Meter Status (1-pass, 0-failed) Actual Power (in W or var) Measured by Reference Standard, power 3-phases - each separated by comma (powerR, powerS, powerT) Actual Voltage (in V) Measured by Reference Standard, voltage 3-phases - each separated by comma (voltageR, voltageS, voltageT) Actual Current (in A) Measured by Reference Standard, current 3-phases - each separated by comma (currentR, currentS, currentT) Actual Phase Shift (in degrees) Measured by Reference Standard, phase 3-phases - each separated by comma (angleR, angleS, angleT) Actual Frequency (in Hz) of Basic Harmonic Measured by Reference frequency Standard power1 Actual Power Phase 1 (Measured by Reference Standard) power2 Actual Power Phase 2 Values power3 Actual Power Phase 3 power_active Actual Active Power of all phases (values separated by commas) power_active1 Actual Active Power of Phase 1 power_active2 Actual Active Power of Phase 2 power_active3 Actual Active Power of Phase 3 power_active_total Summation of actual active power from all phases power_reactive Actual Reactive Power of all phases (values separated by commas) power_reactive1 Actual Reactive Power of Phase 1 power_reactive2 Actual Reactive Power of Phase 2 power_reactive3 Actual Reactive Power of Phase 3 power_reactive_total Summation of actual reactive power from all phases power_apparent Actual Apparent Power of all phases (values separated by commas)

136 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

power_apparent1 Actual Apparent Power of Phase 1 power_apparent2 Actual Apparent Power of Phase 2 power_apparent3 Actual Apparent Power of Phase 3 power_apparent_total Summation of actual apparent power from all phases voltage1 Actual Voltage Phase 1 voltage2 Actual Voltage Phase 2 voltage3 Actual Voltage Phase 3 current1 Actual Current Phase 1 current2 Actual Current Phase 2 current3 Actual Current Phase 3 Actual Phase Shift (angle) between voltage and current in phase 1 phase1 (Measured by Reference Standard) Actual Phase Shift (angle) between voltage and current in phase 2 phase2 (Measured by Reference Standard) Actual Phase Shift (angle) between voltage and current in phase 3 phase3 (Measured by Reference Standard) error Measured Meter Error (in %) errorPPM Measured Meter Error (in ppm) Example of Input File:

[Comm] port=COM3 position=2 accept_hi_baudrate=1

[Data] par_file= serial_number= meter_status=0

[Values] power=2307.957,2307.927,2305.21 voltage=230.2973,230.2163,230.0381 current=10.02168,10.02507,10.02093 phase=-0.2251664,-0.2560065,-0.05411327 frequency=49.9998 power1=2307.96 power2=2307.93 power3=2305.21 power_active=2307.957,2307.927,2305.21 power_active1=2307.96 power_active2=2307.93 power_active3=2305.21 power_active_total=6921.09 power_reactive=-10.2336,-10.42217,-3.043221 power_reactive1=-10.2336 power_reactive2=-10.4222 power_reactive3=-3.04322 power_reactive_total=-23.699 power_apparent=2307.98,2307.95,2305.212 power_apparent1=2307.98 power_apparent2=2307.95 power_apparent3=2305.21 power_apparent_total=6921.14 voltage1=230.297 voltage2=230.216

www.appliedp.com ELMASW-UG160-EN 137

ELMA - Control System User‘s Guide

voltage3=230.038 current1=10.0217 current2=10.0251 current3=10.0209 phase1=-0.225166 phase2=-0.256007 phase3=-0.0541133 error=-0.122056 errorPPM=-1220.56 Output File Format This file can be used for sending information from external program (USERprogram) to ELMA software. Typical usage of this file is sending error message(s) to ELMA software, which can then repeat call of external software (USERprogram). This is useful if for example electricity meter is not able communicate because of bad position of optical head. In this case the ELMA software can indicate to operator an error received from external program (USERprogram) and after finishing all other positions ELMA software can repeat the call of external program on that position (with adjusted position of optical head). Before ELMA software calls external program existing Output file is deleted and another one has to be created by external software. Structure of this file is standard Windows ini file with sections and parameters (each on separate line). File can contain more (for ELMA unnecessary) lines (information). ELMA software will use these parameters for test/position evaluation.

Section Name Item Name Description result Test Result for actual position (1-pass, 0-fail) Result exception Text of some exception from external software count Number of reported errors command_1 Unsuccessful command (1 - index of command) error_text_1 Error text for unsuccessful command (1 - index of command) ... Errors ... Unsuccessful command (N - index of command), N - must be command_N equal to count - number of reported errors error_text_N Error text for unsuccessful command (N - index of command)

Usage of Output File is optional. • If this file will be not used, ELMA software will assume that all communication on all positions was successful • If used (#1) at least first parameter [Result] result has to be used • If used (#2), it can contain section [Errors] as optional that serves only as information for operator of ELMA software

Example of Output File (#1): Example of Output File (#2):

[Result] [Result] result=1 result=0 [Errors] count=1 error_1=04 error_text_1=No response from the meter

138 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

8.6 Parallel Parameterization via EDEX and OPTH 2000 Meter must be defined as static. Parallel Parameterization via EDEX supports: Parameterization with external program - enables to run external program which performs data exchange with all enabled meters. Data between external software and ELMA software are shared via EDEX database. Test details in the section ‘Parameters’ set ‘External Command Line Program Parameterization’. This type of parameterization is designed for data exchange with meters via external program. This program can be user parameterization or calibration software. When defining this type of parameterization test it is necessary to select commands to be performed during communication with the meter. You can select the commands by dragging it from the list of supported commands (the upper window) using the mouse to the list of selected commands (lower window). Any of the commands listed in the list of selected commands can be deleted by clicking the ‘Delete’ button, or you can change their order using the arrow keys. Test type • data exchange test Parameters • External Command Line Program Parameterization

Use simultaneous readout if supported • Must be checked LP Definition • optionally it is possible to activate load point generation - apply voltage and current to meter and also run measurement of meter error • when check box is ‘enabled’ then load point definition is accessible via button ‘LP definition’ • when in load point definition number of Samples is equal to zero - only defined load point will be applied then data exchange will start • when in load point definition number of Samples is non-zero value - defined load point will be applied and subsequently meter error measurement will start. When system measures defined amount of meter errors (samples) for each enabled position then data exchange will start. Selected command must have appropriate definition of external program details in the database of meter types as follows:

www.appliedp.com ELMASW-UG160-EN 139

ELMA - Control System User‘s Guide

Definition of executable with its parameters:

Optional definition of commands:

140 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Parameterization program file • enables to enter external program path and all required switches or parameters • parameter [INPUT] will be substituted with path of Input file during staring external software • parameter [OUTPUT] will be substituted with path of Output file during staring external software Test behavior • After running the test system will apply nominal voltage to the meters (if not already applied) or apply defined load point and perform measurement of meter error • Run external program and waits until external program is closed • When external program starts it can read all required information from EDEX database, then can execute data exchange with meter • When external program finish meter data exchange (parameterization/calibration) it should write results / status of data exchange for each position into EDEX database and should be closed • When external program closes ELMA takes control - read status of data exchange from EDEX database and use this information for meter evaluation

www.appliedp.com ELMASW-UG160-EN 141

ELMA - Control System User‘s Guide 9. Running Tests

When any test is started this window always appears:

When any test is being stopped this window always appears:

Main purpose of these windows is to secure the main window during starting and stopping of tests when accidental mouse clicking around might occur. Button Terminate Test allows to immediately termination of test generation as a prevention of accidental test triggering. Alternatively also F9 button can be used when this window appears to terminate starting test.

9.1 Auto-run Test Mode Auto-run Test mode enables automatic execution of tests in measurement without operator intervention. When auto-run test mode is activated after finishing test, program will automatically continue with executing next test in measurement until it will reach end of measurement. Automatic tests execution can be interrupted anytime by operator. In case of some problem (error) in system, program will immediately interrupt the automatic test execution and prompt operator for intervention. Activation/deactivation of auto-run test mode is available through menu “System -> Auto-run mode” or from button’s Test popup menu item 1“Auto-run test mode”. State of auto-run test mode is signalized in caption of button Test. Signs “>>” in caption means that system is activated. No “>” sign means that system is deactivated. Selected test can be run by following ways: A. button Test B. selecting from menu “System -> “Test” C. double click test name D. pressing ENTER key E. pressing key F9 When auto-run test mode is deactivated all types of test running are equal. When auto-run test mode is activated behavior of program after running the test depends on the kind of running: • C and D: only single test (selected) will be executed • A, B and E: cause activation of automatic test execution, i.e. selected test will run and after finishing it, another test will start automatically and so on, until the end of measurement or until an error or interruption from operator. Each test processing can be interrupted if it is required: a. button Test click b. selecting from menu “System -> “Test” c. pressing ENTER key d. pressing key F9 After using any operation from above cause interruption of actual test and abortion of auto-run test mode. Except of interrupting manual test with option c. It will interrupt the actual manual test but system will continue with automatic execution on next test.

142 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Special shortcut for switching ON or OFF the automatic test execution is Ctrl + F9. This will cause that system will wait until actual test will normally finish and after that stop - interrupt automatic test execution. State of waiting until actual test finish is signalized by sign “>” in caption of “Test” button. On the other hand if the AutoRun was not enabled and some test is running, CTRL + F9 will enable AutoRun even during running this test. This feature is also available from button’s Test popup menu items 3 “Stop run after this test” and 4 “Switch to auto-run mode”. Caution: Auto-run Test Mode works correctly only for Testing. In Adjustment mode the ELMA SW does not perform tests sequentially, because they are triggered and ceased by user!

9.2 Auto-run Infinity Test Mode Auto-run Infinity Test mode enables automatic execution of tests in measurement without operator intervention. Program automatically runs all tests from measurement one by one until it will reach the end of measurement. Automatic tests execution can be interrupted anytime by an operator. The difference between Auto-run mode and Auto-run Infinity mode is that in case of some problem (error), the system program will continue the execution of automatic test without prompting operator for intervention. When the Auto-run infinity mode reaches the end of measurement, the error window will be shown in case of some errors during tests. All tests which contain some error have the icon signed with exclamation mark inside the icon of main window. We distinguish 2 types of error during test: • error of optical sensor in some position -> in this case the exact position number is shown at the end of measurement in error window. In case of optical sensor error a special time is defined, during which operator has chance to correct the optical sensor of error position. This time is defined (in seconds) as “measTimeout” parameter in elma.ini file in [Param.Measurement] section and can be defined by the operator editing the elma.ini file before start-up of ELMA program. If the operator corrects the error positions until the specified time, the test is considered as successful and it is not contained in error window at the end of measurement. • error in output generation -> in this case the “-” sign is shown at the end of measurement in error window. Activation/deactivation of auto-run infinity test mode is available through menu “System -> Auto-run mode infinity” or from button’s Test popup menu item 2 “Auto-run mode infinity”. State of auto-run infinity test mode is signalized in caption of button Test. Signs “>>>” in caption means that system is activated. No “>” sign means that system is deactivated. Selected test can be run by following ways: A. button Test click B. selecting from menu “System -> “Test” C. double click test name D. pressing ENTER key E. pressing key F9 When auto-run infinity test mode is deactivated all types of test running are equal regardless the way of triggering them. Thus, all five ways of starting the test are the same.

www.appliedp.com ELMASW-UG160-EN 143

ELMA - Control System User‘s Guide

When auto-run infinity test mode is activated behavior of program after running the test depends on the kind of running: • Running a test using type C and D will cause only single test (selected) execution, therefore no automatic continuing of other tests will take place • Running a test using type A, B and E will cause that selected test will run and after it is finished, another test will start automatically (also in case of an error). This process continues until end of measurement is reached (i.e. all remaining tests will accomplish), or interruption from operator has happened. Each test processing can be interrupted if it is required: a. button Test click b. selecting from menu “System -> “Test” c. pressing ENTER key d. pressing key F9 After using any operation from above cause interruption of recent test and abortion of auto-run infinity test mode. Except of interrupting manual test with option c. It will interrupt the actual manual test but system will continue with automatic execution on next test. Special shortcut for interrupting of automatic test execution is Ctrl-F9. This will cause that system will wait until actual test will normally finish and after that stop - interrupt automatic test execution. Main indication of deactivated system is signalized by sign “>” in caption of “Test” button. Caution: Auto-run Infinity Test Mode works correctly only for Testing. In Adjustment mode the ELMA SW does not perform tests sequentially, because they are triggered and ceased by user!

144 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

10. Batch Test Block

During testing of static meters with optical communication it is advantageous to merge batch tests (dial tests, maximum test) to one batch block bounded by reading registers. Register association must be defined for registers used by tests generating the batch block.

10.1 Principle Batch block is bounded by two tests - reading of registers initial and final. Both of them must have checked parameter “Use test as block margin”. Between this two tests are placed batch tests - dial tests and maximum tests. No other types of test can be placed into block except tests which generate zero power - data input from terminal or parameterization tests. Batch test block starts with running of initial registers reading (Test “Read Registers - Initial” in followed pictures). After execution of this test it is possible consistent launching of batch tests. When concurrent running of batch tests is enabled (“Parameters->Measurement->Enable concurrent batch tests”) test with matching load points are executed concurrently. Each executed test is signed by light blue color which signalized that test was executed but not evaluated yet. After all batch tests are done it is possible to run final registers reading (Test “Read Registers - Final”). When final register reading is finalized all executed batch test are to be evaluated. To guarantee correct behavior during concurrent test running it is important to meet followed order of tests: Dial tests must be in the beginning of block and they can be followed by maximum tests. Reason for this is very simple - when in automatic test run mode system automatically starts dial test with this test can run at least one maximum test (if defined). The precision of energy dose is controlled by Reference Standard. But when you place maximum test prior to dial test, system will automatically start maximum test and concurrently with maximum test will proceed dial test, but during tests Reference Standard doesn’t control energy dose only specified time for maximum test is guaranteed. To optimize process of concurrent batch test running program automatically adjust batches and times of tests.

10.2 Practical example of batch test block

Picture above shows example of batch tests prepared for execution. 4th column displays energy doses and times required for test running. Tests with optimized energy doses and times have initial value displayed in brackets. In this example were optimized tests:

www.appliedp.com ELMASW-UG160-EN 145

ELMA - Control System User‘s Guide

• “Dial Test total” - this test will run concurrently will all tests in block except “Dial Test supply total”. Program optimized energy dose for this test to match to maximal energy dose from possible concurrent tests. Note: For dial test in which is tested register total is energy dose information irrelevant because real energy dose is sum of energy doses from all concurrent tests. • “Maximal Power” and “Maximal Current” - Defined times of duration for both test is 1 minute. System recognized that these tests can concurrently run with test “Dial Test tariff 4” and therefore optimized time of duration of these tests (time 10.03 minute is required for energy dose 2.5kWh).

Followed picture shows two concurrently running tests:

Test “Dial Test total” is concurrently running with test “Dial Test tariff 1”. Applied power increments both registers “Energy total” and “Energy tar. 1”.

Picture above show concurrent running of tests “Dial Test tariff 2” and “Dial Test total”. Test “Dial Test total” is running second time. Test “Dial Test tariff 1” is signed by light blue that means that test is already executed but not evaluated. It is not possible to run again already executed test. Followed picture shows running test “Dial Test tariff 4”. Concurrently with this test are running another 4 tests.

146 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

11. Testing meters with different constants and ratios

ELMA software enable to measure in one batch meters with different constant, different ratio or different tolerance (class) while nominal and maximal ratings of voltage and current must the same for all meters within tested batch. This measurement creates requirement to enter these additional information for each meter into the system. ELMA software provides this facility 4 test types: • EM Constant for LED/Disc • EM Constant for SO • EM Ratio • EM Tolerance Parameters of the test enable to set data input type: • Data input from hand-held terminal • Data input from PC (keyboard in string format) Example of test detail:

When there is no test for entering meter constants or ratios or these tests are not done, program will behave as standard and constant and ratio will be taken from meter type definition. 11.1.1 Meter Constant Entering Test behaves as standard user text input. When started, operator is asked to enter data via hand-held terminal or directly via PC keyboard. Constants must be entered in unit imp/kWh, resp. rounds/kWh. For indirect meters are entered constants treated as primary. 11.1.2 Meter Ratio Entering Test behaves as standard user text input. When started, operator is asked to enter data via hand-held terminal or directly via PC keyboard. Entered ratio must be multiplication of voltage and current ratio. 11.1.3 Meter Tolerance Entering Test behaves as standard user text input. When started, operator is asked to enter data via hand-held terminal or directly via PC keyboard. 11.1.4 General notes Selected Meter Type must have the same setting of constants and ratio as at least one of tested meters.

www.appliedp.com ELMASW-UG160-EN 147

ELMA - Control System User‘s Guide

This feature is available by combination of setting of OPS predivider and nominal impulses. When measuring dynamic meters it is not possible to use predivider therefore in this case range of measured constants can be 1:10. While measurement of static meters there are no restrictions. For Register test and Maximum demand test system evaluates entered ratios for each measured position. In real situation this means that each meter with different ratio registered different batch of primary energy or power.

148 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

12. EDEX System Overview

12.1 Main Features Data exchange with all meters under test simultaneously • Simultaneous data exchange provides: • Quick registers readout • Quick meter parameterization • Quick data exchange during meter calibration => higher meter production rate • Direct support for simultaneous data exchange according to IEC 62056-21 (IEC 1107) • User data exchange available via user software • Easy implementation into user data exchange software

12.2 System Components • Optical communication heads OPTH 1000 or OPTH 2000 • Infrastructure for interconnecting communication heads with Control computer • ELMA software support for simultaneous data exchange • Data exchange library accessible to user software • Database with data from ELMA software accessible to user software

12.3 Principle • ELMA software continuously stores all measured and collected data into data exchange database • ELMA software runs data exchange software (user software) and gives control over data exchange to this software • Data exchange software can access measured and collected data from ELMA system via data exchange library (edex.dll) • Data exchange software can communicate with meters using optical communication heads. • Communication heads are accessible as standard serial ports (RS-232), where each position (meter) is separate serial communication port • When data exchange software finishes communication with all meters, stores results into data exchange database (via edex.dll) • Data exchange software closes and returns control back to ELMA software for further processing

www.appliedp.com ELMASW-UG160-EN 149

ELMA - Control System User‘s Guide

Data exchange software Data exchange Read Store (communication) data results ELMA with meters software

Data exchange database

12.4 Data Exchange Database • Available data: o Meter type o Load point parameters: ▪ Measured voltages, currents, power, angles, … o Meter results for each measured meter ▪ Measured error ▪ Register states ▪ Dosage error ▪ Meter identification data ▪ Data gained from exchange data • Accessible via functions in data exchange library • Data exchange library - edex.dll - supplied with system • Contains functions for: o Reading collected and measured data o Storing results of data exchange with meters 12.4.1 Structure of EDEX database As written in previous chapters this database is used for bidirectional exchange of data between ELMA and external applications (supplied by AP or independent vendors). This database is “live” which means its content is updated during measurement. Newer versions of ELMA software beginning from 14.00 use this database as data source for report system based on FastReport components (https://www.fast- report.com).

150 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

EDEX database contains following tables: Table name Purpose LOADPOINT Definition of all loadpoints in current measurement. Loadpoints are defined only for those tests that are generating voltages and currents. MEASPOINT Values of electric quantities measured by Reference Standard every second. METER_DATA Contains list of positions and their associated communication port numbers. Currently this table must be filled manually as part of installation and configuration process. METER_DATA_EXCHANGE Test results for data exchange tests. ELMA or external calibration utility fills this table with results (for example content of registers or calibration status). METER_DATA_EXCHANGE_COMMANDS Contains calibration commands for external calibration utilities. Data exchange test must be configured as “External Command Line Program Parameterization”. Commands are read from electricity meter database (Database -> Electricity meters -> Data Exchange -> Commands -> Parameterization) from tabs “IEC 62056-21” and “Special”. METER_DOSAGE Test results for dosage & maximum demand tests. METER_ERROR Test results for following type of tests: automatic, manual, special (compare) and stop. METER_ERROR_VAL Contains error samples from which average value stored in METER_ERROR table is calculated. METER_TEXT Test results for tests requiring text input i.e.: EM serial number, EM type, EM end state of register, EM user text, EM constant for LED/Disc, EM Constant for SO, EM Ratio, EM Tolerance, Attest numbers input. METER_TYPE Properties of electric power meter (name, class, nominal voltage, …). Contains only those properties that are same for all positions. METER_TYPE_PROT Subset of electric power meter properties related to protocol creation. METER_TYPE_POS Summary results for concrete electric power meter (with unique serial number). METER_TYPE_REG List of meter registers addresses. PROTOCOL Protocol header fields (protocol name, name 1, name 2, …). Filled after closing “Protocol header” window. REG Meter readout parsed into registers for easier analysis and export. RS Reference Standard properties. SG Signal generator properties. STATION Test station properties. TEST Definition of all tests in current measurement with their properties (name, code, type, …).

www.appliedp.com ELMASW-UG160-EN 151

ELMA - Control System User‘s Guide

Table LOADPOINT Contains properties of test related to generating voltage & currents.

Column name Data type Purpose TEST_ID integer unique test identifier (primary key and also foreign key to table TEST) VOLT_R double loadpoint voltage in L1 in volts VOLT_S double loadpoint voltage in L2 in volts VOLT_T double loadpoint voltage in L3 in volts CURR_R double loadpoint current in L1 in amperes CURR_S double loadpoint current in L2 in amperes CURR_T double loadpoint current in L3 in amperes PHVOLT_R double phase of L1 voltage in degrees PHVOLT_S double phase of L2 voltage in degrees PHVOLT_T double phase of L3 voltage in degrees PHCURR_R double phase of L1 current in degrees, relative to U1 PHCURR_S double phase of L2 current in degrees, relative to U2 PHCURR_T double phase of L3 current in degrees, relative to U3 PPOWER_R double active power in L1 in watts PPOWER_S double active power in L2 in watts PPOWER_T double active power in L3 in watts QPOWER_R double reactive power in L1 in vars QPOWER_S double reactive power in L2 in vars QPOWER_T double reactive power in L3 in vars POWER_FACTOR double power factor which is defined as cos(φ) for active measurement and sin(φ) for reactive measurement POWER_FACTOR_CHAR char(1) ‘L’ for inductance load, ‘C’ for capacitive load FREQ double frequency in Hertz TARIFF integer active tariff (1 – 4) WAVETYPE integer signal shape: 1 – standard, 2 – IEC 62053-21 / Phase- Fired, 3 – IEC 62053-21 / Burst-Fire, 4 – user defined WAVENAME varchar(256) name of user defined signal shape; defined only if WAVETYPE = 4 (user defined) DATESTORE timestamp timestamp of record creation POWER double total power on electric meter in watts / vars; in case of indirect meter this is power on primary side POWERPRIM double total power on electric meter in watts / vars; in case of indirect meter this is power on primary side POWERSEC double total power on electric meter in watts / vars; in case of indirect meter this is power on secondary side

Table MEASPOINT Contains values of electric quantities measured by Reference Standard every second. For older versions of ELMA than 14.00 filled only in case that parameter [Param.Service.EDEX] measPointPopulate in elma.ini equals 1.

Column name Data type Purpose TEST_ID integer unique test identifier (part of primary key and also foreign key to table TEST) ORD integer order of measured values (1..N) VOLT_R double voltage in L1 in volts VOLT_S double voltage in L2 in volts

152 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Column name Data type Purpose VOLT_T double voltage in L3 in volts CURR_R double current in L1 in amperes CURR_S double current in L2 in amperes CURR_T double current in L3 in amperes PHVOLT_R double voltage phase in L1 in degrees PHVOLT_S double voltage phase in L2 in degrees PHVOLT_T double voltage phase in L3 in degrees PHCURR_R double phase of I1 relative to U1 in degrees PHCURR_S double phase of I2 relative to U2 in degrees PHCURR_T double phase of I3 relative to U3 in degrees PPOWER_R double active power in L1 in watts PPOWER_S double active power in L2 in watts PPOWER_T double active power in L3 in watts QPOWER_R double reactive power in L1 in vars QPOWER_S double reactive power in L2 in vars QPOWER_T double reactive power in L3 in vars SPOWER_R double apparent power in L1 in voltamperes SPOWER_S double apparent power in L2 in voltamperes SPOWER_T double apparent power in L3 in voltamperes POWER_FACTOR double total power factor; in multi-phase system calculated so that following equation is valid: S2 = P2 + Q2 where S is total apparent power, P total active power (P = P1 + P2 + P3) and Q total reactive power (Q = Q1 + Q2 + Q3) POWER_FACTOR_CHAR char(1) load character (‘L’, ‘C’ or ‘-‘ if load character cannot be determined); in multiphase system calculated from power triangle: S2 = P2 + Q2 where S is total apparent power, P total active power (P = P1 + P2 + P3) and Q total reactive power (Q = Q1 + Q2 + Q3) FREQ double frequency of signal in L1 TARIFF integer currently not used WAVETYPE integer currently not used WAVENAME varchar(30) currently not used DATESTORE timestamp timestamp of record creation

Table METER_DATA Contains list of positions and their associated communication port numbers. Currently this table must be filled manually as part of installation and configuration process. Only field ENABLED is set by ELMA.

Column name Data type Purpose POS integer position number (1..N; primary key) STATUS integer position status: 0 – FAIL 1 – OK STATUS_STR varchar(256) position status as string (“OK” or “BAD” depending on testOK, testBAD parameters in configuration file wordprot.ini) ENABLED smallint 0 – position disabled, 1 – position enabled COMPORT smallint communication port number (for example “1” means COM1 port should be used for communication with meter on position POS) SERIALNUMBER varchar(256) meter serial number METERTYPE varchar(30) meter type YMAN smallint year of manufacture of electric meter DATESTORE timestamp timestamp of record creation AVERAGE double average error for specific position

www.appliedp.com ELMASW-UG160-EN 153

ELMA - Control System User‘s Guide

Column name Data type Purpose STDEV double standard deviation of average error for specific position LIMIT1 double tolerance in % for positive error for specific position2 LIMIT2 double transient tolerance in % for positive error for specific position (<= LIMIT1, optional) LIMIT3 double tolerance in % for negative error for specific position LIMIT4 double transient tolerance in % for negative error for specific position (>= LIMIT3, optional)

Table METER_DATA_EXCHANGE This table contains test results for data exchange tests. ELMA or external calibration utility fills this table with results (for example content of registers or calibration status).

Column name Data type Purpose TEST_ID integer unique test identifier (part of primary key and also foreign key to table TEST) POS integer position number (1..N) (part of primary key)3 STATUS integer result status: 1 – good or test was not run, 0 - bad STATUS_STR varchar(256) result of test written in short manner (copy of information from Results window cell) DATA varchar(32000) meter readout or calibration status (depends on external utility what is filled here) AVERAGE double average error if data exchange test is combined with automatic test (by enabling loadpoint in test properties) STDEV double Standard deviation of average error. Filled only in case that data exchange test is combined with automatic test (by enabling loadpoint in test properties). UNCERT double extended (or total) uncertainty of result in %4 UNCERTA double standard uncertainty of type A in % UNCERTB double standard uncertainty of type B in % UNCERTC double combined standard uncertainty in % LIMIT1 double tolerance in % for positive error LIMIT2 double transient tolerance in % for positive error (<= LIMIT1, optional) LIMIT3 double tolerance in % for negative error LIMIT4 double transient tolerance in % for negative error (>= LIMIT3, optional) MSC_CHANGE_TIME timestamp timestamp when state of MSC (meter switching circuit)5 changed LAST_MSC_STATE varchar(256) state of MSC (meter switching circuit) on end of test DATESTORE timestamp timestamp of record creation

2 Tolerances can be defined in multiple places in program. Priority of them is as follows (from highest to lowest): customized (per test) meter tolerance defined in measurement database, customized (per position) meter tolerance defined by “EM Tolerance” test, database of tolerances, database of electricity meters (see class & class reactive fields) 3 When test is running, temporary (online) results are stored under negative position number. For example temporary results from first position are available in records with POS = -1. This is for easy rollback in case that user terminates test prematurely. This option is interesting only in case when data exchange test is combined with automatic test (option „LP Definition“ must be enabled in test properties and user must set non-zero number of samples). 4 For definition of particular type of uncertainty, see chapter Uncertainties, page 117. 5 Requires special hardware instead of OPS unit.

154 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Table METER_DATA_EXCHANGE_COMMANDS This table contains calibration commands for external calibration utilities. Data exchange test must be configured as “External Command Line Program Parameterization”. Commands are read from electricity meter database (Database -> Electricity meters -> Data Exchange -> Commands -> Parameterization) from tabs “IEC 62056-21” and “Special”.

Column name Data type Purpose TEST_ID integer unique test identifier (part of primary key and also foreign key to table TEST) POS integer position number (1..N) (part of primary key) STATUS integer currently not used DATA varchar(32000) List of calibration commands separated by new line characters. If the command is specified on both “IEC 62056-21” and “Special” tabs, only first of them is taken. DATESTORE timestamp timestamp of record creation

Table METER_DOSAGE This table contains test results for dosage & maximum demand tests.

Column name Data type Purpose TEST_ID integer unique test identifier (part of primary key and also foreign key to table TEST) POS integer position number (1..N) (part of primary key)6 STATUS integer result status: 1 – good or test was not run, 0 - bad STATUS_STR varchar(256) result of test written in short manner (copy of information from Results window cell) STATUS_DETAIL_STR varchar(8192) detailed result of test (copy of information from hint in Results window) SYSTERROR double Meaning depends on dial test subtype: - only energy dose – undefined - dose with power error measurement – power error (derived from LED blinking or disc movement) - dose with pulse error measurement – pulse error - dose with pulse error and dial error calculation – pulse error - dose with dial error calculated from pulses – undefined DOSERROR double Meaning depends on dial test subtype: - only energy dose – dial error - dose with power error measurement – dial error - dose with pulse error measurement – pulse error - dose with pulse error and dial error calculation – dial error - dose with dial error calculated from pulses – dial error STDEV double Meaning depends on dial test subtype: - dose with power error measurement – standard deviation of power error samples (derived from LED blinking or disc movement) - other subtypes – undefined

6 When test is running, temporary (online) results are stored under negative position number. For example temporary results from first position are available in records with POS = -1. This is for easy rollback in case that user terminates test prematurely. This option is interesting only in case when dial test is combined with automatic test (option „dose with power error measurement” in test properties).

www.appliedp.com ELMASW-UG160-EN 155

ELMA - Control System User‘s Guide

Column name Data type Purpose UNCERT double Extended (or total) uncertainty of result in %. The base value to which it applies depends on dial test subtype: - only energy dose – dial error - dose error with power error measurement – power error (derived from LED blinking or disc movement) - dose with pulse error measurement – pulse error - dose with pulse error and dial error calculation – pulse error - dose with dial error calculated from pulses – dial error UNCERTA double Standard uncertainty of type A in %. It is defined only for following dial test subtype: - dose error with power error measurement UNCERTB double standard uncertainty of type B in % UNCERTC double Combined standard uncertainty in %. It is defined only for following dial test subtype: - dose error with power error measurement UDIAL double Uncertainty for dial error. It is defined only for following dial test subtypes: - only energy dose - dose error with power error measurement - dose with pulse error and dial error calculation - dose with dial error calculated from pulses INITIAL double initial register state in kWh / kvarh FINAL double final register state in kWh / kvarh DOSE double precise dose as measured by Reference Standard in kWh / kvarh DURATION double theoretical dose as defined in test properties OBISCODE varchar(30) address of register being tested (for example “1.8.0” for total active energy) LIMIT1 double Tolerance in % for positive error. The error value which it is compared with depends on dial test subtype: - only energy dose – not used - dose error with power error measurement – power error (derived from LED blinking or disc movement) - dose with pulse error measurement – pulse error - dose with pulse error and dial error calculation – pulse error - dose with dial error calculated from pulses – not used LIMIT2 double Transient tolerance in % for positive error (<= LIMIT1, optional). The error value which it is compared with depends on dial test subtype: - only energy dose – not used - dose error with power error measurement – power error (derived from LED blinking or disc movement) - dose with pulse error measurement – pulse error - dose with pulse error and dial error calculation – pulse error - dose with dial error calculated from pulses – not used LIMIT3 double Tolerance in % negative error. The error value which it is compared with depends on dial test subtype: - only energy dose – not used - dose error with power error measurement – power error (derived from LED blinking or disc movement) - dose with pulse error measurement – pulse error

156 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Column name Data type Purpose - dose with pulse error and dial error calculation – pulse error - dose with dial error calculated from pulses – not used LIMIT4 double Transient tolerance in % for negative error (>= LIMIT3, optional). The error value which it is compared with depends on dial test subtype: - only energy dose – not used - dose error with power error measurement – power error (derived from LED blinking or disc movement) - dose with pulse error measurement – pulse error - dose with pulse error and dial error calculation – pulse error - dose with dial error calculated from pulses – not used LIMITCOUNTER double Tolerance for dial error. It is applied only for certain subtypes of dial test namely: - only energy dose - dose error with power error measurement - dose with pulse error and dial error calculation - dose with dial error calculated from pulses LIMITCOUNTERDIFF double tolerance for difference error7 DATESTORE timestamp timestamp of record creation STATUSDIAL integer If dosage test is combined with power error measurement, in this field will be stored partial status related to dosage error measurement: 1 – good or test was not run, 0 - bad STATUSYST integer If dosage test is combined with power error measurement, in this field will be stored partial status related to power error measurement: 1 – good or test was not run, 0 - bad STATUSDIFF integer If dosage test is combined with power error measurement, in this field will be stored partial status related to differential error: 1 – good or test was not run, 0 - bad

Table METER_ERROR This table contains test results for following types of tests: automatic, manual, special (compare) and stop.

Column name Data type Purpose TEST_ID integer unique test identifier (part of primary key and also foreign key to table TEST) POS integer position number (1..N) (part of primary key)8 STATUS integer result status: 1 – good or test was not run, 0 - bad STATUS_STR varchar(256) result of test written in short manner (copy of information from Results window cell)

7 Difference error is calculated as follows: Dial test subtype Difference error dose error with power error measurement dial error – power error dose with pulse error and dial error calculation dial error – pulse error other subtypes undefined

8 When test is running, temporary (online) results are stored under negative position number. For example temporary results from first position are available in records with POS = -1. This is for easy rollback in case that user terminates test prematurely.

www.appliedp.com ELMASW-UG160-EN 157

ELMA - Control System User‘s Guide

Column name Data type Purpose STATUS_DETAIL_STR varchar(8192) detailed result of test (copy of information from hint in Results window) AVERAGE double average error in % STDEV double standard deviation of average error in % UNCERT double extended (or total) uncertainty of result in %9 UNCERTA double standard uncertainty of type A in % UNCERTB double standard uncertainty of type B in % UNCERTC double combined standard uncertainty in % LIMIT1 double tolerance in % for positive error LIMIT2 double transient tolerance in % for positive error (<= LIMIT1, optional) LIMIT3 double tolerance in % negative error LIMIT4 double transient tolerance in % for negative error (>= LIMIT3, optional) DATESTORE timestamp timestamp of record creation COMM_ERROR integer ? METER_WH_ERROR integer ? METER_VARH_ERROR integer ? MSC_CHANGE_TIME timestamp timestamp when state of MSC (meter switching circuit)10 changed LAST_MSC_STATE varchar(256) state of MSC (meter switching circuit) on end of test LAST_MARK_PERIOD double last interval between marks in seconds

Table METER_ERROR_VAL This table contains error samples for automatic test of other type of tests combined with automatic test (dosage test or data exchange test). During automatic test more samples can be measured and resulting value is calculated as average from these samples (some samples can be dropped as part of filtration process). Special test can consists from more comparisons, each resulting into one value of error. In this case AVERAGE field can have two possible states: 0 if at least one comparison failed (the value of error was larger than tolerance), 1 if all comparisons succeeded (all error values were within the limit).

Column name Data type Purpose TEST_ID integer unique test identifier (part of primary key and also foreign key to table METER_ERROR) POS integer position number (1..N) (part of primary key and also foreign key to table METER_ERROR)11 ORD integer order of sample (1..N) VAL double sample error in % FILTRATED integer This field will be updated on end of test during its evaluation. The meaning is as follows: 0 – sample was not filtrated (i.e. it was used for calculation of average and standard deviation of meter error) 1 – sample was filtrated during step 1 2 – sample was filtrated during step 2

9 For definition of particular type of uncertainty, see chapter Uncertainties, page 117. 10 Requires special hardware instead of OPS unit. 11 When test is running, temporary (online) results are stored under negative position number. For example temporary results from first position are available in records with POS = -1. This is for easy rollback in case that user terminates test prematurely.

158 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Column name Data type Purpose For more information about samples filtration see chapter 4.6.2 on page 43. STATUS integer Sample status: 0 – bad 1 – ok 3 – sample is in transition band (for example for positive error following expression is true: LIMIT2 < error + uncertainty < LIMIT1)12 DATESTORE timestamp timestamp of record creation

Table METER_TEXT This table contains test results for tests requiring text input i.e.: EM serial number, EM type, EM end state of register, EM user text, EM constant for LED/Disc, EM Constant for SO, EM Ratio, EM Tolerance, Attest numbers input.

Column name Data type Purpose TEST_ID integer unique test identifier (part of primary key and also foreign key to table TEST) POS integer position number (1..N) (part of primary key) STATUS integer result status: 1 – good or test was not run, 0 - bad DATA varchar(255) result of test DATESTORE timestamp timestamp of record creation

Table METER_TYPE This table contains properties of electric power meter (name, class, nominal voltage, …). Contains only those properties that are same for all positions.

Column name Data type Purpose ID integer Unique meter identifier (primary key). Currently always set to 1. NAME varchar(256) meter type name UNOM double nominal voltage in volts INOM double nominal current in amperes IMAX double maximum current in amperes IMIN double minimum current in amperes IMINPRIM double minimum current on primary side in amperes UNOMPRIM double nominal voltage on primary side in volts INOMPRIM double nominal current on primary side in amperes IMAXPRIM double maximum current on primary side in amperes FREQ double nominal frequency in hertz CONST double meter constant as typed in electricity meter database (without converting the value to reference unit for example imp/kWh) CONSTUNIT integer meter constant unit: 0 – imp/kWh, imp/kvarh, imp/kVAh 1 – kWh/imp, kvarh/imp, kVAh/imp

12 While test is running, sample status don’t take into account uncertainty of measurement. Reason is that uncertainty is dependent on standard deviation of dataset and can be computed only after all the samples were measured. The status of filtered samples (FILTRATED > 0) also don’t take into account uncertainty of measurement.

www.appliedp.com ELMASW-UG160-EN 159

ELMA - Control System User‘s Guide

Column name Data type Purpose 2 – Wh/imp, var/imp, VAh/imp 3 – imp/MWh, imp/Mvarh, imp/MVAh 4 – MWh/imp, Mvarh/imp, MVAh/imp 5 – imp/Wh, imp/varh, imp/VAh CONSTUNIT_STR varchar(256) meter constant unit as string for example “imp/kWh” IMPOUT integer impulse output availability: 0 – impulse output not present 1 – impulse output present IMPOUT_STR varchar(256) impulse output availability as string (“Yes” or “No”) CONSTIMPOUT double impulse output constant as typed in electricity meter database (without converting the value to reference unit for example imp/kWh) CONSTIMPOUT_UNIT integer impulse output constant unit: 0 – imp/kWh, imp/kvarh, imp/kVAh 1 – kWh/imp, kvarh/imp, kVAh/imp 2 – Wh/imp, var/imp, VAh/imp 3 – imp/MWh, imp/Mvarh, imp/MVAh 4 – MWh/imp, Mvarh/imp, MVAh/imp 5 – imp/Wh, imp/varh, imp/VAh CONSTIMPOUT_UNIT_STR varchar(256) impulse output constant unit as string for example “imp/kWh” CLASS double meter type class in % CLASSMID_STR varchar(256) Meter type MID class as string (for example “A”, “B”, “C”, “0.2” …). Default alphabetical shortcuts for meter classes are as follows (can be changed by editing configuration file elma.ini): A = 2% B = 1% C = 0.5% If the meter class is not one of MID classes than numerical value (for example “0.2”) will be exported. CLASSREACT double meter type class for measuring reactive energy in % CLASSREACTMID_STR varchar(256) Meter type MID class for measuring reactive energy as string (for example “A”, “B”, “C”, “0.2” …). Default alphabetical shortcuts for meter classes are as follows (can be changed by editing configuration file elma.ini): A = 2% B = 1% C = 0.5% If the meter class is not one of MID classes than numerical value (for example “0.2”) will be exported. PHASES integer phase count (1, 2 or 3) WIRES integer number of voltage connection wires: 3P4W – 4 3P3W – 3 2 Phases – 3 1P3W – 3 1P2W – 2 ANSI 1S – 2 ANSI 2S – 3 ANSI 3S – 3 ANSI 4S – 3 ANSI 5S – 3 ANSI 9S – 4 ANSI 12S – 3 ANSI 16S – 4 ANSI 35S – 3 SYSTEMS integer measurement circuit count: 3P4W – 3 3P3W – 2 2 Phases – 2 1P3W – 1 1P2W – 1 ANSI 1S – 1 ANSI 2S – 2 ANSI 3S – 1 ANSI 4S – 2 ANSI 5S – 2 ANSI 9S – 3 ANSI 12S – 2 ANSI 16S – 3 ANSI 35S – 2

160 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Column name Data type Purpose TARIFFS integer number of tariffs (1 – 4) CONNECTION integer connection type: 1 – direct 2 – indirect CONNECTION_STR varchar(256) connection type as localized string (“direct” or “indirect”) ENERGY integer energy type measured by meter: 1 - active energy 2 - reactive energy 4 - 4-Quadrant ENERGY_STR varchar(256) energy type measured by meter as localized string (for example “Active Energy”) ENERQUANT varchar(256) energy type unit as string: active energy – kWh reactive energy – kvarh 4-Quadrant – kWh / kvarh COUNTERMECH integer dial construction type: 0 – electronic 1 – mechanical COUNTERMECH_STR varchar(256) dial construction type as localized string (“Electronic” or “Mechanical”) COUNTERINC integer dial counter type: 0 – decrementing 1 – incrementing COUNTERINC_STR varchar(256) dial counter type as localized string (“Incrementing” or “Decrementing”) COUNTERRED integer resolution of dial – number of places after decimal point COUNTERBLACK integer resolution of dial – number of places before decimal point COUNTERMUL double dial multiplier (default 1) MANUFACTURER varchar(30) meter manufacturer DATESTORE timestamp timestamp of record creation BAUDRATE integer meter communication rate in bps (bit per second), default 300 DATABITS smallint number of bits in one communication packet on physical layer, default 7 PARITY char(1) parity used on communication line: ‘E’ – even ‘O’ – odd ‘N’ – none STOPBITS varchar(255) Number of stopbits in one communication packet on physical layer as string. Possible values are “1”, “1.5”, “2” KM_ACTIVE double Evaluation multiplication coefficient for active energy. Defined in electricity meter database -> General -> Results evaluation13. KS_ACTIVE double Evaluation additive coefficient for active energy. Defined in electricity meter database -> General -> Results evaluation14.

13 Evaluation algorithm must be set to use this constant in Configuration -> Parameters -> Evaluation -> Evaluation algorithm otherwise this value will be ignored during test evaluation. 14 Evaluation algorithm must be set to use this constant in Configuration -> Parameters -> Evaluation -> Evaluation algorithm otherwise this value will be ignored during test evaluation.

www.appliedp.com ELMASW-UG160-EN 161

ELMA - Control System User‘s Guide

Column name Data type Purpose KM_REACTIVE double Evaluation multiplication coefficient for reactive energy. Defined in electricity meter database -> General -> Results evaluation15. KS_REACTIVE double Evaluation additive coefficient for reactive energy. Defined in electricity meter database -> General -> Results evaluation16. CIRCUIT integer Meter circuit type: 3P4W – 0 3P3W – 1 2 Phases – 2 1P3W – 3 1P2W – 4 ANSI 1S – 101 ANSI 2S – 102 ANSI 3S – 103 ANSI 4S – 104 ANSI 5S – 105 ANSI 9S – 109 ANSI 12S – 112 ANSI 16S – 116 ANSI 35S – 135 CIRCUIT_STR varchar(256) circuit type as localized type for example “3P4W” CONSTRUCTION integer construction type: 0 – inductive (mechanical) 1 – static (electronic) CONSTRUCTION_STR varchar(256) construction type as localized string (“Inductive” or “Static”) PASSTARR integer whether passive tariff is used: 0 – no 1 – yes PASSTARR_STR varchar(256) Information if passive tariff is used as localized string (“Yes” or “No”) TAR1 integer 1 if meter does have tariff 1 otherwise 0 TAR1_STR varchar(256) Information if meter does have tariff 1 as localized string (“Yes” or “No”) TAR2 integer 1 if meter does have tariff 2 otherwise 0 TAR2_STR varchar(256) Information if meter does have tariff 2 as localized string (“Yes” or “No”) TAR3 integer 1 if meter does have tariff 3 otherwise 0 TAR3_STR varchar(256) Information if meter does have tariff 3 as localized string (“Yes” or “No”) TAR4 integer 1 if meter does have tariff 4 otherwise 0 TAR4_STR varchar(256) Information if meter does have tariff 4 as localized string (“Yes” or “No”) CALUNTIL_STR varchar(256) Meter calibration validity year. Calculates as current_year + calibration_validity. The resulting string can be edited by user in “Protocol header” window during archiving process. MAXIND integer 1 if maximum indicator present 0 otherwise MAXIND_STR varchar(256) Information if meter does have maximum indicator as localized string (“Yes” or “No”) MAXINDCONST double maximum indicator constant CALVAL integer recalibration interval in years RESISTIVITY double meter resistivity in ohms OPTINT integer optical interface type: 1 – infrared

15 Evaluation algorithm must be set to use this constant in Configuration -> Parameters -> Evaluation -> Evaluation algorithm otherwise this value will be ignored during test evaluation. 16 Evaluation algorithm must be set to use this constant in Configuration -> Parameters -> Evaluation -> Evaluation algorithm otherwise this value will be ignored during test evaluation.

162 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Column name Data type Purpose 2 – IrDA 3 – none (register values must be input manually by user) OPTINT_STR varchar(256) optical interface type as localized string (“InfraRed”, “IrDA” or “None (manual input of register values)” WARMUPCURR double warmup current in amperes WARMUPCURR_STR varchar(256) warmup current relative magnitude as string (for example “100% Inom”) OPSCALCURR double OPS calibration current in amperes OPSCALCURR_STR varchar(256) OPS calibration current relative magnitude as string (for example “50% Imax”) ENERGYCALALG integer Energy summation algorithm: 1 - Algo 1 (Net result) 2 – Algo 2 (Positive aggregate) 3 – Algo 3 (Both sum) 4 – Algo 4 (Anti-fraud) ENERGYCALALG_STR varchar(256) Energy summation algorithm as localized string for example “Algo 1 (Net result)” CNTALL integer total number of positions CNTPASS integer number of meters successfully passed CNTFAIL integer number of meters failed

Table METER_TYPE_POS This table contains summary results for concrete electric power meter (with unique serial number).

Column name Data type Purpose POS integer position number (1..N, primary key) SNUM varchar(256) serial number STATUS integer Meter status: 0 – bad 1 – ok 2 – undefined 3 – transition (it means inside tolerance range but near its high border) STATUS_STR varchar(256) status string (for example “OK”) AVERAGE double average error in % STDEV double standard deviation of average error in % LIMIT1 double tolerance in % for positive error17 LIMIT2 double transient tolerance in % for positive error (<= LIMIT1, optional) LIMIT3 double tolerance in % negative error LIMIT4 double transient tolerance in % for negative error (>= LIMIT3, optional) NOTE varchar(256) meter note ATTESTNUM varchar(256) meter calibration number RATIO double Transformer ratio for indirect meters defined as ratio = ratioU * ratioI. Can be customized per position by running EM Ratio type of test.

17 Tolerances can be defined in multiple places in program. Priority of them is as follows (from highest to lowest): customized (per test) meter tolerance defined in measurement database, customized (per position) meter tolerance defined by “EM Tolerance” test, database of tolerances, database of electricity meters (see class & class reactive fields)

www.appliedp.com ELMASW-UG160-EN 163

ELMA - Control System User‘s Guide

Table METER_TYPE_PROT This table contains subset of electric power meter properties related to protocol creation. The values of these fields can be edited in “Electricity meters types database” window on tab “Protocol texts” or during archiving process in ”Protocol header” window.

Column name Data type Purpose MANUFACTURER varchar(256) Meter type manufacturer. For backward compatibility this field is copied also to table METER_TYPE into field MANUFACTURER. TYPE varchar(256) Meter type. ACCUR varchar(256) Meter class. REM varchar(256) Optional commentary. MODEL varchar(256) Meter type model. U varchar(256) Nominal voltage. I varchar(256) Nominal current. CONST varchar(256) Meter constant. FREQ varchar(256) Frequency. IMP varchar(256) Impulse output.

Table METER_TYPE_REG This table contains list of meter registers addresses and names.

Column name Data type Purpose ID integer Unique register identifier: 0 – Internal failure code 11 – Energy total 1 – Serial number 12 – Energy tar. 1 2 – Address 13 – Energy tar. 2 3 – Identification number 1 14 – Energy tar. 3 4 – Identification number 2 15 – Energy tar. 4 5 – Identification number 3 16 – Energy supplied total 6 – Identification number 4 17 – Energy supplied tar. 1 7 – Identification number 5 18 – Energy supplied tar. 2 8 – Identification number 6 19 – Energy supplied tar. 3 9 – Identification number 7 20 – Energy supplied tar. 4 10 – Identification number 8

21 – Energy phase L1 32 – Voltage 22 – Energy phase L2 33 – Current 23 – Energy phase L3 34 – Power factor 24 – Energy phase L1 supplied 35 – Maximal voltage 25 – Energy phase L2 supplied 36 – Maximal current 26 – Energy phase L3 supplied 37 – Meter type 27 – Maximal power total 28 – Maximal power tar. 1 29 – Maximal power tar. 2 30 – Maximal power tar. 3 31 – Maximal power tar. 4

38 – Energy register 01 43 – Energy register 06 39 – Energy register 02 44 – Energy register 07 40 – Energy register 03 45 – Energy register 08 41 – Energy register 04 46 – Energy register 09 42 – Energy register 05 47 – Energy register 10

164 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Column name Data type Purpose 48 – Active power 52 – Reactive power 49 – Active power L1 53 – Reactive power L1 50 – Active power L2 54 – Reactive power L2 51 – Active power L3 55 – Reactive power L3

56 – Apparent power 57 – Apparent power L1 58 – Apparent power L2 59 – Apparent power L3

60 – Voltage L1 63 – Current L1 61 – Voltage L2 64 – Current L2 62 – Voltage L3 65 – Current L3

66 – Active import 76 – Voltage phase L1 67 – Active export 77 – Voltage phase L2 68 – Reactive import 78 – Voltage phase L3 69 – Reactive export 79 – Current phase L1 70 – Apparent import 80 – Current phase L2 71 – Apparent export 81 – Current phase L3 72 – Q1 82 – Frequency 73 – Q2 74 – Q3 75 – Q4

83 – Voltage distortion factor L1 84 – Voltage distortion factor L2 85 – Voltage distortion factor L3 86 – Current distortion factor L1 87 – Current distortion factor L2 88 – Current distortion factor L3 ORD integer register order (1..N), can be changed by user in window “Electricity meter register association” ADR varchar(256) register address for example “1.8.0” NAME varchar(256) register name for example “Current L1”

Table PARAMS This table contains selected configuration parameters of program.

Column name Data type Purpose ID integer primary key PRECISION integer Result precision as number of decimal places. Can be configured in Configuration → Parameters → OPS. EVAL_ALGO integer evaluation algorithm, currently not used ELMA_DB_PATH varchar(2048) path to ELMA database

www.appliedp.com ELMASW-UG160-EN 165

ELMA - Control System User‘s Guide

Table PROTOCOL This table contains protocol header fields (protocol name, name 1, name 2 …). Filled after closing “Protocol header” window. Most of the fields are optional, it’s up to user which fields he fills and which not.

Column name Data type Purpose ID integer protocol number NAME varchar(256) full protocol name for example “ELMA 3-20160506-2000” which denotes protocol from ELMA station nr. 3 created on sixth May 2016 with protocol number 2000 PERSON1 varchar(256) name of primary person responsible for this protocol PERSON2 varchar(256) name of secondary person responsible for this protocol DATESTORE timestamp timestamp of record creation DATE varchar(256) date field DATESEC varchar(256) secondary date field TEMPERATURE varchar(256) temperature field REM varchar(256) remark field HUMIDITY varchar(256) humidity field PRESSURE varchar(256) pressure field USERTEXT1 varchar(256) user text 1 USERTEXT2 varchar(256) user text 2 USERTEXT3 varchar(256) user text 3 MEAS_BEGIN timestamp when the measurement was started MEAS_END timestamp when the measurement was finished USER varchar(256) name of logged user

Table REG This table contains meter readout nicely parsed into registers for easier analysis and export.

Column name Data type Purpose TEST_ID integer unique test identifier (part of primary key and also foreign key to table METER_DATA_EXCHANGE) POS integer position number (1..N) (part of primary key and also foreign key to table METER_DATA_EXCHANGE) REG_ORD integer register type (foreign key to table METER_TYPE_REG) VAL varchar(256) value of register

Table RS This table contains properties of Reference Standard from Stations and devices database.

Column name Data type Purpose TYPE varchar(256) Type SNUM varchar(256) Serial number ACCUR varchar(256) Accuracy CALDATE varchar(256) Certificate date. CALUNTIL varchar(256) Calibration validity date.

166 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Table SG This table contains properties of Signal Generator from Stations and devices database.

Column name Data type Purpose TYPE varchar(256) Type SNUM varchar(256) Serial number ACCUR varchar(256) Accuracy CALDATE varchar(256) Certificate date. CALUNTIL varchar(256) Calibration validity date.

Table STATION This table contains station properties from Station and devices database.

Column name Data type Purpose NAME varchar(256) station name CODE varchar(256) station code NOTE varchar(256) station note SNUM varchar(256) station serial number TYPE varchar(256) station type ACCUR varchar(256) station accuracy class ZMAX double Maximum specified error of the utilized standard meter in the given load point (in percentage). Defined in Configuration -> Parameters -> Service page. Defined in service parameters. More info in chapter 6.5.2 on page 117. KR double Expansion coefficient for calculating expanded uncertainty of measurement. Defined in evaluation parameters. More info in chapter 6.5.4 on page 118. CHI double χ is a constant which specifies the distribution of probability variances. For uniform probability variance distributions the value is: χ = 1,73. Defined in service parameters. CALDATE varchar(256) Certificate date. CALUNTIL varchar(256) Calibration validity date. BMC varchar(256) Best Measurement Capability (BMC) is defined in EA – 4/02, Expression of Uncertainty of Measurement in Calibration, as the smallest uncertainty of measurement that a laboratory can achieve within its scope of accreditation, when performing more or less routine calibrations of nearly ideal measurement standards intended to define, realize, conserve or reproduce a unit of that quantity or one or more of its values, or when performing more or less routine calibrations of nearly ideal measuring instruments designed for the measurement of that quantity. Defined in service parameters.

www.appliedp.com ELMASW-UG160-EN 167

ELMA - Control System User‘s Guide

Table TEST This table contains definition of all tests in current measurement with their properties (name, code, type …).

Column name Data type Purpose ID integer unique test identifier (primary key) NAME varchar(256) test name CODE varchar(256) test code TTYPE integer test type: 1 – automatic, 2 – manual, 3 – EM serial number, 4 – EM end state of register, 5 – dial, 6 – maximum demand, 7 – special, 8 – EM type, 9 – EM user text, 10 – Data exchange, 11 – attest numbers input, 12 – EM Constant for LED / Disc, 13 – EM Constant for S0, 14 – EM Ratio, 15 – Stop, 16 – Disc positioning, 17 – EM Tolerance DIALTYPE integer dial (dosage) test subtype: 0 – undefined 1 - only energy dose 2 - dose with power error measurement 3 - dose with pulse error measurement 4 - dose with pulse error and dial error calculation 5 - dose with dial error calculated from pulses NSAMPLES integer automatic test: number of samples DOSE double dial test: dose in kWh / kvarh, maximum demand test: duration of test in minutes DURATION double dial test: dose in kWh / kvarh, maximum demand test: duration of test in minutes MEASINPUT integer measurement input: 1 – LED / LED2, 2 – DISC / DISC2, 3 – SO INTPERIOD integer automatic test: minimum integration time in seconds ENERGY integer energy type: 1 – active, 2 – reactive, 3 – apparent LIMIT1 double tolerance in % for positive error18 LIMIT2 double transient tolerance in % for positive error (<= LIMIT1, optional) LIMIT3 double tolerance in % negative error LIMIT4 double transient tolerance in % for negative error (>= LIMIT3, optional) DATESTORE timestamp timestamp of record creation ORD integer order of test in measurement (1 .. N) CONST double customized (per test) meter constant in imp/Ws; 0 or NULL value if value from meter type definition is used AVGERR double average error on this test on all positions in % STDEV double standard deviation of average error in % CNTPASS integer number of passed meters on this particular test CNTFAIL integer number of failed meters on this particular test

12.5 Advantages • Standard access to serial ports. • Easy application (software) debugging • Simultaneous execution of data exchange with all meters • Whole data exchange process is under control of user (software developer) • Easy to install and implement into existing ELMA systems

18 Tolerances can be defined in multiple places in program. Priority of them is as follows (from highest to lowest): customized (per test) meter tolerance defined in measurement database, customized (per position) meter tolerance defined by “EM Tolerance” test, database of tolerances, database of electricity meters (see class & class reactive fields)

168 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

13. DLMS

13.1 Main Features From version 16.00 ELMA SW supports readout and parameterization of DLMS meters. This was possible also in previous versions using parallel readout via EDEX database (described in previous chapter). For this purpose user has to provide external program written specifically for particular type of meter. To unify communication (readout / parameterization) with various types of DLMS meters from various manufacturers Applied Precision created universal external program for DLMS meters. Program was tested with meters from following six manufacturers: Landis&Gyr, ADD Grup, Iskra, Mikroelektronika, Meter&Control a Sanxing. It is possible that it will function also with other types of DLMS meters if properly configured. However, this cannot be guaranteed because of differences in implementation of DLMS protocols between various manufacturers. Communication program is named dlms.exe and commonly it is stored in C:\ELMA\EDEX directory. ELMA software was also enhanced to support configuration of parameters related to DLMS protocol.

13.2 Description of changes in ELMA SW related to testing of DLMS meters 13.2.1 Database of meters New settings can be accessed from „Data Exchange“ page of electricity meter types database. Electricity meter register association

Example of register association dialog in next screenshot:

www.appliedp.com ELMASW-UG160-EN 169

ELMA - Control System User‘s Guide

DLMS protocol is more versatile than IEC but at the cost of higher complexity. User, for testing of DLMS meters, needs to know more parameters that are required to be entered into ELMA software or communication utility dlms.exe. It is not possible* to do universal readout, where all registers were read from meter. Another specific issue with DLMS meters is that register set can be different between various meter manufacturers. For practical purposes, it is good to read only user specified subset of registers. For particular data exchange test, it is possible to reduce this set even further and read only three – four required registers.

The meaning of columns is as follows:

Object address – Unique identification number of meter register. The syntax uses 6 fields. IEC address is a subset of DLMS address. Special attention is needed while editing this property. Incorrect value can result into reading different register from meter.

Type of register – Type is used to reference particular register in test properties. The value of this field can be changed by dragging it from list in right part of window.

Multiplication constant – optional real number to scale numeric value read from meter. Typically this is used for converting unit for example from Wh to kWh.

Object type – type of DLMS register object type. It is one of predefined values Data, Register, Extended Register, Clock. Special attention is needed while configuring this property. Incorrect value can result into communication error. User can obtain required configuration data from meter manufacturer or for commonly used registers to use auto detection (see below).

Readout name – optional string under which the value of particular register will be identified in test results. Empty string means object address will be used.

List on the right part contains currently supported meter register types. Filter is available for this list using edit box above. The list supports drag-and-drop. Under the table, there are buttons with following functions: - Change order of registers supported by the meter type

Delete – delete definition of selected register type

Delete all – delete definitions of all register types

Fill default addresses – fill default object addresses for all register types

Fill default registers – removes current definitions of register types and adds all default register types that are needed to verify basic functionality of meter (for example 1.6.x, 1.8.x, 2.6.x, 2.8.x, 3.6.x, 3.8.x etc.)

*Note: It is possible to read all, but the register set is so huge that it would take a few minutes to read all of them.

170 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Communication settings This window was named „Port settings“ in previous versions of ELMA software. Some of the parameters are related to older IEC 62056-21 protocol. This is because some DLMS meters require to begin communication using IEC protocol. After the communication channel is initialized, communication proceeds using DLMS protocol. Some of these parameters can be later applied also to IEC communication utilities readout_flag and write_flag. Currently they are configured using text files readout_flag.ini and write_flag.ini.

Baudrate, Data bits, Parity, Stop bits – basic communication parameters Protocol – IEC (default) or DLMS Communication timeout (ms) – maximum time to wait for answer from meter. If the meter does not respond after this time, communication fails. During initialization of communication if IEC protocol is used; another timeout is used, defined later in IEC settings section. Max.retry count – Maximum number of communication attempts. If there is a communication problem, dlms.exe tries to communicate with meter again. Reset power after communication error – if communication error happens and this parameter is checked, dlms.exe waits to finish communication with all enabled positions. After that, it sends signal to ELMA software to reset meter power. The power is not reset after last communication attempt fail if we know that resulting test status will be bad. The goal is to resolve rare communication errors by reinitializing meter firmware.

www.appliedp.com ELMASW-UG160-EN 171

ELMA - Control System User‘s Guide

Power off duration (ms) – duration of power outage when communication error happens. This parameter applies only if checkbox „Reset power after communication error“ is checked. During this time, voltage on input terminals of meters will be zero. Length of this period should be adjusted for particular type of meter.

Initialization time (ms) – Time to wait after power outage so the meter has time to initialize. This parameter applies only in case when communication error happens and checkbox „Reset power after communication error“ is checked. This time is counted after the voltage on input terminal of meter is turned on and stabilized (which typically takes 2 – 3 seconds). Length of this period should be adjusted for particular meter type.

Section IEC settings contains settings for IEC part of DLMS protocol. IEC protocol is used only on the beginning of communication (first few packets). After that, communication switches to DLMS protocol. Some meters (e.g. Landis&Gyr) don’t use IEC protocol at all.

Ident packet timeout (ms) – maximum time to wait for first packet from meter

Accept high baudrate (read) – True if communication should proceed on higher baudrate than 300 baud for read operation. Value of this parameter can be changed for particular position on Test Devices tab on main form.

Accept high baudrate (write) – True if communication should proceed on higher baudrate than 300 baud for write operation. Value of this parameter can be changed for particular position on Test Devices tab on main form.

Delay before high speed sent – time to wait after receiving identification packet and before sending request to switch to higher baudrate.

Delay after high speed sent – time to wait after switching to higher baudrate and before continue with readout or parameterization

Packet begins with STX and finishes with ETX character – Not implemented yet. Later it may be used by utilities readout_flag.exe and write_flag.exe.

Send logout (B0) sequence – Whether to send sequence SOH B0 ETX BCC after communication. Not implemented yet. Later it may be used by utilities readout_flag.exe, write_flag.exe or dlms.exe.

172 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Electricity Meter DLMS settings

This window contains following four tabs named Security, Communication settings, Readout and Parameterization. Security tab

This tab contains list of DLMS profiles for particular meter type. These are the parameters needed to successfully login to meter. Meter manufacturer can provide them. Profile name – identification string for profile. It is used to refer a profile on other tabs. Any unique string can be used, it is not stored in meter. Authentication type – drop-down menu with three options: None, Low and High. Default option is Low. High option includes encryption of communication and currently it is not supported. Client address – address under which PC software is identified to the meter. Must be paired with configuration stored internally in meter. Client address specifies the access privileges to particular registers. Meter firmware can implement more communication interfaces with different client address. Each communication interface can have different privileges. E.g. one communication interface allows only data readout, other communication interface allows changing some data stored in meter. The communication interface reserved for meter manufacturer has full right access, where also the possibility of firmware update is allowed. Physical server address – physical address of communication unit in meter. Logical server address – logical address of communication unit in meter. Server address size – size of server address in bytes. Password – password.

Communication settings tab

This tab contains settings specific to particular manufacturer. Settings on this tab can be shared between various meter types (except the value Meter type selected in drop down menu). Meter type (drop down menu) – select between various predefined profiles. Parameters of selected profile are displayed below in group box Meter type properties. Meter type (edit box) – name of profile. This can be any unique string used for identification purpose. Manufacturer – meter manufacturer. This can be any string used for description purpose.

www.appliedp.com ELMASW-UG160-EN 173

ELMA - Control System User‘s Guide

Start protocol – Protocol used for initiating communication (IEC or DLMS). This setting can be same for various meter types from the same manufacturer (obtained from meter manufacturer). Changing this parameter here will change it for all meter types that refer to this profile.

Readout tab

Contains settings needed for meter readout.

External data readout program – path to external program used for meter readout. Default value is C:\ELMA\DLMS\dlms.exe. This path can include command line parameters.

Profile – name of profile from Security tab, which will be applied during meter readout.

Full command line parameters – read-only text box containing full path to external program with all command line parameters. User can edit some of them on this tab and some of them will be added automatically by ELMA software (for example path to EDEX database).

Parameterization tab

It contains definitions of parameterization commands. Table on the left contains list of all supported parameterization commands. Used parameterization commands are grouped in the top part and are distinguished by red arrows next to them. They can be referenced in properties of data exchange test. For quick access of required command filter edit box is available above the list.

Right part contains definition of selected parameterization command: Parameterization program file – path to parameterization program. Default value is C:\ELMA\DLMS\dlms.exe. Path to external program can include command line parameters. Profile – name of profile from Security tab, which will be applied during meter parameterization Command – optional hexadecimal command that will be sent to meter

174 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

Full command line parameters – read-only text box containing full path to external program with all command line parameters. User can edit some of them on this tab and some of them will be added automatically by ELMA software (for example path to EDEX database). 13.2.2 Measurements database Communication with DLMS meters can be done using data exchange test. Data exchange test subtype can be configured in one of two ways: - Direct Data Readout - External Command Line Program Parameterization

Direct Data Readout Test properties window for data exchange test was changed as follows:

User can assign more than one register type to particular test (button Edit in group box Register). Editor of register types looks following:

www.appliedp.com ELMASW-UG160-EN 175

ELMA - Control System User‘s Guide

In the left part there is a list of register types assigned to test being edited. On the right part there is a list of all supported register types. If you leave the list empty, ELMA will interpret this choice as if all registers were chosen. If you want to narrow the list of registers whose values will be read, you can drag them from the right list. This list will be stored to EDEX database so the DLMS utility dlms.exe can use it. Advantage is faster readout, because only values that will be needed for particular data exchange test or batch test block, will be read. After clicking on OK new values will be assigned to test and displayed in test properties window in shortened form (because the list can be large). External Command Line Program Parameterization Test properties window for data exchange test looks following:

176 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

List of parameterization commands is on the right part of window. Above the list of parameterization commands, there is an edit box, which can be used to type filter condition. According to filter condition list of parameterization commands will be narrowed to include only required items. This can be used to quickly locate required command. Another option how to narrow the list of parameterization commands, is to use checkbox Show only commands defined in electricity meter database. List box in right bottom part of window contains list of parameterization commands that will be applied for this particular test. Up and down arrow buttons change the order of parameterization command. One special type of parameterization command is Set Time & Date. If user does not specify command in meter properties (in hexadecimal format - see chapter Parameterization tab on page 174), dlms.exe will build required command automatically according to settings in test properties window:

User can set either current date & time or specify another (fixed) value. If checkbox Set Summer is checked it means that meter will interpret time value as summer time. One exception is if option Actual values from PC is chosen and current time according to what operating system Windows reports is not summer time than set value will be interpreted as normal a.k.a. winter time. This happens if user runs the test for example on first of December. This is because a user can run the same test regardless of the current time of year.

13.3 External program for reading / writing DLMS meters This program is named dlms.exe and commonly should be stored in directory C:\ELMA\DLMS.

www.appliedp.com ELMASW-UG160-EN 177

ELMA - Control System User‘s Guide

It contains all positions, one on each row, along with their status. Program displays properties as communication port, number of bytes written and read and communication retry count. If no communication error happens, retry count will remain zero. In case of communication error, its description will be displayed in last column (and also in test result for this position in ELMA software). If more than one retry count is set in meter properties and communication error happens, after all other enabled positions finish communication, dlms.exe will send signal to ELMA software to reset power:

178 ELMASW-UG160-EN www.appliedp.com

ELMA - Control System User‘s Guide

14. Data Export

CSV Export file is generated each time when protocol is generated or measured data are stored to archive database. Data are exported in form of CSV file. Delimiter is ';'. It is possible to define the folder for storing exported data, via program parameters: Configuration - Parameters - Page: Files Locations - Item: CSV Export File Path. When no path is entered no file will be generated. Export file name has following format:

ProtocolNumber.csv where: ProtocolNumber - is generated protocol number

Following data for each meter are exported:

SNUM - serial number of tested meter; DATE - date of storing into archive; STATUS - status of meter testing: 1-pass, 0-fail; METER_TYPE - name of meter type; STATION - meter testing equipment identification number; PROTOCOL - protocol name; NAME1 - name of responsible person (from protocol header); NAME2 - name of responsible person (from protocol header); POS - position on testing equipment; NOTE - remark for protocol (from protocol header); TEST_NAME - name of the test; TEST_TYPE - test type: 1 - meter error measurement 2 - no load or starting current test 3 - input of meter serial number 4 - input of meter register final state 5 - register test (dial test) 6 - maximum demand test 7 - special test 8 - input of meter type 9 - input of user text 10 - data exchange test (data readout or parametrization) 11 - input of attest number 12 - input of meter constant for LED or Disc 13 - input of meter constant for SO (impulse output) 14 - input of meter constant ratio 15 - stop test 16 - disc positioning test TEST_ORDER - order of the test within the measurement; TEST_STATUS - test status: 1-pass, 0-fail, 2-not completed; TEST_TARIFF - test tariff (rate) (1-4) TEST_RESULT1 - test result - meter error; TEST_RESULT2 - test result - only for register test - initial register state; TEST_RESULT3 - test result - only for register test - final register state; TEST_RESULT4 - only for maximum demand test; TEST_UNCERT - expanded uncertainty of measurement; TEST_TOLER - test limit (Toler - high limit);

www.appliedp.com ELMASW-UG160-EN 179

ELMA - Control System User‘s Guide

TEST_TOLER2 - test limit (Toler2 - transition band high limit) TEST_TOLER3 - test limit (-Toler2 - transition band low limit) TEST_TOLER4 - test limit (-Toler - low limit) U1;U2;U3 - voltages applied to phases R, S, T; I1;I2;I3 - current applied to phases R, S, T; PHU1;PHU2;PHU3 - voltage angles; PHI1;PHI2;PHI3 - current angles; PF1;PF2;PF3 - power factors for phases R, S, T; TEST_FREQ - signal frequency TEST_ENERGY - energy type: - 1 (active) - 2 (reactive) - 3 (apparent) METER_UNOM - nominal voltage of meter; METER_INOM - nominal current of meter; METER_IMAX - meter maximal current; METER_CLASS - meter class METER_CLASS_REACT - meter class for reactive energy METER_CONST - meter constant [imp/kWh] METER_CONST_IMP - meter constant for meter impulse output [imp/kWh] METER_FREQ - meter frequency METER_CONSTRUCTION - meter construction: - 1 (inductive (electromechanical)) - 2 (static (electronic)) METER_CIRCUIT - meter circuit - 1 (1P2W) - 2 (1P3W) - 3 (3P4W) - 4 (3P3W) - 5 (2P2W) METER_CONNECTION - meter connection - 1 (direct) - 2 (indirect (CT/VT)) METER_ENERGY - meter energy measurement type - 1 (active) - 2 (reactive) - 3 (multi quadrant)

180 ELMASW-UG160-EN www.appliedp.com