庫存儲區(qū)分配:在編譯程序之前,選擇 “程序塊" ->“ 庫" 右鍵,選擇“庫存儲區(qū)"。在點擊 “建議地址" 選擇V存儲區(qū)的地址后點擊 “OK"退出。

3.8 讀寫U16類型參數(shù):
3.81舉例:使用USS_RPM_W讀取參數(shù)P0700的值;

狀態(tài)表:

注意:
(1)讀參數(shù)P0700,其數(shù)據(jù)類型為U16無符號整數(shù)。
(2)只要給V300.0一個上升沿,就完成一次P0700參數(shù)的讀操作。
(3)讀入的參數(shù)被放在VW332里。
(4)需要注意的是Index為0時代表讀Pxxx.0參數(shù)組
3.8.2 舉例:使用USS_RPM_W設(shè)置參數(shù)P1000。

狀態(tài)表:

注意:
(1)寫參數(shù)P1000,其數(shù)據(jù)類型為U16無符號整數(shù)。
(2)只要給V350.0一個上升沿,就完成一次P1000參數(shù)的寫操作。
(3)EEPR~的邏輯為0時,寫入的值只保存到RAM中,為1時,寫入得值保存到EEPROM。
(4)EEPROM中寫數(shù)據(jù)是有次數(shù)限制的,V20*多不超過50000次。
3.9 讀寫U32類型參數(shù):
3.9.1舉例:使用USS_RPM_D讀取參數(shù)P0771.In000的值;

狀態(tài)表:

注意:
(1)讀參數(shù)P771,其數(shù)據(jù)類型為U32無符號整數(shù)。
(2)只要給V400.0一個上升沿,就完成一次P771參數(shù)的讀操作。
(3)讀入的參數(shù)被放在VD432里。16#00150000=21.0。
(4)需要注意的是Index為0時代表讀Pxxx.0參數(shù)組。
3.9.2 舉例:使用USS_WPM_D設(shè)置參數(shù)P0771.In000

狀態(tài)表:

注意:
(1)寫參數(shù)P771,其數(shù)據(jù)類型為U32無符號整數(shù)。
(2)只要給V450.0一個上升沿,就完成一次P771參數(shù)的寫操作。
(3)EEPR~的邏輯為0時,寫入的值只保存到RAM中,為1時,寫入得值保存到EEPROM。
(4)EEPROM中寫數(shù)據(jù)是有次數(shù)限制的,V20*多不超過50000次。
3.10讀寫Float類型參數(shù):
3.10.1舉例:使用USS_RPM_R讀取參數(shù)P0305.In001的值;

狀態(tài)表:

注意:
(1)讀參數(shù)P0305.In001,其數(shù)據(jù)類型為浮點數(shù)。
(2)只要給V550.0一個上升沿,就完成一次P0305.In001參數(shù)的讀操作。
(3)讀入的參數(shù)被放在VD532里。
(4)需要注意的是Index為1時代表讀Pxxx.1參數(shù)組。
3.10.2舉例:使用USS_WPM_R設(shè)置參數(shù)P0305.In001=1.5A

狀態(tài)表:

注意:
(1)寫參數(shù)P0305.In001,其數(shù)據(jù)類型為浮點數(shù)。P0305更改條件:P0010=1快速調(diào)試。
(2)只要給V550.0一個上升沿,就完成一次參數(shù)P0305.In001的寫操作。
(3)EEPR~的邏輯為0時,寫入的值只保存到RAM中,為1時,寫入得值保存到EEPROM。
(4)EEPROM中寫數(shù)據(jù)是有次數(shù)限制的,V20*多不超過50000次