Win-GRAF-User_Manual-chinese V1.05

Size: px
Start display at page:

Download "Win-GRAF-User_Manual-chinese V1.05"

Transcription

1 第 13 章使用 VB.net 2008 程式來讀 / 寫 Win-GRAF 變數 本章以 Visual Studio.NET 2008 開發工具建立一個範例程式的方式來說明, 範例程式可以在 XP-8xx8-CE6, WP-8xx8, VP-x2x8-CE7, WP-5xx8-CE7 產品盒內附的 CD-ROM 內找到 VB.NET 光碟 : \napdos\win-graf\demo-project\vb.net_2008_demo\ demo_vb01 : 數位 I/O 範例, 搭配 I-87055W 模組 ( 於 Slot 0) demo_vb02 : 類比 I/O 範例, 搭配 I-87024W (Slot 1) 與 I-8017HW (Slot 2) 模組 demo_vb03 : 讀 / 寫 Win-GRAF Internal Integers, Timer, Real 以及 String 變數 ( 無需 I/O 模組 ) demo_vb04 : 讀 / 寫 Win-GRAF Internal String 變數 ( 無需 I/O 模組 ) Win-GRAF 光碟 : \napdos\win-graf\demo-project\ "demo_vb01.zip", "demo_vb02.zip", "demo_vb03.zip", "demo_vb04.zip" 13.1 如何回存 Win-GRAF 專案? 以下介紹如何把 Win-GRAF 範例程式, 回存到 Win-GRAF Workbench 中 首先, 滑鼠點選工具列 File -> Add Exiting Project -> FromZip, 並選擇想要回存的 Win-GRAF 專案 (zip 檔 ), 即可回存該專案 之後, 請執行編譯並將專案下載到 PAC 內 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 13-1

2 13.2 如何開放 Win-GRAF 變數給.NET 程式與 Soft-GRAF HMI 使用? Win-GRAF 中, 除了字串 (String) 變數之外, 其它欲開放的變數需在 "Binding" 設定中產生一個位址 才能提供.NET 程式或 Soft-GRAF HMI 進行存取 以下將示範如何開放變數 : 1. 滑鼠點選工具列上的 Open Binding Configuration 按鈕來開啟 Binding 視窗 2. 點選 "PUBLIC (:9000)" 來設定要公開的資料,"Address" 欄位無需填寫,"Port" 欄位固定為 "9000", 請勿更動 Open Binding Configuration "PUBLIC" 區不必 填寫 Address 變數區 3. 在設定公開資料之前, 您必須在變數區先建立好要公開的變數 滑鼠點選 Global variables 再按 Ins 鍵來新增變數項目, 下表為 Test_3 範例所使用的變數, 您可依實際需求來設定, 設定完 成後, 畫面如下 變數名稱 Public_BOOL Public_INT Public_DINT Public_WORD Public_REAL 資料型態 BOOL INT DINT WORD REAL Enter 鍵 4. 如下圖, 滑鼠點選在 "PUBLIC(:9000)", 接著選取變數區內欲公開的變數資料, 並將其拖曳到 "Name" 區域 "Identifier" 欄位會自動產生編號, 若其他 VB 或.Net 程式想取用變數資料, 需 設定一樣的 ID 編號 注意 : "PUBLIC" 最多可使用 8192 個變數,"Identifier" 編號只能是 "1 ~ 8192" Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 13-2

3 另外, 如需開放 Win-GRAF 的 String 變數, 可使用 "Pub_String" 函式 在 Win-GRAF 專案的程式裡, 加入此段 ST 語言程式 ( 您可回存 Win-GRAF demo_vb04 範例程式, 來查看以下程式內容 ) Pub_string(Address, String_val) ; Address: 開放的位址編號, 範圍可以是 1 ~ 1024 String_val: String 變數的名稱 變數 名稱型態說明 Init BOOL 初始化用, 初值設定為 True Tmp_val BOOL msg1 STRING, 字串長度為 100 msg2 STRING, 字串長度為 32 msg3 STRING, 字串長度為 60 判斷開放位址是否成功 True 表示成功,"False" 表示失敗 欲開放的 String 變數 注意 : 字串長度可以是 1 ~ 255 程式內容 : If init then Init := false; (* 開放位址為 1 的字串值 *) Tmp_val := pub_string(1,msg1); (* 開放位址為 2 的字串值 *) Tmp_val := pub_string(2,msg2); (* 開放位址為 3 的字串值 *) Tmp_val := pub_string(3,msg3); End_if; Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 13-3

4 13.3 建立 VB.NET 新專案 1. 開啟微軟 Visual Studio.NET 2008 軟體, 點選 [File] > [New Project] 2. 點選 [Smart Device] > [.NET frame work 3.5] > [Smart Device Project], 在下方輸入專案名稱 ( 本例 : project1), 然後按 OK 點選 [Device Application] > [Windows CE] > [.NET Compact Framework Version 3.5], 然後按 OK 2 1 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 13-4

5 加入專案參考 (Project Reference) UserShareNet 程式庫 (Library) 中包含了所有要跟 Win-GRAF 專案交換資料用的函式 (Function), 而在程式裡使用 UserShare 關鍵字之前, 您必須在應用程式的參考清單裡加入參考 : UserShareNet.dll 1. 請於出貨光碟中 (\napdos\win-graf\demo-project\demo_vb01\vb01\), 將 UserShareNet.dll 檔 複製到目前專案的位置底下 ( 例如 : "C:\project1") 2. 滑鼠右鍵點擊 Solution Explorer 視窗中的專案名稱 ( 例如 : "project1"), 再選擇 Add Reference 滑鼠右鍵 3. 點選 Browse 頁籤, 並切換到目前的專案位置 ( 例如 : "C:\project1"), 再選擇 UserShareNet.dll, 並按 OK 即完成了 切換到目前的專案位置 ( 例如 : "C:\project1") 註 : 加入 UserShareNet.dll 後, 下次需開發新專案時, 即可從先前開發的專案目錄中 ( 例如 : "C:\project1"), 將此檔案複製並加入到新的專案中, 或是, 可預先從光碟中複製 UserShareNet.dll 到固定路徑中 ( 例如 : "C:\dll_lib") Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 13-5

6 4. 加入 UserShareNet.dll 後, 請雙擊專案的 My Project, 確認是否已加入 UserShareNet.dll 雙擊滑鼠 5. 以滑鼠右鍵點選 Form1.vb, 選擇 View Code, 並在第一 二行插入 Option Explicit On 與 Imports UserShareNet ( 如下圖 ) 右鍵 接著, 就可以在您的 VB 表格中設計所需的物件與動作了 請參考 13.5 節的說明來使用 UserShareNet.dll" 內的函式, 來讀 / 寫 Win-GRAF 專案內的變數資料 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 13-6

7 13.4 編譯應用程式 程式編寫完成後, 請依照以下步驟來編譯 (Build) 並產生一個執行檔 (.exe) 1. 請記得隨時按下 Save All 工具按鈕來存檔 2. 點選 Build > Build project1 來編譯此專案 (project1), 於 Error List 視窗中會顯示編譯結果 3. 編譯完成後, 執行檔會存放在以下目錄中 < 您的 VB.net 專案資料夾 > \bin\release\ <project_name>.exe 請將此執行檔 ( 例如 : project1.exe ) 複製到 PAC 的 \System_Disk\Win-GRAF\ 目錄下來執行 注意 : 使用者可複製 VB.net 執行檔到其他目錄下執行, 但請記得同時複製相關的 DLL 檔案, 否則執行會有錯誤 例如 : 要在 \Micro_SD\ 目錄下執行 "project1.exe", 該目錄必須有以下 3 個檔案, 即 project1.exe UserShareNet.dll Quicker.dll 檔 ( 可在光碟的 \System_disk\Win-GRAF\ 目錄下取得 UserShareNet.dll 與 Quicker.dll 檔案 ) Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 13-7

8 13.5 "UserShareNet.DLL" 內的函式說明 本節著重於 "UserShareNet.DLL" 內的函式 (Function) 來進行說明 "UserShareNet.DLL" 提供了許多函式, 可用來讀 / 寫 Win-GRAF 專案裡的變數, 以下分為幾類 : 1. 讀 / 寫 Boolean 2. 讀 / 寫 8-bit 整數 3. 讀 / 寫 16-bit 整數 4. 讀 / 寫 32-bit 整數 5. 讀 / 寫 64-bit 整數 6. 讀 / 寫 32-bit 實數 7. 讀 / 寫 64-bit 實數 請參考附錄 A 來查看 Win-GRAF 變數的資料型態與範圍 讀 / 寫 Boolean 的函式 Set_BOOL 設定指定位址編號的 Boolean 變數值 UserShare.Set_BOOL ( iuseraddress As System.UInt16, ByVal istatus As byte) as Byte iuseraddress : 指定變數的位址編號 (1 ~ 8192) istatus : 設定變數的狀態 ; 例如 : istatus = 1 表示 "True",iStatus = 0 表示 "False" 設定位址 1 的 Win-GRAF Boolean 變數為 "True". UserShare.Set_BOOL(Convert.ToUInt16(1), 1) 光碟 : \napdos\win-graf\demo-project\vb.net_2008_demo\demo_vb01 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 13-8

9 Get_BOOL 讀出指定位址編號的 Boolean 變數值 UserShare.Get_BOOL ( iuseraddress As System.UInt16, ByRef istatus As byte) iuseraddress : 指定變數的位址編號 (1 ~ 8192) istatus : 取得變數的狀態 ;istatus = 1 表示 "True",iStatus = 0 表示 "False" 取得 Win-GRAF Boolean 位址編號 1 的變數狀態. Dim istatus As Byte UserShare.Get_BOOL(Convert.ToUInt16(1), istatus) 光碟 : \napdos\win-graf\demo-project\vb.net_2008_demo\demo_vb01 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 13-9

