setting output channel value on the base of data received

Forum Home Forums Understanding the Software setting output channel value on the base of data received

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #8644
    afzal
    Participant

    Hi
    i would like to know is it possible to implement following logic

    if inputchannel 201 value <800;
    wait 5 seconds
    write modbus value 3100 to output channel 801
    wait 5 seconds
    check if inputchannel 201 value==800
    set modbus value to 3100

    can you please help me, how to develop the formula?

    should i implement it in input channel or output channel ?

    Thanks
    Afzal

    #8646
    afzal
    Participant

    i am using this formula

    if (Val(110)<800)
    {
    SetVal(801, 32);
    }

    but it’s not working.
    input channel is 110
    output channel is 801, value is 32.
    i want to read input channel value and want to set the value of output channel.
    inbetween these 2 commands i want to put some delay.
    can you please help me out ?

    Thanks

    #8652
    Mikhail
    Moderator

    Hi,

    Definitely, you need Automatic Control Module. Even with the module it may be tricky.

      The idea is the following (using the module):

    1. Create a trigger that detects “inputchannel 201 value < 800"
    2. Send a command with 5s delay to “write modbus value 3100 to output channel 801”
    3. Send a command with 10s delay to “set modbus value to 3100”
    4. In the output channel formula for the 2nd command, check the required condition “inputchannel 201 value==800”

    In case of questions during implementation, post screenshots and description in this topic.

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