Are Modbus Holding Registers writable from PLC?

Ulvis
2021-11-04
2021-11-08
  • Ulvis

    Ulvis - 2021-11-04

    It appears that Holding Registers are writable only from Modbus. These are then mapped to Codesys PLC variables. Is this mapping one-way only?
    For values updatable by PLC code I have used Input Registers.
    Is this by design?
    i.e. Scada (client) --> Modbus --> Holding Registers --> PLC (server)
    and Scada (client) <-- Modbus <-- Input Registers <-- PLC (server)

    Can Holding Registers be cleared in the PLC by PLC code? E.g. to clear a recieved command word after execution of local code.

     
  • Ulvis

    Ulvis - 2021-11-04

    That has been tried, but I will try again.

     
  • Ulvis

    Ulvis - 2021-11-08

    Yes, Indeed. The problem was that the register items were still of type %IWx, i.e. read only registers.
    Only after deleting the mapped variables and fiddeling with the number of registers setting in the 'General' tab, did the type change to %QWx, for writable registers. The user-program can now clear the received registers after processing.
    @i-campbell, Thanx.

     

Log in to post a comment.