Пример #1
0
        private bool SymbolX_Poke(string tagName, string value)
        {
            string plc, tag;

            SplitTagname(tagName, out plc, out tag);
            int res = CommLib.SymbolX_Poke(_handle, plc, tag, value, 1);

            return(res != 0);
        }
Пример #2
0
        private bool SymbolX_Advise(string tagName)
        {
            string plc, tag;

            SplitTagname(tagName, out plc, out tag);
            int res = CommLib.SymbolX_Advise(_handle, plc, tag);

            return(res != 0);
        }
Пример #3
0
 private void RegisterCOMMLIB(IntPtr handle)
 {
     if (InvokeRequired)
     {
         Invoke(new Action <IntPtr>(RegisterCOMMLIB), handle);
     }
     else
     {
         if (!_registered)
         {
             WM_COMMLIBX = WinUser32.RegisterWindowMessage("WM_COMMLIBX");
             _handle     = handle;
             uint res = CommLib.SymbolX_PassPointers(_handle);
             _registered = true;
         }
     }
 }
Пример #4
0
        private bool CommLib_RemoveIOManager(string host)
        {
            bool res = CommLib.CommLib_RemoveIOManager(host);

            return(res);
        }
Пример #5
0
 private void Click_ShowDiag(object sender, EventArgs e)
 {
     CommLib.CommLib_CommDiag(_handle);
 }
Пример #6
0
 private void Click_Show(object sender, EventArgs e)
 {
     CommLib.CommLib_Show();
 }