Multiple trigger conditions Automatic Control Forum Home › Forums › Understanding the Software › Using Formulas › Multiple trigger conditions Automatic Control This topic has 3 replies, 2 voices, and was last updated 2 years, 2 months ago by Mikhail. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts June 21, 2023 at 1:32 pm #12850 p.tranaviciusParticipant Hello, Is it possible to set multiple trigger conditions in Automatic Control module, For example: Input channel value = 1 AND Input channel 2 > 20 Much appreciated. Regards, Paulius June 22, 2023 at 10:50 am #12855 MikhailModerator Hello Paulius, You should create additional channel of the Calculated type to calculate a condition. Then use that channel in the trigger. June 22, 2023 at 10:58 am #12856 p.tranaviciusParticipant Something like the lines of code below in the formula? public double Mcon() { if (Val(1) > 1 && Val(2) = 20) // my 2 limits return 1; // my trigger status 1 else return 2; // my trigger status 2 } This reply was modified 2 years, 2 months ago by p.tranavicius. June 23, 2023 at 10:20 am #12858 MikhailModerator In general, yes. According to C/C++/C# syntax, the equality operator is == Also you can check channel status, for example, Stat(1) > 0 Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In