Compare values and send modbus value

Forum Home Forums Understanding the Software Using Formulas Compare values and send modbus value

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15453
    Mohbarah
    Participant

    Hello I want to do the following can you please give me instruction and if automatic control plugin can achieve this.

    what i will do i will compare 2 values and do a calculation to make it easier what i will do is the following

    val101 > val102 then

    newvalue = val101/8
    then send newvalue to 8 holding registers.

    #15462
    Mikhail
    Moderator

    Hello,
    You need to create a new channel of the Calculated type with a formula
    Val(101) > Val(102) ? 1 : 0
    Then use the number of the new channel in the module in the trigger. To use the channel value in a command, you need to set output formula of the channels that are used for sending commands: Val(101) / 8

    • This reply was modified 4 weeks, 1 day ago by Mikhail.
    • This reply was modified 4 weeks, 1 day ago by Mikhail.
    #15464
    Mikhail
    Moderator

    Send screenshots of the settings if you need more details.

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