Web application output value

Forum Home Forums Understanding the Software Web application output value

Tagged: 

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #2430
    mjorge89
    Participant

    Hi,

    I need to get the information in the web application, of the output channel. If I use the output channel or corresponding input channel id in the scheme editor, it will allway get “0”. The output channel receve commands from webapplication and externel device through communicator.

    #2431
    Mikhail
    Moderator

    Hi,
    Could you clarify your question?

    #2432
    mjorge89
    Participant

    I need for example a dinamic text to show info or a condition on dinamic image to know when a send a command the value in the command.
    for example: in web server.
    “imgx” Action-“send command” to output_channel-101 command_value-“0;1”.
    “imgy” Condition 101=1 “turns green”

    #2433
    mjorge89
    Participant

    I tried using “SetVal(102, CmdVal)” on Output channel 101, (102 Input Channel is a calculated real).

    Give me this error in server log file:

    2017-08-02 07:31:50 <POSTO117><SYSTEM><ERR> Error compiling the source code of the formulas:
    Line 483, column 100: error CS1502: A melhor correspondência do método sobrecarregado para ‘System.Convert.ToDouble(object)’ tem alguns argumentos inválidos
    Line 483, column 117: error CS1503: Argumento 1: não é possível converter de ‘void’ em ‘object’
    See the file C:\SCADA\ScadaServer\Log\CalcEngine.cs with the source code
    2017-08-02 07:31:50 <POSTO117><SYSTEM><ERR> Normal program execution is impossible.

    #2434
    manjey73
    Participant

    Do not use the entry formula in the actual (real) input channel.

    What do you have in the specified row CalcEngine.cs ?

    • This reply was modified 6 years, 8 months ago by manjey73.
    • This reply was modified 6 years, 8 months ago by manjey73.
    #2437
    mjorge89
    Participant

    the line in CalcEngine.cs: “public void CalcCmdVal101(ref double cmdVal) { try { BeginCalcCmdData(101, cmdVal, null); cmdVal = Convert.ToDouble(SetVal(102,1)); } finally { EndCalcCmdData(); }}”

    Im placing the formula in the output channel 101 (standard).

    • This reply was modified 6 years, 8 months ago by mjorge89.
    #2440
    mjorge89
    Participant

    the cols refered in log are this “Convert.ToDouble(SetVal(102,1));”

    #2441
    manjey73
    Participant

    In the output channel specified formula SetVal(65, Cmd)
    In CalcEngine.cs entry looks like this:
    public void CalcCmdVal65(ref double cmdVal) { try { BeginCalcCmdData(65, cmdVal, null); cmdVal = Convert.ToDouble(SetVal(65,Cmd)); } finally { EndCalcCmdData(); }}

    Why do you have so ?

    Convert.ToDouble(SetVal(102,1))

    #2442
    manjey73
    Participant

    Show a screenshot of the input channel 102 and specify what type of channel ?

    #2443
    mjorge89
    Participant

    Sory I has testing SetVal(102,1).

    if I set SetVal(102.Cmd) I get in CalcEngine.cs
    “public void CalcCmdVal102(ref double cmdVal) { try { BeginCalcCmdData(102, cmdVal, null); cmdVal = Convert.ToDouble(SetVal(102,Cmd)); } finally { EndCalcCmdData(); }}”
    The same as you

    #2444
    manjey73
    Participant

    The type of the input channel should be calculated (I do not know how it is in the English version is called)

    That is, it should not be data from some device and it should be a formula Val(102)

    • This reply was modified 6 years, 8 months ago by manjey73.
    #2446
    mjorge89
    Participant

    screenshot of input and output cannels ohttps://1drv.ms/f/s!AlaelqREvpyek7tw3LEq5PUX46Yb1A

    the 102 input channel is “Calculated Real”

    #2447
    manjey73
    Participant

    If the channel type is selected correctly for the input channel, there was a similar problem. It is necessary to update all the databases had something to do with them.
    Also had an error in CalcEngine.cs.
    Try the same formula on a different computer and a new installation of Scada to verify

    #2449
    mjorge89
    Participant

    thisis is the Output channel

    #2450
    manjey73
    Participant

    The presence or absence of the formula Val(102) in the entrance channel should not affect error and the inability of the server.
    However, without this formula in the calculated input channel not received value from the output channel.

    • This reply was modified 6 years, 8 months ago by manjey73.
Viewing 15 posts - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.