On this page
Tianxin instruments
TIANXIN instrument protocol address read and write driver
Compatible devices and models
| Device series / model examples | Connection requirements |
|---|---|
| Tianxin instruments supporting the TIANXIN protocol used by this plugin | The instrument must expose the matching address and frame services with the correct station, interface settings and units. |
Configure the flowmeter and select an item
Check RS-485 station, serial format and protocol in the TIANXIN menu/vendor tool. This entry reads the fixed snapshot defined by the TIANXIN RS485 flowmeter protocol; Modbus products use their own register protocol.
- Match serial wiring/settings. Ethernet converters transparently carry the same bytes; UDP also carries protocol frames rather than numeric text.
- Default station is
1;S=2;FlowRateoverrides it, range 1–255. Select one item per variable, notFlowRate;TotalAmountas one address. - Use read-only String for
Time(yyyy-MM-dd HH:mm:ss), Float/Double forFlowRate,Temp,Pressure, Int64 forTotalAmount, and Boolean forA1_0–A1_7/S_0–S_7. Obtain alarm/state bit meanings from the meter table. - Compare flow, temperature and pressure separately with the display and preserve field units. Item names do not convert operating flow to standard flow or correct cumulative ratios.
The entry decodes its special exponent/mantissa format and BCD high part for totals; these are not plain IEEE Float or an ordinary six-byte Int64. Int64 totals do not retain fractions. Packing defaults to 100, but the protocol reads a fixed snapshot per station and distributes its fields. It does not add arbitrary registers. This entry is read-only.
Open the plugin
Enter “Development Configuration → Collection Configuration”, create a device and select “Tianxin instruments” in “Device Plugin”.
Supported channels and data types
| Channel type | Pre-configuration check |
|---|---|
| TCP Client | Confirm network reachability of the device IP, port, and gateway to the device. |
| TCP server | Confirm that the local listening address and port are available, and allow on-site devices to actively connect to the gateway. |
| Serial Port | Confirm that the serial port is not occupied by other programs and maintains the same baud rate, data bits, stop bits and parity bits as the device. |
| UDP | Confirm the local binding address, port and firewall rules, and check the source of the packet. |
Optional data types: Boolean, Byte, Int16, UInt16, Int32, UInt32, Int64, UInt64, Float, Double, String, Decimal
This list describes types allowed by the plugin editor. Address width, arrays, string length and read/write restrictions still follow this page; it does not mean that every address supports every type.
Plugin properties
Protocol parameters
| Setting | Description |
|---|---|
| Default station number | Default: 1; fill in: text input. Set the default station number used when the station number is not specified separately in the variable address. |
Connection configuration
| Setting | Description |
|---|---|
| DTU ID | Fill in: text input. Sets the identifier used to identify the current device connection through the DTU service. |
Address rules
- TIANXIN address format: [S=station number;] data item, when the station number is not filled in, the default station number configured by the device is used.
- Data items: Time, FlowRate, TotalAmount, Temp, Pressure, A1_7, A1_6, A1_5, A1_4, A1_3, A1_2, A1_1, A1_0, S_7, S_6, S_5, S_4, S_3, S_2, S_1, S_0.
- Three separate variable addresses:
FlowRate,S=1;TotalAmount, andS=2;A1_7.
Device debug
Enter “Development Configuration → Collection Configuration”, select the current device then open “Protocol Debug” at the top of the workspace.


Functions
| Function | Purpose |
|---|---|
| Read and write | Read a confirmed point and write only to an approved test point. |
| Messages | View sent and received frames, protocol fields, and error details. |
Verify the configuration
Compare with the instantaneous-flow display; use instrument-configured units/scaling. Time uses String separately.
Troubleshooting
- Distinguish FlowRate, TotalAmount and status selectors. Match station and field before choosing a type; one type does not describe every item.
- The serial port device does not respond: Confirm that the serial port is not occupied, and check the baud rate, data bits, stop bits and parity bits.
Related links
- Collection configuration: View channel, device and common variable configuration.
- Plugin Index: Find other collection or data-forward plugins.