Unslave Modbus Simulator 2.0.2 Released - Added TCP Support
Unslave 2.0.2 Summary
- Modbus TCP support added
- Minor bug fixes
- Added README
Using Unslave as a Modbus TCP Simulator
A concept of mode has been introduced. Unslave can now operate either in RTU or TCP mode.
In RTU mode it will function as a Modbus RTU slave and listen to the serial port specified in config.json
:
{
"mode": "RTU",
"port":{
"name":"COM1"
...
}
}
To activate TCP, simply change mode
to TCP
. The serial port settings will be ignored and Unslave will operate as a Modbus TCP node:
{
"mode": "TCP"
...
}
Unslave uses the default Modbus TCP port - 502
, unless you specify a different tcpPort
in config.json
:
{
"mode": "TCP",
"tcpPort": 9000
...
}