Forum Replies Created
-
AuthorPosts
-
Rich Ex
ParticipantHi , ok thanks to you both .
Was just and observation and not in any way a criticism of the help which worked great .Thanks again.
RichRich Ex
ParticipantHi , 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
RichRich Ex
ParticipantHi 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
RichRich Ex
ParticipantRich Ex
ParticipantHi Mikhail & Manjey
Thank you for you help
Rich
Rich Ex
ParticipantHi 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
RichardRich Ex
ParticipantHi 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
RichRich Ex
ParticipantHi Mikhail
This list is to long , can I hide some of the channels from view ?
Thanks
RichardRich Ex
ParticipantHi 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 .
Rich Ex
ParticipantHi 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
Rich Ex
ParticipantHi 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
RichardRich Ex
ParticipantMikhail ,
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
RichRich Ex
Participant@manjay73
Yes if you could copy your driver and paste it here that would be very interesting .
Thanks
RichRich Ex
ParticipantMikhail , 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
-
AuthorPosts