Config for Mod disappeared when I upload

Forum Home Forums Runtime Bugs Server Bugs Config for Mod disappeared when I upload

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7530
    Avataryuemiao
    Participant

    The Mod is my newly written code,the configuration it depends on always disappeared when I upload,Is it a bug?

    #7535
    MikhailMikhail
    Moderator

    Could you clarify the question?
    May be you should check that the configuration is located inside your project.

    #7542
    Avataryuemiao
    Participant

    C:\SCADA\ScadaServer\Config,I put config in this path

    #7544
    Avataryuemiao
    Participant

    In mod,send command ,return false,why?

    ///
    CommSettings settings = new CommSettings(ip, 10000, “ScadaServerCtrl”, “12345”, 1000);
    Log log = new Log(Log.Formats.Full);
    ServerComm = new ServerComm(settings, log);

    ///
    private bool SendCnd(int ctrlCnlNum, double cmdData)
    {
    bool sendOk;

    sendOk = ServerComm.SendStandardCommand(3, ctrlCnlNum, cmdData, out bool result);
    WriteToLog(“ctrlCnlNum: “+ ctrlCnlNum+ ” cmdData: “+ cmdData, Log.ActTypes.Action);
    WriteToLog(sendOk.ToString(), Log.ActTypes.Information);
    return sendOk;
    }

    ///
    SendCnd(102, 0);

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.