Пример #1
0
        public Object_Trigger addTrigger(DATABUILDERAXLibLB.DBPlcDevice dtype, string no, TriggerType ttype)
        {
            Object_Trigger trigger = new Object_Trigger();

            trigger.DeviceType  = dtype;
            trigger.StrNo       = no;
            trigger.TriggerType = ttype;
            triggers.Add(trigger);
            return(trigger);
        }
Пример #2
0
 public int ableTrigger(DATABUILDERAXLibLB.DBPlcDevice dtype, string no, bool enable)
 {
     for (int i = 0; i < triggers.Count; i++)
     {
         Object_Trigger trigger = triggers[i];
         if (trigger.DeviceType == dtype && trigger.StrNo == no)
         {
             trigger.Enable = enable;
             return(i);
         }
     }
     return(-1);
 }
Пример #3
0
 public int doReadDevice(DATABUILDERAXLibLB.DBPlcDevice type, string strNo)
 {
     _DeviceNo   = strNo;
     _DeviceType = type;
     return(doReadDevice());
 }
Пример #4
0
 public bool doWriteDevice(DATABUILDERAXLibLB.DBPlcDevice type, string strNo, int val)
 {
     _DeviceNo   = strNo;
     _DeviceType = type;
     return(doWriteDevice(val));
 }
Пример #5
0
 public bool doWriteDevice(DATABUILDERAXLibLB.DBPlcDevice type, string strNo, int val)
 {
     _DeviceNo = strNo;
     _DeviceType = type;
     return doWriteDevice(val);
 }
Пример #6
0
 public int doReadDevice(DATABUILDERAXLibLB.DBPlcDevice type, string strNo)
 {
     _DeviceNo = strNo;
     _DeviceType = type;
     return doReadDevice();
 }