Our website uses necessary cookies to enable basic functions and optional cookies to help us to enhance your user experience. Learn more about our cookie policy by clicking "Learn More".
Accept All Only Necessary Cookies
PyTool Modbus TCP F 圖標

0.4 by Quan Lin


2021年07月09日

關於PyTool Modbus TCP F

具有Python腳本功能的Modbus TCP工具。

PyTool Modbus TCP 是一個很好的 Modbus TCP 開發、調試和監控工具。

它具有 Python 腳本功能,可為您提供最大的靈活性。

如需無廣告體驗,請獲取付費版本。

為什麼 Modbus TCP 工具需要腳本功能?

電氣工程師發現使用 Android 手機或平板電腦等手持設備在現場、工廠或實驗室中調試或監控 Modbus TCP 通信非常方便。

但是幾乎每個 Modbus TCP 通信系統都有自己的數據格式。

在像“02a5b4ca....ff000803”這樣的十六進制數據的海洋中搜索並試圖弄清楚正在發生的事情一點也不愉快。

這就是 PyTool Modbus TCP 可以提供幫助的地方。

憑藉運行自定義 Python 腳本的能力,PyTool Modbus TCP 可以讀取和解析任何接收到的數據,以您想要的方式顯示它,甚至在需要時採取相應的行動。

有快速啟動的腳本示例。只需複制並粘貼其中之一即可試用。

還有一個方便的 Modbus TCP 控制接口供一般使用。

腳本通用指南

==================

* 本應用中使用的 Python 版本為 3.8。

* 儘管可以在腳本字段中編輯腳本,但此應用程序並非設計為腳本編輯器。

最好的方法是使用您喜歡的腳本編輯器,然後復制並粘貼腳本。

* 始終使用 4 個空格作為縮進,以避免出現奇怪的錯誤。

* 標準 Python 庫中的大多數包都可以導入。

* 如果需要 while 循環,請始終使用 `app.running_script` 作為條件以正確停止腳本。

* 使用`app.version` 獲取應用程序版本字符串。

* 使用`app.get_output()` 以字符串形式獲取腳本輸出字段。

* 使用`app.set_output(object)` 在腳本輸出字段中將`object` 顯示為字符串。

* 使用`app.print_text(object)` 作為`app.set_output(app.get_output() + str(object))` 的快捷方式,將文本附加到腳本輸出字段。

* 使用`app.clear_text()` 作為`app.set_output("")` 的快捷方式來清除腳本輸出字段。

* 使用`app.fc01_read_coils(mbid, addr, num)`發送功能碼01請求。

mbid (int): Modbus ID

addr (int): 數據地址

num (int):數據數量

返回(int 列表):請求的數據列表

* 使用`app.fc02_read_discrete_inputs(mbid, addr, num)`發送功能碼02請求。

mbid (int): Modbus ID

addr (int): 數據地址

num (int):數據數量

返回(int 列表):請求的數據列表

* 使用`app.fc03_read_holding_registers(mbid, addr, num)`發送功能碼03請求。

mbid (int): Modbus ID

addr (int): 數據地址

num (int):數據數量

返回(int 列表):請求的數據列表

* 使用`app.fc04_read_input_registers(mbid, addr, num)`發送功能碼04請求。

mbid (int): Modbus ID

addr (int): 數據地址

num (int):數據數量

返回(int 列表):請求的數據列表

* 使用`app.fc05_write_single_coil(mbid, addr, val)`發送功能碼05請求。

mbid (int): Modbus ID

addr (int): 數據地址

val (int):數據值

return (int):數據數量(始終為 1)

* 使用`app.fc06_write_single_register(mbid, addr, val)`發送功能碼06請求。

mbid (int): Modbus ID

addr (int): 數據地址

val (int):數據值

return (int):數據數量(始終為 1)

* 使用`app.fc15_write_multiple_coils(mbid, addr, vals)`發送功能碼15請求。

mbid (int): Modbus ID

addr (int): 數據地址

vals(int 列表):數據值列表

return (int): 數據數量

* 使用`app.fc16_write_multiple_registers(mbid, addr, vals)`發送功能碼16請求。

mbid (int): Modbus ID

addr (int): 數據地址

vals(int 列表):數據值列表

return (int): 數據數量

* 使用`app.msg_out` 和`app.msg_in` 來檢查請求和響應消息。

* 使用`app.log_file(text)` 在存儲中保存日誌文件。

日誌文件位於 [Storage Directory]/PyToolModbusTCP/log_[UTC Timestamp].txt。

text (str): 文本內容

return (str): 完整文件路徑

最新版本0.4更新日誌

Last updated on 2021年07月09日

Version 0.4
Python version for the script is 3.8.
Now the script runs in Python global environment. Existing scripts should still work as before.
`app.version` is added for checking app version.

翻譯中...

更多應用信息

最新版本

請求 PyTool Modbus TCP F 更新 0.4

上傳者

អ៊ុត សារ៉ុម

系統要求

Android 5.0+

Available on

PyTool Modbus TCP F 來源 Google Play

更多

PyTool Modbus TCP F 螢幕截圖

評論載入中...
語言
訂閱APKPure
第一時間獲取熱門安卓遊戲應用的首發體驗,最新資訊和玩法教程。
不,謝謝
訂閱
訂閱成功!
您已訂閱APKPure。
訂閱APKPure
第一時間獲取熱門安卓遊戲應用的首發體驗,最新資訊和玩法教程。
不,謝謝
訂閱
成功!
您已訂閱我們的郵件通知。