10 讀 / 寫整數的函式 Set_SINT Set_INT Set_DINT Set_LINT 設定指定位址編號的 Win-GRAF 8-bit Integer, 16-bit Integer, 32-bit Integer 及 64-bit Integer 變數值 UserShare.Set_SINT (ByVal iuseraddress As System.UInt16, ByVal istatus As SByte) As Byte UserShare.Set_INT (ByVal iuseraddress As System.UInt16, ByVal istatus As Short) As Byte UserShare.Set_DINT (ByVal iuseraddress As System.UInt16, ByVal istatus As Integer) As Byte UserShare.Set_LINT (ByVal iuseraddress As System.UInt16, ByVal istatus As long) As Byte iuseraddress : 指定變數的位址編號 (1 ~ 8192) istatus : 設定 8-bit Integer, 16-bit Integer, 32-bit Integer 及 64-bit Integer 值 設定 32-bit integer 值 到位址編號 1 的變數. UserShare.Set_DINT(Convert.ToUInt16(1), Convert.ToInt32( ) ) 設定 integer 值 到位址編號 2 的變數. UserShare.Set_INT(Convert.ToUInt16(3), Convert.ToInt16(-1234) ) 設定 64-bit integer 值 到位址編號 3 的變數. UserShare.Set_LINT(Convert.ToUInt16(3), Convert.ToInt64( ) ) 設定 8-bit integer 值 125 到位址編號 4 的變數. UserShare.Set_SINT(Convert.ToUInt16(3), Convert.ToSByte(125) ) 光碟 : 1. 讀 / 寫類比 I/O: \napdos\win-graf\demo-project\vb.net_2008_demo\demo_vb02 2. 讀 / 寫 Internal long integer Timer 及 Real ( 浮點數 ) 的值 : \napdos\win-graf\demo-project\vb.net_2008_demo\demo_vb03 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 13-10

11 Get_SINT Get_INT Get_DINT Get_LINT 讀出指定位址編號的 Win-GRAF 8-bit Integer, 16-bit Integer, 32-bit Integer 及 64-bit Integer 變數值 UserShare. Get_SINT (ByVal iuseraddress As System.UInt16, ByRef istatus As SByte) As Byte UserShare. Get_INT (ByVal iuseraddress As System.UInt16, ByRef istatus As Short) As Byte UserShare.Get_DINT (ByVal iuseraddress As System.UInt16, ByRef istatus As Integer) As Byte UserShare. Get_LINT (ByVal iuseraddress As System.UInt16, ByRef istatus As long) As Byte iuseraddress : 指定變數的位址編號 (1 ~ 8192) istatus : 取得 8-bit Integer, 16-bit Integer, 32-bit Integer 及 64-bit Integer 值 Dim Dlong_val As Int64 Dim short_val As Int16 Dim long_val As Int32 Dim Sbyte_val as sbyte 取得位址編號 7 的 64-bit 整數的變數值. UserShare.Get_LINT(Convert.ToUInt16(7), Dlong_val) 取得位址編號 8 的 32-bit 整數的變數值. UserShare.Get_DINT(Convert.ToUInt16(8), long_val) 取得位址編號 9 的 16-bit 整數的變數值. UserShare.Get_INT(Convert.ToUInt16(9), short_val) 取得位址編號 10 的 8-bit 整數的變數值. UserShare.Get_SINT(Convert.ToUInt16(9), sbyte_val) 光碟 : 1. 讀 / 寫類比 I/O: \napdos\win-graf\demo-project\vb.net_2008_demo\demo_vb02 2. 讀 / 寫 Internal long integer Timer 及 Real ( 浮點數 ) 的值 : \napdos\win-graf\demo-project\vb.net_2008_demo\demo_vb03 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 13-11

12 讀 / 寫實數的函式 Get_REAL Get_LREAL 讀出指定位址編號的 Win-GRAF 32-bit Real 64-bit Real 變數值 UserShare. Get_REAL (ByVal iuseraddress As System.UInt16, ByRef istatus As Single) As Byte UserShare. Get_LREAL(ByVal iuseraddress As System.UInt16, ByRef istatus As Double) As Byte iuseraddress : 指定變數的位址編號 (1 ~ 8192) istatus : 取得浮點數數值 Dim float_val As Single Dim double_val As Double 取得位址編號 7 的 double 變數值. UserShare.Get_LREAL(Convert.ToUInt16(7), double_val) 取得位址編號 8 的 Single 變數值. UserShare.Get_REAL(Convert.ToUInt16(8), float_val) 光碟 : 1. 讀 / 寫類比 I/O: \napdos\win-graf\demo-project\vb.net_2008_demo\demo_vb02 2. 讀 / 寫 Internal long integer Timer 及 Real ( 浮點數 ) 的值 : \napdos\win-graf\demo-project\vb.net_2008_demo\demo_vb03 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 13-12

13 Set_REAL Set_LREAL 寫入指定位址編號的 Win-GRAF 32-bit Real 64-bit Real 變數值 UserShare. Set_REAL (ByVal iuseraddress As System.UInt16, ByVal istatus As Single) As Byte UserShare. Set_LREAL(ByVal iuseraddress As System.UInt16, ByVal istatus As Double) As Byte iuseraddress : 指定變數的位址編號 (1 ~ 8192) istatus : 設定浮點數數值 寫入 到位址編號 7 的變數 UserShare.Set_LREAL(Convert.ToUInt16(7),Convert.ToDouble( )) 寫入 到位址編號 8 的變數 UserShare.Set_REAL(Convert.ToUInt16(8), Convert.ToSingle (123.12)) 光碟 : 1. 讀 / 寫類比 I/O: \napdos\win-graf\demo-project\vb.net_2008_demo\demo_vb02 2. 讀 / 寫 Internal long integer Timer 及 Real ( 浮點數 ) 的值 : \napdos\win-graf\demo-project\vb.net_2008_demo\demo_vb03 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 13-13

14 讀 / 寫字串的函式 Get_STRING 讀取指定位址編號的 Win-GRAF 字串變數值 UserShare. Get_STRING (ByVal iuseraddress As System.UInt16, ByVal msg() As Byte) As Byte iuseraddress : 指定變數的位址編號 (1 ~ 1024) msg() : 取得 / 設定 Win-GRAF 的字串值 Dim str_val As String Dim msg() As Byte 取得位址編號 7 的 String 變數值. UserShare.Get_STRING(Convert.ToUInt16(7),msg ) str_val= byte_array_to_unicode(msg) Private Function byte_array_to_unicode(byval buf() As Byte) As String Dim tmpmsg As String If buf.length > 255 Then Return Nothing End If tmpmsg = System.Text.Encoding.GetEncoding("UTF-8").GetString(buf, 0, buf.length) Return tmpmsg End Function 光碟 : 1. 讀 / 寫 STRING 的值 : \napdos\win-graf\demo-project\vb.net_2008_demo\demo_vb04 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 13-14

15 Set_STRING 寫入指定位址編號的 Win-GRAF 字串值 UserShare. Set_STRING (ByVal iuseraddress As System.UInt16, ByVal msg() As Byte) As Byte iuseraddress : 指定變數的位址編號 (1 ~ 1024) msg() : 設定 Win-GRAF 的字串值 Dim str_val As String= Hellow World Dim msg() As Byte msg= unicode_to_byte_array(str_val) 寫入位址編號 7 的 String 變數值. UserShare.Set_STRING(Convert.ToUInt16(7),msg ) 轉換字串成 byte array Private Function unicode_to_byte_array(byval msg As String) As Byte() Dim tmpbuf() As Byte If msg.length > 255 Then Return Nothing End If tmpbuf = System.Text.Encoding.GetEncoding("UTF-8").GetBytes(msg) Return tmpbuf End_Function 光碟 : 1. 讀 / 寫 STRING 的值 : \napdos\win-graf\demo-project\vb.net_2008_demo\demo_vb04 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 13-15

16 如何讓 VB.NET 程式讀取 Win-GRAF 字串變數?.NET 應用程式如果要寫入字串變數, 必須根據目前使用的語言編碼 ( 例如 : UTF-8) 轉換成 byte 陣列才能寫入, 若是讀出字串變數的陣列內容, 則需要根據語言編碼轉換成字串 以下提供 VB.NET 程式轉換的範例 ( 編碼為 UTF-8 ): String 轉成 byte 陣列 Private Function unicode_to_byte_array(byval msg As String) As Byte() Dim tmpbuf() As Byte If msg.length > 255 Then Return Nothing End If tmpbuf = System.Text.Encoding.GetEncoding("UTF-8").GetBytes(msg) Return tmpbuf End Function byte 陣列轉字串 Private Function byte_array_to_unicode(byval buf() As Byte) As String Dim tmpmsg As String If buf.length > 255 Then Return Nothing End If tmpmsg = System.Text.Encoding.GetEncoding("UTF-8").GetString(buf, 0, buf.length) Return tmpmsg End Function Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 13-16

17 第 14 章使用 C# 程式來讀 / 寫 Win-GRAF 變數 本章以 Visual Studio.NET 2008 開發工具建立一個範例程式的方式來說明, 範例程式可以在 XP-8xx8-CE6, WP-8xx8, VP-x2x8-CE7, WP-5xx8-CE7 產品盒內附的 CD-ROM 內找到 C# 光碟 : \napdos\win-graf\demo-project\csharp.net_2008_demo\ demo_csharp01 : 數位 I/O 範例, 搭配 I-87055W 模組 ( 於 Slot 0) demo_csharp02 : 類比 I/O 範例, 搭配 I-87024W (Slot 1) 與 I-8017HW (Slot 2) 模組 demo_csharp03 : 讀 / 寫 Win-GRAF Internal Integer, Timer, 及 Real 變數 ( 無需 I/O 模組 ) demo_csharp04 : 讀 / 寫 Win-GRAF String 變數 ( 無需 I/O 模組 ) Win-GRAF 光碟 : \napdos\win-graf\demo-project\ "demo_vb01.zip", "demo_vb02.zip", "demo_vb03.zip", "demo_vb04.zip" 14.1 如何回存 Win-GRAF 專案? 請參考 13.1 節來回存 Win-GRAF 專案 14.2 如何開放 Win-GRAF 變數給 C# 程式使用? 請參考 13.2 節 - 開放 Win-GRAF 變數給.NET 程式使用的方式 14.3 建立 C# 新專案 1. 開啟微軟 Visual Studio.NET 2008, 點選功能表 [File] > [New Project] Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 14-1

