Skip to content

CSV Example: Modbus

Below is an example CSV file for a Modbus device.

name description units valueType readWrite primaryTable startingAddress
Attribute1 Description1 Unit1 Uint16 R HOLDING_REGISTERS 1001
Attribute2 Description2 Unit2 Uint16 W HOLDING_REGISTERS 1002
Attribute3 Description2 Unit3 Uint16 RW HOLDING_REGISTERS 1003

The columns are defined by the protocol attributes, with a new device resource on each row:

name,description,units,valueType,readWrite,primaryTable,startingAddress
Attribute1,Description1,Unit1,Uint16,R,HOLDING_REGISTERS,1001
Attribute2,Description2,Unit2,Uint16,W,HOLDING_REGISTERS,1002
Attribute3,Description3,Unit3,Uint16,RW,HOLDING_REGISTERS,1003

name is a mandatory attribute.

Note

Any attribute that does not belong to the device resource property will be treated as a device resource attribute. These are attributes specific to the protocol. In the case of Modbus, primaryTable and startingAddress.

You can find further information about attributes for Modbus devices, see the Edge Xpert and Edge XRT documentation.