國立台灣大學生物產業機電工程研究所 簡君良

18
國國國國國國國國國國國國國國國國國 國國國 National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Upload: brenna

Post on 16-Jan-2016

67 views

Category:

Documents


6 download

DESCRIPTION

國立台灣大學生物產業機電工程研究所 簡君良. 複製到 Windows\System32\ 資料夾下 在執行視窗中輸入 regsvr32 picocx.ocx. 程式撰寫. 本範例為 Visual Basic 2008 所撰寫 可由 http://www.microsoft.com/express/ 取得. 程式撰寫 ( 第一次使用 ). 程式撰寫 ( 第一次使用 ). 程式撰寫 ( 第一次使用 ). 程式撰寫 ( 第一次使用 ). 程式撰寫 ( 第一次使用 ). 說明接下來的動作 近一步研究構想 是否需要與更多人進行討論? 後續動作 將想法付諸實現. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: 國立台灣大學生物產業機電工程研究所   簡君良

國立台灣大學生物產業機電工程研究所 簡君良

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Page 2: 國立台灣大學生物產業機電工程研究所   簡君良

複製到Windows\System32\資料夾下 在執行視窗中輸入 regsvr32 picocx.ocx

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Page 3: 國立台灣大學生物產業機電工程研究所   簡君良

本範例為 Visual Basic 2008所撰寫 可由 http://www.microsoft.com/express/取得

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Page 4: 國立台灣大學生物產業機電工程研究所   簡君良

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Page 5: 國立台灣大學生物產業機電工程研究所   簡君良

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Page 6: 國立台灣大學生物產業機電工程研究所   簡君良

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Page 7: 國立台灣大學生物產業機電工程研究所   簡君良

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Page 8: 國立台灣大學生物產業機電工程研究所   簡君良

說明接下來的動作◦近一步研究構想◦是否需要與更多人進行討論?

後續動作◦將想法付諸實現

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Page 9: 國立台灣大學生物產業機電工程研究所   簡君良

在工具箱中已能看見PICOCX Control

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Page 10: 國立台灣大學生物產業機電工程研究所   簡君良

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Page 11: 國立台灣大學生物產業機電工程研究所   簡君良

AxPICOCX1.IP = "192.168.0.200"

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Page 12: 國立台灣大學生物產業機電工程研究所   簡君良

讀取類比資料◦AxPICOCX1.ADinp(PICOCXLib.PICNIC_PORT.P

ortA, 5)

讀取數位資料◦AxPICOCX1.Inp(PICOCXLib.PICNIC_PORT.Port

B, 3)

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Page 13: 國立台灣大學生物產業機電工程研究所   簡君良

數位輸出◦Call

AxPICOCX1.Outp(PICOCXLib.PICNIC_PORT.PortB,

4, PICOCXLib.LOGIC.High)

◦Call

AxPICOCX1.Outp(PICOCXLib.PICNIC_PORT.PortB,

4, PICOCXLib.LOGIC.Low)

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Page 14: 國立台灣大學生物產業機電工程研究所   簡君良

Call AxPICOCX1.Dirp(PICOCXLib.PICNIC_PORT.PortB, 4, PICOCXLib.DIR.pinInput)

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

讀取 PORT為輸入或輸出AxPICOCX1.GetDirp(PICOCXLib.PICNIC_PORT.PortB, 4)

Page 15: 國立台灣大學生物產業機電工程研究所   簡君良

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Page 16: 國立台灣大學生物產業機電工程研究所   簡君良

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Page 17: 國立台灣大學生物產業機電工程研究所   簡君良

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering

Page 18: 國立台灣大學生物產業機電工程研究所   簡君良

National Taiwan University, College of Bio-Resources and Agriculture Department of Bio-Industrial Mechatronics Engineering