ScadaSchemeEditor – Button use

Forum Home Forums Understanding the Software ScadaSchemeEditor – Button use

  • This topic has 18 replies, 3 voices, and was last updated 7 years ago by leon.
Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #4068
    leon
    Participant

    Hi

    I want to control ON/OFF separately with two buttons.
    Action is set to send command now
    It does not send commands according to command type(ON or OFF)
    Will only send 0 (OFF)

    Action is set to send command
    working normally

    Is it where I set the error?

    https://imgur.com/a/tXwCUFO

    • This topic was modified 7 years ago by leon.
    • This topic was modified 7 years ago by leon.
    #4071
    Mikhail
    Moderator

    Hi,
    You should write a formula of an output channel which determines what commands to send depending on the current state.

    #4072
    leon
    Participant

    Hi
    Can you demonstrate the formula settings?
    Let output channel on or off or reverse settings.

    Is there an article that can learn Formulas?
    I have seen Using Formulas(roadmap) still don’t know how to use it.

    #4073
    manjey73
    Participant

    example in the formula base: NOT

    public double NOT(double val)
    {
        bool boolVal = val > 0;
        return Convert.ToDouble(!boolVal);
    }

    In the output channel, write NOT (Cmd) and your command on the button will be changed to the opposite. Works only with 0 or 1 that actually follows from the name of the formula.

    It is not quite clear what you want to do with the separation of the buttons ?

    #4074
    manjey73
    Participant

    Command values

    Or you can use the standard command buttons from this database

    Sometimes the device should be fed not 0 or 1 but for example 256 or 512, then using the values for commands 1 and 2 additionally in the output channel multiply by 256 using the formula Cmd*256

    • This reply was modified 7 years ago by manjey73.
    #4076
    Mikhail
    Moderator

    Other way:
    Assume you have an input channel #100 for state of your machine.
    In this case formula for an output channel can be: Val(100) > 0 ? 0 : 1

    Article about using formulas is http://doc.rapidscada.net/content/en/software-configuration/using-formulas.html

    #4078
    leon
    Participant

    Hi manjey73
    Thank you very much, so I can understand why it is 256.
    https://imgur.com/a/M6i0G0E

    #4079
    leon
    Participant

    Hi Mikhail
    Thank you very much for your demonstration.
    I have read Article about using formulas because I don’t understand the rules of formula.
    Need some simple arithmetic examples to reference.

    • This reply was modified 7 years ago by leon.
    #4081
    manjey73
    Participant

    I do not know what you have for the relay fee, I bought Chinese with Modbus in the documentation which was specified as on and off.
    256 – off, 512 – on, 768 – toggle
    I always gave the command 1 and multiplied by 768 and the relay changed its state. In other boards can be on different. Therefore, I try not to buy boards, which do not have a description, and then here on the forum there was an example when the Chinese mixed up the sequence of bytes of the checksum in Modbus

    #4082
    leon
    Participant

    System architecture
    https://imgur.com/a/iqtz0F5

    I found that it can be to on
    Val(n)* 1

    • This reply was modified 7 years ago by leon.
    #4084
    leon
    Participant

    New question
    Can I define different buttons using different formulas in the same Number (19)?
    https://imgur.com/a/K6Gfpt1

    Can I omit the password?
    https://imgur.com/NGl3BMG

    • This reply was modified 7 years ago by leon.
    #4086
    manjey73
    Participant

    in WEB Main menu-Configuration-Require password when sending command

    #4087
    Mikhail
    Moderator

    Please create different topic for different questions to avoid mess.

    #4088
    Mikhail
    Moderator

    Can I define different buttons using different formulas in the same Number (19)?

    A set of buttons is fixed for an output channel.

    #4089
    leon
    Participant

    Hi manjey73
    Thank you for your hot reply.

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