Integrations & Setup
...
Modbus TCP
Adding measurements to a Modbus collector
measurements can be added to a modbus tcp collector by manually adding individual measurements bulk importing measurements manage measurements docid\ ocuypopzcouihwwzc vj7 manually add a measurement follow the guide on creating a measurement docid\ u5 07ylms2jix9kz m lb for general instructions on how to create a measurement open the measurements page in the factry historian web interface and click + create measurement fill in a clear name and an optional short description so the measurement is easy to find and recognise later choose the modbus collector you configured previously and select the time series database where this measurement should be stored select the correct datatype for the measurement (boolean, number, string) based on how you plan to decode the raw modbus registers basic settings in the settings panel below, provide the address of the modbus register to start reading from this tells the collector where in the modbus address space to read data for an initial test, you can leave collectiontype , collectioninterval , collectionoffset and byteorder at their default values if you need more control, see the reference documentation for the modbus tcp docid 40jggxcnak wantsu bq slaveid enter the two character hexadecimal id of the modbus slave to query (for example, 01 , 0a , or ff for broadcast) registertype select the modbus register type that contains the value this determines the function code used for communication coil single bit read/write discrete input single bit read only input register 16 bit read only holding register 16 bit read/write use input register or holding register for numeric values only coil and holding register support writing modbusdatatype choose how the raw register data should be decoded boolean (only valid for coil and discrete input) uint16 , int16 , uint32 , int32 , float32 , uint64 , int64 , float64 practical examples single boolean input on unit 01 at discrete input address 12 polled every 1000 ms with no offset address 12 registertype discrete input modbusdatatype boolean slaveid 01 collectiontype polled collectioninterval 1000 collectionoffset 0 32 bit ieee 754 float located in two holding registers starting at address 100 on unit 0a, polled every 2000 ms with a 250 ms offset, little endian register order override address 100 registertype holding register modbusdatatype float32 slaveid 0a collectiontype polled collectioninterval 2000 collectionoffset 250 byteorder ba (dc) (fe hg) expected outcome once you have submitted your measurement, and all settings are correct, you should see the following the measurement status changes to good within about 10 seconds the measurement appears in the list of configured measurements the data preview panel begins to display live values coming in click the refresh icon if it does not refresh automatically if you need to configure a large number of adresses, you can also bulk import the measurements to speed up the process bulk import measurements follow the guide on importing measurements in bulk docid\ g5wek8z fipxau2ymzirz for file format and examples