Configuring Modbus Registry Mapping

Configuring Modbus Registry Mapping

In Zoho IoT, modbus registry mapping can be configured individually for each datapoint definition of a peripheral device product.

Prerequisites

Before configuring Modbus registry mapping, ensure the following conditions are met:
  • The datapoint definition must already be added to the device product.
  • The device product must be of the Peripheral device type.
To configure Modbus registry mapping:
  1. Access the End Application.
  2. Go to Settings > Products (under Device Management section).





  3. Select the device product for which you want to configure Modbus registry mapping. For this illustration, the device product My Peripheral Product is selected. 



  4. Click Actions > Modbus Registry Mapping.



  5. Select the datapoint to which you want to add the mapping and click Edit.



  6. Provide the required values in the appropriate fields.

    Telemetry Name
    The name used to as the parsing key once modbus registry mapping is assigned.
    Status
    Enables or disables the Modbus registry mapping for the datapoint.If disabled, the modbus registry mapping will not be sent in the edge configuration.
    Address
    The register address of the parameter as specified in the device's datasheet.
    Register Type
    The Modbus register type corresponding to the parameter's address.
    Modbus Data Type
    The data format in which the parameter value is stored in the register.
    Multiplier
    The scaling factor applied to the raw register value. The default value is 1.
    Offset
    A fixed value added to the scaled result to adjust the final reading. The default value is 0.
    Endianness
    The byte order in which the register value is stored and transmitted.
    Access Direction
    Specifies whether the gateway reads from or writes to the register.
         Learn more about each field in detail.

         
  1. Click Update.


The Modbus registry mapping will be assigned to the selected datapoint. 

Bulk Modbus Registry Mapping

When multiple datapoints require Modbus registry mapping, you can import them in bulk using a JSON or CSV file.
The recommended workflow is:

I. Downloading the modbus configuration file of the added datapoints

  1. Go to the End Application.
  2. Go to Settings > Products (under Device Management section).





  3. Click on the device product for which you want to configure Modbus registry mapping. For this illustration, the device product My Peripheral Product is selected. 



  4. Click Actions > Modbus Registry Mapping.



  5. Click Actions > Import.



  6. Select the format you want to download the configuration as:

    • JSON to download a JSON file, or

    • CSV to download a CSV file.



  7. Click Export Current Configuration. A file of the selected format will be downloaded.  


The downloaded file will contain all available keys with null or default values. You will need to update the values of the corresponding keys as illustrated in the next step.

II. Updating the values in the configuration file

  1. Open the JSON or CSV file in a code editor.
  2. Provide the appropriate values, The tables below describe the accepted values for each field.

Field

Required Value

Corresponding Input

Example

telemetry_name

The parsing key of the datapoint, without the {EdgeKey} notation, as configured in the device product. The value must be in lowercase and separated by underscores.

String

"telemetry_name": "phase3_total_power"

id

The unique identifier of the datapoint as configured in the device product. The datapoint ID can only be obtained by downloading the configuration file and cannot be retrieved any other way.

Integer

"id": 6700000000203011

status

Set to enable or disable the mapping.

Enable: true
Disable: false

"status": true

address

The Modbus register address for the datapoint.

Integer

"address": 4001

register_type

The type of Modbus register.

Coli Status: Coils
Input Status: Discrete
Holding Register: Holding
Input Register: Input

"register_type": "Holding"

modbus_data_type

The data type of the register value.

Signed Integer 16: Int16

Signed Integer 32: Int32

Signed Integer 64: Int64

Unsigned Integer 16: UInt16

Unsigned Integer 32: UInt32

Unsigned Integer 64: UInt64

Float 32: Float32

Double 64: Float64

Unsigned Integer 8 MSB: UInt8_M

Unsigned Integer 8 LSB: UInt8_L

Signed Integer 8 MSB: Int8_M

Signed Integer 8 LSB: Int8_L

"modbus_data_type": "Int32"

multiplier

A scaling factor applied to the raw register value. Defaults to 1.

Integer

"multiplier": 1

offset

A value added to the scaled result after the multiplier is applied. Defaults to 0.

Float

"offset": 0

endianness

The byte order used to read the register value.

Big Endian (AB): AB

Little Endian (BA): BA

Big Endian (ABCD): ABCD

Mid-Big Endian (BADC): BADC

Mid-Little Endian (CDAB): CDAB

Little Endian (DCBA): DCBA

Double Big Endian (ABCDEFGH): ABCDEFGH

Double Little Endian (HGFEDCBA): HGFEDCBA

Double Big Endian Byte Swap (BADCFEHG): BADCFEHG

Double Little Endian Byte Swap (GHEFCDAB): GHEFCDAB

 

"endianness": "AB"

access_direction

The read/write permission for the register.

Read: R

Write: W

Read & Write: RW

"access_direction": "RW"

Notes Note: The 'id' value is unique for each datapoint and can be obtained only by exporting the configuration. 

Here is an example of JSON and CSV configuration files updated with the values for the following datapoints:

  • phase3_active_power is mapped to address 4001 as a 32-bit signed integer with Big Endian (AB) byte order and read/write access.

  • phase1_voltage is mapped to address 4003 as a 32-bit float with Big Endian (ABCD) byte order and read-only access.

  • motor_torque is mapped to address 4005 as a 16-bit signed integer with Little Endian (BA) byte order, a multiplier of 10, an offset of 5, and read-only access. The mapping is currently disabled (status: false).



JSON Example

