Comparing two values with using formula

Forum Home Forums Understanding the Software Using Formulas Comparing two values with using formula

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14544
    ibrahim eren
    Participant

    Hello,

    I want to compare a value entered through the scheme with a value read from a Modbus RTU device. If the entered value is greater than the read value, I want relay number 1 to activate; if it is smaller, I want the relay to deactivate or write a specific value to the holding register. How can I achieve this?

    Thank you.

    #14545
    Mikhail
    Moderator

    Hello,
    You need to add a new channel of the calculated type with a formula
    Val(101) > Val(102) ? 1 : 0
    where 101 and 102 the channels to compare.
    Then use Automatic Control Module to send command according to the value of the added channel.

    If you have questions during the implementation of the above solution, send screenshots of your settings.

    #14560
    ibrahim eren
    Participant

    Thanks Mikhail.

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