Modbus RTU
7 min
note if multiple stations are connected to the rs 485 bus, then use the docid 63wcqxtekwttbkhoilnqa driver instead of this one review the following information for setting up and configuring the modbus rtu driver belden horizon data operations compatible series compatibility parameter compatible items driver type serial (rs 485) when to use serial connection to a device using modbus rtu replaces gen 1 driver(s) docid 9vfszscm7ftythghvfq0j docid\ ol 0e7d7vwuxs0uobyc79 learn more about docid 4wbexab2vfbkoxvwa0h g to set up and configure this device in belden horizon data operations, you will need to do the following step 1 set up and configure the plc device step 2 set up the plc device in belden horizon data operations devicehub step 3 configure the list of registers step 1 set up and configure the plc device record the serial communication parameters for the device otherwise, use plc software on your computer to look up these parameters these parameters will be used for setting up the driver in the next step step 2 set up the plc device in belden horizon data operations devicehub configure the following parameters when you docid\ t cwpe0 jsfw5 aoj8wpp with this driver update default values to the specific setup of your device parameter value type modbus driver modbus rtu d evice file the file of the serial port you are using baud rate 19200 data bits 8 station id 0 stop bits 1 step 3 configure the list of registers when you docid\ wpe2hmxelarlbnhwbuchy to the connected device, refer to the following register table and tag parameters refer to the following additional resources docid\ kr5zcbhkxwk89qti0v1t8 docid 9m6xlaq9iopw5alpru96s register table note the address format in this gen 2 driver is different from the gen 1 driver ( docid 9vfszscm7ftythghvfq0j ) for the same device learn more about docid 4wbexab2vfbkoxvwa0h g name value types address format min address max address description d bit ddddd 0 65535 discrete input contacts c bit ddddd 0 65535 discrete output coils h word, int16, int32, uint32, float32, float64 ddddd 0 65535 analog output holding registers i word, int16, int32, uint32, float32, float64 ddddd 0 65535 analog input registers h bit bit ddddddd 0 6553515 analog output holding registers i bit bit ddddddd 0 6553515 analog input registers tag parameters name select a register name from the drop down list the available options depend on the names in the register table value type select a data type from the drop down list the available options depend on the register name selected polling interval enter a value in seconds this determines how often the tag should poll the register for data tag name enter a name for the tag description (optional) enter a description for the tag address enter a tag address the value must in the decimal format, within the allowed min/max range omit the leading zeros the device might use the decimal (d), hexadecimal (h), or octal (o) address format for bit tags, append the bit address without the bit separator the lowercase letters in the address format indicate how many digits you should enter in the bit address count enter the number of register values to read a count higher than 1 will generate an array of values from the address value configured and respective subsequent address values endianness (not available for all names) this option configures how the tag data will be formatted and whether bytes and/or words will be counted from the start (big endian style) or end (little endian style) of strings of data select one of the following options no swap data will be formatted in big endian style (bytes and words counted from the start) for example ab cd swap bytes only bytes will be formatted in little endian style (counted from the end) for example ba dc swap words only words will be formatted in little endian style (counted from the end) for example cd ab swap words & bytes both words and bytes will be formatted in little endian style (counted from the end) for example dc ba tag formula enter a formula for the tag to process the generated data two variables are permitted value (current tag value) and timestamp (current tag unix time in milliseconds) the following math functions are available sin cos sqrt tan power log exp only publish on change of value select the checkbox to customize nats messages to be published only when the value parameter changes from a previous value to a new one change of value only applies to boolean, numeric (such as int or float), and simple string data types it does not apply to complex types, such as json or array poll once topics will not be affected by change of value settings these topics will still only see a single message meta data metadata summarizes basic information about data this feature allows you to define key value pair data for the device output payload later on it can then be used to find, use, and reuse particular instances of data