{
  "spec_version": 1,
  "slug": "cs-instruments-va500",
  "manufacturer": "CS Instruments",
  "model": "VA 500 / VA 520 / VA 550 / VA 570 compressed air and gas flow meter (VA 5xx)",
  "category": "Flow meter",
  "supplier_url": "https://www.cs-instruments.com/va-500-flow-sensor-for-compressed-air-and-gases/",
  "default_configuration": {
    "protocol": "modbus_rtu",
    "unit_id": 1,
    "addressing": "one_based",
    "byte_order": "BigEndian",
    "word_order": "HighFirst",
    "native_interface": "rs485",
    "serial": {
      "baud_rate": 19200,
      "parity": "Even",
      "data_bits": 8,
      "stop_bits": 1
    }
  },
  "coils": [],
  "discrete_inputs": [],
  "input_registers": [],
  "holding_registers": [
    {
      "address": 2001,
      "count": 1,
      "name": "Modbus ID",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "RW",
      "description": "Slave address, range 1-247, default setting 1."
    },
    {
      "address": 2002,
      "count": 1,
      "name": "Baud rate",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "RW",
      "description": "0 = 1200, 1 = 2400, 2 = 4800, 3 = 9600, 4 = 19200, 5 = 38400, 6 = 57600, 7 = 115200. Default setting 4 (19200), which matches the 'Baud rate 19200' row of the factory-settings table."
    },
    {
      "address": 2003,
      "count": 1,
      "name": "Parity",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "RW",
      "description": "0 = none, 1 = even, 2 = odd. Default setting 1 (even), which matches the 'Parity even' row of the factory-settings table."
    },
    {
      "address": 2004,
      "count": 1,
      "name": "Number of stop bits",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "RW",
      "description": "0 = 1 stop bit, 1 = 2 stop bits. The register table leaves the default cell empty; the factory-settings table of the same manual prints 'Stop bit 1', which the seed's serial block stores."
    },
    {
      "address": 2005,
      "count": 1,
      "name": "Word order",
      "data_type": "UInt16",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "RW",
      "description": "0xABCD = Big Endian, 0xCDAB = Middle Endian; default setting 0xABCD, which is why the seed declares BigEndian + HighFirst. A site that reads wrong 32-bit values should try Middle Endian (LowFirst)."
    },
    {
      "address": 2069,
      "count": 2,
      "name": "Pressure type (relative / absolute)",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "RW",
      "description": "The document types this register float and gives its values as 0 = relative, 1 = absolute; it selects the reference of the system-pressure values."
    },
    {
      "address": 1057,
      "count": 2,
      "name": "Delta P",
      "data_type": "Float32",
      "units": "",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Differential pressure, unit as defined in the sensor."
    },
    {
      "address": 1101,
      "count": 2,
      "name": "Flow in m3/h",
      "data_type": "Float32",
      "units": "m3/h",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Flow value in the unit printed in the description column of the value-register table."
    },
    {
      "address": 1109,
      "count": 2,
      "name": "Flow in Nm3/h",
      "data_type": "Float32",
      "units": "Nm3/h",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Flow value normalised to standard conditions."
    },
    {
      "address": 1117,
      "count": 2,
      "name": "Flow in m3/min",
      "data_type": "Float32",
      "units": "m3/min",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Flow value in m3/min."
    },
    {
      "address": 1133,
      "count": 2,
      "name": "Flow in ltr/h",
      "data_type": "Float32",
      "units": "l/h",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Flow value in litres per hour."
    },
    {
      "address": 1181,
      "count": 2,
      "name": "Flow in cfm",
      "data_type": "Float32",
      "units": "cfm",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Flow value in cubic feet per minute."
    },
    {
      "address": 1197,
      "count": 2,
      "name": "Flow in kg/h",
      "data_type": "Float32",
      "units": "kg/h",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Mass flow value."
    },
    {
      "address": 1221,
      "count": 2,
      "name": "Flow in kW",
      "data_type": "Float32",
      "units": "kW",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Thermal power derived from the mass flow."
    },
    {
      "address": 1269,
      "count": 2,
      "name": "Consumption m3 before comma",
      "data_type": "UInt32",
      "units": "m3",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Consumption counter, integer part in m3; the decimal places are served by the companion 'after comma' register of the same block in the document."
    },
    {
      "address": 1311,
      "count": 2,
      "name": "Consumption kWh before comma",
      "data_type": "UInt32",
      "units": "kWh",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Energy consumption counter, integer part in kWh; the decimal places are served by the companion 'after comma' register of the same block in the document."
    },
    {
      "address": 1347,
      "count": 2,
      "name": "Velocity m/s",
      "data_type": "Float32",
      "units": "m/s",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Gas velocity through the pipe."
    },
    {
      "address": 1419,
      "count": 2,
      "name": "Gas temperature",
      "data_type": "Float32",
      "units": "°C",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "Gas temperature in degrees Celsius; the same table also serves it in degF."
    },
    {
      "address": 1475,
      "count": 2,
      "name": "System pressure mBar",
      "data_type": "Float32",
      "units": "mbar",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "System pressure; the value served depends on the pressure-type setting at register 2069."
    },
    {
      "address": 1481,
      "count": 2,
      "name": "System pressure Bar",
      "data_type": "Float32",
      "units": "bar",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "System pressure in bar."
    },
    {
      "address": 1487,
      "count": 2,
      "name": "System pressure PSIr",
      "data_type": "Float32",
      "units": "psi",
      "scale_factor": 1,
      "offset": 0,
      "access": "R",
      "description": "System pressure in psi."
    }
  ],
  "combined_registers": [],
  "notes": "Source: CS Instruments 'Instruction manual VA 500' V2.02 EN, chapter 11.4 'Register assignment' (Tables 24-26) plus Table 6 factory settings (SHA-256 12193ae99b764d63c9b10a12e3cd948aeb4e2962bf36d4c6a03d3151811a8884), cross-checked against 'VA 5xx Modbus RTU Installation' V1.17 section 7.3.1 for the 2001-2005 settings registers (SHA-256 0ab5eb00cdc82d7551159574fd91779cc382ffe95d87d1ef1a368f3e39e8950d), both vendor-hosted. Factory frame: Modbus RTU, 19200 baud, even parity, 1 stop bit, address 1 (Table 6: ID 1, 19200, stop bit 1, parity even, data format ABCD/Big Endian). Data bits are not printed: neither manual has a data-bits setting (the 2001-2005 block holds ID, baud, parity, stop bits and word order) and both name 'Modbus over serial line V1.02' as the standard, which fixes RTU characters at 8 data bits. The register table prints a 1-based 'Register' column next to an 'Address' column that is always Register-1 (2001 -> 2000, 1101 -> 1100), so the seed stores the Register column and declares one_based. Seeded value rows: flow 1101 m3/h, 1109 Nm3/h, 1117 m3/min, 1133 ltr/h, 1181 cfm, 1197 kg/h, 1221 kW; consumption 1269 m3 and 1311 kWh (integer part, with the decimal part in the companion 'after comma' register); velocity 1347 m/s; gas temperature 1419 degC; the pressure option's 1057 Delta P and 1475/1481/1487 mbar/bar/psi; and the 2069 pressure-type setting. Omitted on purpose: the remaining unit aliases of the same quantities - flow 1125 Nm3/min, 1141 Nltr/h, 1149 ltr/min, 1157 Nltr/min, 1165 ltr/s, 1173 Nltr/s, 1189 Ncfm, 1205 kg/min, 1213 kg/s; consumption 1275 Nm3, 1281 ltr, 1287 Nltr, 1293 cf, 1299 Ncf, 1305 kg; velocity 1355 Nm/s, 1363 ft/min, 1371 Nft/min; temperature 1427 degF - plus every Min/Max/AV row and the display/device-settings blocks. 32-bit word order: the Word Order register (2005) defaults to 0xABCD = Big Endian, so BigEndian + HighFirst is what the device ships with, with 0xCDAB (LowFirst) as the documented alternative."
}
