• <cite id="uwv89"></cite>
      1. 亚洲综合小综合中文字幕,国产久爱免费精品视频,精品国产品香蕉在线,国产午夜精品在人线播放,精品一二三四区在线观看,国产成人无码免费看视频软件 ,色欲久久人妻内射,午夜在线观看成人av
        vios1161
        級別: 略有小成
        精華主題: 0
        發帖數量: 187 個
        工控威望: 308 點
        下載積分: 670 分
        在線時間: 210(小時)
        注冊時間: 2016-07-30
        最后登錄: 2025-06-13
        查看vios1161的 主題 / 回貼
        樓主  發表于: 2016-11-26 01:07
        今天教的直接用 PC 程式來控制機臺 ( 臺灣丙級機電整合術科第一題 )
        用 PC 來程式…真的不方便,還是 Ladder 比較容易。
        附上程式
        PCtoPLC.rar (73 K) 下载次数:216
        private void timerAuto_Tick(object sender, EventArgs e)
                {
                    int a1 = X0[0];
                    int a0 = X0[1];
                    int s0 = X0[2];
                    int s1 = X0[3];
                    int p0 = X0[4];
                    int p1 = X0[5];
                    int p2 = X0[6];
                    int COS2 = X1[3];
                    int COS1 = X1[4];
                    int PB1 = X1[5];
                    int ST = X1[6];
                    int EMS = X1[7];
                    int A = Y0[0];
                    int R1 = Y0[2];
                    int R2 = Y0[4];
                    int R3 = Y0[5];
                    int BF = Y0[6];
                    int BB = Y0[7];
                    int RL = Y1[5];
                    int YL = Y1[6];
                    int GL = Y1[7];
                    switch (StepN0 )
                    {
                        case 1:
                            RL = 0; // Y15 紅燈滅
                            if (a0 == 1 && p0  == 1)
                            {
                                
                                GL = 1; // Y17 綠燈亮

                                if (COS1  == 1 && COS2 ==1 && ST ==1) // COS1 & COS2 & ST
                                {
                                    StepN0 = 2;
                                    TAuto = 0;
                                }
                            }
                            break;
                        case 2:
                            TAuto =TAuto +1;
                            if (TAuto == 10)
                            {
                                R1 = 1;
                                GL = 0;
                                if (s0 == 1)
                                {
                                    StepN0 = 3;
                                    TAuto = 0;
                                }
                            }
                            break;
                        case 3:
                            
                            TAuto =TAuto +1;
                            if(TAuto ==20 && s1 ==1)
                            {
                                StepN0 =4;
                            }
                            break;
                        case 4:
                            R1 =0;
                            if (R1 ==0)
                            {
                                A = 1;
                            }
                            
                            if(a1 ==1)
                            {
                                BF = 1;
                                TAuto = TAuto + 1;
                                    if (TAuto  == 20)
                                    {
                                StepN0 =5;
                                    }

                            }
                            break;
                        case 5:
                            A  = 0;
                            if(a0==1)
                            {
                                R2=1;
                                if (p1 ==1)
                                {

                                    TAuto = 0;
                                    StepN0 = 6;
                                }
                            }
                            
                            break;
                        case 6:
                            R2 = 0;
                            if(COS2 ==1)
                            {
                                TAuto = 0;
                                StepN0 = 7;
                            }
                            if (COS2 == 0 && ST==1)
                            {
                                TAuto = 0;
                                StepN0 = 7;
                            }
                            break;
                        case 7:
                            BF = 0;
                            BB = 1;
                            TAuto = TAuto + 1;
                                    if (TAuto  == 10)
                                    {
                                        R3 = 1;
                                        if(p0 ==1)
                                        {
                                            StepN0 = 8;
                                            TAuto = 0;
                                        }
                                    }
                                    break;
                        case 8:
                                    R3 = 0;
                                    TAuto = TAuto + 1;

                                    if (TAuto == 10)
                                    {
                                        StepN0 = 1;
                                    }
                                    break;
                    }

                
        [ 此帖被vios1161在2016-11-26 15:39重新編輯 ]
        source08
        級別: 網絡英雄
        精華主題: 0
        發帖數量: 543 個
        工控威望: 6775 點
        下載積分: 13076 分
        在線時間: 220(小時)
        注冊時間: 2011-03-01
        最后登錄: 2025-08-30
        查看source08的 主題 / 回貼
        1樓  發表于: 2016-11-26 08:47
        謝謝分享,學習了。

        主站蜘蛛池模板: 一区二区亚洲精品国产精| 久久av高潮av喷水av无码| 国产免费午夜福利蜜芽无码| 美日韩不卡一区二区三区| 九九热在线免费视频播放| 人妻丝袜无码专区视频网站| 国产一级特黄性生活大片| 国产精品美女一区二三区| 亚洲午夜福利精品一二飞| 老色批国产在线观看精品| 亚洲嫩模喷白浆在线观看| 国产L精品国产亚洲区在线观看 | 99精品国产中文字幕| 国产第一区二区三区精品| 亚洲日韩中文字幕在线播放| 日韩精品二区三区四区| 内地偷拍一区二区三区| 国产迷姦播放在线观看| 国产永久免费高清在线观看| 国产av一区二区久久蜜臀| 国产国拍亚洲精品永久软件| 日本一高清二区视频久二区| 樱桃视频影院在线播放| 蜜臀精品视频一区二区三区| 亚洲av无码精品蜜桃| 国产亚洲精品久久久久久无亚洲| 激情亚洲专区一区二区三区| 国产亚洲国产精品二区| av 日韩 人妻 黑人 综合 无码 | 国产一区二区三区色噜噜| 日韩精品一区二区三区在| 日韩精品中文字幕人妻| 成全我在线观看免费第二季| 国产精品一品二区三区日韩| 宝贝腿开大点我添添公视频免| 丝袜美腿视频一区二区三区| 国内熟妇与亚洲洲熟妇妇| 国产中文字幕日韩精品| 亚洲成在人线AⅤ中文字幕| 亚洲国产av一区二区| 婷婷久久综合九色综合88|