Forum Replies Created
-
AuthorPosts
-
mjorge89
ParticipantHi,
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.
mjorge89
Participantthisis is the Output channel
mjorge89
Participantscreenshot of input and output cannels ohttps://1drv.ms/f/s!AlaelqREvpyek7tw3LEq5PUX46Yb1A
the 102 input channel is “Calculated Real”
mjorge89
ParticipantSory 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 youmjorge89
Participantthe cols refered in log are this “Convert.ToDouble(SetVal(102,1));”
mjorge89
Participantthe 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.
mjorge89
ParticipantI 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.mjorge89
ParticipantI 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” -
This reply was modified 8 years, 2 months ago by
-
AuthorPosts