alexmtzrmz

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: export data to MS SQL #12409
    alexmtzrmz
    Participant

    https://ibb.co/TTYzhDx

    The log says nothing about it, is there something else I can do?

    in reply to: export data to MS SQL #12397
    alexmtzrmz
    Participant

    Hello 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/WnWW687

    in reply to: MQTT not reading messages #12371
    alexmtzrmz
    Participant

    Hello 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?

    in reply to: MQTT not reading messages #12319
    alexmtzrmz
    Participant

    Of 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 code

    in reply to: MQTT not reading messages #12303
    alexmtzrmz
    Participant

    Hello 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 here

    How can I access to that function in the original code?

    in reply to: MQTT not reading messages #12278
    alexmtzrmz
    Participant

    Oh great that works just perfect, thank you so much

    in reply to: MQTT not reading messages #12276
    alexmtzrmz
    Participant

    Okay, 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/hpEl9fm

    I 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?

    in reply to: MQTT not reading messages #12261
    alexmtzrmz
    Participant

    I have added the communication channel to MQTT and uploaded the configuration and the following errors appear

    https://imgur.com/a/ZNovwOC

    in reply to: MQTT not reading messages #12259
    alexmtzrmz
    Participant

    Hello,

    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:

    https://imgur.com/a/dt3OhP6

    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?

Viewing 9 posts - 1 through 9 (of 9 total)