wjun7610
級別: 略有小成
|
圖片:
Omron_HostLink.dll V3.2 HostLink通信協議串口通訊動態鏈接庫DLL(以下簡稱DLL),是為滿足工業通信需要, 針對工業領域要求上位機對歐姆龍系列PLC通訊實時采集與控制的組態編程而設計。 本DLL是采用Delphi語言開發的標準串口通訊庫,具有以下特點: 1)、遵循歐姆龍HostLink通信協議; 2)、支持多串口并發操作,支持多線程串口通訊,將串口通訊對主程序的影響降至最低; 3)、實時性、可靠性好,通用性強; 4)、適用于多PLC(下位機)聯網和上位機通信,滿足多方面的需要; 5)、函數接口功能全,操作簡單,支持歐姆龍PLC的絕大部分地址的讀寫功能函數; 6)、支持USB、PC擴展卡等擴展串口號; 7)、支持多種操作系統win9x/win2000/winXP(標準Win32 DLL); 8)、易于快速開發(VC等非RAD開發環境的開發); 9)、更新原有函數調用方式采用數組調用數據發生與接收,初學者快速入門; 10)、可在多種編程環境下使用,例如VB、VC、Delphi、PB、Labview、易語言等開發環境; 11)、擴展了函數功能讀取下位機中的雙字、單精度浮點等類型數據,更加符合工業自動化領域的工控軟件的開發。 軟件版本更新及相關說明: Omron_HostLink.dll V3.2 HostLink通信協議串口通訊鏈接庫,實現了對歐姆 龍全系列PLC的HostLink協議的支持, (刪減了一些特權指令)wangjun于2010年在原有omron.dll V2.0版基礎上的更新版,重寫了函數結構,采用數據接收 和發送緩沖區(數組)方式傳遞,讀出和寫入單元數據使用更方便。對于16位整數和32位整數讀取寫入均按有符號整數 處理,小數的返回按單精度浮點型(2進制浮點)處理讀取方式。提供擴展功能函數,方便用戶實現混合數據讀取。 能夠同時滿足32個串口并發情況下的正常使用。 Omron_HostLink.dll V3.2 分為完美版和單機版兩個版本,本DLL于2010年最新規整優化了部分源碼, 通過DLL發送緩存區與接收緩存區數據傳遞的功能擴展,使多語言環境的使用更加便利。 全新的串口通信DLL控件,完美的VB、VC、delphi例程及工件手冊是,廣大立志利用各類高級語言進行上位機軟件開發的首先工具。 淘寶店:http://shop34821629.taobao.com 電 話:13912935690 025-84359545 騰訊QQ:157610979 郵 箱:157610979@QQ.com wjun7610@yahoo.com.cn chinawanglong@163.com |
---|---|
|
yamqq
雅馬哈,愛普生,電裝機器人。
級別: 網絡英雄
|
樓主,你out了,現在是基于fins的了!本來想把源碼貼出來,想想還是不要斷了你的財路,只把通訊協議貼一些出來吧 SUDT ACCESSPORT LOG FILE - Monitor mode 監控: COM8 創建時間: 2011-03-19, 14:35:30 計算機名: J2 系統版本: Microsoft Windows XP Professional Service Pack 3 (Build 2600) # Time Function Data ( Hex ) 1 [00000000] IRP_MJ_CREATE Port Opened - vb6.exe 2 [00000001] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600 3 [00000001] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 1, Parity: No, DataBits: 8 4 [00000010] IRP_MJ_CLOSE Port Closed 5 [00000000] IRP_MJ_CREATE Port Opened - vb6.exe 6 [00000000] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600 7 [00000001] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 1, Parity: No, DataBits: 8 8 [00000001] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600 9 [00000002] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 2, Parity: Even, DataBits: 7 10 [00000088] IRP_MJ_WRITE Length: 0017, Data: 40 30 30 52 44 30 30 30 31 30 30 30 31 35 36 2A 0D 11 [00002270] IRP_MJ_CLOSE Port Closed 12 [00000000] IRP_MJ_CREATE Port Opened - AccessPort.exe 13 [00000001] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600 14 [00000001] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 2, Parity: Even, DataBits: 7 15 [00000002] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600 16 [00000003] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 2, Parity: Even, DataBits: 7 17 [00000940] IRP_MJ_CLOSE Port Closed 18 [00000000] IRP_MJ_CREATE Port Opened - vb6.exe 19 [00000000] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600 20 [00000001] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 1, Parity: No, DataBits: 8 21 [00000010] IRP_MJ_CLOSE Port Closed 22 [00000000] IRP_MJ_CREATE Port Opened - vb6.exe 23 [00000001] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600 24 [00000002] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 1, Parity: No, DataBits: 8 25 [00000002] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600 26 [00000003] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 2, Parity: Even, DataBits: 7 27 [00000941] IRP_MJ_WRITE Length: 0017, Data: 40 30 30 52 44 30 30 30 31 30 30 30 31 35 36 2A 0D 28 [00001933] IRP_MJ_WRITE Length: 0017, Data: 40 30 30 57 44 30 30 30 31 30 30 30 32 35 30 2A 0D 29 [00002507] IRP_MJ_CLOSE Port Closed 30 [00000000] IRP_MJ_CREATE Port Opened - AccessPort.exe 31 [00000000] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600 32 [00000001] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 2, Parity: Even, DataBits: 7 33 [00000002] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600 34 [00000003] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 2, Parity: Even, DataBits: 7 35 [00000804] IRP_MJ_CLOSE Port Closed 36 [00000000] IRP_MJ_CREATE Port Opened - vb6.exe 37 [00000001] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600 38 [00000002] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 1, Parity: No, DataBits: 8 39 [00000009] IRP_MJ_CLOSE Port Closed 40 [00000000] IRP_MJ_CREATE Port Opened - vb6.exe 41 [00000001] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600 42 [00000001] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 1, Parity: No, DataBits: 8 43 [00000002] IOCTL_SERIAL_SET_BAUD_RATE Baud Rate: 9600 44 [00000002] IOCTL_SERIAL_SET_LINE_CONTROL StopBits: 2, Parity: Even, DataBits: 7 45 [00000093] IRP_MJ_WRITE Length: 0017, Data: 40 30 30 52 44 30 30 30 31 30 30 30 31 35 36 2A 0D 46 [00000177] IRP_MJ_WRITE Length: 0017, Data: 40 30 30 52 44 30 30 30 31 30 30 30 31 35 36 2A 0D 47 [00000190] IRP_MJ_WRITE Length: 0017, Data: 40 30 30 52 44 30 30 30 31 30 30 30 31 35 36 2A 0D 48 [00000293] IRP_MJ_CLOSE Port Closed @00FA00000000001018200000000017C*//d0讀 @00FA00000000001018200010000017D* D1讀 @00FA00000000001018200020000017E* D2讀 @00FA00000000001018200020000027D* D2D3 讀 @00FA00000000001018200020000027D* D2D3 可寫 @00FA0000000000101B2000000000106* H0 讀 @00FA0000000000101B2000000000106* H0 可寫 @00FA0000000000101B2000100000107* H1 讀 @00FA0000000000101B2000100000107* H1 可寫 @00FA0000000000101B2000200000104* H2 讀 @00FA0000000000101B2000200000104* H2 可寫 @00FA0000000000101B2000300000105* H3 讀 @00FA0000000000101B2000300000105* H3 可寫 @00FA0000000000101B2000300000206* H3H4讀 @00FA0000000000101B2000300000206* H3H4可寫 @00FA00000000001023100010100010176* 設置W1.1位置 @00FA00000000001023000640000010175* 寫100.00 @00FA000000000010130006400000177* 100.00 讀 @00FA000000000010130006401000176* 100.01 讀 @00FA000000000010130006402000175* 100.02 讀 @00FA000000000010130006500000176* 101.00 讀 @00FA000000000010130006501000177* 101.01 讀 @00FA000000000010130006502000174* 101.02 讀 @00FA000000000010130000000000175* 0.00 讀 @00FA000000000010130000001000174* 0.01 讀 @00FA000000000010130000002000177* 0.02 讀 @00FA000000000010130000100000174* 01.00讀 @00FA000000000010130000200000177* 02.00讀 @00FA000000000010131000000000174* W0.00 讀 @00FA000000000010131000001000175* W0.01 讀 @00FA000000000010131000002000176* W0.02 讀 @00FA000000000010131000002000176* W0.02 讀 @00FA000000000010131000100000175* W1.00讀 @00FA000000000010131000200000176* W2.00讀 @00FA000000000010189000000000177* T0讀 @00FA000000000010189000000000177* T0讀寫 @00FA000000000010189000100000176* T1讀 @00FA000000000010189000100000176* T1讀寫 @00FA000000000010189000200000175* T2讀 @00FA000000000010189000200000175* T2讀寫 @00FA000000000010189000000000177* C0讀 @00FA000000000010189000000000177* C0讀寫 @00FA000000000010189000100000176* C1讀 @00FA000000000010189000100000176* C1讀寫 @00FA000000000010189000100000176* C1讀寫并寫了上下限100-10 @00FA000000000010189000200000175* C2讀 @00FA000000000010189000200000175* C2讀寫 @00FA00000000001018900FA00000170* C250讀寫 @00FA00000000001018909C400000109* C2500讀寫 @00FA00000000001018909C40000020A* C2500 C2501讀寫 |
|
---|---|---|
|