PICTURE Graphic Drawing Library 是 PICTURE 11.3 版本之後推出的Ruby Script開發相關新功能,Graphic Drawing Library 提供可以開發出可以在App介面上繪圖或改變圖形的函數,讓PICTURE在圖形功能上的部分也變得可程式化。
舉例來說,現在使用Graphic Drawing Library想畫出一條如下圖一樣的直線的話。
我們可以在Ruby Script中使用繪製直線的函數,透過引數的改變畫出各種顏色、各式各樣的直線。當我們可以透過引數控制畫圖這件事,也代表只要我們提供可以控制相關變數的controls,使用者就可以在PICTURE APP上根據開發者所寫的規則畫圖了。
而我們的Graphic Drawing Library不只可以畫直線,也提供很多常用的圖形繪圖函數供發者使用。詳情可參考參考附檔的說明手冊~
大家也可以下載functionTest的壓縮擋下來,裡面有對應說明手冊的範例專案可以玩玩看!
需要特別注意,Graphic Drawing Library開發出來的App只能在iHMI環境中使用!
PICTURE Graphic Drawing Library 教學
PICTURE Graphic Drawing Library 教學
- 附加檔案
-
- functionTest.7z
- (9.18 KiB) 已下載 13 次
Given enough eyeballs, all bugs are shallow (e.g., given a large enough beta-tester and co-developer base, almost every problem will be characterized quickly and the fix obvious to someone).
-
jtnb5zhuang
- 二等兵

- 文章: 13
- 註冊時間: 2025-05-28, 13:20
Re: PICTURE Graphic Drawing Library 教學
請問NC Guide和控制器軟體,有需要到哪一版之後才能使用嗎?
Re: PICTURE Graphic Drawing Library 教學
只要是有支援PANEL iH、PANEL iH Pro模擬的NC Guide或NC都可以使用~
附圖中的錯誤提示可能是你用了NDisp以外的controls去呼叫這個腳本。使用到Graphic Drawing Library的腳本只能被NDisp呼叫,若使用其他的Controls,像Button、ImageLam...等等的都會跳Function name is illegal的錯誤。
Given enough eyeballs, all bugs are shallow (e.g., given a large enough beta-tester and co-developer base, almost every problem will be characterized quickly and the fix obvious to someone).
-
jtnb5zhuang
- 二等兵

- 文章: 13
- 註冊時間: 2025-05-28, 13:20
Re: PICTURE Graphic Drawing Library 教學
可是我是用上面檔案functionTest.7z,改成Fix版本,請問不是直接用上面範例的話要怎麼使用?
-
jtnb5zhuang
- 二等兵

- 文章: 13
- 註冊時間: 2025-05-28, 13:20
Re: PICTURE Graphic Drawing Library 教學
※註記一: 在FANUC CNC GUIDE2 環境安裝具繪圖函數庫功能的CNC Application時,可模擬iHMI Pro/iPC環境的使用效果。
看來是在上述環境才可以使用
看來是在上述環境才可以使用
Re: PICTURE Graphic Drawing Library 教學
關於範例Any版本無法使用的問題已修正,可以重新下載。想確認一下你所使用的PICTURE版本是否是11.3版以上?
Given enough eyeballs, all bugs are shallow (e.g., given a large enough beta-tester and co-developer base, almost every problem will be characterized quickly and the fix obvious to someone).
Re: PICTURE Graphic Drawing Library 教學
我們的CNC GUIDE2是可以模擬iHMI Pro/iPC的環境,不過Graphic Drawing Library只要是在iH以上的控制器都可以使用。註記一想表達的意思是若想使用到某些要上iHMI Pro/iPC的功能的話,使用CNC GUIDE2是可行的。不是指這個Library只能在iHMI Pro/iPC上才可以運行的意思。jtnb5zhuang 寫: ↑2025-06-06, 16:05 ※註記一: 在FANUC CNC GUIDE2 環境安裝具繪圖函數庫功能的CNC Application時,可模擬iHMI Pro/iPC環境的使用效果。
看來是在上述環境才可以使用
Given enough eyeballs, all bugs are shallow (e.g., given a large enough beta-tester and co-developer base, almost every problem will be characterized quickly and the fix obvious to someone).
-
jtnb5zhuang
- 二等兵

- 文章: 13
- 註冊時間: 2025-05-28, 13:20
Re: PICTURE Graphic Drawing Library 教學
我重新下載後可以使用了,不知道是差在哪個部分
-
jtnb5zhuang
- 二等兵

- 文章: 13
- 註冊時間: 2025-05-28, 13:20
Re: PICTURE Graphic Drawing Library 教學
請問0i-f系列的控制器是要請FANUC人員來更新,才能使用ctrlscript功能嗎?還是有什麼檔案也要灌到控制器裡?
Re: PICTURE Graphic Drawing Library 教學
之前文章作者在3F已經有回答過版本的問題了哦
基本上這個功能與控制器的版本沒有關係,只要是Panel iH or Panel iH Pro都可以使用
只有PICTURE的版本有要求,建議的PICTURE版本為11.3以上
