Modbus TCP tester runs on Mako Server, "a super compact and efficient Lua web framework", a web server portable for many OS.
- Download Mako Server and unzip
- Download this repository
- On Windows, edit
run mako modbus tcp tester Win.cmd
, adapt paths and launch, accept firewall alert - On Linux, edit
run mako modbus tcp tester Linux.sh
, adapt paths and launch - Verify port in the console window (usually
9357
or80
) - In your browser open
http://localhost
(if port is80
) orhttp://localhost:9357/
After "run mako" and open then main web page, click on Load
at bottom to load an example or start to edit your configuration
- Mako Server: web server and its Modbus TCP library
- Alpine.js
- w3.css
- Material Design icons
- json file format
https
should be implemented in Mako
Files are stored in saved_files
at save
, in json format: a javascript object.
During the process, a sub-set of this object is sended and returned from the web page and the server.lsp
page that will execute the Modbus Connection.
Structure of the sub-set json data exchanged with the server.
// sample data: array of devices [{...}, {...}]
// device:
{ip: '192.168.1.100', port: '502', uid: '255', items: [{...}, {...}]}
item: {addr: '111', size: '1', vtype:'word', value:'to write or result'}
An item
is a map to the address memory.