Sending On / Off Commands to Modbus Register

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8613
    AvatarBill_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?

    1
    2
    3
    4

    TIA

    #8614
    AvatarBill_A
    Participant

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

    #8620
    MikhailMikhail
    Moderator

    OK

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