//設定掃描M2X4的Thread private void setHardwareScan() { FlowControl flowControl = ModulesFactory.FlowControlHelper.GetFlowControl("SYNTEKMotion"); FlowBase flowBase = new FlowBase(this.DeviceName, systemScan); flowControl.AddFlowBase(flowBase); flowBase.Start(); //systemScanThread = new Thread(systemScan); //systemScanThread.IsBackground = true; //systemScanThread.Start(); keyOfIOStatus = true; }
public L122DIO(ModulesType modulesType, string parameterFolderPath, string deviceName) : base(modulesType, parameterFolderPath, deviceName) { dIOPara = Parameter as ParameterL122DIO; //system scan FlowControl flowControl = ModulesFactory.FlowControlHelper.GetFlowControl("SYNTEKMotion"); FlowBase flowBase = new FlowBase(this.DeviceName, systemScan); flowControl.AddFlowBase(flowBase); flowBase.Start(); //systemScanThread = new Thread(systemScan); //systemScanThread.IsBackground = true; //systemScanThread.Start(); keyOfIOScan = true; }
public CEtherCATADC8124(ModulesType modulesType, string parameterFolderPath, string deviceName) : base(modulesType, parameterFolderPath, deviceName) { adcPara = Parameter as ParameterCEtherCATADC8124; slaveModuleInitialize(); ADCInitialize(); //system scan FlowControl flowControl = ModulesFactory.FlowControlHelper.GetFlowControl("SYNTEKMotion"); FlowBase flowBase = new FlowBase(this.DeviceName, systemScan); flowControl.AddFlowBase(flowBase); flowBase.Start(); keyOfIOScan = true; }
public CEtherCATDI6022(ModulesType modulesType, string parameterFolderPath, string deviceName) : base(modulesType, parameterFolderPath, deviceName) { dIOPara = Parameter as ParameterCEtherCATDI6022; slaveModuleInitialize(); if (ParameterDictionary.GetValue("DI6022BlockScan") == "true") { //system scan FlowControl flowControl = ModulesFactory.FlowControlHelper.GetFlowControl("SYNTEKMotion"); FlowBase flowBase = new FlowBase(this.DeviceName, systemScan); flowControl.AddFlowBase(flowBase); flowBase.Start(); } keyOfIOScan = true; }