mjorge89

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: Web application output value #2456
    mjorge89
    Participant

    Hi,

    Finally solved the issue. The problem was in the communicator config. I had the wrong byte order for the corresponding signal, so it walways read “0” in the channel.

    Tanks manjey73 and Mikhail for your help.

    in reply to: Web application output value #2449
    mjorge89
    Participant

    thisis is the Output channel

    in reply to: Web application output value #2446
    mjorge89
    Participant

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

    the 102 input channel is “Calculated Real”

    in reply to: Web application output value #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

    in reply to: Web application output value #2440
    mjorge89
    Participant

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

    in reply to: Web application output value #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 8 years, 2 months ago by mjorge89.
    in reply to: Web application output value #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.

    in reply to: Web application output value #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”

Viewing 8 posts - 1 through 8 (of 8 total)