Showing results 1 to 2 of 2

Thread: MODRTU32 - Preset Multiple Registers (FC 16)

  1. #1
    Join Date

    Ausrufezeichen MODRTU32 - Preset Multiple Registers (FC 16)

    Dear Forum Community,

    I am using MODRTU32 driver in order to integrate some IED's in MODBUS TCP/IP. To execute commands I need to write two registers at the same time and when I create a new variable I only find the option 'Preset Single Register (FC 6)'. Is there a possibility to implement commands using Function Code 16 (Preset Multiple Registers) or similar? Or What about another MODBUS driver like MODBUS_ENERGY? 

    I am sharing IED documentation about MODBUS commands.

    Zenon version: Energy Edition 8.00 SP 0 Build 52082

    I would appreciate your help. Thank you in advance.

    Jose Alejandro
    Attached Thumbnails Attached Thumbnails MODBUS_FC16.png  

  2. #2

    Default Re: MODRTU32 - Preset Multiple Registers (FC 16)

    Hi Jose_Alejandro,

    Thanks for the post and welcome to the forum!

    Typically you would use the driver object type "Holding Register". Variables based of this driver object type cause the driver to use function code 3 for read requests and function code 16 for write requests.

    When you want to write multiple registers in a single request, you will need to activate the blockwrite function of the driver, in the project.ini file. (see the driver help for more information)

    Note that writing multiple registers in one request using the blockwrite feature, will only work for registers that have consecutive offsets. Also, it will only work up to a maximum of 123 consecutive registers in one request.

    "Preset Single Register (FC6)" is a special driver object type that uses function code 6 for compatibility with devices that do not support FC16. Variables based on this driver object type, are write only variables.

    The modbus_energy driver has the driver object type "register" which also uses function code 3 for reading and 16 for writing. The modbus_energy driver als supports the blockwrite feature.

    Best regards,

Similar Threads

  1. Reset Data on a Preset Period
    By shaun in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 2
    Last Post: 30th April 2019, 07:43
  2. MODRTU32 Timeout bei TCP/IP
    By michab in forum Drivers
    Replies: 1
    Last Post: 7th April 2017, 14:06
  3. modrtu32
    By anshasi in forum Engineering Studio Logic & Logic Service (former zenon Logic Workbench & Runtime)
    Replies: 3
    Last Post: 13th December 2015, 13:20
  4. Modrtu32
    By jahidbagwan in forum Drivers
    Replies: 3
    Last Post: 19th August 2014, 12:56
  5. Reading 64-bit registers via Modbus
    By shikra in forum Drivers
    Replies: 4
    Last Post: 19th November 2013, 11:59

Tags for this Thread

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts