Using Formulas to count values and send them to MODBUS

Forum Home Forums Understanding the Software Using Formulas Using Formulas to count values and send them to MODBUS

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13554
    DHague
    Participant

    Hi,

    I have a channel that acts as a counter. I need to have the value of the channel reflected in a MODBUS device. Right now I am able to get the counter to work and have the value of the channel to go up or have the value of the MODBUS register be displayed in my scheme.

    I have set my channel to “calculated/output” and gave it a formula to add 1 every second (EverySec(() +> Val() + 1)) and I have another channel to output the value to MODBUS (data()).

    If I deactivate the counter formula the value from the MODBUS register is passed through and displayed.

    Is there a way to make a formula to add one to the value of the MODBUS register every second and then display that value in my scheme?

    Thanks

    #13557
    chika
    Participant

    I have displayed the push button (on-off) data with modbusRTU protocol in the table, and it has successfully appeared in scada. then I want to make a calculation of how many minutes the push button is on and off. can that be done? if possible how? Thank You

    #13559
    Mikhail
    Moderator

    Hi,
    To update a register on the Modbus device, you need to send a command to the device. To do that, you need Automatic Control Module. The module can trigger on the counter channel change and send a corresponding command.

    #13564
    Mikhail
    Moderator

    The question about measuring time should be in a separate topic. Thank you.

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