gabeirinhas

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 54 total)
  • Author
    Posts
  • in reply to: Mail settings #14134
    gabeirinhas
    Participant

    Thanks

    in reply to: Formula lowestValue #14109
    gabeirinhas
    Participant

    The 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.

    in reply to: Formula lowestValue #14099
    gabeirinhas
    Participant

    Attached 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.
    in reply to: Using KpDBImport and SQL #11747
    gabeirinhas
    Participant

    Hello,

    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

    in reply to: Using KpDBImport and SQL #11743
    gabeirinhas
    Participant

    Hello,

    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

    in reply to: JavaScript API example custom page #11659
    gabeirinhas
    Participant

    Ok, I know where the mistake was

    Path: http://localhost/Scada/MyPage/MyPage.html

    Thanks for your help

    Regards

    in reply to: JavaScript API example custom page #11645
    gabeirinhas
    Participant

    Yes, 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 Page

    Upload the configuration.

    It keeps refreshing the page continuously

    • This reply was modified 1 year, 5 months ago by gabeirinhas.
    in reply to: JavaScript API example custom page #11640
    gabeirinhas
    Participant

    I 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:2

    thank u in advance

    in reply to: JavaScript API example custom page #11639
    gabeirinhas
    Participant

    Ok, I have copied it to the directory and the error persists.

    in reply to: JavaScript API example custom page #11637
    gabeirinhas
    Participant

    Where 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.
    gabeirinhas
    Participant

    Sorry, I didn’t see it updated,

    It works, thanks for the help

    • This reply was modified 1 year, 6 months ago by gabeirinhas.
    in reply to: Omron Fins Driver (Ethernet) #11429
    gabeirinhas
    Participant

    Hello,

    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

    in reply to: Omron Fins Driver (Ethernet) #11410
    gabeirinhas
    Participant
    in reply to: Omron Fins Driver (Ethernet) #11409
    gabeirinhas
    Participant

    Hello,

    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,

    in reply to: Omron Fins Driver (Ethernet) #11382
    gabeirinhas
    Participant

    It sure helps,

    You’ve made my day,

    Thanks

Viewing 15 posts - 1 through 15 (of 54 total)