...
The protocol supports communication with ELCOR-2, microELCOR-2, ELCORLite, miniELCOR,and ELCORplus devices (made by the ELGAS company ) that recalculate a gas quantity.
When communication is established, the current device configuration is read. From it, for each configured object (identified by the "Name" field), its address ("ID" field) necessary for the configuration of the I/O tag and the object type ("Object type" field) can be determined. Example of a reading:
--> : 2. ( 263)RECORD_TYPE_30
Length : 75
Object type : 30
Number : 0
ID : 1
Adr_inCurrent : 6
Adr_inArchiv : 10
BitControl : 155-DATA,DAY,INVOICE,METROL,
Name : Pressure p1
Unit : bar
Digit : 8.697641897E-05
Offset : 0
Low_Limit : 0.80000001192093
High_Limit : 5.1999998092651
Serial Nr : 1986200392
ErrBit(T_ERR_CURRENT) offset=1076
ErrBit(T_ERR_BIN_ARC) offset=94
ErrBit(T_ERR_DAT_ARC) offset=0
AdrRec inCur : 10
AdrRec inMonth: 0
Nr of Pattern : 0
Tithe : v
The following object types are currently supported:
Object type | Description |
---|
30 | Analog value (unsigned short) |
31 | Binary (bit) |
32 | Counter (unsigned long) |
33 | Counter - normalized (double float) |
34 | Flow (float) |
35 | Flow - normalized (float) |
36 | Conversion factor (float) |
45 | Counter - default (unsigned long) |
46 | Counter - normalized default (double float) |
47 | Compressibility (float) |
49 | Counter - correctional (unsigned long) |
53 | Counter (double float) |
54 | Counter - default (double float) |
61 | Device error (bit) |
62 | Sum of alarms (bit) |
64 | Code of input (bit) |
65 | Timer (unsigned long) |
70 | Setpoint (bit ?) |
74 | Compressibility Z (float) |
75 | Compressibility Zb (float) |
80 | Analog statistical quantity (unsigned short) |
81 | Counter - statistical (unsigned long) |
82 | Counter - recalculated statistical (unsigned long) |
83 | Statistical quantity of flow/compressibility/recalc.number (float) |
Kotva |
---|
| komunikacna_linka |
---|
| komunikacna_linka |
---|
|
Communication line configuration
...
Full name | Meaning | Unit | Default value |
---|
| Selection of device type. | ELCOR-2 or microELCOR-2 | ELCOR-2 |
| The delay between request retries in case of a communication failure. |
| 3 |
| Delay after sending the request before reading the response. | ms | 100 ms |
| Delay The delay between response readings until it is completed. | ms | 100 ms |
| Retry count of response reading until it is completed. |
| 30 |
| Period of reading static - configuration data (microELCOR-2 only). | min | 60 min |
Hourly Archive Periodic Reading | A period for the reading of hourly archives (0-60 min). Value 0 disables the reading. | min | 0 min |
| Length of 'wake-up' data sequence, which is sent before the request after a longer communication pause. | 0 .. 50 bytes | 25 bytes |
| Insert 'wake-up' data sequence before each request. | YES/NO | NO |
| Form 'wake-up' data sequence from the specified characters. | 0 .. 255 | 255 |
| Group source address (address of the D2000 KOM process). | 0 .. 65535 | 0 |
| Source address (address of the D2000 KOM process). | 0 .. 255 | 0 |
Full Debug | A high level of communication tracking, the received values of I/O tags and other debug information is shown. | YES/NO | NO |
...
Table 2 contains the list of the main parameters of the device.
Tables 3 to 8 contains the list of variable configuration and informative data according to the parameter type. DESC(ind) parameter represents the common data of all parameters. It describes the quantity. The current value of quantity can be acquired by the configuration of the I/O tag with numerical address - index ind (number from 1 and higher). To find out the technical units - configure text of I/O tag with the address UNIT(ind).
Table 2 - Device parameters - Main device parameters
...