Function in the output channel in v5 other than v6

Forum Home Forums Development and Integration Function in the output channel in v5 other than v6

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14334
    enviromixti
    Participant

    We are in the process of migrating to a new machine and a new version of Rapid SCADA from version 5.5.2.1 to 6.1.1.0. The old version was copied to a new version but it does not have the same names

    In version 5.5.2.1 and script that was created with the name CKLP

    https://ibb.co/ZLQdp51 Input Channels v5

    double CKLP(double val) {
         DateTime nowDT = DateTime.Now;
        if(val==1){
            return (Cnl);
        }
       else {
            if ((nowDT.Hour == 00) && (nowDT.Minute == 1)) { 
                return (0);
           } else {
                return (Cnl);
            }
        }
    } 

    In version 5.5.2.1 there is the Command Type: Standard

    http://ibb.co/r4R45Rp Output channels v5

    Web
    http://ibb.co/V93cyfh Web

    In version 6.1.1.0 the same v5 script with public inclusion

    https://ibb.co/NtvwqYk Input v6

    public double CKLP(double val) {
         DateTime nowDT = DateTime.Now;
        if(val==1){
            return (Cnl);
        }
       else {
            if ((nowDT.Hour == 00) && (nowDT.Minute == 1)) { 
                return (0);
           } else {
                return (Cnl);
            }
        }
    }

    In version 6.1.1.0 there is no Command Type: Standard
    https://ibb.co/qxkFxJs output channels v6

    what should I do now?

    • This topic was modified 1 year, 4 months ago by Mikhail.
    #14335
    enviromixti
    Participant

    output
    input
    v502
    Bot-o1
    Bot-o
    capri-5

    #14339
    Mikhail
    Moderator

    Hello,

    If I understand you correctly, the channel 5767 (Output) was created to set the value of the channel 5567 (Calculated).

    Try disabling the channel’s 5567 formula. Commands should work in this case. Next, you need to fix CKLP. Could you describe how CKLP should work?

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