[
  {
    "telemetry_name": "Motor Torque",
    "id": 6700000000203011,
    "status": true,
    "address": 4001,
    "register_type": "Holding",
    "modbus_data_type": "Int32",
    "multiplier": 1,
    "offset": 0,
    "endianness": "AB",
    "access_direction": "RW"
  },
  {
    "telemetry_name": "Phase3 Active Power",
    "id": 6700000000203016,
    "status": true,
    "address": 4003,
    "register_type": "Holding",
    "modbus_data_type": "Float32",
    "multiplier": 1,
    "offset": 0,
    "endianness": "ABCD",
    "access_direction": "R"
  },
  {
    "telemetry_name": "phase1_voltage",
    "id": 6700000000203019,
    "status": false,
    "address": 4005,
    "register_type": "Input",
    "modbus_data_type": "Int16",
    "multiplier": 10,
    "offset": 5,
    "endianness": "BA",
    "access_direction": "R"
  }
]
CSV Example

telemetry_name,id,status,address,register_type,modbus_data_type,multiplier,offset,endianness,access_direction
Motor Torque,6700000000203011,true,4001,Holding,Int32,1,0,AB,RW
Phase3 Active Power,6700000000203016,true,4003,Holding,Float32,1,0,ABCD,R
phase1_voltage,6700000000203019,false,4005,Input,Int16,10,5,BA,R

III. Importing the updated configurations

After updating the configurations, import them back in to complete the bulk update.
  1. Go back to the application, click Browse and select the updated file. The contents will be populated in the JSON/CSV display panel.







  2. Click Validate and Preview. A validation summary will appear confirming whether all values are correctly filled in.



  3. You can make inline edits if minor corrections are needed. 



  4. You can choose to exclude/include a particular modbus registry configuration by clicking Exclude/Include under the Actions column.



  5. Once you've reviewed and finalised the values, click Validate and Apply.



 The modbus registry configuration will be mapped to the corresponding datapoint. 
NotesNote: If there are too many validation errors, update the values in the downloaded JSON/CSV file and re-import it.



        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          Access your files securely from anywhere

            Zoho CRM Training Programs

            Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

            Zoho CRM Training
              Redefine the way you work
              with Zoho Workplace

                Zoho DataPrep Personalized Demo

                If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

                Zoho CRM Training

                  Create, share, and deliver

                  beautiful slides from anywhere.

                  Get Started Now


                    Zoho Sign now offers specialized one-on-one training for both administrators and developers.

                    BOOK A SESSION







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG


                                      All-in-one knowledge management and training platform for your employees and customers.

                                                Create. Review. Publish.

                                                Write, edit, collaborate on, and publish documents to different content management platforms.

                                                Get Started Now




                                                                  You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                                      Manage your brands on social media


                                                                        • Desk Community Learning Series


                                                                        • Digest


                                                                        • Functions


                                                                        • Meetups


                                                                        • Kbase


                                                                        • Resources


                                                                        • Glossary


                                                                        • Desk Marketplace


                                                                        • MVP Corner


                                                                        • Word of the Day


                                                                        • Ask the Experts


                                                                          Zoho Sheet Resources

                                                                           

                                                                              Zoho Forms Resources


                                                                                Secure your business
                                                                                communication with Zoho Mail


                                                                                Mail on the move with
                                                                                Zoho Mail mobile application

                                                                                  Stay on top of your schedule
                                                                                  at all times


                                                                                  Carry your calendar with you
                                                                                  Anytime, anywhere




                                                                                        Zoho Sign Resources

                                                                                          Sign, Paperless!

                                                                                          Sign and send business documents on the go!

                                                                                          Get Started Now




                                                                                                  Zoho TeamInbox Resources





                                                                                                            Zoho DataPrep Demo

                                                                                                            Get a personalized demo or POC

                                                                                                            REGISTER NOW


                                                                                                              Design. Discuss. Deliver.

                                                                                                              Create visually engaging stories with Zoho Show.

                                                                                                              Get Started Now








                                                                                                                                  • Related Articles

                                                                                                                                  • Modbus Registry Mapping

                                                                                                                                    Modbus registry mapping is the process of assigning registry specific details to parameters defined in the Modbus protocol, enabling a device to communicate and collect data. In Zoho IoT, Modbus registry mappings are configured when adding a ...
                                                                                                                                  • Configuring Modbus RTU over TCP

                                                                                                                                    With your gateway device running the Edge Lite, you can remotely push modbus based configurations to connected gateway devices to communicate with its device/sensor supporting Modbus RTU over TCP protocol directly from the Zoho IoT application. This ...
                                                                                                                                  • Configuring Fields: Modbus

                                                                                                                                    When a gateway is running Edge Lite and connected to a Zoho IoT application, you can remotely push configurations for devices that communicate to the gateway using the Modbus protocol. Based on the Modbus communication type, the application provides ...
                                                                                                                                  • Configuring Modbus RTU

                                                                                                                                    Zoho IoT applications allow you to remotely configure the RS485 port settings of a connected gateway and the required Modbus registry mapping for the slave devices, then deploy them to the gateway. Prerequisite The gateway or computer must be running ...
                                                                                                                                  • Configuring Modbus TCP

                                                                                                                                    Zoho IoT applications allow you to remotely send the Modbus registry mapping of the slave devices, to the gateway. Prerequisite: The gateway device or computer device must be running Edge Lite. The device added for the gateway/computer in the Zoho ...
                                                                                                                                    Wherever you are is as good as
                                                                                                                                    your workplace

                                                                                                                                      Resources

                                                                                                                                      Videos

                                                                                                                                      Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                                      eBooks

                                                                                                                                      Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                                      Webinars

                                                                                                                                      Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                                      CRM Tips

                                                                                                                                      Make the most of Zoho CRM with these useful tips.



                                                                                                                                        Zoho Show Resources