Pagina di 35 FIO 2 - Fiorentini · Data di emissione modulo base 22/12/98 Modbus Protocol FIO2...
Transcript of Pagina di 35 FIO 2 - Fiorentini · Data di emissione modulo base 22/12/98 Modbus Protocol FIO2...
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 1 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
FIO 2
Modbus Protocol
Edition:
0
Revision:
40
Revision Date:
15/02/2017
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 2 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
Summary
Summary ................................................................................................................................................................ 2
1. Revisions and references .............................................................................................................................. 3
1.1 Revisions 3
1.2 References 4
1.3 Definitions 4
2. MODBUS Communication Protocol ............................................................................................................. 5
2.1 Data structure 5
2.2 Modbus exception codes 6
3. Modbus Slave 01: Master Table Database ................................................................................................... 7
4. Modbus slave 02: Acquisition Database.................................................................................................... 11
5. Modbus Slave 03, 04, 05: Logger Database .............................................................................................. 15
6. Modbus Slave 06: Statistics Database ....................................................................................................... 19
7. Modbus Slave 07: Alarm Database ............................................................................................................. 20
8. Modbus Slave 08: Event Database ............................................................................................................. 28
9. Modbus Slave 09: FIO system Database ................................................................................................... 29
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 3 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
1. Revisions and references
1.1 Revisions
Edition: Date: Description: Issued:
0.0 10.12.2012 First release C.Serrelli
0.16 16.12.2013 Added 2 more digital input; revisited register sizes C.Serrelli
0.17 21.01.2014 Added SMS password; updated diagnostic table; added COMM_EVENTS_TAB
M.Palestro
Modified Log and alarm query procedure C.Serrelli
Added configuration for flow splitting C.Serrelli
0.18 12/03/2014 Corrected REC_ALL_DIG size, from 4 to 6 duration field C.Serrelli
0.19 24/03/2014 Corrected L1/2 Volumes type from float to Uint in slave FIO C.Serrelli
0.20 10/04/2014 Added preset Vb1/2 commands C.Serrelli
0.21 03/07/2014 Added GPRS IP address M.Palestro
0.22 11/07/2014 Added 485 parameter setting commands (Slave Alarm) C.Serrelli
Added alarm id in REC_ALARM record C.Serrelli
QlimSelector (fiotable) moved from Flow Lim. Parameter group to regulation group (also Lim. Set cmd register position changed)
C.Serrelli
Added slave alarm / registers 814-824: UDP packet destination M.Palestro
0.23 24/07/2014 Corrected default values M.Palestro
Modified slave alarm / registers 241-328 – destination numbers M.Palestro
Removed slave alarm / registers 814-825 – udp packet destination M.Palestro
Added alarm types for ExtPower and RechargeFailure and ALARM_ENABLE table updated accordingly
C.Serrelli
0.24 29/07/2014 Added slave alarm / register 814 M.Palestro
0.25 10/09/2014 Corrected slave FIO – registers 663 / 863 M.Palestro
0.26 18/09/2014 Modified notation for slave master table / register 225 – Actual Date: Week day
M.Palestro
0.27 30/09/2014 Added device statistics data M.Palestro
0.28 07/10/2014 Added more device statistics data M.Palestro
0.29 14/11/2014 Updated slave 9 – FIO system definition M.Palestro / C.Serrelli
0.30 25/02/2015 Added value 2 to alarm / 232 (call strategy) M.Palestro
0.31 31/03/2015 Added events for modem connection limitations M.Palestro
0.32 ¾/2015 Editorial review M.Ferrari
0.33 28/05/2015 Added back pressure min delta P parameter in the FIO database C.Serrelli
0.34 15/07/2015 Added pulses/m3 register for counter 1 HF configuration in the Acquisition database
C.Serrelli
0.35 31/08/2015 Added Up/Down valve command in the FioTable C.Serrelli
0.36 21/12/2015 Slave type of statistic logger corrected (from7 to 3)
Added Number Of Lines in master table (reg. 1.292)
C.Serrelli
0.37 05/02/2016 Added Tambient register in Acquisition database (slave 2 – reg 278) C.Serrelli
0.38 18/07/2016 Added Digital Input Active Level register in Acquisition database (slave 2 – reg 280)
C.Serrelli
0.39 21/09/2016 Added udp period in alarm condition (slave 7 reg. 815) C.Serrelli
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 4 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
Edition: Date: Description: Issued:
0.40 15/2/2017 Added R/W parameters for electrical motor applications (registers 9.299 (float) and 9.301 (float)):
Trefcom (reference temperature for correction of valve command duration, default 293,15
Kcorrcom (correction factor) default 0 = function disabled
Usage:
if Tamb < Trefcom then
Tinc= DurInc+(DurInc*(Kcorrcom*(Trefcom-Tamb)))
Tdec= DurDec+(DurDec*(Kcorrcom*(Kcorrcom-Tamb)))
C.Serrelli
1.2 References
REF. # Document REV Date Author
1 Modicon – Modbus Protocol Reference Guide (PI-MBUS-300) Rev. J June 1999 Modicon
1.3 Definitions
Uint = unsigned int,
Ulong = unsigned long,
Int = integer
Float = signed floating,
Char = character
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 5 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
2. MODBUS Communication Protocol
FIO2 series support Modbus protocol in both ASCII / RTU versions. The Modicon MODBUS specification is designed to transfer data in 1-bit (coil) or 16-bit (register) blocks. This protocol has not been designed to deal with data, such as floating point numbers, which require a minimum of 32-bit blocks. For this reason, every manufacturer of flow computer equipment which deals with this type of data must decide in which way the protocol should be extended. As a result, many different implementations exist for the transfer of 32-bit floating point data.
FIO2 series support the following commands:
Command 3 read multiple registers
Command 6 write single register
Command 16 write multiple registers
All data stored within FIO2 is represented by one or more 16-bit registers. There may be registers which contain a collection of bits. In this case, a 16-bit register is still used rather than provide individual bit (coil) access.
2.1 Data structure FIO2 respond to more than one Modbus address through a single communication port. Each slave has a consecutive Modbus address beyond the base address of the device.
The base address must be set directly on the device, and is set as 0 by default. If the device address is left unchanged, the “Master Table” database can be managed querying slave 1, the “Acquisition” database at slave 2, and so on.
Each database is identified by a Type attribute. If more than one database of that type is present, each one will be presented as a different slave (e.g. data logger 1 – 3).
Database Type MODBUS offset
master table 1 +1
acquisition 2 +2
data logger 1 3 +3
data logger 2 3 +4
data logger 3 3 +5
statistics logger 4 3 +6
alarm logger 4 +7
event logger 5 +8
flow computer 7 +9
Some slave like data loggers are organized in setup section and data section. In the Setup section are configured all the working luetooth ; the data section represents a window over the logged data (if present).
The data table starts at address 0 (0x00), while the setup section starts at address 200 (0xC8).
The format of the data in the Modbus database are the following:
DATA FORMAT BYTES
Uint 2
Int 2
Ulong 4
Float 4 (Ref. IEEE 754)
Char(n) n
Since Modicon did not define 32-bit transfers, the order of transmission for (16-bit) words of a 32-bit value is also not defined. FIO2 implementation uses the first 16 bit word as the most significant.
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 6 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
32 Bit register ordering
WORD 1 (16 Bit)
WORD 2 (16 Bit)
43 90 13 34
Translate to:
43 90 13 34
msb lsb
Converted value:
288,15
2.2 Modbus exception codes
Some code, not included in the standard Modbus protocol, are been used to highlight application related error:
0xFC : communication channel busy. This error is displayed when during a remote communication the device is read locally.
0xFD: access denied. This error is displayed when accessing the Modbus register without executing the login procedure.
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 7 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
3. Modbus Slave 01: Master Table Database
ATTRIB REGISTER DIMENSION TYPE DESCRIPTION VALUE
0 200 Data area not defined
R 200 1 Uint Slave Type 1
R 201 1 Uint Lenght of area defining the slave
R 202 1 Uint Device Type 16
R 203 1 Uint firmware version: H
R 204 1 Uint firmware version: L
R 205 1 Uint future firmware version: H 0
R 206 1 Uint future firmware version: L 0
R 207 1 Uint H – future firmware activation date: year 0
R 208 1 Uint H – future firmware activation date: month 0
R 209 1 Uint H – future firmware activation date: day 0
R 210 1 Uint L – future firmware activation date: year 0
R 211 1 Uint L – future firmware activation date: month 0
R 212 1 Uint L – future firmware activation date: day 0
R 213 6 char[12] Serial Number ????????????
R 219 1 Uint Actual Date: Year
R 220 1 Uint Actual Date: Month
R 221 1 Uint Actual Date: Day
R 222 1 Uint Actual Time: Hour
R 223 1 Uint Actual Time: Minute
R 224 1 Uint Actual Time: Second
R 225 1 Uint Actual Date: Week day 1 = Monday / 7 = Sunday
R 226 2 Uint Actual status diagnostic SEE [DIAG_TAB]
R 228 1 Uint Log Status
0 = Logging paused
1 = Logging in progress
R 229 1 Uint Logger start: Year
R 230 1 Uint Logger start: Month
R 231 1 Uint Logger start: Day
R 232 1 Uint Logger start: Hour
R 233 1 Uint Logger start: Minute
R 234 1 Uint Logger start: Second
R 235 1 Uint Last programming. : year
R 236 1 Uint Last programming. Month
R 237 1 Uint Last Programming. Day
R 238 1 Uint Last programming: progressive counter
R 239 1 Uint EVCD Battery utilization (hours)
R 240 1 Uint EVCD Battery left (hours)
R 241 1 Uint EVCD Battery type 0=primary battery
1=rechargeable battery
R 242 1 Uint spare
R 243 1 Uint spare
R 244 1 Uint Maintenance status 0=normal
1=maintenance
R 245 1 Uint Free memory dimension (number of pages)
RW 246 1 Uint MODBUS address 0
RW 247 1 Uint Menu language
0=english 1=italiano
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 8 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
RW 248 1 Uint Menu display time in seconds default = 300
RW 249 1 Uint Start/End of conventional day 0 = midnight
RW 250 1 Uint Set Date: Year >2000
RW 251 1 Uint Set Date: Month
RW 252 1 Uint Set Date: Day
RW 253 1 Uint Set Time: Hour
RW 254 1 Uint Set Time: Minute
RW 255 1 Uint Set Time: Second
RW 256 1 Uint
Command performed or response to the command
See [CMD_TAB]
RW 257 2 Uint Plant code Default 0
RW 259 1 Uint Day light saving: starting day 1..31 or 0=last sunday
RW 260 1 Uint Day light saving: starting month 1..12
RW 261 1 Uint Day light saving: ending day 1..31 or 0=last sunday
RW 262 1 Uint Day light saving: ending month 1..12
RW 263 1 Uint Day light saving: enable 0=disable, 1=enable
RW 264 1 Uint Maintenance Date: Year
RW 265 1 Uint Maintenance Date: Month
RW 266 1 Uint Maintenance Date: Day
RW 267 1 Uint Measurement unit standard (GUI only) 0=SI, 1=Imperial
RW 268 1 Uint Measurement unit for temperature see UM_TAB (0..3)
RW 269 1 Uint Measurement unit for upstream pressure see UM_TAB (16..23)
RW 270 1 Uint Measurement unit for downstream pressure see UM_TAB (16..23)
RW 271 1 Uint Measurement unit for atmospheric pressure see UM_TAB (16..23)
RW 272 1 Uint Measurement unit for flow see UM_TAB (48..51)
RW 273 1 Uint Measurement unit for volume see UM_TAB (64..67)
RW 274 1 Uint Measurement unit for pulse weight see UM_TAB (64..67)
RW 275 1 Uint Calculation period 1, 5, 10, 15, 30 secondi
W 276 4 char[8] orrespon PIN 123
W 280 4 char[8] modification access password 1
W 284 4 char[8] read access password 1
W 288 4 char[8] SMS password 1
RW 292 1 Uint Number Of Lines 1-10
Register 200 cantains the MasterTable slave type (=1)
Register 201 contains the length of tha slave (number of registers)
Register 202 contain the FIO2 device type (=16)
Registers 203 – 204 contains the current H/L firmware version
Registers 205 – 206 contains the H/L firmware version that is about to being installed (if present, else 0)
Registers 207 – 209 contains the date at which the new firmware will be installed (micro H)
Registers 210 – 212 contains the date at which the new firmware will be installed (micro L)
Registers 213 – 218 contains the serial number of the device (12 char.)
Registers 219 – 225 are used to read the current date/time
Register 226 shows the diagnostic device status. Every bit represent a diagnostic condition, as listed in the table DIAG_TAB
DIAG_TAB
Bit Number Description
0 Low battery
1 General alarm
2 Alarm pressure Pu1
3 Alarm pressure Pu2
4 Alarm temperature
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 9 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
5 RTC error (time difference > 10 minutes)
6 Alarm pressure Pd
7 Alarm pressure Ptank
8 Alarm spostamento 1
9 Alarm spostamento 2
10 Alarm velocità 1
11 Alarm velocità 2
12 ECU functions error
13 Irregular regulation (block/ timeout)
14 Back-pressure (ongoing wait)
15 Failure TPM
16 External power: ON when the external power status does not correspond with the battery type (ext.power present for primary battery, ext.power fail for rechargeable battery)
17 Battery recharge failure
18 Alarms logged
19 Communication error
20 Programmed maintenance date expired
21 – 31 unused
Register 228 shows the status of the logging system
Registers 229 – 234 report the starting date/time of logging
Registers 235-238 report the last programming date and the progressive programming counter
Register 239 reports the estimated utilization of EVCD battery (hours)
Register 240 reports the estimated residual time before EVCD battery complete discharge (hours)
Register 241 reports the type of battery connected to FIO2 device
Register 242 reports the estimated utilization of modem battery (hours)
Register 243 reports the estimated residual time before modem battery complete discharge (hours)
Register 244 shows if maintenance mode is active
Register 245 shows the number of free pages available for logging
Register 246 configures the Modbus address used by the device
Register 247 is used to configure the language used in the user interface (keyboard/lcd)
Register 248 configures the timeout for operations performed with keyboard/lcd
Register 249 configures the starting hour of conventional day
Registers 250 – 255 are used to configure the current date/time
Register 256 allows to send several command to FIO2 like, for example, login, date/time setting, passwords modification, and so on. Reading this register will show the result of the last executed command
The following table CMD_TABLE lists all the available commands.
CMD_TAB
Value Description
0 Last Command executed
1 Last Command unknown
2 Last Command not acknowledge
3 Start logging
4 Stop logging
5 Log Erase
6 Write date and time (first time as immediate, shift mode otherwise, max
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 10 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
difference 10 minutes)
7 Write date and time immediate
8 End of communication
9 Battery change
10 NP Battery change (1 battery)
11 NP Battery change (2 batteries)
12 login for modification
13 login for read only
14 change modification access password
15 change read access password
16 change orrespon pin
17 Enter maintenance status
18 Exit maintenance status
19 Reset diagnostics
20 change SMS password
Registers 259 – 263 configure the enabling and the period of application of daylight saving time; changes are taken in charge on writing 271 register (DST enable/disable)
Registers 264 – 266 configure the next programmed maintenance date
Register 267 configures the measurement unit standard used for lcd/keyoboard interface
Registers 268 – 274 configure the measurement units used for various kind of measures and calculated values. When a new standard is selected (register 267), all units are reset to those prevued by the selected standard itself. Then, each kind of unit can be overridden.
Register 275 configures the calculation period
Registers 276 – 279 are used to enter the PIN used for orrespon pairing.
Registers 280 – 283 are used to enter the modification access password used in conjunction with the command issued (login or password change). The password field is treated as a numerical value and therefore must contain only ascii digits.
Registers 284 – 287 are used to enter the read access password used in conjunction with the command issued (login or password change). The password field is treated as a numerical value and therefore must contain only ascii digits.
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 11 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
4. Modbus slave 02 : Acquisition Database
ATTRIB REGISTER DIMENSION TYPE DESCRIPTION VALUE
0 200 Data area not defined
R 200 1 Uint Slave Type 2
R 201 1 Uint Lenght of slave area
R 202 1 Uint Pressure Pd 1
R 203 1 Uint Pd sensor type 1=abs
2=gauge
R 204 2 Float Pd full range Bar
R 206 2 Float Pd current value Bar
R 208 1 Uint Pd alarm status 0=normal
1=error
R 209 1 Uint Pressure Pu1 2
R 210 1 Uint Pu1 sensor type 1=abs
2=gauge
R 211 2 Float Pu1 full range Bar
R 213 2 Float Pu1 current value Bar
R 215 1 Uint Pu1 alarm status 0=normal
1=error
R 216 1 Uint Pressure Pu2 3
R 217 1 Uint Pu2 sensor type 0=non presente
1=abs
2=gauge
R 218 2 Float Pu2 full range Bar
R 220 2 Float Pu2 current value Bar
R 222 1 Uint Pu2 alarm status 0=normal
1=error
R 223 1 Uint Pressure Ptank 4
R 224 1 Uint Ptank sensor type 0=non presente
1=abs
2=gauge
R 225 2 Float Ptank full range Bar
R 227 2 Float Ptank current value Bar
R 229 1 Uint Ptank alarm status 0=normal
1=error
R 230 1 Uint Patm 5
R 231 2 Float Patm current value Bar
R 233 1 Uint Gas temperature 6
R 234 2 Float Temperature zero scale offset (min T) K
R 236 2 Float Temperature full scale offset (max T) K
R 238 2 Float Temperature current value K
R 240 1 Uint Temperature alarm status 0=normal
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 12 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
1=error
R 241 1 Uint Apertura 1 7
R 242 1 Uint Tipo apertura 1 0=non presente
1=presente
R 243 2 Float Apertura 1 value %
R 245 1 Uint Apertura 2 8
R 246 1 Uint Tipo apertura 2 0=non presente
1=presente
R 247 2 Float Apertura 2 value %
R 249 1 Uint Input counter 1 9
RW 250 1 Uint Input type 1 0=BF, 1=HF
RW 251 2 Float Pulse weight 1 M3
RW 253 1 Uint Pulse type 1 0=Gross flow, 1=Net flow
RW 254 1 Uint Pressure selector 1 Pressure to be used for KTVO calculation (1=Pd, 2=Pu1, 3=Pu2)
R 255 1 Uint Input counter 2 10
R 256 1 Uint Input type 2 0=BF
RW 257 2 Float Pulse weight 2 M3
RW 259 1 Uint Pulse type 2 0=Gross flow, 1=Net flow
RW 260 1 Uint Pressure selector 2 Pressure to be used for KTVO calculation (1=Pd, 2=Pu1, 3=Pu2)
R 261 1 Uint Digital input 11
R 262 1 Uint Digital input value Bit0-bit5=digin status
R 263 1 Uint Digital output 12
RW 264 1 Uint DO mode 0=pulse repetition
1=remote command
2=diagnostics
RW 265 1 Uint DO prescaler (see DIG_PRESCALERS_TAB)
RW 266 1 Uint Volume identifier (see DIG_OUT_TAB)
RW 267 1 Uint Command state 0=open, 1=closed
RW 268 1 Uint Command length 0=not defined, max 65535 minutes
RW 269 1 Uint Command Period 0=not defined, max 65535 minutes
RW 270 1 Uint Diag mask 0-31 Bit mask of diagnostic for the command (0=none)
RW 271 1 Uint Output frequency 1 – 1000 Hz
RW 272 2 Float Calibration value
RW 274 1 Uint Sensor id 1..4, 6..8
RW 275 1 Uint Calibration command 1=start calib
2=set 0-scale/first point
3=set low-scale (displacement only)
4=set full-scale/second point
5=end calib & save
6=end calib & abandon
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 13 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
RW 276 2 Float Pulses per volume (pulses/m3) Number of pulses/m3 for counter 1 HF configuration
R 278 2 Float Tamb - Internal temperature K
RW 280 1 Uint Digital Input Alarm Active Level Bit0-bit5
0= normally open
1=normally closed
The Acquisition Slave allows the configuration of FIO analog and digital inputs and digital outputs and the reading of current values.
All Fio inputs and outputs are identified by a progressive Id from 1 to 12. Each type of I/O is described by a different set of information.
PRESSURE SENSORS
Register 202-208 – Pressure Pd: id=1, sensor type ABS or GAUGE, full range and current value (bar, absolute or relative depending on sensor type), Alarm status
Register 209-215 – Pressure Pu1: id=2, sensor type ABS or GAUGE, full range and current value (bar, absolute or relative depending on sensor type), Alarm status
Register 216-222 – Pressure Pu2: id=3, sensor type NOT-PRESENT, ABS or GAUGE, full range and current value (bar, absolute or relative depending on sensor type), Alarm status
Register 223-229 – Pressure Ptank: id=4, sensor type NOT-PRESENT, ABS or GAUGE, full range and current value (bar, absolute or relative depending on sensor type), Alarm status
Register 230-232 – Pressure Patm: id=5, current value (bar, absolute)
TEMPERATURE SENSOR
Register 233-240 – Gas temperature: id=6, zero-scale, full-scale and current value (Kelvin), Alarm status
DISPLACEMENT SENSORS
Register 241-244 – Displacement 1: id=7, Sensor type (NOT PRESENT, PRESENT), current value (%)
Register 245-248 – Displacement 2: id=8, Sensor type (NOT PRESENT, PRESENT), current value (%)
COUNTER INPUTS
Register 247-254 – Counter 1: id=9, Pulse weight, input type (BF/HF), Pulse Type (Gross/net flow), KTVO pressure selector
Register 255-260 – Counter 2: id=10, Pulse weight, input type (BF only), Pulse Type (Gross/net flow), KTVO pressure selector
DIGITAL INPUT
Register 261-262 – Digital input: id=11, current value (0000xxxx, bit 0..3)
DIGITAL OUTPUT
Register 263-270 – Digital output: id=12, repetition mode (pulse,remote, diagnostics), prescaler, repeated volume id, remote command status/length/duration, repeated diagnostics bit mask
SENSOR CALIBRATION
Registers 271-274 are used for sensor calibration, as follows:
- register 271-272: calibration value
- register 273: id of the sensor under calibration
- register 274: calibration command / command result
The calibration procedure is as follows:
- start calibration command for a sensor id
- apply a first external measure value
- set first calibration point value
- apply a second external measure value
- set second calibration point value
- end calibration save/abandon
Pressure and temperature calibration always needs two measure values, corresponding to the first and second calibration points. Displacement calibration needs a value only when the Set low scale command is used. Zero-scale and full-scale commands implicitly assumes 0% and 100% value respectively.
All commands of a calibration sequence must refer the same sensor id submitted on Start calibration command. A different sensor id in a
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 14 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
command causes a command failure and the calibration procedure is terminated.
Register 274 assumes the following result values after the command execution:
10 – command executed correctly
11 – command unknown
12 – command rejected for some reason (e.g.: different sensor id than that under calibration)
Register 276 – Counter 1: Number of Pulses / m3 for counter 1 in HF configuration
Register 278 – Environment temperature (Kelvin)
Register 280 – Digital input alarm active level
DIG_OUT_TAB
Channel number Signal
0 Channel not configured
1 Vm Line 1
2 Vb Line 1
3 Vm Line 2
4 Vb Line 2
5 Vm Station
6 Vb Station
DIG_PRESCALERS_TAB
Value Prescaler
0 0.001
1 0.01
2 0.1
3 1
4 10
5 100
6 1000
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 15 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
5. Modbus Slave 03, 04, 05: Logger Database
ATTRIB REGISTER DIMENSION TYPE DESCRIPTION VALUE
R 200 1 Uint Slave Type 3
R 201 1 Uint Lenght of area defining the slave
R 202 1 Uint Log table status 0 = Logger paused
1 = Logger actived
RW 203 1 Uint Cursor position Record selection (0=most recent)
R 204 1 Uint Counter stored records
RW 205 1 Uint Command performed or response to the command See [CMD_TAB]
(Start/Stop/Erase logging only)
RW 206 8 Char [16] Table name
RW 214 1 Uint Log rate
RW 215 1 Uint Logging type 1=Mean value
2=Statistical
RW 216 1 Uint Logging strategy 1=Circular
2=Stop when full
RW 217 1 Uint Memory dimension (number of records)
RW 218 1 Uint Parameter 1 0=non usato
altrimenti vedi VAR_TAB
(il record termina al primo parameter non usato)
RW 219 1 Uint Parameter 2
RW 220 1 Uint Parameter 3
RW 221 1 Uint Parameter 4
RW 222 1 Uint Parameter 5
RW 223 1 Uint Parameter 6
RW 224 1 Uint Parameter 7
RW 225 1 Uint Parameter 8
RW 226 1 Uint Parameter 9
RW 227 1 Uint Parameter 10
RW 228 1 Uint Parameter 11
RW 229 1 Uint Parameter 12
RW 230 1 Uint Parameter 13
RW 231 1 Uint Parameter 14
RW 232 1 Uint Parameter 15
RW 233 1 Uint Parameter 16
RW 234 1 Uint Parameter 17
RW 235 1 Uint Parameter 18
RW 236 1 Uint Parameter 19
RW 237 1 Uint Parameter 20
RW 238 1 Uint Parameter 21
RW 239 1 Uint Parameter 22
RW 240 1 Uint Parameter 23
RW 241 1 Uint Parameter 24
RW 242 1 Uint Parameter 25
RW 243 1 Uint Parameter 26
RW 244 1 Uint Parameter 27
RW 245 1 Uint Parameter 28
RW 246 1 Uint Parameter 29
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 16 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
RW 247 1 Uint Parameter 30
RW 248 1 Uint Parameter 31
RW 249 1 Uint Parameter 32
RW 250 1 Uint Parameter 33
RW 251 1 Uint Parameter 34
RW 252 1 Uint Parameter 35
RW 253 1 Uint Parameter 36
RW 254 1 Uint Parameter 37
RW 255 1 Uint Parameter 38
RW 256 1 Uint Parameter 39
RW 257 1 Uint Parameter 40
R 258 1 Uint Record size (registers)
R 1000 – 65000
1 LOGREC Data area
The Logger Slave is divided in two area: the data area (registers 1000 to 65000), where a sliding window of all the memory assigned to this slave can be used to download the logged data, and a configuration area (registers 200 to 257) where the user can define the log rate, the log type, the log strategy, the memory dimension and the parameters to log.
For each slave of this type a maximum of 40 different parameters can be inserted in the logger; when different log rate or log type are requested, a different logger slave should be used. When Statistical logging type is selected, a maximum of 24 different parameters are available.
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 17 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
Configuration Area
The register 202 gives information about the Logger slave status.
Register 203 is used as a cursor to slide the windows of the data area on the memory. It can be set beetwen 0 and the maximum dimension of the logger (register 217). To read the first record of a table, the value 0 should be written in the register 203, then the data area should be read. In this area you will find the selected record first, then the subsequent records till the maximum dimension of 90 registers.
The register 204 gives information about the number of records filled from the beginning of the Start Log command.
Register 205 is used to start or stop the logger (for the complete command list see table CMD_TAB).
In the registers 206 to 213 the user can write the log table name (not relevant for the Explorer).
Register 214 contains the log rate of the parameters of this slave. The log rate could be assigned beetwen 1 and 43200 seconds (12 hours). The value –1 defines a period of one day (24 hours), and the value –2 a period of one month. The log rate must be a multiple of 30 seconds, due to the minimum sample calculation interval.
Registers 215 defines the log type, “mean” or “statistical”. In the “mean” case, each sample in the log record consists of a single 2-registers value, which represents:
- for measure and flow (float) values, the mean of the 30 seconds samples in the period
- for volumes, the difference between the value at the end of the period and the value at the beginning of the period
- for totalizers, the value at the end of the period
In the “statistics” case, each record is composed by 4 2-registers values, representing the mean, the maximum, the minimum value and the standard deviation in the period, always sampling at 30 seconds intervals. The statistics log type is meaningful only for measure and flow values. Volumes and totalizers cannot be included in a statistical logger.
Registers 216 defines the log strategy:
- for “circular” orrespo, at the end of the maximum capacity newer records automatically override older records
- for “stop when full” strategy, at the end of the maximum capacity newer record are simply discarded
Register 217 contain the maximum number of records in the table. The whole logging interval then is (maximum number of records * log rate).
Registers 218 to 257 defines the structure of each record of the Logger. The value of these registers must be selected from the Identifiers listed in table VAR_TAB. The unused entries must be set to 0 and the record terminates at the first entry set to 0. Logger record structure is defined by the number and type of signal included and by the log type. In case of statistical logging type, the maximum number of entries is limited to 15, due to the maximum record size.
Register 258 reports the record size (number of registers for each record.
VAR_TAB
Identifier Variable Description Unit Format
1 Pu1 Upstream pressure line 1 bar gauge Float
2 Pu2 Upstream pressure line 2 bar gauge Float
3 Pd Downstream pressure bar gauge Float
4 T Gas temperature kelvin Float
5 Vm1t Gross volume totalizer – line 1 m3 Long
6 Vb1t Net volume totalizer – line 1 m3 Long
7 Vme1t Error gross volume totalizer – line 1 m3 Long
8 Vm2t Gross volume totalizer – line 2 m3 Long
9 Vb2t Net volume totalizer – line 2 m3 Long
10 Vme2t Error gross volume totalizer – line 2 m3 Long
11 Vmtot Station gross volume totalizer m3 Long
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 18 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
12 Vbtot Station net volume totalizer m3 Long
13 Vmetot Station error gross volume totalizer m3 Long
14 Qm1 Gross flow line 1 m3/h Float
15 Qm2 Gross flow line 2 m3/h Float
16 Qmtot Station Gross flow m3/h Float
17 Qb1 Net flow line 1 m3/h Float
18 Qb2 Net flow line 2 m3/h Float
19 Qtot Station Net flow m3/h Float
20 Vm1 Period Gross Volume – line 1 m3 Long
21 Vm2 Period Gross Volume – line 2 m3 Long
22 Vmtot Station Period Gross Volume m3 Long
23 Vb1 Period Net Volume – line 1 m3 Long
24 Vb2 Period Net Volume – line 2 m3 Long
25 Vbtot Station Period Net Volume m3 Long
26 Vme1 Period Error Gross Volume – line 1 m3 Long
27 Vme2 Period Error Gross Volume – line 2 m3 Long
28 Vmet Station Period Error Gross Volume m3 Long
29 Vf1 Gas velocity – line 1 m/s Float
30 Vf2 Gas velocity – line 2 m/s Float
31 Diagn Diagnostics (station + line1 + line 2) bit (32) Long
32 Ptank Tank pressure bar gauge Float
33 Displ 1 Displacement line 1 % Float
34 Displ 2 Displacement line 2 % Float
35 Patm Atmospheric pressure bar Float
36 Tenv Environment temperature kelvin Float
Data Area
The data area is a sliding window on the log database. The record selection is based on the value of the cursor position register (address 203). The area contains the sequence of logged records, starting from the selected one (newer) to the last (older) logged record, or to the end of the data area (to the upper multiple of the record size, wich fits in the data area dimension).
Each record is composed as in LOGREC table.The record size depends on the number of selected parameters and on the Logging Type (Mean or statistics).
When reading the area, the register address must be 0 or a multiple of the register size of the log record (plus the area base offset). Also the requested size must be a multiple of the log record size.
Type LOGREC
Dim Type Name Description
R 3 char[6] Date and time Date and time[aa/mm/gg – hh:mm:ss]
R 2 * N
or
8 * N
Ulong/
float
Value Sequence of N parameter Values (float or long depending on the parameter type: see VAR_TAB, 2 or 8 registers depending on the Logging type)
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 19 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
6. Modbus Slave 06: Statistics Database
The Statistics database slave has the same register structure than the logger database, but all configuration values are fixed in order to store a predefined set of variables, in statistical mode, for a cyclic 30 days interval of hour samples. Only the command register can be written to start and stop the recording, and the cursor position to select the record to read.
ATTRIB REGISTER DIMENSION TYPE DESCRIPTION VALUE
R 200 1 Uint Slave Type 3
R 201 1 Uint Lenght of area defining the slave
R 202 1 Uint Log table status 0 = Logger paused
1 = Logger actived
RW 203 1 Uint Cursor position
R 204 1 Uint Counter stored records
RW 205 1 Uint Command performed or response to the command See [CMD_TAB]
(Start/Stop logging only)
R 206 8 Char [16] Table name “STATIS”
R 214 1 Uint Log rate 3600
R 215 1 Uint Logging type 2=Statistical
R 216 1 Uint Logging strategy 1=Circular
R 217 1 Uint Memory dimension (number of records) 24 hours * 30 days
R 218 1 Uint Parameter 1 1=Pu1
R 219 1 Uint Parameter 2 2=Pu2
R 220 1 Uint Parameter 3 3=Pd
R 221 1 Uint Parameter 4 4=T
R 222 1 Uint Parameter 5 17=Qb1
R 223 1 Uint Parameter 6 18=Qb2
R 224 1 Uint Parameter 7 19=Qbtot
R 225 1 Uint Parameter 8 23=Vb1
R 226 1 Uint Parameter 9 24=Vb2
R 227 1 Uint Parameter 10 25=Vbtot
R 228 1 Uint Parameter 11 33=Apertura 1
R 229 1 Uint Parameter 12 34=Apertura 2
R 230-257 1 Uint spare
R 258 1 Uint Record size (registers)
R 1000 – 65000
1 LOGREC Data area
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 20 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
7. Modbus Slave 07: Alarm Database
ATTRIB REGISTER DIMENSION TYPE DESCRIPTION DEFAULT
R 200 1 Uint Slave type 4
R 201 1 Uint Lenght of area defining the slave
R 202 1 Uint Memory dimension (number of records) 1000
RW 203 1 Uint Logging strategy 1=Circular
2=Stop when full
RW 204 1 Uint Slave alarm command 1=set 485 Master parameters (reg. 634-637)
2=set 485 Slave parameters (reg. 638-641)
RW 205 1 Uint unused
R 206 1 Uint Counter of logged alarms
RW 207 1 Uint Number of alarm to delete starting from the older
RW 208 10 char[20] SIM CCID
RW 218 2 char[4] SIM PIN
RW 220 8 char[16] SIM phone number
R 228 1 Uint GSM signal quality (%)
RW 229 1 Uint communication timeout (seconds) 60
RW 230 1 Uint session timeout (seconds) 3600
RW 231 1 Uint Modem restart timeout (minutes) 120 (0 = disabled)
RW 232 1 Uint Periodic Calling: call strategy [0=periodic/1=by calendar/2=off) 1
RW 233 1 Uint Periodic Calling: retries strategy [0=sequential/1=alternate] 0
RW 234 2 byte[4] strategy by calendar: activity days [31 bits] 0x7FFFFFFF
RW 236 1 Uint calling hour 6
RW 237 1 Uint calling minute 00
RW 238 1 Uint periodic strategy: delay between calls (minutes) 0
RW 239 1 Uint delay between call retries (seconds) 60
RW 240 1 Uint number of call retries 3
RW 241 11 char[22] GSM / TCP IP dest 1 [es:3331837456 or 192.123.45.224:32400)
RW 252 11 char[22] UDP packet dest 1 [es: 192.123.45.224:32400)
RW 263 11 char[22] GSM / TCP IP dest 2 [es:3331837456 or 192.123.45.224:32400)
RW 274 11 char[22] UDP packet dest 2 [es: 192.123.45.224:32400)
RW 285 11 char[22] GSM / TCP IP dest 3 [es:3331837456 or 192.123.45.224:32400)
RW 296 11 char[22] UDP packet dest 3 [es: 192.123.45.224:32400)
RW 307 11 char[22] GSM / TCP IP dest 4 [es:3331837456 or 192.123.45.224:32400)
RW 318 11 char[22] UDP packet dest 4 [es: 192.123.45.224:32400)
RW 329 1 Uint alarms by SMS strategy (0=inactive / 1=sequential / 2=send to all)
0
RW 330 1 Uint notification SMS waiting time (minutes) 10
RW 331 1 Uint modem periodic wakeup start: hour 0xFFFF
RW 332 1 Uint modem periodic wakeup start: minutes 0xFFFF
RW 333 1 Uint modem periodic wakeup interval (minutes) [0 = off] 0
RW 334 1 Uint modem periodic wakeup duration (minutes) [0 = off] 0
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 21 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
RW 335 1 Uint SMS / email dest 1 notification flag (0=off / 1=on) 0
RW 336 20 char[40] SMS / email dest 1
RW 356 1 Uint SMS / email dest 2 notification flag (0=off / 1=on) 0
RW 357 20 char[40] SMS / email dest 2
RW 377 1 Uint SMS / email dest 3 notification flag (0=off / 1=on) 0
RW 378 20 char[40] SMS / email dest 3
RW 398 1 Uint SMS / email dest 4 notification flag (0=off / 1=on) 0
RW 399 20 char[40] SMS / email dest 4
RW 419 11 char[22] GSM / IP address admitted value 1
RW 430 11 char[22] GSM / IP address admitted value 2
RW 441 11 char[22] GSM / IP address admitted value 3
RW 452 11 char[22] GSM / IP address admitted value 4
RW 463 11 char[22] GSM / IP address admitted value 5
RW 474 11 char[22] GSM / IP address admitted value 6
RW 485 11 char[22] GSM / IP address admitted value 7
RW 496 11 char[22] GSM / IP address admitted value 8
RW 507 20 char[40] GPRS APN
RW 527 16 char[32] GPRS username
RW 543 16 char[32] GPRS password
RW 559 1 Uint GPRS server configuration (0 = off / 1 = active) 1
RW 560 1 Uint GPRS server port 24500
RW 561 1 Uint GPRS normal refresh delay (minutes) 60 (0=no udp)
RW 562 20 char[40] smtp server
RW 582 16 char[32] smtp username
RW 598 16 char[32] smtp password
RW 614 20 char[40] smtp from
RW 634 1 Uint FIO master 485: baud rate (300 – 19200) 19200
RW 635 1 Uint FIO master 485: data bits (7, 8) 8
RW 636 1 Uint FIO master 485: stop bits (1, 2) 1
RW 637 1 Uint FIO master 485: parity (0 = none, 1 = even, 2 = odd) 0
RW 638 1 Uint FIO slave 485: baud rate (300 – 19200) 19200
RW 639 1 Uint FIO slave 485: data bits (7, 8) 8
RW 640 1 Uint FIO slave 485: stop bits (1, 2) 1
RW 641 1 Uint FIO slave 485: parity (0 = none, 1 = even, 2 = odd) 0
RW 642 1 Uint FIO slave 485: external modem (0 = none, 1 = GSM) 0
R 643 1 Uint Number of analogue alarm cfg records 6
R 644 1 Uint Number of counter alarm cfg records 2
R 645 1 Uint Number of digital input alarm cfg 4
RW 646 18 REC_ALL_AI Struct analogue alarm 1 °
RW 664 18 REC_ALL_AI Struct analogue alarm 2 °
RW 682 18 REC_ALL_AI Struct analogue alarm 3 °
RW 700 18 REC_ALL_AI Struct analogue alarm 4 °
RW 718 18 REC_ALL_AI Struct analogue alarm 5 °
RW 736 18 REC_ALL_AI Struct analogue alarm 6 °
RW 754 17 REC_ALL_CNT Struct counter alarm 1 °
RW 771 17 REC_ALL_CNT Struct counter alarm 2 °
RW 788 8 REC_ALL_DIG Struct digital input alarm [b0…b5] °
RW 798 2 Uint Alarm enable mask 0
RW 800 1 Uint slave 485: modification access password enable 0
RW 801 1 Uint slave 485: read access password enable 0
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 22 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
RW 802 1 Uint internal modem: modification access password enable 0
RW 803 1 Uint internal modem: read access password enable 0
RW 804 1 Uint BT serial: modification access password enable 0
RW 805 1 Uint BT serial: read access password enable 0
R 806 8 char[16] GPRS IP address
RW 814 1 Uint minimum GSM signal quality (%) 30
RW 815 1 Uint GPRS alarm refresh delay (seconds) 0=no udp freq. switch
R 1000-9999 1 REC_ALARM Data area
RW 10000 2 Long modem: tot accensioni
RW 10002 2 Long modem: tot accensioni fallite
RW 10004 2 Long modem: tot registrazioni fallite
RW 10006 2 Long modem: tot attivazioni GPRS fallite
RW 10008 2 Long modem: tot ronde attivate
RW 10010 2 Long modem: tot ronde fallite
RW 10012 2 Long modem: GSM: tot chiamate in uscita
RW 10014 2 Long modem: GSM: tot chiamate in uscita fallite
RW 10016 2 Long modem: GSM: tot chiamate in entrata
RW 10018 2 Long modem: GSM: tot chiamate in entrata fallite
RW 10020 2 Long modem: GSM: tot chiamate in entrata rifiutate
RW 10022 2 Long modem: GSM: tempo totale comunicazione (sec)
RW 10024 2 Long modem: GSM: tot messaggi ricevuti
RW 10026 2 Long modem: GSM: tot byte ricevuti
RW 10028 2 Long modem: GSM: tot messaggi trasmessi
RW 10030 2 Long modem: GSM: tot byte trasmessi
RW 10032 2 Long modem: GPRS: tot chiamate in uscita
RW 10034 2 Long modem: GPRS: tot chiamate in uscita fallite
RW 10036 2 Long modem: GPRS: tot chiamate in entrata
RW 10038 2 Long modem: GPRS: tot chiamate in entrata fallite
RW 10040 2 Long modem: GPRS: tot chiamate in entrata rifiutate
RW 10042 2 Long modem: GPRS: tot attivazioni server
RW 10044 2 Long modem: GPRS: tot attivazioni server fallite
RW 10046 2 Long modem: GPRS: tempo totale comunicazione (sec)
RW 10048 2 Long modem: GPRS: tot messaggi ricevuti
RW 10050 2 Long modem: GPRS: tot byte ricevuti
RW 10052 2 Long modem: GPRS: tot messaggi trasmessi
RW 10054 2 Long modem: GPRS: tot byte trasmessi
RW 10056 2 Long modem: sms: tot inviati
RW 10058 2 Long modem: sms: tot allarmi
RW 10060 2 Long modem: sms: tot falliti
RW 10062 2 Long modem: sms: tot ack attesi
RW 10064 2 Long modem: sms: tot ack ricevuti
RW 10066 2 Long modem: sms: tot richieste ricevute
RW 10068 2 Long modem: sms: tot risposte inviate
RW 10070 2 Long modem: email: tot inviati
RW 10072 2 Long modem: email: tot allarmi
RW 10074 2 Long modem: email: tot falliti
RW 10076 2 Long modem: email: tot ack attesi
RW 10078 2 Long modem: email: tot ack ricevuti
RW 10080 2 Long modem: email: tot richieste ricevute
RW 10082 2 Long modem: email: tot risposte inviate
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 23 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
RW 10084 2 Long modem: udp: tot pacchetti inviati
RW 10086 2 Long modem: udp: tot pacchetti falliti
RW 10088 2 Long modem: contributo consumo on
RW 10090 2 Long modem: contributo consumo registrazione
RW 10092 2 Long modem: contributo consumo connessione
RW 10094 2 Long modem: contributo consumo comunicazione
RW 10096 2 Long modem: tempo totale accensione (sec)
RW 10098 2 Long display: numero totale accensioni
RW 10100 2 Long display: tempo totale accensione (sec)
Register 202 shows the number of total alarm records available for logging
Register 203 configures the strategy used for management of the buffer; if circular is selected, when the buffer is full the logger will proceed overwriting older entries; when selected stop when full, the logger will stop as soon as all the available records have been written
Register 204 is used as command register
Register 205 selects the starting record to show as first entry in the data area
Register 206 reports the number of records logged
Register 207 specifies how many records to delete, starting from the older entry
Registers 208 – 217 are used to configure the CCID security check: if this field is empty (all values set to 0x00) no check is executed; if it contains a valid value, it is compared to the CCID reported from the SIM every time the modem is used, and, if there is no orrespondence, it forbids the utilization of the modem
Registers 218 – 219 are used to configure the PIN used to access the SIM (if necessary)
Registers 220 – 227 specify the SIM phone number; this field is not used by the application
Register 228 reports the quality of GSM signal, from 0 (no service) to 30 (highest quality)
Register 229 defines a timeout in seconds, starting from the time of reception of the last valid message, after which the communication (local or remote) ends. If this timeout expires, it will be necessary to perform the login procedure again
Register 230 defines the maximum total duration, in seconds, of a communication; is this timeout expires, a remote connection is shut down, while a local connection requires to perform a login again
Register 231 defines the minimum time interval between modem restarts (0 = disabled)
Register 232 defines the strategy used for periodic calls:
periodic strategy determines the execution of calls separated by a fixed interval of time (register 238); the delay gets calculated from the starting time of 00:00
strategy by calendar allows the execution af a single call in a day, specifying in which days of the month the call must be executed (register 234)
Register 233 defines the strategy used to cycle through the list of call destinations, in case of incomplete communication. If the call to the first destination fails, the device can be configured to retry over the same destination or step down the list to the next one
sequential strategy repeat the call to the actual destination for as many times as specified in register 240, after that it steps to the next destination in the list
alternate strategy cycles through all the destination, one try for every destination. Once it reaches the end of the list, it either stops or starts again from the first entry, depending on the number of retries configured (register 240)
Registers 234 – 235 are used only if strategy by calendar is selected: they specify in which days of the month the call must be done, one bit for every day, starting with bit 0 for day 1, ending with bit 30 for day 31
Registers 236 – 237 specify the time of the day (hours:minutes) at which the call must be executed; if strategy by calendar is selected, it refers to the only daily call; if periodic strategy is selected, it refers to the time at which start the first periodic call.
Register 238 is used only if periodic strategy is selected, and specify the calling period
Register 239 specifies the delay, in seconds, between two retries; retries are executed only in case of a incomplete communication
Register 240 specifies the number of retries to execute in case of incomplete communication
Registers 241 – 328 specify the list of destinations of outgoing calls and UDP packets. Every destination can be a phone number (e.g. +393337864001, or 0422533421), or a IP address, followed by port number (e.g. 192.123.45.22:32400); every UDP packet destination must be an IP number + UDP port (e.g. 192.123.45.22:32400)
Register 329 defines the strategy used to send alarms through SMS/email:
sequential strategy sends a SMS or an email for every alarm to the first entry in the list of SMS/email destinations; the successive behaviour depends on the configuration of every destination: if the destination has been configured with notification flag active, the device will wait for a configurable time (register 330) to receive an acknowledge SMS, and, in case of successful reception, will remove the alarm from the buffer; if no acknowledge SMS is received before the time specified, it steps to he next entry in the list. If the notification flag is off, or the destination is an email address, the alarm is considered acknowledged and automatically removed from the buffer
send to all strategy sends an SMS or an email to every valid destination of the list; when a destination requiring the notification is encountered, a return SMS will be waited as for the Sequential strategy. In case, during this waiting time, no SMS is received, it will be sent an SMS to all the phone numbers in the list. After 3 cycles, alarm will be considered “Aknowledge” anyway.
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 24 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
Register 330 specifies the maximum waiting time for an acknowledge SMS
Registers 331 – 332 specify the time of the day at which turn the modem on, to be able to receive incoming calls and SMS.
Register 333 specifies the interval between successive activations of the modem. If value 0 is used, but registers 331 – 332 contains a valid time of the day, only one activation of the modem will be performed for every day. If using a different value, it will cause the device to turn on the modem by the period specified, starting from the time configuredin registers 331 – 332 and ending at 23:59
Register 334 specifies the duration of the activations of the modem
Registers 335 – 418 specify the list of destinations of alarm SMS/emails. Every destination can be a phone number (e.g. +393337864001) or an email address, and has an associated notification flag which specifies if the device must wait for an acknowledge from this destination. Notification flags are used only for SMS destinations.
Registers 419 – 506 specify the list of allowed phone numbers / IP addresses. If this list is empty, no checks on the caller are performed. If this list contains valid phone numbers and/or IP addresses, the device accepts data communications and SMS only from callers/senders present in the list
Registers 507 – 558 specify the configuration parameters for GPRS connection
Register 559 specifies the activation of GPRS server: if the server is ON, the device will answer to incoming TCP connection
Register 560 specifies the TCP port used by GPRS server, if active
Register 561 specifies the refresh interval of GPRS server: if the value is not 0, the device will send an UDP packet to every IP entry in the list of outgoing calls at the interval specified. The UDP packet contains, between other data, the serial number of the device and is useful to associate the device to its IP address (if it’s unknown by the destination, as in case of dynamical assigned IP addresses)
Registers 562 – 633 specify the configuration parameters for outgoing emails (SMTP server)
Registers 634 – 637 specify the configuration of the 485 serial port used for master/slave FIO connections
Registers 638 – 642 specify the configuration of the 485 serial port used for slave only FIO connections
Registers 643 – 645 reports the hardware setup of the device: number of analog, digital and counter inputs
Registers 646 – 795 specify the configuration of six analog alarm managers (REC_ALL_AI), two input counter alarm managers (REC_ALL_CNT), and one digital input alarm manager, as described il the following tables.
Registers 796 – 797 specify the set of alarm conditions, other than analog, counter and digital ones, enabled to add an alarm record in the alarm list and also a sms generation. Each of 32 bit “1” value enables the corresponding alarm code (see ALARM_ENABLE table below)
Registers 798 – 803 specify the enabling of password protection on read or modification accesses for every communication channel. If set to 1, the corresponding channel will request authentication before allowing the selected operation (read / modification).
Registers 1000 – 9999: Data Area
The data area is a window on the alarm database. The area contains the sequence of stored alarm records, starting from the newer to the older stored record. Each record is composed as in REC_ALARM table. When reading the area, the register address must be 0 or a multiple of the register size of the alarm record (plus the area base offset). Also the requested size must be a multiple of the alarm record size.
Type REC_ALL_AI
Dim Type Name Description Default
RW 1 Uint VarId Signal Id [TAB_ALL_AI]
RW 2 float FLS Fault threshold high 0
RW 2 float AA Alarm threshold high-high 0
RW 2 float A Alarm threshold high 0
RW 2 float B Alarm threshold low 0
RW 2 float BB Alarm threshold low-low 0
RW 2 float FLI Fault threshold low 0
RW 2 float EXC Maximum excursion Threshold 0
RW 1 Uint EventMask Event enable (bit 0=FLI….b5=FLS, b6=EXC) 0
RW 1 Uint AlarmMask Alarm enable (bit 0=FLI….b5=FLS, b6=EXC) 0
R 1 Uint AlarmStatus Alarm status (bit 0=FLI….b5=FLS, b6=EXC) 0
Table dimension : 18 registers
Type REC_ALL_CNT
Dim Type Name Description Default
RW 1 Uint VarId Signal Id [TAB_ALL_CNT]
RW 1 Uint Counter period [sec] Reference period (seconds) 3600
RW 2 Float FLS Fault threshold high 0
RW 2 Float AA Alarm threshold high-high 0
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 25 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
RW 2 Float A Alarm threshold high 0
RW 2 Float B Alarm threshold low 0
RW 2 Float BB Alarm threshold low-low 0
RW 2 Float FLI Fault threshold low 0
RW 1 Uint EventMask Event enable (bit 0=FLI….b5=FLS) 0
RW 1 Uint AlarmMask Alarm enable (bit 0=FLI….b5=FLS) 0
R 1 Uint AlarmStatus Alarm status (bit 0=FLI….b5=FLS) 0
Table dimension : 17 registers
Type REC_ALL_DIG
Dim Type Name Description Default
R 1 Uint VarId Signal Id
0 (only one variable reports the 6 bit input
status)
RW 1 Uint EventMask Event enable (bit 0..bit5) 0
RW 1 Uint AlarmMask Alarm enable (bit 0..bit5) 0
RW 6 Uint Durata0..5
Time interval for alarm return (0..65535)
[corresponding to bit 0..5 of digital input variable] 0
R 1 Uint AlarmStatus Alarm status (bit 0..bit5) 0
Table dimension : 10 registers
PM_TAB
Frequency Significato
0 disabled
M Once per month (day 1) at time OFG +OFS
G Once per day at time OFG +OFS
D Twice a day at time OFG + OFS e OFG+12+OFS
X = 1, 2, 3, 4, 6,8,12,24 Once every x hour at minute :00
Q Once every 15 days ( days 1-15-28) at time OFG +OFS
Le grandezze che si possono associare ai gestori di allarme/evento sono le seguenti (i numeri identificativi per configurarle sono gli stessi della tabella VAR_TAB):
TAB_ALL_AI
Pu1 pressione di monte linea 1
Pu2 pressione di monte linea 2
Pd pressione di valle
T temperatura
Qm1 Portata linea 1 alle condizioni di misura
Qm2 Portata linea 2 alle condizioni di misura
Qmtot Portata stazione alle condizioni di misura
Qb1 Portata linea 1 alle condizioni base
Qb2 Portata linea 2 alle condizioni base
Qtot Portata stazione alle condizioni base
Vf1 Velocità gas sulla flangia – linea 1
Vf2 Velocità gas sulla flangia – linea 2
Ptank Pressione nel serbatoio
TAB_ALL_CNT
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 26 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
Vm1t totalizzatore volumi misurati linea 1
Vb1t totalizzatore volumi base linea 1
Vme1t totalizzatore volumi in errore linea 1
Vm2t totalizzatore volumi misurati linea 2
Vb2t totalizzatore volumi base linea 2
Vme2t totalizzatore volumi in errore linea 2
Vmtot totalizzatore volumi misurati stazione
Vbtot totalizzatore volumi base stazione
Vmetot totalizzatore volumi misurati in errore di stazione
Type REC_ALARM
Dim Type Name Description
R 3 char[6] Date and time Date and time of alarm [aa/mm/gg – hh:mm:ss]
R 1 Uint Alarm Id 1..65535
R 1 Uint Type Alarm type
0=analogue
1=counter
2=digital
3=configuration change
4=start calibration
5=end calibration
6=programmed maintenance date
7=RTC error
8=communication event
9= External power
10=Battery recharge failure
11=HW Reset
12=Analogue error
13=Low Battery
14=General Alarm
15= Ecu Anomaly
16= ECU On maintenance
17= emergency status
18= EUM
19= EUM feedback fail
20= back pressure
21= TPM fail
22= TPM Ptank regulation
23= emergency empty tank
R 1 Uint Num Number of signal in alarm (signal ID, see VAR_TAB) or event code for communication events (see COMM_EVENTS_TAB)
R 1 Uint Status Alarm status [0=alarm, 1=return]
R 1 Uint Alarm.Mask For counter and analogue inputs only the bit corresponding to the threshold in alarm/return is triggered.
For digital input show the number of the input in alarm [DIG_TAB]
(bit number)
R 2 Ulong/
float
Value Value of the signal in alarm; float type for analogue, long for counter and digital inputs (0 = closed, 1 = open).
Table dimension : 9 registers
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 27 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
COMM_EVENTS_TAB
Num Description
0 Switch on failure
1 SIM missing or not working
2 SIM CCID not approved
3 PIN missing
4 PIN wrong
5 PUK required
6 Registration failed
7 GSM network signal low
8 Outgoing calls terminated without EOC
9 SMS dispatch error
10 Connection limited
ALARM_ENABLE table
Alarm type Alarm type bit mask
0=analogue n.a. (event/alarm cfg by REC_ALARM)
1=counter n.a. (event/alarm cfg by REC_ALARM)
2=digital n.a. (event/alarm cfg by REC_ALARM)
3=configuration change 0000 0008
4=start calibration 0000 0010
5=end calibration 0000 0020
6=programmed maintenance date 0000 0040
7=RTC error 0000 0080
8=n.a. 0000 0100
9= External power 0000 0200
10=Battery recharge failure 0000 0400
11=HW Reset 0000 0800
12=Analogue error 0000 1000
13=Low Battery 0000 2000
14=General Alarm 0000 4000
15= Ecu Anomaly 0000 8000
16= ECU On maintenance 0001 0000
17= emergency status 0002 0000
18= EUM 0004 0000
19= EUM feedback fail 0008 0000
20= back pressure 0010 0000
21= TPM fail 0020 0000
22= TPM Ptank regulation 0040 0000
23= emergency empty tank 0080 0000
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 28 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
8. Modbus Slave 08: Event Database
ATTRIB REGISTER DIMENSION TYPE DESCRIPTION VALUE
R 200 1 Uint Slave type 5
R 201 1 Uint Lenght of area defining the slave
R 202 1 Uint Memory dimension (number of records) 1000
RW 203 1 Uint Logging strategy 1=Circular
2=Stop when full
RW 204 1 Uint Start eventreading (=1 at the beginning of each read/cancel of event)
RW 205 1 Uint Events selector 0 = earlier alarm
R 206 1 Uint Counter of logged events
RW 207 1 Uint Number of events to delete starting from the older
R 1000 – 9999 1 REC_ALARM Data area
The Event data base follows the same rules of the alarm data base.
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 29 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
9. Modbus Slave 09: FIO system Database
ATTRIB REGISTER DIMENSION TYPE NAME DESCRIPTION
0 200 Area not used
R 200 1 Uint Slave type Slave type = 6
R 201 1 Uint Lenght Lenght of area defining the slave
Status
R 202 2 Uint FIO_mode Apparatus references – Active Functions (see table 1)
R 204 1 Uint Mpt_status Current Modulation mode (0=NO;1=REMOTE; 2=PROFILING;3=COMPENS)
Bit 7 = 1 Back- pressure functionality is active
R 205 1 Uint Starting hour calendar current time slot – starting hour
R 206 1 Uint Starting minute calendar current time slot – starting minute
R 207 1 Uint Ending hour calendar current time slot – ending hour
R 208 1 Uint Ending minute calendar current time slot – ending minute
R 209 2 Float P-SetPoint Actual Pressure Set-point ( -1 when not programmed)
NB The value is valid for all modes (not valid set point = -1)
R 211 2 Float Pd Output pressure (relative)
R 213 1 Uint Regulation status 0=IDLE, 1=RUN, 2=COMPLETE, 3=TIMEOUT
R 214 1 Uint Emergency status 0=NORMAL, 1=Emergency
R 216 1 Uint LIM_status Mode:0=DISABLED/1=ENABLED/ 2=ACTIVE/3=RETURN
R/W 217 1 Uint Nqlim Number of operations of flow limitation (write 0 to reset)
R/W 218 2 Float Tqlim Total time over the limit (minutes) (write 0 to reset)
R 220 1 Uint LD_Status 0=DISABLED/1=ENABLED/2=FEEDBACK AWAITED /3=ACTIVE –RESTORE AWAITED
R 221 1 Uint IPI_Anno Programmed Instant micro interruption: year
R 222 1 Uint IPI_Mese Programmed Instant micro interruption : month
R 223 1 Uint IPI_Giorno Programmed instant micro interruption: day
R 224 1 Uint IPI_Ora Programmed instant micro interruption: hour
R 225 1 Uint IPI_Min Programmed instant micro interruption: minute
R 226 1 Uint IPI_Tremain Remaining time (minutes)
R 230 2 Float Qb Total Flow rate @ TS and PS
R 232 2 Float Qm Total Flow rate @ TF and PF
R 234 2 Uint Vb Total flow @ TS and PS
R 236 2 Uint Vm Total flow @ TF and PF
R 238 2 Uint Vmerr Total Flow in error condition @ TF and PF
R/W 240 1 Uint CNT_UP1 Absolute counter up-1 commands (write 0 to reset)
R/W 241 1 Uint CNT_DOWN1 Absolute counter down-1 commands (write 0 to reset)
R/W 242 1 Uint CNT_UP2 Absolute counter up-2 commands (write 0 to reset)
R/W 243 1 Uint CNT_DOWN2 Absolute counter down-2 commands (write 0 to reset)
R/W 244 1 Uint Up/Down Cmd Immediate valve command (0=UP, 1= Down)
Settings and commands
R/W 250 2 Float P-RemoteSetpoint Set-point when in REMOTE mode
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 30 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
ATTRIB REGISTER DIMENSION TYPE NAME DESCRIPTION
R/W 252 1 Uint Backpress Enable Enable back pressure functionality (0=disabled, 1=enabled)
R/W 253 1 Uint MOD_status Modulation Mode (FW R4.1.0) (0=NO;1=REMOTE; 2=PAS,3=COMPENS)
R/W 254 1 Uint DurInc Minimum length increment step (default 100 ms) (FW R4.2)
R/W 255 1 Uint DurDec Minimum length decrement step (default 100 ms) (FW R4.2)
R/W 256 1 Uint Trp Response time = Trp . value (FW R4.6) (1..60000, 0=not def)
R/W 257 1 Uint Tmax Max time = Tmax . value (FW R4.7) (1..60000, 0=not def)
R/W 258 1 Uint BckPThreshold BackPressure Threshold (massima variazione ammessa in %)
R/W 259 1 Uint Qselector Flow selector (0=Qtot, 1=Q1, 2=Q2) (for all regulation activities involving flow)
R/W 260 2 Float Dead band Dead band = Bmp . value% (FW R4.5) of FS of pressure sensor
R/W 262 2 Float Ins band Sensitivity band = Bip . value% (FW R4.5) of FS of pressure sensor
R/W 264 2 Float PdMax Pdmax = Maximum value of output pressure (FW R4.9)
R/W 266 2 Float PdMin Pdmin = Minimum value of output pressure (FW R4.9)
R/W 268 2 Float Velocity One for each plant (0..100 %; if velocity<5%, 100% is assumed)
(application period = (((Uint)(100/velocity) + 0.5)) * Trp)
R/W 270 1 Uint MOD_SetCmd Modulation setting command (on writing, all previous parameters are set)
R/W 271 2 Float TPM Perc Max Ptank excursion (% of previous value)
R/W 273 1 Uint TPM_timeout TPM failure timeout (min)
R/W 274 1 UINT TPM_Enable 0=function disabled, 1=function enabled
R/W 275 1 Uint ValveMode Use of the two couples of valves: 0=Single(valve couple 1 only), 1=Redundancy (valve couple 1 and 2), 2=Flow splitting (valve couple 1 or 2, alternatively)
R/W 276 1 Uint P2asPTank2 If flow splitting, use P2 as Ptank2 (0=no, 1=yes)
R/W 277 1 Uint UseIfmForValveMode
If flow splitting, use IFM criterion (0=no, 1=yes)
R/W 278 2 Float BckPresDeltaPMin Minimum delta P for UP backpressure verification (bar, default 1.0)
R/W 280 1 Uint PAS_Year Activation date PAS/COMP : year
R/W 281 1 Uint PAS_Month Activation date PAS/COMP: month
R/W 282 1 Uint PAS_Day Activation date PAS/COMP: day
R/W 283 1 Uint PAS_Hour Activation date PAS/COMP: hour
R/W 284 1 Uint PAS_Min Activation date PAS/COMP: minute
R/W 285 1 Uint PAS_Sec Activation date PAS/COMP: second
R/W 286 1 Uint PAS_SetCmd Setting command (implementation PAS: immediate=1/ set date =2 ; implementation COMP: immediate=3/ set date =4;)
R/W 290 2 Float TS Standard temperature
R/W 292 2 Float PS Standard pressure
R/W 294 2 Float RelDens Relative density
R/W 296 2 Uint VOL_tot Totalizer setting value
R/W 298 1 Uint VOL_SetCmd 0=clear all Vme
1=preset Tot_Vm1 to VOL_tot
2=preset Tot_Vm2 to VOL_tot
3=preset Tot_Vb1 to VOL_tot
4=preset Tot_Vb2 to VOL_tot
R/W 299 2 float Trefcom reference temperature for correction of valve command duration, default 293,15 K
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 31 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
ATTRIB REGISTER DIMENSION TYPE NAME DESCRIPTION
R/W 301 2 float Kcorrcom correction factor, default 0 = function disabled
R/W 310 1 Uint LIM_Mode Mode (QL_MODE) (0=disabled function, 1=limited flow (Q_Lim), 2=limited flow (current PAS if any, else as 1=Q_Lim is assumed) )
R/W 311 2 Float QLim Flow rate threshold for limitation
R/W 313 2 Float Dead band Dead band = <Bmq . value>% (FW R5.5)
R/W 315 2 Float Ins Band Sensitivity Band = <Biq . value>% (FW R5.5)
R/W 317 2 Float Pmin_limq Minimum pressure limit value for flow limitation
R/W 319 2 Ulong Trq Delayed time flow verification (seconds)
R/W 321 2 Ulong Tmax_q Max time for flow intervention (seconds)
R/W 323 1 Uint LIM_SetCmd Measurement command (0= all previous parameters setting)
R/W 330 1 Uint IPI_mod MODE Release 0=disabled, 1=enabled (pressure reduction)
R/W 331 1 Uint IPI_Rmod ignored
R/W 332 1 Uint IPI_FBS ignored
R/W 333 1 Uint IPI_Year Programmed Instant. micro Interruption: year (R7.8)
R/W 334 1 Uint IPI_Month Programmed Instant. micro interruption: month
R/W 335 1 Uint IPI_Day Programmed Instant. micro interruption: day
R/W 336 1 Uint IPI_Hour Programmed Instant. Micro interruption: hour
R/W 337 1 Uint IPI_Min Programmed Instant. Micro interruption : minute
R/W 338 2 Float Ps_min Minimum release pressure
R/W 340 2 Float QLim_Eum upper flow limit for load break
R/W 342 1 Uint IPI_SetCmd IPI Setting Command (all previous parameters setting)
R/W 360 1 Uint Ecomp_Month Enable compensation. month
R/W 361 1 Uint Ecomp_Day Enable compensation. day
R/W 362 1 Uint Ecomp_Hour Enable compensation. hour
R/W 363 1 Uint Dcomp_Month Disable compensation. month
R/W 364 1 Uint Dcomp_Day Disable compensation. day
R/W 365 1 Uint Dcomp_Hour Disable compensation. hour
R/W 366 2 Float SP_dcomp Pressure set point during disable period
R/W 368 1 Uint COMP_SetCmd Setting command Compensation(0= always active ( default) /
1 = valid set date Enable/disable)
LINE 1
R 500 2 Float Qb1 Line 1 Flow rate @ TS and PS
R 502 2 Float Qm1 Line 1 Flow rate @ TF and PF
R 504 2 Uint Vb1 Line 1 flow @ TS and PS
R 506 2 Uint Vm1 Line 1flow @ TF and PF
R 508 2 Uint Vmerr1 Line 1 Flow in error condition @ TF and PF
R 510 2 Float KTVO1 Line 1 Conversion factor
R 512 2 Float Cg1 Line 1 FIO – Actual Cg (-1 when calculation is not enabled)
R 514 2 Float PF1 Line 1 Absolute gas pressure (Pu1, Pu2, Pd as configured by Up-down counter 1 in slave acquisition)
R 516 2 Float Vf1 Line 1 Velocity
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 32 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
ATTRIB REGISTER DIMENSION TYPE NAME DESCRIPTION
R 518-662 Uint spare
R/W 663 2 ULong CutOff1 Line 1 Cut off (msec, min distance between two pulses)
R/W 665 2 Float DN1 Line 1 Diametre
R/W 667 2 Float K0_1 Line 1 Costante additiva per calcolo portata indiretta
R/W 669 2 Float Kf_1 Line 1 Costante moltiplicativa per calcolo portata indiretta
R/W 671 2 Float Vf1_max Gas velocity upper limit (=0 auto management)
R/W 673 1 Uint FlowCalc1 Flow calculation (0=direct flow, 1=indirect flow)
R/W 674 1 Uint IndirectPselect1 Indirect flow pressure selector (2=Pu1, 3=Pu2)
R/W 675 8 Str16 TipoReg1 Regulator type = string 16 char
R 683-699 Uint spare
LINE 2
R 700 2 Float Qb2 Line 2 Flow rate @ TS and PS
R 702 2 Float Qm2 Line 2 Flow rate @ TF and PF
R 704 2 Uint Vb2 Line 2 flow @ TS and PS
R 706 2 Uint Vm2 Line 2 flow @ TF and PF
R 708 2 Uint Vmerr2 Line 2 Flow in error condition @ TF and PF
R 710 2 Float KTVO2 Line 2 Conversion factor
R 712 2 Float Cg2 Line 2 FIO – Actual Cg (-1 when calculation is not enabled)
R 714 2 Float PF2 Line 2 Absolute gas pressure (Pu1, Pu2, Pd as configured by Up-down counter 2 in slave acquisition)
R 716 2 Float Vf2 Line 2 Velocity
R 718-862 Uint spare
R/W 863 2 Ulong CutOff2 Line 2 Cut off (msec, min distance between two pulses)
R/W 865 2 Float DN2 Line 2 Diametre
R/W 867 2 Float K0_2 Line 2 Costante additiva per calcolo portata indiretta
R/W 869 2 Float Kf_2 Line 2 Costante moltiplicativa per calcolo portata indiretta
R/W 871 2 Float Vf2_max Gas velocity upper limit (=0 auto management)
R/W 873 1 Uint FlowCalc2 Flow calculation (0=direct flow, 1=indirect flow)
R/W 874 1 Uint IndirectPselect2 Indirect flow pressure selector (2=Pu1, 3=Pu2)
R/W 875 8 Str16 TipoReg2 Regulator type = string 16 char
R 883-899 Uint spare
PAS
R 1000 2 Float P_rest Pressure Modulation: actual profile Day 1
R 1002 2 Float StartingHour Day 1 starting hour period 1 (=0 when not programmed)
R 1004 2 Float StartingMin Day 1 starting minute period 1 (=0 when not programmed)
R 1006 2 Float EndHour Day 1 end hour period 1 (=0 when not programmed)
R 1008 2 Float EndMin Day 1 end minute period 1 (=0 when not programmed)
R 1010 2 Float P_Setpoint Day 1 pressure set point period 1 (=0 when not programmed)
R 1012 2 Float Q_Lim Day 1 lim. Threshold period 1 (=0 non programmato)
… …
R 1074 2 Float StartingHour Day 1 starting hour period 7 (=0 when not programmed)
R 1076 2 Float StartingMin Day 1 starting minute period 7 (=0 when not programmed)
R 1078 2 Float EndHour Day 1 end hour period 7 (=0 when not programmed)
R 1080 2 Float EndMin Day 1 end minute period 7 (=0 when not programmed)
R 1082 2 Float P_Setpoint Day 1 pressure set point period 7 (=0 when not programmed)
R 1084 2 Float Q_Lim Day 1 lim. Threshold period 7 (=0 non programmato)
… …
R 1516 2 Float P_rest Pressure Modulation: actual profile Day 7
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 33 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
ATTRIB REGISTER DIMENSION TYPE NAME DESCRIPTION
R 1518 2 Float StartingHour Day 7 starting hour period 1 (=0 when not programmed)
R 1520 2 Float StartingMin Day 7 starting minute period 1 (=0 when not programmed)
R 1522 2 Float EndHour Day 7 end hour period 1 (=0 when not programmed)
R 1524 2 Float EndMin Day 7 end minute period 1 (=0 when not programmed)
R 1526 2 Float P_Setpoint Day 7 pressure set point period 1 (=0 when not programmed)
R 1528 2 Float Q_Lim Day 7 lim. Threshold period 1 (=0 non programmato)
… …
R 1590 2 Float StartingHour Day 7 starting hour period 7 (=0 when not programmed)
R 1592 2 Float StartingMin Day 7 starting minute period 7 (=0 when not programmed)
R 1594 2 Float EndHour Day 7 end hour period 7 (=0 when not programmed)
R 1596 2 Float EndMin Day 7 end minute period 7 (=0 when not programmed)
R 1598 2 Float P_Setpoint Day 7 pressure set point period 7 (=0 when not programmed)
R 1600 2 Float Q_Lim Day 7 lim. Threshold period 7 (=0 non programmato)
R/W 2000 2 Float Pmod_calendar Pressure Modulation: future profile Day 1
R/W 2002 2 Float StartingHour Day 1 starting hour period 1 (=0 when not programmed)
R/W 2004 2 Float StartingMin Day 1 starting minute period 1 (=0 when not programmed)
R/W 2006 2 Float EndHour Day 1 end hour period 1 (=0 when not programmed)
R/W 2008 2 Float EndMin Day 1 end minute period 1 (=0 when not programmed)
R/W 2010 2 Float P_Setpoint Day 1 pressure set point period 1 (=0 when not programmed)
R/W 2012 2 Float Q_Lim Day 1 lim. Threshold period 1 (=0 non programmato)
… …
R/W 2074 2 Float StartingHour Day 1 starting hour period 7 (=0 when not programmed)
R/W 2076 2 Float StartingMin Day 1 starting minute period 7 (=0 when not programmed)
R/W 2078 2 Float EndHour Day 1 end hour period 7 (=0 when not programmed)
R/W 2080 2 Float EndMin Day 1 end minute period 7 (=0 when not programmed)
R/W 2082 2 Float P_Setpoint Day 1 pressure set point period 7 (=0 when not programmed)
R/W 2084 2 Float Q_Lim Day 1 lim. Threshold period 7 (=0 non programmato)
… …
R/W 2516 2 Float P_rest Pressure Modulation: future profile Day 7
R/W 2518 2 Float StartingHour Day 7 starting hour period 1 (=0 when not programmed)
R/W 2520 2 Float StartingMin Day 7 starting minute period 1 (=0 when not programmed)
R/W 2522 2 Float EndHour Day 7 end hour period 1 (=0 when not programmed)
R/W 2524 2 Float EndMin Day 7 end minute period 1 (=0 when not programmed)
R/W 2526 2 Float P_Setpoint Day 7 pressure set point period 1 (=0 when not programmed)
R/W 2528 2 Float Q_Lim Day 7 lim. Threshold period 1 (=0 non programmato)
… …
R/W 2590 2 Float StartingHour Day 7 starting hour period 7 (=0 when not programmed)
R/W 2592 2 Float StartingMin Day 7 starting minute period 7 (=0 when not programmed)
R/W 2594 2 Float EndHour Day 7 end hour period 7 (=0 when not programmed)
R/W 2596 2 Float EndMin Day 7 end minute period 7 (=0 when not programmed)
R/W 2598 2 Float P_Setpoint Day 7 pressure set point period 7 (=0 when not programmed)
R/W 2600 2 Float Q_Lim Day 7 lim. Threshold period 7 (=0 non programmato)
Compensation
R 3000 2 Float Q_Max_Compensation
Pressure compensation Configuration – Actual profile :Max flow rate for compensation
R 3002 2 Float P_timeband 1 Pressure period 1
… … … …
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 34 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
ATTRIB REGISTER DIMENSION TYPE NAME DESCRIPTION
R 3020 2 Float P_timeband 10 Pressure period 10
R/W 4000 2 Float Q_Max_Compensation
Pressure compensation Configuration – Future profile :Max flow rate for compensation
R/W 4002 2 Float P_timeband 1 Pressure period 1
… … … …
R/W 4020 2 Float P_timeband 10 Pressure period 10
Table 1 – Active functions codes
XXXX XXXX XXX1 XXX1 Direct flow (bit 0 – line 1, bit4 – line 2)
XXXX XXXX XX1X XX1X Indirect flow (bit 1 – line 1, bit5 – line 2)
XXXX XXXX X1XX X1XX Counter flow (bit 2 – line 1, bit6 – line 2)
XXXX XXXX 1XXX 1XXX Correction flow (bit 3 – line 1, bit7 – line 2)
XXXX XXX1 XXXX XXXX Flow rate limitation (1=active)
XXXX XX1X XXXX XXXX Pressure modulation (1=active )
XXXX X1XX XXXX XXXX unused
XXXX 1XXX XXXX XXXX Logging (1=active )
XXX1 XXXX XXXX XXXX TPM tank pressure monitoring (1=active )
XX1X XXXX XXXX XXXX FCM Fio cooperative mode (1=active )
The FIO database represents the interface with the main functionalities of the system.
Register 200 FioTable slave type (=6)
Register 201 length of the slave (number of registers)
Register 202 Active functions bit mask (table 1)
Register 204 Current modulation mode
Modbus Protocol
FIO2
Modulo 00_09_12.mdl
Ediz. 1 - Rev. 2
Data di emissione modulo base 22/12/98
Pagina 35 di 35
This document has been:
Issued by: C.Serrelli Controlled by: M.Ferrari Approved by:
UM_TAB
ID_IM SIGNAL Engineering unit
0 °C
1 Temperature °K
2 °F
3 °R
16 bar
17 Pressure mbar
18 Pa
19 MPa
20 psi
21 mmH2O
22 inH2O
23 Kg/cm2
32 m
33 Lenght mm
34 ft
35 in
48 m3/hr
49 Flow rate ft3/hr
50 m3/s
51 ft3/s
64 m3
65 Volume dm3
66 in3
67 ft3
80 constants <null>
81 %
96 Velocity m/s