Forum Replies Created
-
AuthorPosts
-
alexmtzrmz
ParticipantThe log says nothing about it, is there something else I can do?
alexmtzrmz
ParticipantHello Mikhail
I want to implement MSSQL to export the data I am storing in a channel to a database.
I know there is the module ModDbExport and I have set it up but the data base is not getting filled
Could you see if my settings are correct?
https://ibb.co/31Z364f
https://ibb.co/WxyQ9Fg
https://ibb.co/Sxk76w6
https://ibb.co/M9JjFmD
https://ibb.co/WnWW687alexmtzrmz
ParticipantHello Mikhail
I have migrated from the v5 to v6 of rapid scada, the situation here is that in v5 I was able to edit a file called MainMaster that was located in C:\SCADA\ScadaWeb
but now I checked the same directory and I cant find the file, do you know where I can find it so I can edit it?
alexmtzrmz
ParticipantOf course!
So I understand that the js file is a function that is being called from a bigger code where setValue() is defined
I’d like to know if it’s possible to have access to the main codealexmtzrmz
ParticipantHello Mikhail, I have a new question:
In this new JavaScript that you previously shared, you use a function setValue()
JavaScript supported by the new driver, but the names of the available functions changed.
See the example hereHow can I access to that function in the original code?
alexmtzrmz
ParticipantOh great that works just perfect, thank you so much
alexmtzrmz
ParticipantOkay, great, thanks for the consideration
I am able now to communicate and receive one data, as object
The problem now is that I can’t read arrays just as I could in the V5
What I did in the v5 was to use the JavaScript file that was in the CommConfig to process the incoming data
https://imgur.com/a/hpEl9fmI edited that file with my own code to read arrays
// Data example
// { “Val0”: 12.3, “Val1”: 45.6 …}
var data = JSON.parse(InMsg);
// Fill the array with consecutive numbers
for (let i = 0; i < data.length ; i++) {
jsvals[i].Stat = 1 ;
jsvals[i].Val = data[i] ;
jsvals[i].TagName = i.toString() ;
}
mylog(“Script completed successfully”);That code works good in v5, how could I do the same in v6?
alexmtzrmz
ParticipantI have added the communication channel to MQTT and uploaded the configuration and the following errors appear
alexmtzrmz
ParticipantHello,
I was able to create the same conection in Rapid SCADA 5
but then I tried it similarly on Rapid SCADA 6 and it did not work
I tried assigning MQTT as device type and this error appeared:
Then I tried to set it as MQTT Client and I stablished all the parameters with the broker, just as I had done on the v5 and the status of the Line remains undefined
Could I please get some support?
-
AuthorPosts