1 / 45

WinCon with EzProg-I

WinCon with EzProg-I. 報告人 : Frank Lin. 泓格科技 ICP DAS. Agenda. Machine Automation EzProg-I EzConfig EzHMI EzGo/EzMake Case Study. MA Application. 取放. 切割. 塗佈. 點膠. 鑽孔. SI 應用開發. SDK. Real Time System. 嵌入式系統. BSP. OS 移植. Real Time Operating System. Boot Loader.

mirit
Download Presentation

WinCon with EzProg-I

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. WinCon with EzProg-I 報告人: Frank Lin 泓格科技 ICP DAS 1

  2. Agenda • Machine Automation • EzProg-I • EzConfig • EzHMI • EzGo/EzMake • Case Study 2

  3. MA Application 取放 切割 塗佈 點膠 鑽孔 SI 應用開發 SDK Real Time System 嵌入式系統 BSP OS 移植 Real Time Operating System Boot Loader 3

  4. Machine Control Diagram Operator Display Sensor Machine HMI ? Logic Actuator Panel Motion Timer Interrupt 4

  5. Control Loop Structure 100 uS 1~2 ms 5~10 ms 50~100 ms 1 sec 5

  6. Real Time Task Execution Management HMI Logic Motion 1ms 5ms 50 ms 1 s 6

  7. Agenda • Machine Automation • EzProg-I • EzCore • EzConfig • EzHMI • EzGo/EzMake • Case Study 7

  8. EzProg-I Real Time Task Execution Motion Logic HMI ? Real Time Programming Method & Tool 8

  9. EzProg-I Structure EzHMI ActiveX HMI Control EzConfig Logic Control Motion Control EzGo EzMake EzCore Interrupt 9

  10. EzProg-I Learning Curve EzProg-I .NET eVC 10

  11. EzCore-1 Real Time Scheduler of WinCE • 32 processes • Multiple threads per process • 256 priority levels • Preemptive thread scheduler • Round-Robin for same priority thread schedule 11

  12. EzCore-2 Register M,T,C,D B,W,DW,F,DB Digital I/O IN_Xa(Xno) OUT_Y(Yno,on/off) Analog I/O IN_AI(AIno) OUT_AO(AOno,Vout) EzCore Interrupt RTSR USER 12

  13. EzCore-3 結構化的實時控制的程式設計 EzCore 初始化 宣告中斷處理程序 宣告定時執行程序 宣告USER執行程序 啟動中斷功能 啟動定時執行功能 啟動 USER執行程序 結束中斷功能 結束 USER執行程序 結束定時執行功能 EzCore 關閉 13

  14. Real Time Scan Thread 宣告定時執行程序 啟動定時執行功能 結束定時執行功能 ret=SCAN_ENGINE_START(); // EzCore Start if (ret == _NO_ERROR) { SET_M(200,true); //System initial ok SET_RTSR(0,&(ptTSRFunc)TSR_RUN,1000); START_RTSR(0); // Start real time scan thread SET_MSG(0,TEXT("start RTSR OK !!")); } 14

  15. AES Encryption EzCore-4 A x B=C C / B=A 硬體ID序號 SI系統金鑰 AES 加密 註冊碼產生 15

  16. AES Encryption EzConfig->Edit->Encrypt M6212 ButtonST MSG249 ColorEdit MSG245 Label 16

  17. Project Development Flow I/O 初始規劃-> EzConfig 人機畫面規劃-> EzHMI I/O 配置表、Device Initial IO 配線及測試 應用功能程式設計 Scan-Time Loop 功能修改配線調整 I/O、HMI綜合試機 17

  18. Agenda • Machine Automation • EzProg-I • EzConfig • EzHMI • EzGo/EzMake • Case Study 18

  19. EzConfig Positioning EzConfig AES Encryption Message Edit Digital I/O IN_Xa(Xno) OUT_Y(Yno,on/off) Analog I/O IN_AI(AIno) OUT_AO(AOno,Vout) Register M,T,C,D B,W,DW,F,DB EzCore Interrupt RTSR USER 19

  20. EzConfig-2 EzConfig for Wincon EzCore.DLL IO_Table.XML IO_Table.TXT Device.INI XXX.NOT • Slot Operation • Scan slot1~slot7 • Load .INI and .NOT files • Save .INI and .NOT files • Module Operation • Read IO_TABLE.XML • Write IO_TABLE.XML • Edit all registers 20

  21. DIO Configuration 設定中的模組 接點編號自動按 順序,以八進制產生. Y接點(DO),按下立即輸出 備註欄,可清楚說明各接點的應用 X接點(DI),立即反應狀態 21

  22. DIO Configuration Result 22

  23. 9 Types of Variable M Var. Edit 可供編寫文字字串,長度30個字元 和PLC相同的變數設定 輸入編號及相關註解 23

  24. Variable Map List Retain:設定在此範圍的變數,斷電仍會保持原值 MSG249為特別的字串輸入,所有文字皆以星號表示,適合保密性資料. 24

  25. EzConfig & EzCore PLC Style Programming in eVC 1.讀取AI/ DI IN_AI(01); IN_Xa(01) 2.輸出AO / DO OUT_AO(01,1.5); OUT_Y(01,true) 3.讀取AO / DO GET_AO(01); GET_Y(01); 4.設定 M 變數SET_M(01); 5.讀取 M 變數GET_Ma(01); GET_Mb(01); if (GET_Ma(5013) && IN_Xa(04) && IN_Xa(05)) //拍板量測基板寬度 OK { SET_F(2901,GET_F(3000)-I8094MF.GET_LP(cardNo, AXIS_X)*GET_F(2500));//存板寬值 X_STOP(); SET_T(200,false,100); SET_T(200,true,300); SET_M(5013,false); SET_M(5014,true); } 25

  26. Agenda • Machine Automation • EzProg-I • EzConfig • EzHMI • EzGo/EzMake • Case Study 26

  27. HMI Example 第一層 第二層 第三層 1 1.1 1.1.1 1.1.2 1.1.3 1.2 1.2.1 1.2.2 1.2.3 27

  28. EzHMI-1 How to do HMI development on WinCE ? ? 28

  29. DAQ Card DI/O Operation DAQ Card AI Operations EzHMI-2 VC++ with DAQ Card Library VB with DAQ Card Library VB with HMI ActiveX Object Operation Tool 500 Lines 730 Lines 400 Lines 200 Lines 120 Lines 130 Lines 29

  30. EzHMI-3 Features 1.可設定字型大小.顏色 2.可設定八種語系 3.可設定狀態改變時,對應的顏色 4.可指定與 EzConfig 的 變數連接 30

  31. EzHMI-4 • LED : 提供使用者量測或工控應用上相關燈號或發光二極體(LED)顯示與設定功能 • SWITCH : 提供使用者量測或工控應用上相關開闢顯示與設定功能 31

  32. LED Property LED 顯示的數量 顯示文字狀態 LED 之間的距離 選擇字型及語言(八種語系) LED 排列方式 LED 形狀 LED 外框 LED 顯示方向(上下) 文字顏色(ON) LED 顯示方向(左右) 文字顏色(OFF) LED 顏色(ON) LED 數值 LED 顏色(OFF) LED 更新時間 LED 背景顏色 LED 顯示項目 欲顯示在LED的位址 32

  33. EzHMI & EzCore 33

  34. Agenda • Machine Automation • EzProg-I • EzConfig • EzHMI • PACBasic Example • EzGo/EzMake • PCB Coater Example 34

  35. EzProg-I for PACBasic 形狀識別 35

  36. Agenda • Machine Automation • EzProg-I • EzConfig • EzHMI • PACBasic Example • EzGo/EzMake • PCB Coater Example 36

  37. I-8094F • 特色: • 4 軸控制 • 可接收外部手揺輪 • 4 段式自動歸原點功能 • 最高可達4 Mpps Pulse 輸出頻率 • 直線/圓弧 插補功能 • 位置比對功能 • 雜訊數位濾波 • 同步運動 • FRnet 可廣充128DI/128DO 37

  38. EzGo Utility • Configuration • Basic Operation 38

  39. Configuration Set Motion I/O Set INT Factor Set Pulse & Encoder mode Show/Select Modules and Axes Set Servo I/O Set input I/O Filter 39

  40. Configuration • Show/Select Modules and Axis • Set Motion I/O • Set Servo I/O • Set Pulse & Encoder mode • Set input I/O Filter • Set INT Factor • Save config/Load config 40

  41. Basic Operation Move parameter Choose mode Show Motion I/O & Servo I/O & Encoder/Pulsestatus Show/select module and Axis Function List area Single Axis Home 41

  42. I-8094H 42

  43. EzMake Utility i-8094H API Assortment Main menu Control Button Edit Functions and Parameters Resource configuration for IT, MP, ISR, and MD Message Window and Status Window i-8094H API List 43

  44. EzProg-I for PCB Coater 7520A->422 Modbus 2 AO 控速 +計數器 J2S-A 一般IO 拍板 板寬 墨輪 44

  45. Conclusion • EzProg-I 的功能定位 • A set of modularized tool • A method of Real Time Programming • EzProg-I 的目標應用 • PLC with HMI + Motion Module • IPC with DOS + ISA bus cards 45

More Related