規格 : X 軸目前位置座標為 0.,終點座標為 100.,當移動至 80. 時必須切掉油壓閥。
作法 :
M20 //開啟油壓閥
G0 X80. //移動至 80.
G10 L1000P50R1 //將 R50 搬 1,利用 PLC 將 M20 所觸發的自保關掉
G0 X100. //移動至 100.
以上作法與執行 G00 X100. 的效果一樣,並不會停頓,但是如果以下列方式撰寫的話則會造成停頓現象,此停頓現象在模擬機上看不出來。
M20 //開啟閥
G0 X80. //移動至80
M78 //使用無等待的方式切掉M20所觸發的自保關掉
G0 X100. //移動至100
...
read more
2007年5月17日 星期四
2007年5月11日 星期五
[+/-] : 新代 WinCE 系統
本篇紀錄新代控制器 WinCE 系統相關檔案位置與修改格式和方法給開發人員參閱,目前本篇僅就所知紀錄,煩請相關開發人員不吝提供日後開發案上的心得,使得本篇紀錄日驅完整。
PLC 程式
WinCE 系統與 DOS 系統的 PLC 使用同一套的編輯軟體,檔案名稱也都相同為 cnc.lad,WinCE 的 PLC 檔案儲存於 \OpenCNC\Ladder\cnc.lad。
系統參數設定檔
系統參數設定檔名為 param.dat,此檔儲存於 \OpenCNC\data\param.dat。
自定義警報與提示訊息
中文自定義警報與提示訊息設定檔儲存於 \OCRes\cht\string\AlarmPLC_CHT.xml。
自定義參數字體
中文自定義參數字體位於 \OCRes\cht\string\ParamCHT.Xml。
自定義參數範圍設定
自定義參數範圍設定檔位於 \OpenCNC\res\paramext.pxt。
客戶加工程式
客戶加工程式儲存於 \OpenCNC\Ncfiles。
...
read more
PLC 程式
WinCE 系統與 DOS 系統的 PLC 使用同一套的編輯軟體,檔案名稱也都相同為 cnc.lad,WinCE 的 PLC 檔案儲存於 \OpenCNC\Ladder\cnc.lad。
系統參數設定檔
系統參數設定檔名為 param.dat,此檔儲存於 \OpenCNC\data\param.dat。
自定義警報與提示訊息
中文自定義警報與提示訊息設定檔儲存於 \OCRes\cht\string\AlarmPLC_CHT.xml。
自定義參數字體
中文自定義參數字體位於 \OCRes\cht\string\ParamCHT.Xml。
自定義參數範圍設定
自定義參數範圍設定檔位於 \OpenCNC\res\paramext.pxt。
客戶加工程式
客戶加工程式儲存於 \OpenCNC\Ncfiles。
...
read more
訂閱:
文章 (Atom)