Home  /  Tools Apps  / PyTool Modbus TCP on Windows Pc

PyTool Modbus TCP on Windows Pc

Developed By: Quan Lin

License: Free

Rating: 5,0/5 - 1 votes

Last Updated: April 19, 2024

Download on Windows PC

Compatible with Windows 10/11 PC & Laptop

App Details

Version 0.2
Size 14 MB
Release Date July 06, 21
Category Tools Apps

What's New:
Version 0.4Python 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... [see more]

Description from Developer:
PyTool Modbus TCP is a great tool for Modbus TCP developing, debugging and monitoring.
It features Python script capability that gives you the greatest flexibility.

Why script cap... [read more]

App preview ([see all 19 screenshots])

App preview

About this app

On this page you can download PyTool Modbus TCP and install on Windows PC. PyTool Modbus TCP is free Tools app, developed by Quan Lin. Latest version of PyTool Modbus TCP is 0.2, was released on 2021-07-06 (updated on 2024-04-19). Estimated number of the downloads is more than 5. Overall rating of PyTool Modbus TCP is 5,0. Generally most of the top apps on Android Store have rating of 4+. This app had been rated by 1 users, 1 users had rated it 5*, 1 users had rated it 1*.

How to install PyTool Modbus TCP on Windows?

Instruction on how to install PyTool Modbus TCP on Windows 10 Windows 11 PC & Laptop

In this post, I am going to show you how to install PyTool Modbus TCP on Windows PC by using Android App Player such as BlueStacks, LDPlayer, Nox, KOPlayer, ...

Before you start, you will need to download the APK/XAPK installer file, you can find download button on top of this page. Save it to easy-to-find location.

[Note] You can also download older versions of this app on bottom of this page.

Below you will find a detailed step-by-step guide, but I want to give you a fast overview of how it works. All you need is an emulator that will emulate an Android device on your Windows PC and then you can install applications and use it - you see you're playing it on Android, but this runs not on a smartphone or tablet, it runs on a PC.

If this doesn't work on your PC, or you cannot install, comment here and we will help you!

Step By Step Guide To Install PyTool Modbus TCP using BlueStacks

  1. Download and Install BlueStacks at: https://www.bluestacks.com. The installation procedure is quite simple. After successful installation, open the Bluestacks emulator. It may take some time to load the Bluestacks app initially. Once it is opened, you should be able to see the Home screen of Bluestacks.
  2. Open the APK/XAPK file: Double-click the APK/XAPK file to launch BlueStacks and install the application. If your APK/XAPK file doesn't automatically open BlueStacks, right-click on it and select Open with... Browse to the BlueStacks. You can also drag-and-drop the APK/XAPK file onto the BlueStacks home screen
  3. Once installed, click "PyTool Modbus TCP" icon on the home screen to start using, it'll work like a charm :D

[Note 1] For better performance and compatibility, choose BlueStacks 5 Nougat 64-bit read more

[Note 2] about Bluetooth: At the moment, support for Bluetooth is not available on BlueStacks. Hence, apps that require control of Bluetooth may not work on BlueStacks.

How to install PyTool Modbus TCP on Windows PC using NoxPlayer

  1. Download & Install NoxPlayer at: https://www.bignox.com. The installation is easy to carry out.
  2. Drag the APK/XAPK file to the NoxPlayer interface and drop it to install
  3. The installation process will take place quickly. After successful installation, you can find "PyTool Modbus TCP" on the home screen of NoxPlayer, just click to open it.

Discussion

(*) is required

Download older versions

Other versions available: 0.2.

Download PyTool Modbus TCP 0.2 on Windows PC – 14 MB

PyTool Modbus TCP is a great tool for Modbus TCP developing, debugging and monitoring.
It features Python script capability that gives you the greatest flexibility.

Why script capability is desirable for Modbus TCP tool?
Electrical engineers find it handy to use a hand held device like Android phone or tablet to debug or monitor Modbus TCP communication in the field, factory or lab.
But nearly every Modbus TCP communication system got its own data format.
Searching in a sea of hex data like "02a5b4ca....ff000803" and trying to figure out what is happening is not pleasant at all.
That is where PyTool Modbus TCP comes to help.
With the ability to run custom Python script, PyTool Modbus TCP can read and parse any received data, display it in the way you want, and even act accordingly when it is needed.

There are script examples for quick start. Just copy and paste one of them to try them out.

There is also a handy Modbus TCP control interface for general use.

Script General Guide
=================

* The Python version used in this app is 3.8.

* This app is not designed as script editor although script can be edited in the script field.
The best way is to use your favorite script editor and then copy and paste the script.

* Always use 4 spaces for indentation to avoid weird errors.

* Most of the packages in standard Python library are available to import.

* If while loop is needed, always use `app.running_script` as condition in order to stop the script properly.

* Use `app.version` to get the app version string.

* Use `app.get_output()` to get the script output field as string.

* Use `app.set_output(object)` to display `object` in the script output field as string.

* Use `app.print_text(object)` as a shortcut for `app.set_output(app.get_output() + str(object))` to append text to the script output field.

* Use `app.clear_text()` as a shortcut for `app.set_output("")` to clear the script output field.

* Use `app.fc01_read_coils(mbid, addr, num)` to send function code 01 request.
mbid (int): Modbus ID
addr (int): Data Address
num (int): Number of Data
return (list of int): Requested Data List

* Use `app.fc02_read_discrete_inputs(mbid, addr, num)` to send function code 02 request.
mbid (int): Modbus ID
addr (int): Data Address
num (int): Number of Data
return (list of int): Requested Data List

* Use `app.fc03_read_holding_registers(mbid, addr, num)` to send function code 03 request.
mbid (int): Modbus ID
addr (int): Data Address
num (int): Number of Data
return (list of int): Requested Data List

* Use `app.fc04_read_input_registers(mbid, addr, num)` to send function code 04 request.
mbid (int): Modbus ID
addr (int): Data Address
num (int): Number of Data
return (list of int): Requested Data List

* Use `app.fc05_write_single_coil(mbid, addr, val)` to send function code 05 request.
mbid (int): Modbus ID
addr (int): Data Address
val (int): Data Value
return (int): Number of Data (always 1)

* Use `app.fc06_write_single_register(mbid, addr, val)` to send function code 06 request.
mbid (int): Modbus ID
addr (int): Data Address
val (int): Data Value
return (int): Number of Data (always 1)

* Use `app.fc15_write_multiple_coils(mbid, addr, vals)` to send function code 15 request.
mbid (int): Modbus ID
addr (int): Data Address
vals (list of int): Data Value List
return (int): Number of Data

* Use `app.fc16_write_multiple_registers(mbid, addr, vals)` to send function code 16 request.
mbid (int): Modbus ID
addr (int): Data Address
vals (list of int): Data Value List
return (int): Number of Data

* Use `app.msg_out` and `app.msg_in` to check request and response messages.

* Use `app.log_file(text)` to save a log file in storage.
The log file is located here [Storage Directory]/PyToolModbusTCP/log_[UTC Timestamp].txt.
text (str): Text Content
return (str): Full File Path
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.