Forum Home › Forums › Understanding the Software › Web application output value
Tagged: output value
- This topic has 16 replies, 3 voices, and was last updated 6 years, 8 months ago by mjorge89.
-
AuthorPosts
-
August 1, 2017 at 2:16 pm #2430mjorge89Participant
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.
August 1, 2017 at 4:01 pm #2431MikhailModeratorHi,
Could you clarify your question?August 1, 2017 at 4:17 pm #2432mjorge89ParticipantI 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”August 2, 2017 at 6:37 am #2433mjorge89ParticipantI 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.August 2, 2017 at 7:23 am #2434manjey73ParticipantAugust 2, 2017 at 7:40 am #2437mjorge89Participantthe 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.
August 2, 2017 at 7:50 am #2440mjorge89Participantthe cols refered in log are this “Convert.ToDouble(SetVal(102,1));”
August 2, 2017 at 8:38 am #2441manjey73ParticipantIn 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))
August 2, 2017 at 8:39 am #2442manjey73ParticipantShow a screenshot of the input channel 102 and specify what type of channel ?
August 2, 2017 at 8:45 am #2443mjorge89ParticipantSory 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 youAugust 2, 2017 at 8:51 am #2444manjey73ParticipantThe 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.
August 2, 2017 at 8:55 am #2446mjorge89Participantscreenshot of input and output cannels ohttps://1drv.ms/f/s!AlaelqREvpyek7tw3LEq5PUX46Yb1A
the 102 input channel is “Calculated Real”
August 2, 2017 at 9:11 am #2447manjey73ParticipantIf 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 verifyAugust 2, 2017 at 9:50 am #2449mjorge89Participantthisis is the Output channel
August 2, 2017 at 11:18 am #2450manjey73ParticipantThe 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.
-
AuthorPosts
- You must be logged in to reply to this topic.