Forum Replies Created
-
AuthorPosts
-
gabeirinhasParticipant
Thanks
gabeirinhasParticipantThe real problem is that when I upload changes to the server, the last valid value is reset.
If this didn’t happen, I could implement this formula in a natural way, so I could add “DayStarted() function”.
Resetting the server on a scheduled basis at 00:00 I do this so that if I make changes to the server, they are not updated until 0:00 and it does not affect the performance of the formula.
gabeirinhasParticipantAttached is an updated formula.
The approach I use to update the value daily is to give a server reset scheduled for 00:00,
The previous formula was stored globally so it did not allow linking more than one channel.
The approach is as follows:
1. Implement the following formula in the formula dictionary ( it is put that the value cannot be less than -170, for reasons of errors in a transmitter):
Dictionary<int, double> lowestValues = new Dictionary<int, double>();
public double LowValue(double val, int channelNumber)
{if (!lowestValues.ContainsKey(channelNumber))
{lowestValues[channelNumber] = val;
}
else
{if (val >= -1700)
{
lowestValues[channelNumber] = Math.Min(lowestValues[channelNumber], val);
}
}return lowestValues[channelNumber];
}2. Use the following formula for a “Real” channel:
LowValue(Cnl, 1090) / 10
# Where 1090, is the channel number,
I hope it helps and someone is able to improve it so that the last recorded value is not lost when the server disconnects.
Regards
- This reply was modified 1 month, 3 weeks ago by gabeirinhas.
gabeirinhasParticipantHello,
Thank you, it has helped me
To be able to dump the values as I need them,
I must create a new table, where each of the columns corresponds to the value that I want to show,
Thanks for your help,
greetings
gabeirinhasParticipantHello,
I have questions about dbimport,
1. How could I do to communicate a sqlite database with the rapid scada environment. I have been trying without success.
2. When I communicate with a sql server database,
in “data retrieval”, I ask for the following fields as an example.SELECT value FROM tags WHERE name = ‘LT1’ ORDER BY stamp DESC
SELECT value FROM tags WHERE name = ‘PT1’ ORDER BY stamp DESC
However, I only get in tags data, the first data. How can I get both data.
Thanks in advance, greetings
gabeirinhasParticipantOk, I know where the mistake was
Path: http://localhost/Scada/MyPage/MyPage.html
Thanks for your help
Regards
gabeirinhasParticipantYes, it is configured in the same way.
I used the same example and it doesn’t work either,
Copy the custom directory into C:\SCADA\ScadaWeb\
Path = C:\SCADA\ScadaWeb\custom\MyPage.html
View Type = WebPageView
Title = HelloWorld\My PageUpload the configuration.
It keeps refreshing the page continuously
- This reply was modified 1 year, 5 months ago by gabeirinhas.
gabeirinhasParticipantI ve the following error, press f12
Landing.aspx?viewID=110:40 Not allowed to load local resource: file:///C:/SCADAScadaWebMyPage_AlsaP%C3%A1gina-1.html
(anonymous) @ Landing.aspx?viewID=110:40
setTimeout (async)
(anonymous) @ Landing.aspx?viewID=110:40
i @ jquery.min.js:2
fireWith @ jquery.min.js:2
ready @ jquery.min.js:2
J @ jquery.min.js:2thank u in advance
gabeirinhasParticipantOk, I have copied it to the directory and the error persists.
gabeirinhasParticipantWhere is the ClientApiSvc.svc file located?
I have the same error, the page keeps loading constantly.
Thanks in advance, greetings
- This reply was modified 1 year, 5 months ago by gabeirinhas.
October 26, 2022 at 12:44 pm in reply to: Digital Counter and calculate elapsed time for a channel in certain state #11430gabeirinhasParticipantSorry, I didn’t see it updated,
It works, thanks for the help
- This reply was modified 1 year, 6 months ago by gabeirinhas.
gabeirinhasParticipantHello,
This is as far as I have got,
The development of the memory areas that are read and written must be written to the dll.
I hope it helps those of you who know more about this to do it better,
https://drive.google.com/file/d/1NdM3AiUi2aXZfQgFRhetR87KOEv-2O0o/view?usp=sharing
Thank you, best regards
gabeirinhasParticipantHello,
I think I have found a better way,
I have seen the following development in visual studio,
https://www.codeproject.com/KB/system/878194/mcOMRON_demo.zip
And I have seen the following link from rapid scada
https://rapidscada.org/device-drivers-development/
>
I have tested the project in visual and it works correctly,
This development could be implemented as a rapid scada driver ?.
Could you help me with the development ?,
Thank you,
gabeirinhasParticipantIt sure helps,
You’ve made my day,
Thanks
-
AuthorPosts