The remote package is a machine information gathering and broacasting software based on Modbus TCP/IP communication protocol. It relies on the Streamlit library to gather and relay information form any supporting PLC to the internet. This IoT provides a platform to add more functionality based on the machine and user requirements. Any user within the secure network of the machine will be able to both read and write to the PLC enabling not only remote diagnostics but also remote monitoring and control.
Can be changed
- This package provides Modbus TCP/IP communication interfaces
- Provides interface for mapping the IO registers and coils
- A flexible dashboard to visualise collected data
- To use the package install the package first
- Create a main.py file and import all the modules
- Provide mapping details
- Provide node description, number and name
- Customise dashboard capabilities
- Set broadcasting port and run main.py file
- Open browser on a device within the local network
- Access all the data through the dashboard
- Provide testing and assertion of different cases
- Stopping the log does not stop the child processes and causes the RPi to overload itself. Use signals if needed and commit to proper exit of code
- Extract features from data logging code and make them part of the node class
- Sidebar selection for plotting required register
- Change register map from excel to json or other accessible format or simply a pd dataframe Most people are familiar and have access to excel and hence not a big problem Can be removed once the register map access is given via dashboard
- node_name
- node_number
- node_description
- log_frequency
- host_ip
- host_port
- register_map.xlsx in 'comm\mapping.xlsx'
- Initiate log file called 'log.json'
- Database location and name
- Use the following free simulator: https://www.modbusdriver.com/diagslave.html
- Go to its dir and use sudo linux_x86-64/diagslave -m tcp to simulate slave
node@11507
node"11507