Rich Ex

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 50 total)
  • Author
    Posts
  • in reply to: Auto Logon #9946
    Rich Ex
    Participant

    Hi , ok thanks to you both .
    Was just and observation and not in any way a criticism of the help which worked great .

    Thanks again.
    Rich

    in reply to: Auto Logon #9929
    Rich Ex
    Participant

    Hi , please to report its all working great now .

    The issue was that for some reasons some errors got into Manjeys code . When I cut and pasted it Visual studio showed the ” ” ” ” characters gave errors , it reports = The character U+201c ““” is not a basic ASCII character = ,maybe we are using different keyboards not sure , anyway it works great now .

    //Working auto login with 20 sec delay …..
    $(document).ready(function () {
    $(“#txtUsername”).val(“guest”);
    $(“#txtPassword”).val(“12345”);
    sleep(20000).then(() => { document.getElementById(‘btnLogin’).click(); })
    });

    function sleep(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
    }

    Thanks for the help again
    Rich

    in reply to: Auto Logon #9925
    Rich Ex
    Participant

    Hi Manjey

    Tried the auto log on plugin , its not working .
    Double checked al the files are in the correct place but no problem found with that .
    When I log on its just as the old way with no automation , I checked my browser (Chrome) and that is set to allow js .
    I tried changing the log on details in the $(“#txtUsername”).val(“Admin”); but this di not make any difference to the Webstation logon screen .

    Any ideas what could be happening .

    Thanks
    Rich

    in reply to: Auto Logon #9924
    Rich Ex
    Participant

    Link

    • This reply was modified 2 years, 3 months ago by Mikhail.
    in reply to: Auto Logon #9887
    Rich Ex
    Participant

    @manjey73

    Can you give me a little help please .
    The script is just what I need , where and how do I insert it into RS ?
    I’m thinking it need to go into the Webstation folder , Scadaweb/js/ ?? is this correct .

    Thanks
    Rich

    • This reply was modified 2 years, 3 months ago by Mikhail.
    in reply to: Auto Logon #9864
    Rich Ex
    Participant

    Hi Mikhail & Manjey

    Thank you for you help

    Rich

    in reply to: ChartPro Quuestion . #9796
    Rich Ex
    Participant

    Hi Mikhail

    Hi yes I did think I could do that , would be nice and easy to just “hide” like in the table view …. maybe in the future .

    also <Where did you insert a link?>

    I had the link on one of my scheme pages so as the operator could just pull jut a complete graph …. it did not work ‘access denied ‘ error .

    Thank you
    Richard

    in reply to: ChartPro Quuestion . #9783
    Rich Ex
    Participant

    Hi Many Thanks

    On the same subject I then tried to add a link to a CharPro graph but kept getting ‘access denied’ . I used a link from a scheme , the link is http://10.0.0.72/Scada/plugins/ChartPro/ChartPro.aspx?cnlNums=14&viewIDs=2 , as I said this gives access denied .

    Maybe I should use a link from a XML file but I don’t know how to write this , help would be appreciated .

    Thanks as always
    Rich

    in reply to: ChartPro Quuestion . #9776
    Rich Ex
    Participant

    Hi Mikhail

    https://ibb.co/tmZ3CQn

    This list is to long , can I hide some of the channels from view ?

    Thanks
    Richard

    in reply to: Com Ports ? #9673
    Rich Ex
    Participant

    Hi Mikhail ,
    I would like to but I don’t think I have the c# skills to fully understand how to write the drive .

    Who knows the more I do with RS I may get to a point where I can .

    in reply to: Com Ports ? #9669
    Rich Ex
    Participant

    Hi All
    So as promised I have tried Mikhail’s code on my new RS set up .

    Well it works and it works well , so well indeed I have I now have 10 x ‘minute real’ channels reading in the data from the .txt files .

    So this is how I did it , I have written a simple program ‘getdata.exe’ using QB64 , this reads the RS232 port and takes the received 36 ASCII characters and chops them up using mid$ in the code and writes out 10 different .txt files with the individual numbers stored in them .

    Then in RS I have a formula called by a minute real channel

    double GetData()
    {
    System.Diagnostics.Process.Start(“C:\\Scada\\getdata.exe”);
    return 0 ;
    }

    Then I use the 10 x minute real channels to call in the data
    (this is just one of the formulas
    This part was the code Mikhail designed


    double ReadNickelA()
    {
    try
    {
    string s = System.IO.File.ReadAllText(@”C:\DataRecorder\NickleA.txt”);
    double val;
    return double.TryParse(s,out val) ? val : 0;
    }
    catch
    {
    return -2;
    }
    }

    Now I’m sure that lots of this is wrong , C# is still new to me but it all works fine and I don’t get any errors or lag on the server . So I am happy with it !

    Thanks for every one who made suggestions and help

    Rich

    in reply to: Com Ports ? #9660
    Rich Ex
    Participant

    Hi Mikhail ,

    Yes I can write my data to a text file no problem .
    I have a compiled a .exe file to do this now .

    I have not tried your formula yet , I don’t want to put it onto my live system incase I have issues as we use it our factory to monitor many devices .
    I will have to build Rapid Scada on another machine to use as a “test rig” i think .
    I will let you know .

    Thanks
    Richard

    in reply to: Com Ports ? #9657
    Rich Ex
    Participant

    Mikhail ,
    You said “Rapid SCADA supports COM ports. But you also need a driver (dll) ”
    So would device type be ‘ACC-RS232’ , I am struggling to find any documentation on the setting up of the device types .

    Sorry to be a pain but my system so far is all Scada driven which I understand , the RS232 device is turning into a pain !!

    Thanks
    Rich

    in reply to: Com Ports ? #9654
    Rich Ex
    Participant

    @manjay73

    Yes if you could copy your driver and paste it here that would be very interesting .
    Thanks
    Rich

    in reply to: Com Ports ? #9651
    Rich Ex
    Participant

    Mikhail , manjey73 , kumajaya .

    Thanks very much for you great suggestions . I will have a go and see how I get on with the different solutions … what a great forum this is ..

    Kind Regards , Rich

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