コード例 #1
0
ファイル: L122M2X4.cs プロジェクト: jajanuj/GitTest
        //設定掃描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;
        }
コード例 #2
0
        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;
        }
コード例 #3
0
        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;
        }
コード例 #4
0
ファイル: CEtherCATDI6022.cs プロジェクト: jajanuj/GitTest
        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;
        }