Sending On / Off Commands to Modbus Register

Forum Home Forums Communicating with Devices Modbus Sending On / Off Commands to Modbus Register

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8613
    Bill_A
    Participant

    Hi,

    I’m having trouble figuring out how to send On / Off commands to a Modbus Bool register.

    I have a single button to toggle the command, it works perfect when I enter in 0 or 1 then send the command however I’m wanting to have the option for On / Off instead of entering 0 or 1.

    I’ve configured the output channel to have ‘Command Values’ Off – On’. I get the display boxes when I click the button on the scheme but it does not send the message correctly to the modbus register. It comes up with fault. Error illegal command.

    I’m sure this is something simple and have tried different combinations to make it work. Surely I don’t have to write a formula to say If Off then = 0 or If On then = 1 for a simple on / off button?

    https://ibb.co/b7Tn7qH
    https://ibb.co/M7hpTyC
    https://ibb.co/NKDRzvq
    https://ibb.co/LprMzLr

    TIA

    #8614
    Bill_A
    Participant

    Disregard, I found a issue with a specific modbus register I was trying to alter.

    #8620
    Mikhail
    Moderator

    OK

    #9768
    gabeirinhas
    Participant

    I am trying to activate a bit through a button.

    I don’t know what I’m doing wrong in the configuration

    Can you help me please

    attached photos

    Thanks

    https://www.mediafire.com/file/mv9wahbevj4c9pt/modbus.rar/file

    #9772
    Mikhail
    Moderator

    Hello,
    Downloading RAR archives is not secure. Could you demonstrate the existing settings in this thread?
    What type of Modbus register do you need to set: coil or holding register?

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.