18 2. 點選 [Smart Device] > [.NET frame work 3.5] > [Smart Device Project], 並輸入專案名稱 ( 例如 : "project1 ), 然後點選 "OK" 3. 點選 [Device Application] > [Windows CE] > [.NET Compact Framework Version 3.5], 然後點選 "OK" Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 14-2

19 加入 C# 專案參考 UserShareNet 程式庫 (Library) 中包含了所有要跟 Win-GRAF 專案交換資料用的函式, 而在程式裡 使用 UserShare 關鍵字之前, 您必須在應用程式的參考清單裡加入參考 : UserShareNet.dll 1. 請於出貨光碟中 (\napdos\win-graf\demo-project\demo_csharp01\demo_csharp01\), 將 UserShareNet.dll 檔複製到目前專案的位置底下 ( 例如 : "C:\project1") 2. 滑鼠右鍵點選 Solution Explorer 視窗中的 專案名稱 ( 例如 : "project1"), 再選擇 Add Reference 滑鼠右鍵 3. 點選 Browse 頁籤, 並切換到目前的專案位置 ( 例如 : "C:\project1"), 再選擇 UserShareNet.dll, 並按 OK 即完成了 切換到目前的專案位置 ( 例如 : "C:\project1") 註 : 加入 UserShareNet.dll 後, 下次需開發新專案時, 即可從先前開發的專案目錄中 ( 例如 : "C:\project1"), 將此檔案複製並加入到新的專案中 或是, 可預先從光碟中複製 UserShareNet.dll 到固定路徑中 ( 例如 : "C:\dll_lib") Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 14-3

20 4. 加入 UserShareNet.dll, 會出現在 Solution Explorer 視窗 5. 以滑鼠右鍵點選 Form1.cs, 選擇 View Code, 將游標移到最上方, 在第一個區段中加入 using UserShareNet 接著, 就可以在您的 C# 表單中設計所需的物件與動作了 請參考 14.5 節的說明來使用 UserShareNet.dll 內的函式, 來讀 / 寫 Win-GRAF 內的變數資料 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 14-4

21 14.4 編譯應用程式 程式編寫完成後, 請依照以下步驟來編譯 (Build) 並產生一個執行檔 (.exe) 1. 請記得隨時按下 Save All 工具按鈕來存檔 2. 點選 Build > Build project1 來編譯此專案 (project1), 於 Error List 視窗中會顯示編譯結果 3. 編譯完成後, 執行檔會存放在以下目錄中 < 您的 C#.net 專案資料夾 > \bin\release\ <project_name>.exe 請將此執行檔 ( 例如 : project1.exe ) 複製到 PAC 的 \System_Disk\Win-GRAF\ 目錄下來執行 注意 : 使用者可複製 C#.net 執行檔到其他目錄下執行, 但請記得同時複製相關的 DLL 檔案, 否則執行會有錯誤 例如 : 要在 \Micro_SD\ 目錄下執行 "project1.exe", 該目錄必須有以下 3 個檔案, 即 project1.exe UserShareNet.dll Quicker.dll 檔 ( 可在光碟的 \System_disk\Win-GRAF\ 目錄下取得 UserShareNet.dll 與 Quicker.dll 檔案 ) Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 14-5

22 14.5 "UserShareNET.DLL" 內的函式說明 本節將針對 "UserShareNet.DLL" 內的函式 (Function) 來進行說明 "UserShareNet.DLL" 提供了許多函式, 可用來讀 / 寫 Win-GRAF 專案裡的變數, 以下分為幾類 : 1. 讀 / 寫 Boolean 2. 讀 / 寫 8-bit 整數 3. 讀 / 寫 16-bit 整數 4. 讀 / 寫 32-bit 整數 5. 讀 / 寫 64-bit 整數 6. 讀 / 寫 32-bit 實數 7. 讀 / 寫 64-bit 實數 請參考附錄 A 來查看 Win-GRAF 的變數資料型態與範圍 讀 / 寫 Boolean 的函式 Set_BOOL 設定指定位址編號的 Win-GARF Boolean 變數值 UserShare.Set_BOOL(ushort iuseraddress, byte istatus) iuseraddress : 指定變數的位址編號 (1 ~ 8192) istatus : 設定變數的狀態 ; 例如 : istatus = 1 表示 "True",iStatus = 0 表示 "False" // 設定位址 1 的 Win-GRAF 變數為 True. UserShare.Set_BOOL(Convert.ToUInt16(1), 1); 光碟 : \napdos\win-graf\demo-project\csharp.net_2008_demo\demo_csharp01 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 14-6

23 Get_BOOL 讀出指定位址編號的 Win-GARF Boolean 變數值 UserShare.Get_BOOL(ushort iuseraddress, out byte istatus) iuseraddress : 指定變數位址編號 (1 ~ 8192) istatus : 取得變數的狀態 ;istatus = 1 表示 "True",iStatus = 0 表示 "False" Byte istatus=0; // 取得位址編號 1 的變數狀態. UserShare.Get_BOOL(Convert.ToUInt16(1),out istatus); 光碟 : \napdos\win-graf\demo-project\csharp.net_2008_demo\demo_csharp01 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 14-7

24 讀 / 寫整數的函式 Set_SINT Set_INT Set_DINT Set_LINT 設定指定位址編號的 Win-GRAF 8-bit Integer, 16-bit Integer, 32-bit Integer 及 64-bit Integer 變數值 UserShare.Set_SINT(ushort iuseraddress, sbyte istatus) UserShare.Set_INT(ushort iuseraddress, short istatus) UserShare.Set_DINT(ushort iuseraddress, int istatus) UserShare.Set_LINT(ushort iuseraddress, long istatus) iuseraddress : 指定變數的位址編號 (1 ~ 8192) istatus : 設定 8-bit Integer, 16-bit Integer, 32-bit Integer 及 64-bit Integer 值 // 設定 32-bit integer 值 到位址編號 1 的變數. int temp1= ; UserShare.Set_DINT(Convert.ToUInt16(1), temp ); // 設定 16-bit Integer 值 到 Modbus 位址編號 2 的變數. short temp2= -1234; UserShare.Set_INT(Convert.ToUInt16(2), temp2 ); // 設定 64-bit Integer 值 到位址編號 3 的變數. long temp3= ; UserShare.Set_LINT(Convert.ToUInt16(3), temp3 ); // 設定 8-bit Integer 125 值到位址編號 4 的變數. Sbyte temp4=125; UserShare.Set_SINT(Convert.ToUInt16(4), temp4 ); 光碟 : 1. 讀 / 寫類比 I/O: \napdos\win-graf\demo-project\csharp.net_2008_demo\demo_csharp02 2. 讀 / 寫 Internal long integer Timer 及 Real ( 浮點數 ) 的值 : \napdos\win-graf\demo-project\csharp.net_2008_demo\demo_csharp03 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 14-8

25 Get_SINT Get_INT Get_DINT Get_LINT 讀出指定位址編號的 Win-GRAF 8-bit Integer, 16-bit Integer, 32-bit Integer 及 64-bit Integer 變數值 UserShare.Get_SINT(ushort iuseraddress, out sbyte istatus) UserShare.Get_INT(ushort iuseraddress, out short istatus) UserShare.Get_DINT(ushort iuseraddress, out int istatus) UserShare.Get_LINT(ushort iuseraddress, out long istatus) iuseraddress : 指定變數的位址編號 (1 ~ 8192) istatus : 取得 8-bit Integer, 16-bit Integer, 32-bit Integer 及 64-bit Integer 值 Int64 Dlong_val; Int16 short_val; Int32 long_val ; sbyte sbyte_val; // 取得位址編號 7 的 64-bit 整數的變數值. UserShare.Get_LINT(Convert.ToUInt16(7),out Dlong_val); // 取得位址編號 8 的 32-bit 整數的變數值. UserShare.Get_DINT(Convert.ToUInt16(8),out long_val); // 取得位址編號 9 的 16-bit 整數的變數值. UserShare.Get_INT(Convert.ToUInt16(9),out short_val); // 取得位址編號 10 的 8-bit 整數的變數值. UserShare.Get_SINT(Convert.ToUInt16(9),out sbyte_val) 光碟 : 1. 讀 / 寫類比 I/O: \napdos\win-graf\demo-project\csharp.net_2008_demo\demo_csharp02 2. 讀 / 寫 Internal long integer Timer 及 Real ( 浮點數 ) 的值 : \napdos\win-graf\demo-project\csharp.net_2008_demo\demo_csharp03 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 14-9

26 讀 / 寫實數的函式 Get_REAL Get_LREAL 讀出指定位址編號的 Win-GRAF 32-bit Real 64-bit Real 變數值 UserShare. Get_REAL (System.UInt16 iuseraddress, out float istatus) UserShare. Get_LREAL(ByVal iuseraddress As System.UInt16, out Double istatus) iuseraddress : 指定變數的位址編號 (1 ~ 8192) istatus : 取得浮點數數值 float float_val; double double_val; // 取得位址編號 7 的 double 變數值. UserShare.Get_LREAL(Convert.ToUInt16(7),out double_val); // 取得位址編號 8 的 float 變數值. UserShare.Get_REAL(Convert.ToUInt16(8),out float_val); 光碟 : 1. 讀 / 寫類比 I/O: \napdos\win-graf\demo-project\csharp.net_2008_demo\demo_csharp02 2. 讀 / 寫 Internal long integer Timer 及 Real ( 浮點數 ) 的值 : \napdos\win-graf\demo-project\csharp.net_2008_demo\demo_ demo_csharp03 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 14-10

27 Set_REAL Set_LREAL 寫入指定的位址編號的 Win-GRAF 32-bit Real 64-bit Real 變數值 UserShare. Set_REAL ( ushort iuseraddress, float istatus ) UserShare. Set_LREAL( ushort iuseraddress, Double istatus) iuseraddress : 指定變數的位址編號 (1 ~ 8192) istatus : 設定浮點數數值 // 寫入 到位址編號 7 的變數 UserShare.Set_LREAL(Convert.ToUInt16(7),Convert.ToDouble( )); // 寫入 到位址編號 8 的變數 UserShare.Set_REAL(Convert.ToUInt16(8), Convert.ToSingle (123.12)); 光碟 : 1. 讀 / 寫類比 I/O: \napdos\win-graf\demo-project\csharp.net_2008_demo\demo_csharp02 2. 讀 / 寫 internal long integer Timer 及 Real ( 浮點數 ) 的值 : \napdos\win-graf\demo-project\csharp.net_2008_demo\demo_csharp03 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 14-11

28 讀 / 寫字串的函式 Set_STRING 寫入指定位址編號的 Win-GRAF 字串值 UserShare.Set_STRING (ushort addr, Byte [] msg) addr : 指定變數的位址編號 (1 ~ 1024) msg[] : 設定 Win-GRAF String 變數值 String str_val; Byte[] msg; // 寫入位址編號 7 的 String 變數值. msg= unicode_to_byte_array(str_val); UserShare.Set_STRING(Convert.ToUInt16(7),msg ); //String 轉成 byte 陣列 private byte[] unicode_to_byte_array(string msg) { byte[] tmpbuf; if (msg.length > 255) return null; } tmpbuf = Encoding.GetEncoding("UTF-8").GetBytes(msg); return tmpbuf; 光碟 : 1. 讀 / 寫 STRING 的值 : \napdos\win-graf\demo-project\csharp.net_2008_demo\demo_csharp04 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 14-12

29 Get_STRING 讀取指定位址編號的 Win-GRAF 字串變數值 UserShare.Set_STRING (ushort addr, Byte [] msg) addr : 指定變數的位址編號 (1 ~ 1024) msg[] : 設定 Win-GRAF String 變數值 String str_val= Hello World ; Byte[] msg; // 設定位址編號 7 的 String 變數值. UserShare.Get_STRING(Convert.ToUInt16(7),msg ); str_val= byte_array_to_unicode(msg); //byte 陣列轉字串 private string byte_array_to_unicode(byte[] buf) { string tmpmsg; if (buf.length > 255) return null; } tmpmsg = Encoding.GetEncoding("UTF-8").GetString(buf, 0, buf.length); return tmpmsg; 光碟 : 1. 讀 / 寫 STRING 的值 : \napdos\win-graf\demo-project\csharp.net_2008_demo\demo_csharp04 Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 14-13

30 如何讓 C # 程式讀取 Win-GRAF 字串變數?.NET 程式如果要寫入字串變數, 必須根據目前使用的語言編碼 ( 例如 : UTF-8) 轉換成 byte 陣列才能寫入, 若是讀出字串變數的陣列內容, 則需要根據語言編碼轉換成字串 以下提供 C# 程式轉換的範例 ( 編碼為 UTF-8 ): //String 轉成 byte 陣列 private byte[] unicode_to_byte_array(string msg) { byte[] tmpbuf; if (msg.length > 255) return null; } tmpbuf = Encoding.GetEncoding("UTF-8").GetBytes(msg); return tmpbuf; //byte 陣列轉字串 private string byte_array_to_unicode(byte[] buf) { string tmpmsg; if (buf.length > 255) return null; } tmpmsg = Encoding.GetEncoding("UTF-8").GetString(buf, 0, buf.length); return tmpmsg; Win-GRAF 使用手冊, 版, 2016 年 3 月 ICP DAS 14-14

Win-GRAF-User_Manual-chinese

Win-GRAF-User_Manual-chinese 第 3 章 Modbus Slave: 開放 Win-GRAF PAC 與 圖控 /HMI 軟體來相互溝通 在第 2 章的 Demo01 專案中, 說明了如何讀 / 寫 PAC 中的系統時間 ( 即 PAC_Time 程式 ) 與一個閃爍功能 ( 即 LD1 程式 ), 此章節將提供 Demo01 專案中的變數, 讓圖控軟體 ( 例如 : 泓格科技的 InduSoft ) 或 HMI 軟體來進行存取

More information

The golden pins of the PCI card can be oxidized after months or years

The golden pins of the PCI card can be oxidized after months or years Q. 如何在 LabWindows/CVI 編譯 DAQ Card 程式? A: 請參考至下列步驟 : 步驟 1: 安裝驅動程式 1. 安裝 UniDAQ 驅動程式 UniDAQ 驅動程式下載位置 : CD:\NAPDOS\PCI\UniDAQ\DLL\Driver\ ftp://ftp.icpdas.com/pub/cd/iocard/pci/napdos/pci/unidaq/dll/driver/

More information

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File 51 C 51 51 C C C C C C * 2003-3-30 pnzwzw@163.com C C C C KEIL uvision2 MCS51 PLM C VC++ 51 KEIL51 KEIL51 KEIL51 KEIL 2K DEMO C KEIL KEIL51 P 1 1 1 1-1 - 1 Project New Project 1 2 Windows 1 3 N C test

More information

TwinCAT 1. TwinCAT TwinCAT PLC PLC IEC TwinCAT TwinCAT Masc

TwinCAT 1. TwinCAT TwinCAT PLC PLC IEC TwinCAT TwinCAT Masc TwinCAT 2001.12.11 TwinCAT 1. TwinCAT... 3 2.... 4... 4...11 3. TwinCAT PLC... 13... 13 PLC IEC 61131-3... 14 4. TwinCAT... 17... 17 5. TwinCAT... 18... 18 6.... 19 Maschine.pro... 19... 27 7.... 31...

More information

TC35短信发送程序设计

TC35短信发送程序设计 http://www.dragonsoft.net.cn/down/project/tc35_sms.rar TC35 AT /down/book/tc35_at.pdf TC35/TC35i GSM Modem TC35 GSM POS COM SIM DOWN COM E, vbcr AT VB6.0 1)C# http://www.yesky.com/softchannel/72342380468109312/20040523/1800310.shtml,

More information

untitled

untitled 1 Outline 數 料 數 數 列 亂數 練 數 數 數 來 數 數 來 數 料 利 料 來 數 A-Z a-z _ () 不 數 0-9 數 不 數 SCHOOL School school 數 讀 school_name schoolname 易 不 C# my name 7_eleven B&Q new C# (1) public protected private params override

More information

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor 1 4.1.1.1 (Load) 14 1.1 1 4.1.1.2 (Save) 14 1.1.1 1 4.1.2 (Buffer) 16 1.1.2 1 4.1.3 (Device) 16 1.1.3 1 4.1.3.1 (Select Device) 16 2 4.1.3.2 (Device Info) 16 2.1 2 4.1.3.3 (Adapter) 17 2.1.1 CD-ROM 2 4.1.4

More information

1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET NET Framework.NET Framework 2.0 ( 3 ).NET Framework 2.0.NET F

1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET NET Framework.NET Framework 2.0 ( 3 ).NET Framework 2.0.NET F 1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET 2.0 2.0.NET Framework.NET Framework 2.0 ( 3).NET Framework 2.0.NET Framework ( System ) o o o o o o Boxing UnBoxing() o

More information

51 C 51 isp 10 C PCB C C C C KEIL

51 C 51 isp 10   C   PCB C C C C KEIL http://wwwispdowncom 51 C " + + " 51 AT89S51 In-System-Programming ISP 10 io 244 CPLD ATMEL PIC CPLD/FPGA ARM9 ISP http://wwwispdowncom/showoneproductasp?productid=15 51 C C C C C ispdown http://wwwispdowncom

More information

ActiveX Control

ActiveX Control ActiveX Control For Visual Basic 2005.NET [ 版本 : 1.0] 1 安裝 Windows 驅動程式 請依照下列步驟 : 1. 執行 Windows 驅動程式安裝程式 ( 此範例為 PIO-DIO) 驅動程式位置 : CD:\NAPDOS\PCI\PIO-DIO\dll_ocx\Driver http://ftp.icpdas.com/pub/cd/iocard/pci/napdos/pci/pio-dio/dll_ocx/driver/

More information

概述

概述 OPC Version 1.6 build 0910 KOSRDK Knight OPC Server Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOS_Init...5 2.2.2 KOS_InitB...5 2.2.3

More information

untitled

untitled MODBUS 1 MODBUS...1 1...4 1.1...4 1.2...4 1.3...4 1.4... 2...5 2.1...5 2.2...5 3...6 3.1 OPENSERIAL...6 3.2 CLOSESERIAL...8 3.3 RDMULTIBIT...8 3.4 RDMULTIWORD...9 3.5 WRTONEBIT...11 3.6 WRTONEWORD...12

More information

Spyder Anaconda Spyder Python Spyder Python Spyder Spyder Spyder 開始 \ 所有程式 \ Anaconda3 (64-bit) \ Spyder Spyder IPython Python IPython Sp

Spyder Anaconda Spyder Python Spyder Python Spyder Spyder Spyder 開始 \ 所有程式 \ Anaconda3 (64-bit) \ Spyder Spyder IPython Python IPython Sp 01 1.6 Spyder Anaconda Spyder Python Spyder Python Spyder Spyder 1.6.1 Spyder 開始 \ 所有程式 \ Anaconda3 (64-bit) \ Spyder Spyder IPython Python IPython Spyder Python File

More information

3.1 num = 3 ch = 'C' 2

3.1 num = 3 ch = 'C' 2 Java 1 3.1 num = 3 ch = 'C' 2 final 3.1 final : final final double PI=3.1415926; 3 3.2 4 int 3.2 (long int) (int) (short int) (byte) short sum; // sum 5 3.2 Java int long num=32967359818l; C:\java\app3_2.java:6:

More information

FY.DOC

FY.DOC 高 职 高 专 21 世 纪 规 划 教 材 C++ 程 序 设 计 邓 振 杰 主 编 贾 振 华 孟 庆 敏 副 主 编 人 民 邮 电 出 版 社 内 容 提 要 本 书 系 统 地 介 绍 C++ 语 言 的 基 本 概 念 基 本 语 法 和 编 程 方 法, 深 入 浅 出 地 讲 述 C++ 语 言 面 向 对 象 的 重 要 特 征 : 类 和 对 象 抽 象 封 装 继 承 等 主

More information

epub83-1

epub83-1 C++Builder 1 C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r 1.1 1.1.1 1-1 1. 1-1 1 2. 1-1 2 A c c e s s P a r a d o x Visual FoxPro 3. / C / S 2 C + + B u i l d e r / C

More information

投影片 1

投影片 1 資料庫管理程式 ( 補充教材 -Part2) 使用 ADO.NET 連結資料庫 ( 自行撰寫程式碼 以實現新增 刪除 修改等功能 ) Private Sub InsertButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InsertButton.Click ' 宣告相關的 Connection

More information

Win-GRAF-User_Manual-chinese

Win-GRAF-User_Manual-chinese 第5章 Modbus Master: 連接其它 Modbus Slave 設備 此章節將介紹如何啟用 Win-GRAF PAC 為 Modbus Master 來連接 Modbus RTU/ASCII Slave 或 Modbus TCP/UDP Slave 設備 如需在 WP-5xx8-CE7 使用 XV Board 請參考 5.1.6 節 ~ 5.1.12 節 5.1 啟用 Win-GRAF PAC

More information

如何將 WinCE5.0 程式昇級為 WEC7.0 程式 平台比較 CPU PXA270 CPU AM335x CPU 型號 WP-8x3x/WP-8x4x WP-514x/WP-515x VP-25Wx WP-8x2x/WP-9x2x WP-523x VP-x23x 作業系統版本 WinCE 5.

如何將 WinCE5.0 程式昇級為 WEC7.0 程式 平台比較 CPU PXA270 CPU AM335x CPU 型號 WP-8x3x/WP-8x4x WP-514x/WP-515x VP-25Wx WP-8x2x/WP-9x2x WP-523x VP-x23x 作業系統版本 WinCE 5. 程式移植 - 如何將 WinCE5.0 程式昇級為 WEC7.0 程式 - EVC 升級 - C#, VB.net 升級 - 使用 VS2008 開發的現有專案 Sean Hsu 編輯 最後編輯日 : 2016 八月 如何將 WinCE5.0 程式昇級為 WEC7.0 程式 平台比較 CPU PXA270 CPU AM335x CPU 型號 WP-8x3x/WP-8x4x WP-514x/WP-515x

More information

<4D F736F F D B0D3B77EC3FEA7DEC3C0C476C1C9A5BFA6A1B8D5C3442DB57BA6A1B35DAD702DBEC7ACEC2E646F6378>

<4D F736F F D B0D3B77EC3FEA7DEC3C0C476C1C9A5BFA6A1B8D5C3442DB57BA6A1B35DAD702DBEC7ACEC2E646F6378> 全國國高級中中等學校 105 學年度商商業類學學生技藝藝競賽 程式式設計 職職種 學學科 試試卷 崗位位編號 : 姓名 : 注意事項 : 請將答案案劃記於答案案卡, 未依依規定劃記者者不予計分分 試題說明 :( 選擇題每每題 4 分, 共 100 分 ) ( )1. 執行以下 Visual Basic 程式片段, 其結果為何?(A) 15 Dim i As Byte i = &HFC Console.WriteLine(Not

More information

Microsoft Word - 01.DOC

Microsoft Word - 01.DOC 第 1 章 JavaScript 简 介 JavaScript 是 NetScape 公 司 为 Navigator 浏 览 器 开 发 的, 是 写 在 HTML 文 件 中 的 一 种 脚 本 语 言, 能 实 现 网 页 内 容 的 交 互 显 示 当 用 户 在 客 户 端 显 示 该 网 页 时, 浏 览 器 就 会 执 行 JavaScript 程 序, 用 户 通 过 交 互 式 的

More information

840 提示 Excel - Excel -- Excel (=) Excel ch0.xlsx H5 =D5+E5+F5+G5 (=) = - Excel 00

840 提示 Excel - Excel -- Excel (=) Excel ch0.xlsx H5 =D5+E5+F5+G5 (=) = - Excel 00 Excel - - Excel - -4-5 840 提示 Excel - Excel -- Excel (=) Excel ch0.xlsx H5 =D5+E5+F5+G5 (=) = - Excel 00 ( 0 ) 智慧標籤 相關說明提示 -5 -- Excel 4 5 6 7 8 + - * / % ^ = < >= & 9 0 (:) (,) ( ) Chapter - :,

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 9 [P.11] : Dev C++ [P.12] : http://c.feis.tw [P.13] [P.14] [P.15] [P.17] [P.23] Dev C++ [P.24] [P.27] [P.34] C / C++ [P.35] 10 C / C++ C C++ C C++ C++ C ( ) C++

More information

Microsoft PowerPoint - OPVB1基本VB.ppt

Microsoft PowerPoint - OPVB1基本VB.ppt 大 綱 0.VB 能 做 什 麼? CH1 VB 基 本 認 識 1.VB 歷 史 與 版 本 2.VB 環 境 簡 介 3. 即 時 運 算 視 窗 1 0.VB 能 做 什 麼? Visual Basic =>VB=> 程 式 設 計 語 言 => 設 計 程 式 設 計 你 想 要 的 功 能 的 程 式 自 動 化 資 料 庫 計 算 模 擬 遊 戲 網 路 監 控 實 驗 輔 助 自 動

More information

Microsoft PowerPoint - VB14.ppt

Microsoft PowerPoint - VB14.ppt VB 列表盒 LISTBOX 應用 資科系 林偉川 執行畫面 1 2 1 重要屬性 LISTBOX 物件 (VB6) 新增至 LISTBOX 物件中 ADDITEM 自 LISTBOX 物件中刪除選取物件 REMOVEITEM 自 LISTBOX 物件中取出選取物件 ListIndex 顯示 LISTBOX 物件中紀錄個數 Listcount 3 LISTBOX 物件 (VB.NET) 重要屬性 新增至

More information

Microsoft Word - 小心翼翼的二十一點N.doc

Microsoft Word - 小心翼翼的二十一點N.doc 投 稿 類 別 : 資 訊 類 篇 名 : 小 心 翼 翼 的 二 十 一 點 作 者 : 陳 鈺 文 國 立 瑞 芳 高 級 工 業 職 業 學 校 資 訊 二 李 伯 謙 國 立 瑞 芳 高 級 工 業 職 業 學 校 資 訊 二 胡 家 媛 國 立 瑞 芳 高 級 工 業 職 業 學 校 資 訊 二 指 導 老 師 : 周 曉 玲 老 師 陳 思 亮 主 任 壹 前 言 一 研 究 動 機 平

More information

27 :OPC 45 [4] (Automation Interface Standard), (Costom Interface Standard), OPC 2,,, VB Delphi OPC, OPC C++, OPC OPC OPC, [1] 1 OPC 1.1 OPC OPC(OLE f

27 :OPC 45 [4] (Automation Interface Standard), (Costom Interface Standard), OPC 2,,, VB Delphi OPC, OPC C++, OPC OPC OPC, [1] 1 OPC 1.1 OPC OPC(OLE f 27 1 Vol.27 No.1 CEMENTED CARBIDE 2010 2 Feb.2010!"!!!!"!!!!"!" doi:10.3969/j.issn.1003-7292.2010.01.011 OPC 1 1 2 1 (1., 412008; 2., 518052), OPC, WinCC VB,,, OPC ; ;VB ;WinCC Application of OPC Technology

More information

Python a p p l e b e a r c Fruit Animal a p p l e b e a r c 2-2

Python a p p l e b e a r c Fruit Animal a p p l e b e a r c 2-2 Chapter 02 變數與運算式 2.1 2.1.1 2.1.2 2.1.3 2.1.4 2.2 2.2.1 2.2.2 2.2.3 type 2.2.4 2.3 2.3.1 print 2.3.2 input 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 + 2.4.6 Python Python 2.1 2.1.1 a p p l e b e a r c 65438790

More information

(HMI) IO A

(HMI) IO A 6.5 6.5 (HMI) IO 6.52 6.52 6.5 2007 113 A 602 100086 010 82616619 010 62638166 www.kingview.com 4 7 25 38 43 52 63 68 86 SQL 95 99 WEB 105 Web Web Web I/O Microsoft Windows XP/NT/2000 I/O PLC PLC PLC PLC

More information

概述

概述 OPC Version 1.8 build 0925 KOCRDK Knight OPC Client Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOC_Init...5 2.2.2 KOC_Uninit...5 2.3...5

More information

酒 神 (长篇小说)

酒  神  (长篇小说) 酒 神 ( 长 篇 小 说 ) 作 家 : 莫 言 第 一 章 一 省 人 民 检 察 院 的 特 级 侦 察 员 丁 钩 儿 搭 乘 一 辆 拉 煤 的 解 放 牌 卡 车 到 市 郊 的 罗 山 煤 矿 进 行 一 项 特 别 调 查 沿 途, 由 于 激 烈 思 索, 脑 袋 膨 胀, 那 顶 本 来 晃 晃 荡 荡 的 五 十 八 号 咖 啡 色 鸭 舌 帽 竟 紧 紧 地 箍 住 了 头

More information

(Microsoft Word - 136\260g\270\364\252\272\267s\256Q.doc)

(Microsoft Word - 136\260g\270\364\252\272\267s\256Q.doc) 日 本 短 篇 推 理 小 說 136 迷 路 的 新 娘 赤 川 次 郎 著 序 曲 啊 頭 好 痛 啊! 太 柔 軟 的 枕 頭 在 頭 痛 時 刻, 反 而 產 生 了 反 效 果 按 了 太 陽 穴 好 幾 次, 又 緊 閉 著 眼 晴 再 張 開 重 複 地 做 了 這 些 動 作 之 後, 終 於 稍 微 減 輕 了 頭 痛 在 這 種 情 況 之 下 醒 來, 已 經 不 是 第 一

More information

C/C++ - 文件IO

C/C++ - 文件IO C/C++ IO Table of contents 1. 2. 3. 4. 1 C ASCII ASCII ASCII 2 10000 00100111 00010000 31H, 30H, 30H, 30H, 30H 1, 0, 0, 0, 0 ASCII 3 4 5 UNIX ANSI C 5 FILE FILE 6 stdio.h typedef struct { int level ;

More information

游戏厅捕鱼技巧_天天酷跑游戏技巧 2048游戏技巧,游戏厅打鱼技巧_

游戏厅捕鱼技巧_天天酷跑游戏技巧 2048游戏技巧,游戏厅打鱼技巧_ 游 戏 厅 捕 鱼 技 巧 _ 天 天 酷 跑 游 戏 技 巧 巧 _ 2048 游 戏 技 巧, 游 戏 厅 打 鱼 技 152 http://www.500630.com 游 戏 厅 捕 鱼 技 巧 _ 天 天 酷 跑 游 戏 技 巧 2048 游 戏 技 巧, 游 戏 厅 打 鱼 技 巧 _ 现 在 拦 截 api 游 戏 厅 打 鱼 技 巧 的 教 程 到 处 都 是, 我 就 不 列 举

More information

任務二 : 產生 20 個有炸彈的磚塊, 放在隨機的位置編輯 Block 類別的程式碼 import greenfoot.; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) Write a description of class

任務二 : 產生 20 個有炸彈的磚塊, 放在隨機的位置編輯 Block 類別的程式碼 import greenfoot.; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) Write a description of class 踩地雷遊戲 高慧君南港高中 開啟專案 MineSweep 任務一 : 產生 30X20 個磚塊編輯 Table 類別的程式碼 import greenfoot.; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo) import java.util.arraylist; Write a description of class MyWorld

More information

mvc

mvc Build an application Tutor : Michael Pan Application Source codes - - Frameworks Xib files - - Resources - ( ) info.plist - UIKit Framework UIApplication Event status bar, icon... delegation [UIApplication

More information

主程式 : public class Main3Activity extends AppCompatActivity { ListView listview; // 先整理資料來源,listitem.xml 需要傳入三種資料 : 圖片 狗狗名字 狗狗生日 // 狗狗圖片 int[] pic =new

主程式 : public class Main3Activity extends AppCompatActivity { ListView listview; // 先整理資料來源,listitem.xml 需要傳入三種資料 : 圖片 狗狗名字 狗狗生日 // 狗狗圖片 int[] pic =new ListView 自訂排版 主程式 : public class Main3Activity extends AppCompatActivity { ListView listview; // 先整理資料來源,listitem.xml 需要傳入三種資料 : 圖片 狗狗名字 狗狗生日 // 狗狗圖片 int[] pic =new int[]{r.drawable.dog1, R.drawable.dog2,

More information

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc References (Section 5.2) Hsuan-Tien Lin Deptartment of CSIE, NTU OOP Class, March 15-16, 2010 H.-T. Lin (NTU CSIE) References OOP 03/15-16/2010 0 / 22 Fun Time (1) What happens in memory? 1 i n t i ; 2

More information

投影片 1

投影片 1 計算機程式及實習 期末報告 題目 : 六宿炒翻天 班級 : 奈米一乙姓名 : 陳洋翼學號 :4A514050 老師 : 謝慶存 程式說明 設計結帳系統, 選擇數量後, 在按下計算, 將會顯示總金額 若是老人或小孩, 將可享 8 折或 9 折的優惠 程式畫面 填選數量 在火腿蛋炒飯的數量選擇 1, 並按下計算, 可得總金額 50 元 程式畫面 打折 填選完後, 若客人是小孩或老人, 選擇欲打折項目,

More information

untitled

untitled PowerBuilder Tips 利 PB11 Web Service 年度 2 PB Tips PB9 EAServer 5 web service PB9 EAServer 5 了 便 web service 來說 PB9 web service 力 9 PB11 release PB11 web service 力更 令.NET web service PB NVO 論 不 PB 來說 說

More information

<B0B8C0FDCAD6B2E15FD3A1CBA2B0E6>

<B0B8C0FDCAD6B2E15FD3A1CBA2B0E6> WWW.ICPDAS.COM.CN 1 关 于 泓 格 泓 格 科 技 成 立 于 1993 年, 以 基 于 PC 的 数 据 采 集 卡 为 最 初 的 研 发 产 品 线,1998 年 我 们 认 为 嵌 入 式 控 制 器 极 具 未 来 性, 所 以 整 个 研 发 的 重 心 移 到 了 各 种 嵌 入 式 控 制 器 远 程 I/O 模 块 等 产 品 线 经 过 十 多 年 的 努

More information

TPM BIOS Infineon TPM Smart TPM Infineon TPM Smart TPM TPM Smart TPM TPM Advanced Mode...8

TPM BIOS Infineon TPM Smart TPM Infineon TPM Smart TPM TPM Smart TPM TPM Advanced Mode...8 Smart TPM Rev. 1001 Smart TPM Ultra TPM Smart TPM TPM...3 1. BIOS... 3 2. Infineon TPM Smart TPM... 4 2.1. Infineon TPM...4 2.2. Smart TPM...4 3. TPM... 5 3.1. Smart TPM TPM...5 3.2. Advanced Mode...8

More information

f2.eps

f2.eps 前 言, 目 录 产 品 概 况 1 SICAM PAS SICAM 电 力 自 动 化 系 统 配 置 和 使 用 说 明 配 置 2 操 作 3 实 时 数 据 4 人 机 界 面 5 SINAUT LSA 转 换 器 6 状 态 与 控 制 信 息 A 版 本 号 : 08.03.05 附 录, 索 引 安 全 标 识 由 于 对 设 备 的 特 殊 操 作 往 往 需 要 一 些 特 殊 的

More information

Excel VBA Excel Visual Basic for Application

Excel VBA  Excel Visual Basic for Application Excel VBA Jun5,00 Sub 分頁 () Dim i As Integer Dim Cname As String Dim Code As Variant Set score=thisworkbook.sheets("sheet") Code=Array(" 專北一 "," 專北二 "," 專北三 "," 專桃園 "," 專桃竹 "," 專中苗 ", " 專台中 "," 專台南 ","

More information

輕鬆學 Dreamweaver CS5 網頁設計..\Example\Ch0\ \.html..\example\ch0\ \mouse.txt..\example\ch0\ \ _Ok.html 學習重點 JavaScript 複製程式碼 mouse.txt Ctrl+C Ctrl+C 0-4

輕鬆學 Dreamweaver CS5 網頁設計..\Example\Ch0\ \.html..\example\ch0\ \mouse.txt..\example\ch0\ \ _Ok.html 學習重點 JavaScript 複製程式碼 mouse.txt Ctrl+C Ctrl+C 0-4 JAVA Extension 0..\Example\Ch0\ \ T.html..\Example\Ch0\ \ T.txt T.txt..\Example\Ch0\ \ T_Ok.html 提示 :. Marquee Marquee Font Color #FFFFFF BG Color #867bf Width 90 Height 50. T.txt Ctrl+C your scrolling

More information

C/C++程序设计 - 字符串与格式化输入/输出

C/C++程序设计 - 字符串与格式化输入/输出 C/C++ / Table of contents 1. 2. 3. 4. 1 i # include # include // density of human body : 1. 04 e3 kg / m ^3 # define DENSITY 1. 04 e3 int main ( void ) { float weight, volume ; int

More information

多層次傳銷與獎金系統

多層次傳銷與獎金系統 醒 吾 技 術 學 院 資 訊 管 理 系 ( 五 專 部 ) 九 十 六 學 年 度 畢 業 專 題 多 層 次 傳 銷 與 獎 金 系 統 組 員 : 921506122 游 濬 瑋 921506126 陳 彥 宇 921506139 林 龍 華 921506144 陳 昶 志 921506149 楊 璧 如 指 導 老 師 : 汪 淵 老 師 中 華 民 國 九 十 七 年 一 月 十 一 醒

More information

Chapter 16 集合

Chapter 16 集合 Chapter 16 集合 20 ArrayList StringCollection 16 本章學習目標 : ArrayList ArrayList Array StringCollection 16-1 21 10-3-8 System.Array Clear Clear 16-1 Clear System.Array Microsoft System.Collection IList 542

More information

ICD ICD ICD ICD ICD

ICD ICD ICD ICD ICD MPLAB ICD2 MPLAB ICD2 PIC MPLAB-IDE V6.0 ICD2 usb PC RS232 MPLAB IDE PC PC 2.0 5.5V LED EEDATA MPLAB ICD2 Microchip MPLAB-IDE v6.0 Windows 95/98 Windows NT Windows 2000 www.elc-mcu.com 1 ICD2...4 1.1 ICD2...4

More information

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.06.doc

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.06.doc 2 5 8 11 0 13 1. 13 2. 15 3. 18 1 23 1. 23 2. 26 3. 28 2 36 1. 36 2. 39 3. 42 4. 44 5. 49 6. 51 3 57 1. 57 2. 60 3. 64 4. 66 5. 70 6. 75 7. 83 8. 85 9. 88 10. 98 11. 103 12. 108 13. 112 4 115 1. 115 2.

More information

untitled

untitled 說 參 例 邏 邏 1. 說 2. 數 數 3. 8 4. 理念 李 龍老 立 1. 理 料 2. 理 料 3. 數 料 4. 流 邏 念 5. 良 6. 讀 行 行 7. 行 例 來 邏 1. 說 說 識 量 2. 說 理 類 3. 數 數 念 4. 令 5. 良 6. 流 邏 念 7. 說 邏 理 力 1. 2. 3. 4. 5. 列 念 1 參 1. ( Visual Basic 例 ) (1)

More information

前言 C# C# C# C C# C# C# C# C# microservices C# More Effective C# More Effective C# C# C# C# Effective C# 50 C# C# 7 Effective vii

前言 C# C# C# C C# C# C# C# C# microservices C# More Effective C# More Effective C# C# C# C# Effective C# 50 C# C# 7 Effective vii 前言 C# C# C# C C# C# C# C# C# microservices C# More Effective C# More Effective C# C# C# C# Effective C# 50 C# C# 7 Effective vii C# 7 More Effective C# C# C# C# C# C# Common Language Runtime CLR just-in-time

More information

Contents

Contents PISO-PS600 (Version 1.3) PISO-PS600 Version 1.3 1 Warranty All products manufactured by ICPDAS Inc. are warranted against defective materials for a period of one year from the date of delivery to the original

More information

Microsoft Word - CX1000-HMI_程序开发_PLC通讯

Microsoft Word - CX1000-HMI_程序开发_PLC通讯 用 VB.Net 开发 CX1000 的 HMI 第二部分和 TwinCAT PLC 通讯 一 TwinCAT 动态库 TwinCAT.Ads.dll The TwinCAT.Ads.dll 是一个.NET 类库, 它提供和 ADS 设备通讯的类 如果 TwinCAT PLC 运行在 IPC 上, 则需要添加的类库是路径 \TwinCAT\ADS Api\.NET\v1.1.4322 下的 TwinCAT.Ads.dll

More information

S7-1200 可编程控制器

S7-1200 可编程控制器 www.plcworld.cn 前 言 SIMATIC S7 系 统 手 册 产 品 概 述 1 安 装 2 PLC 概 念 3 设 备 配 置 4 编 程 概 念 5 编 写 指 令 6 PROFINET 7 点 对 点 (PtP) 通 信 8 在 线 和 诊 断 工 具 9 A 技 术 规 范 B 计 算 功 率 预 算 C 订 货 号 11/2009 A5E02486685-02 法 律 资

More information

, 7, Windows,,,, : ,,,, ;,, ( CIP) /,,. : ;, ( 21 ) ISBN : -. TP CIP ( 2005) 1

, 7, Windows,,,, : ,,,, ;,, ( CIP) /,,. : ;, ( 21 ) ISBN : -. TP CIP ( 2005) 1 21 , 7, Windows,,,, : 010-62782989 13501256678 13801310933,,,, ;,, ( CIP) /,,. : ;, 2005. 11 ( 21 ) ISBN 7-81082 - 634-4... - : -. TP316-44 CIP ( 2005) 123583 : : : : 100084 : 010-62776969 : 100044 : 010-51686414

More information

/ / (FC 3)...

/ / (FC 3)... Modbus/TCP 1.0 1999 3 29 Andy Swales Schneider aswales@modicon.com ... 2 1.... 3 2.... 3 2.1.. 3 2.2..4 2.3..4 2.4... 5 3.... 5 3.1 0... 5 3.2 1... 5 3.3 2... 6 3.4 / /... 7 4.... 7 5.... 8 5.1 0... 9

More information

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM CHAPTER 6 SQL SQL SQL 6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM 3. 1986 10 ANSI SQL ANSI X3. 135-1986

More information

Outline USB Application Requirements Variable Definition Communications Code for VB Code for Keil C Practice

Outline USB Application Requirements Variable Definition Communications Code for VB Code for Keil C Practice 路 ESW 聯 USB Chapter 9 Applications For Windows Outline USB Application Requirements Variable Definition Communications Code for VB Code for Keil C Practice USB I/O USB / USB 3 料 2 1 3 路 USB / 列 料 料 料 LED

More information

Visual Basic D 3D

Visual Basic D 3D Visual Basic 2008 2D 3D 6-1 6-1 - 6-2 - 06 6-2 STEP 1 5-2 (1) STEP 2 5-3 (2) - 6-3 - Visual Basic 2008 2D 3D STEP 3 User1 6-4 (3) STEP 4 User1 6-5 (4) - 6-4 - 06 STEP 5 6-6 (5) 6-3 6-3-1 (LoginForm) PictureBox1

More information

59 1 CSpace 2 CSpace CSpace URL CSpace 1 CSpace URL 2 Lucene 3 ID 4 ID Web 1. 2 CSpace LireSolr 3 LireSolr 3 Web LireSolr ID

59 1 CSpace 2 CSpace CSpace URL CSpace 1 CSpace URL 2 Lucene 3 ID 4 ID Web 1. 2 CSpace LireSolr 3 LireSolr 3 Web LireSolr ID 58 2016. 14 * LireSolr LireSolr CEDD Ajax CSpace LireSolr CEDD Abstract In order to offer better image support services it is necessary to extend the image retrieval function of our institutional repository.

More information

INTRODUCTION TO COM.DOC

INTRODUCTION TO COM.DOC How About COM & ActiveX Control With Visual C++ 6.0 Author: Curtis CHOU mahler@ms16.hinet.net This document can be freely release and distribute without modify. ACTIVEX CONTROLS... 3 ACTIVEX... 3 MFC ACTIVEX

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 49 [P.51] C/C++ [P.52] [P.53] [P.55] (int) [P.57] (float/double) [P.58] printf scanf [P.59] [P.61] ( / ) [P.62] (char) [P.65] : +-*/% [P.67] : = [P.68] : ,

More information

VB程序设计教程

VB程序设计教程 高 等 学 校 教 材 Visual Basic 程 序 设 计 教 程 魏 东 平 郑 立 垠 梁 玉 环 石 油 大 学 出 版 社 内 容 提 要 本 书 是 按 高 等 学 校 计 算 机 程 序 设 计 课 程 教 学 大 纲 编 写 的 大 学 教 材, 主 要 包 括 VB 基 础 知 识 常 用 程 序 结 构 和 算 法 Windows 用 户 界 面 设 计 基 础 文 件 处

More information

untitled

untitled ArcGIS Server Web services Web services Application Web services Web Catalog ArcGIS Server Web services 6-2 Web services? Internet (SOAP) :, : Credit card authentication, shopping carts GIS:, locator services,

More information

RUN_PC連載_12_.doc

RUN_PC連載_12_.doc PowerBuilder 8 (12) PowerBuilder 8.0 PowerBuilder PowerBuilder 8 PowerBuilder 8 / IDE PowerBuilder PowerBuilder 8.0 PowerBuilder PowerBuilder PowerBuilder PowerBuilder 8.0 PowerBuilder 6 PowerBuilder 7

More information

2/14 Buffer I12, /* x=2, buffer = I 1 2 */ Buffer I243, /* x=34, buffer = I 2 43 */ x=56, buffer = I243 Buffer I243I265 code_int(int x, char *buffer)

2/14 Buffer I12, /* x=2, buffer = I 1 2 */ Buffer I243, /* x=34, buffer = I 2 43 */ x=56, buffer = I243 Buffer I243I265 code_int(int x, char *buffer) 1/14 IBM Rational Test RealTime IBM, 2004 7 01 50% IBM Rational Test RealTime IBM Rational Test RealTime 1. 50% IBM Rational Test RealTime IBM Rational Test RealTime 2. IBM Rational Test RealTime Test

More information

Microsoft Word - CIN-DLL.doc

Microsoft Word - CIN-DLL.doc 6.3. 调 用 动 态 链 接 库 (DLL) 相 对 于 CIN 来 讲,NI 更 推 荐 用 户 使 用 DLL 来 共 享 基 于 文 本 编 程 语 言 开 发 的 代 码 除 了 共 享 或 重 复 利 用 代 码, 开 发 人 员 还 能 利 用 DLL 封 装 软 件 的 功 能 模 块, 以 便 这 些 模 块 能 被 不 同 开 发 工 具 利 用 在 LabVIEW 中 使 用

More information

Oracle高级复制配置手册_业务广告_.doc

Oracle高级复制配置手册_业务广告_.doc Oracle 高 级 复 制 配 置 手 册 作 者 : 铁 钉 Q Q: 5979404 MSN: nail.cn@msn.com Mail: nail.cn@msn.com Blog: http://nails.blog.51cto.com Materialized View Replication 复 制 模 式 实 现 了 单 主 机 对 多 个 复 制 站 点 的 数 据 同 步. 在 主

More information

untitled

untitled 3 C++ 3.1 3.2 3.3 3.4 new delete 3.5 this 3.6 3.7 3.1 3.1 class struct union struct union C class C++ C++ 3.1 3.1 #include struct STRING { typedef char *CHARPTR; // CHARPTR s; // int strlen(

More information

2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF

2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF Chapter 2 WF 2.1 WF 2.2 2. XAML 2. 2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF WF WF WF WF EDI API WF Visual Studio Designer 1 2.1 WF Windows Workflow Foundation 2 WF 1 WF Domain-Specific

More information

instructions.PDF

instructions.PDF 94 SIMATIC (END) (END) Micro/WIN 32 (STOP) (STOP) CPU RUN STOP STOP CPU RUN STOP (WDR) (Watchdog Reset) (WDR) CPU WDR WDR ( ) I/O ( I/O ) SM (SM0 SM5 SM29 ) 25 0 ms 00 ms STOP 300ms 300ms WDR S7-200 CPU

More information

投影片 1

投影片 1 軟體說明書繁體中文 RGB A 目錄 - CONTENTS 01 09 15 17 22 軟體主介面 巨集設定說明 主介面概觀 個人設定檔 (Profiles) 一般模式 / 遊戲模式 按鍵功能分配 巨集管理器概觀 巨集管理器 巨集錄製設定 巨集錄製時間列表 插入指令 閃移系統 - I.S.S (Instant Shift System) 燈光設定更新韌體 閃移系統啟動鈕設定說明 燈光設定介面 介面區域一

More information

c_cpp

c_cpp C C++ C C++ C++ (object oriented) C C++.cpp C C++ C C++ : for (int i=0;i

More information

行业

行业 PCL-818HD/HG/L PCL-818HD/HG/L 1.1...2 1.1.1 /...2 1.1.2 ID...2 1.2...3 1.3...3 2.1...3 2.2...3 2.2.1...4 2.2.2...4 2.2.3 DMA...5 2.2.4...5 2.2.5 D/A...5 2.2.6...6 2.2.7 EXE.trigger GATE0...6 2.2.8 FIFO

More information

BOOL EnumWindows(WNDENUMPROC lparam); lpenumfunc, LPARAM (Native Interface) PowerBuilder PowerBuilder PBNI 2

BOOL EnumWindows(WNDENUMPROC lparam); lpenumfunc, LPARAM (Native Interface) PowerBuilder PowerBuilder PBNI 2 PowerBuilder 9 PowerBuilder Native Interface(PBNI) PowerBuilder 9 PowerBuilder C++ Java PowerBuilder 9 PBNI PowerBuilder Java C++ PowerBuilder NVO / PowerBuilder C/C++ PowerBuilder 9.0 PowerBuilder Native

More information

C C C The Most Beautiful Language and Most Dangerous Language in the Programming World! C 2 C C C 4 C 40 30 10 Project 30 C Project 3 60 Project 40

C C C The Most Beautiful Language and Most Dangerous Language in the Programming World! C 2 C C C 4 C 40 30 10 Project 30 C Project 3 60 Project 40 C C trio@seu.edu.cn C C C C The Most Beautiful Language and Most Dangerous Language in the Programming World! C 2 C C C 4 C 40 30 10 Project 30 C Project 3 60 Project 40 Week3 C Week5 Week5 Memory & Pointer

More information

基于ECO的UML模型驱动的数据库应用开发1.doc

基于ECO的UML模型驱动的数据库应用开发1.doc ECO UML () Object RDBMS Mapping.Net Framework Java C# RAD DataSetOleDbConnection DataGrod RAD Client/Server RAD RAD DataReader["Spell"].ToString() AObj.XXX bug sql UML OR Mapping RAD Lazy load round trip

More information

Microsoft Word - ACG chapter00c-3ed.docx

Microsoft Word - ACG chapter00c-3ed.docx Python 好好玩, 趣學電玩遊戲程式設計 Python Python BASIC Java JavaScript PHP C++ BASIC Python Python Python Xbox PlayStation Nintendo - 2 - 簡介 : 互動式 Python Shell : 編寫程式 Python File editor : 猜數字 : 腦筋急轉彎 : 龍域 ( ) : 使用

More information

1 1 Excel VBA 說明 ( ) (_) STEP4 Excel 2 STEP5 A1 1 B2 2 C3 3 STEP6 A1 STEP7 > > 1-11

1 1 Excel VBA 說明 ( ) (_) STEP4 Excel 2 STEP5 A1 1 B2 2 C3 3 STEP6 A1 STEP7 > > 1-11 1-3 1-3-1 Excel VBA VBA OK CD DVD Excel VBA Excel VBA Excel Visual Basic A1 1 B2 2 C3 3 STEP1 Excel Ch01_VBA.xlsm 1 > > STEP2 Excel 1 2 STEP3 1-10 1 1 Excel VBA 說明 ( ) (_) STEP4 Excel 2 STEP5 A1 1 B2 2

More information

1.JasperReport ireport JasperReport ireport JDK JDK JDK JDK ant ant...6

1.JasperReport ireport JasperReport ireport JDK JDK JDK JDK ant ant...6 www.brainysoft.net 1.JasperReport ireport...4 1.1 JasperReport...4 1.2 ireport...4 2....4 2.1 JDK...4 2.1.1 JDK...4 2.1.2 JDK...5 2.1.3 JDK...5 2.2 ant...6 2.2.1 ant...6 2.2.2 ant...6 2.3 JasperReport...7

More information

untitled

untitled XP248 1 XP248 XP248 DCS PLC SCnet SCnet DCS SCnet DCS 1.1 XP248 Modbus HostLink Modbus XP248 4 DB25 XP248 MODBUS XP248 SCControl XP248 4 RS232 RS485 4 32 XP248 COM0-COM1 COM2-COM3 1200 19200bit/s 5 8 1

More information

單步除錯 (1/10) 打開 Android Studio, 點選 Start a new Android Studio project 建立專案 Application name 輸入 BMI 點下 Next 2 P a g e

單步除錯 (1/10) 打開 Android Studio, 點選 Start a new Android Studio project 建立專案 Application name 輸入 BMI 點下 Next 2 P a g e Android Studio Debugging 本篇教學除了最基本的中斷點教學之外, 還有條件式中斷的教學 條件式中斷是進階的除錯技巧, 在某些特定情況中, 我們有一個函數可能會被呼叫數次, 但是我們只希望在某種條件成立時才進行中斷, 進而觀察變數的狀態 而條件式中斷這項技巧正是符合這項需求 本教學分兩部分 單步除錯 (Page2~11, 共 10) 條件式中斷點 (Page12~17, 共 6)

More information

目 录

目 录 1 Quick51...1 1.1 SmartSOPC Quick51...1 1.2 Quick51...1 1.3 Quick51...2 2 Keil C51 Quick51...4 2.1 Keil C51...4 2.2 Keil C51...4 2.3 1 Keil C51...4 2.4 Flash Magic...9 2.5 ISP...9 2.6...10 2.7 Keil C51...12

More information

Contents

Contents PISO-PS400 (Version 3.1) PISO-PS400 1 Warranty All products manufactured by ICPDAS Inc. are warranted against defective materials for a period of one year from the date of delivery to the original purchaser.

More information

Chapter 2

Chapter 2 2 (Setup) ETAP PowerStation ETAP ETAP PowerStation PowerStation PowerPlot ODBC SQL Server Oracle SQL Server Oracle Windows SQL Server Oracle PowerStation PowerStation PowerStation PowerStation ETAP PowerStation

More information

Microsoft Word - 11.doc

Microsoft Word - 11.doc 除 錯 技 巧 您 將 於 本 章 學 到 以 下 各 項 : 如 何 在 Visual C++ 2010 的 除 錯 工 具 控 制 下 執 行 程 式? 如 何 逐 步 地 執 行 程 式 的 敘 述? 如 何 監 看 或 改 變 程 式 中 的 變 數 值? 如 何 監 看 程 式 中 計 算 式 的 值? 何 謂 Call Stack? 何 謂 診 斷 器 (assertion)? 如 何

More information

38 诚 信 始 于 入 口 从 入 口 处 着 手 打 好 律 师 队 伍 建 设 的 诚 信 基 础 / 刘 彦 平 4 0 我 国 证 券 公 司 治 理 缺 陷 的 根 源 及 其 出 路 / 黄 运 成 曹 里 加 李 畅 4 3 中 止, 因 为 什 么? 被 告 人 胡 鹏 等 五 人

38 诚 信 始 于 入 口 从 入 口 处 着 手 打 好 律 师 队 伍 建 设 的 诚 信 基 础 / 刘 彦 平 4 0 我 国 证 券 公 司 治 理 缺 陷 的 根 源 及 其 出 路 / 黄 运 成 曹 里 加 李 畅 4 3 中 止, 因 为 什 么? 被 告 人 胡 鹏 等 五 人 4 规 范 建 设 年 : 又 是 一 年 新 挑 战 / 赵 守 华 5 坚 持 不 懈 地 推 进 律 师 队 伍 建 设 张 福 森 部 长 在 律 师 队 伍 集 中 教 育 整 顿 活 动 总 结 暨 开 展 合 伙 律 师 事 务 所 规 范 建 设 年 活 动 动 员 会 议 上 的 讲 话 ( 摘 编 ) 6 建 立 健 全 律 师 队 伍 建 设 长 效 机 制 段 正 坤 副 部

More information

ebook140-9

ebook140-9 9 VPN VPN Novell BorderManager Windows NT PPTP V P N L A V P N V N P I n t e r n e t V P N 9.1 V P N Windows 98 Windows PPTP VPN Novell BorderManager T M I P s e c Wi n d o w s I n t e r n e t I S P I

More information

穨2700使用手冊.doc

穨2700使用手冊.doc Keithley 2700 13 CH Avg Ratio continuity Offset Compensation Ohms 80 (differential) 6 (22 ) (Half-rack size) 1000V/3A isolation/input 50000 EEE-488 RS-232 Digital I/O Trigger Link ActiveX Start-up software

More information

Symantec™ Sygate Enterprise Protection 防护代理安装使用指南

Symantec™ Sygate Enterprise Protection 防护代理安装使用指南 Symantec Sygate Enterprise Protection 防 护 代 理 安 装 使 用 指 南 5.1 版 版 权 信 息 Copyright 2005 Symantec Corporation. 2005 年 Symantec Corporation 版 权 所 有 All rights reserved. 保 留 所 有 权 利 Symantec Symantec 徽 标 Sygate

More information

Microsoft PowerPoint - 04-array_pointer.ppt

Microsoft PowerPoint - 04-array_pointer.ppt Array 與 Pointer Array Dynamical Memory Allocation Array( 陣列 ) 陣列是用來存放同樣型態的資料陣列的大小必須在程式中預先設定在程式執行中, 陣列的大小無法改變陣列中的資料是透過索引 (index) 來存取 一維陣列的宣告 type array_name[array_size]; int iarray[100]; /* an integer array

More information

C/C++语言 - C/C++数据

C/C++语言 - C/C++数据 C/C++ C/C++ Table of contents 1. 2. 3. 4. char 5. 1 C = 5 (F 32). 9 F C 2 1 // fal2cel. c: Convert Fah temperature to Cel temperature 2 # include < stdio.h> 3 int main ( void ) 4 { 5 float fah, cel ;

More information

新版 明解C++入門編

新版 明解C++入門編 511!... 43, 85!=... 42 "... 118 " "... 337 " "... 8, 290 #... 71 #... 413 #define... 128, 236, 413 #endif... 412 #ifndef... 412 #if... 412 #include... 6, 337 #undef... 413 %... 23, 27 %=... 97 &... 243,

More information

VB控件教程大全

VB控件教程大全 Datagrid DataGrid1.Columns.Remove(0) ' 0 DataGrid1.Columns.Add(0).Caption= ' DataGrod1.Columns(0).DataField= Name ' Adodc1.Refresh DataGrid BackColor Font DataGrid CellPadding HTML CellSpacing HTML Width

More information

ebook71-13

ebook71-13 13 I S P Internet 13. 2. 1 k p p p P P P 13. 2. 2 1 3. 2. 3 k p p p 1 3. 2. 4 l i n u x c o n f P P P 13. 2. 5 p p p s e t u p 13. 2. 6 p p p s e t u p P P P 13. 2. 7 1 3. 2. 8 C a l d e r a G U I 13.

More information

indows CE 1996 Semiconductor Industry Association (SIA) Windows CE Windows Embedded CE 6.0 Windows CE Windows Embedded CE 6.0 Micr

indows CE 1996 Semiconductor Industry Association (SIA) Windows CE Windows Embedded CE 6.0 Windows CE Windows Embedded CE 6.0 Micr Windows Embedded CE 6.0 Windows Embedded CE 6.0 : Windows Embedded CE 6.0 : Windows CE Windows Embedded CE 6.0 API CE 6.0 Windows CE W indows CE 1996 Semiconductor Industry Association (SIA) 1994 1000

More information

6020

6020 6020 ... 1 1.1... 1 1.2... 1 1.3 6020... 2 1.3... 5 1.3.1... 5 1.3.2 ISA I/O (S1)... 5 1.3.3 (J4,5,6)... 6 1.3.4... 6... 9 2.1... 9 2.2... 9 2.3 COMPILING AND LINKING... 11 2.3.1 MICROSOFT C MICROSOFT

More information

使用手冊

使用手冊 使用手冊 版權所有 2013 年 Microtek International, Inc. 保留所有權利 商標 Microtek MII MiiNDT ScanWizard Microtek International, Inc. Windows Microsoft Corporation 重要須知 Microtek Microtek Windows Microsoft Windows I49-004528

More information