Difference between revisions of "Modbus TCP"
Jump to navigation
Jump to search
(Created page with "<p>MODBUS TCP allows integration with devices that have this interface. </p> <H2>Adding MODBUS TCP</H2> <ol> <li>Authorize yourself in the Web Toolbar of the Smart Home system...") |
(Marked this version for translation) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <languages/> |
− | < | + | <translate> |
+ | ==ModBus TCP Plugin installation & configuration== <!--T:1--> | ||
<ol> | <ol> | ||
− | <li> | + | <li>Make sure you have ModBus TCP licenses |
− | <br>[[ | + | <br>[[file:newmodbus1.png|700px|link=]]<br> |
− | <li> | + | </li> |
− | <br>[[ | + | |
− | <li> | + | <!--T:2--> |
− | <br>[[ | + | <li>Make sure you have the latest versions of LT Setup, LT Server, ModBus TCP plugin installed |
− | < | + | <br>[[file:newmodbus2.png|700px|link=]]<br> |
− | <br>[[ | + | </li> |
− | + | ||
− | < | + | <!--T:3--> |
− | <br>[[ | + | <li>Configure plugin before enabling. |
− | < | + | <br>[[file:newmodbus3.png|700px|link=]]<br> |
− | <li> | + | <br>[[file:newmodbus4.png|700px|link=]]<br> |
− | <br>[[ | + | <br>[[file:newmodbus5.png|700px|link=]]<br> |
− | <li> | + | '''IP''' - IP address of a ModBus TCP device, make sure that you can ping this device<br> |
− | <br>[[ | + | '''Port''' - 502 it is default port in most cases, but check documentation of your ModBus TCP device<br> |
− | <li> | + | '''Master/Slave''' - this option means that you add a Master device or Slave device<br> |
− | <br>[[ | + | </li> |
− | < | + | |
− | < | + | <!--T:4--> |
− | + | <li>Enable plugin. | |
− | + | <br>[[file:newmodbus6.png|700px|link=]]<br> | |
− | + | </li> | |
+ | </ol> | ||
+ | |||
+ | ==Examples== <!--T:5--> | ||
+ | <ol> | ||
+ | <li> | ||
+ | <li>Go to Scripts page and create Blockly script | ||
+ | <br>[[file:newmodbus7.png|700px|link=]]<br> | ||
+ | </li> | ||
+ | |||
+ | <!--T:6--> | ||
+ | <li>Add ModBus block from Other tab | ||
+ | <br>[[file:newmodbus8.png|700px|link=]]<br> | ||
+ | </li> | ||
+ | |||
+ | <!--T:7--> | ||
+ | <li>Choose ModBus TCP com-port from dropdown list and fill other fields. Save script and try it. | ||
+ | <br>[[file:newmodbus9.png|700px|link=]]<br> | ||
+ | </li> | ||
+ | </ol> | ||
+ | |||
+ | ==Logs== <!--T:8--> | ||
+ | Starting Service of MODBUS TCP plugin for Larnitech system... | ||
+ | Started Service of MODBUS TCP plugin for Larnitech system. | ||
+ | Compiled: Jul 7 2021 13:59:57 | ||
+ | INF: Settings: | ||
+ | INF: debug yes '''- Debug mode is enabled''' | ||
+ | INF: modbus-devices 192.168.1.110:502:0 | ||
+ | INF: Modbus 192.168.1.110:502:0 thread created | ||
+ | INF: Modbus 192.168.1.110:502:0 thread started | ||
+ | DEBUG: Modbus client: connected to 192.168.1.110:502:0''' - Plugin connected to the device''' | ||
+ | DEBUG: Modbus client: waiting for messages for 192.168.1.110:502:0 | ||
+ | DEBUG: Add message 01050011FF00 to 192.168.1.110:502:0 queue | ||
+ | DEBUG: Modbus thread unlocked for 192.168.1.110:502:0 | ||
+ | DEBUG: Modbus client: send packet to 192.168.1.110:502:0 0x01050011FF00''' - Send ‘ON’ to first coil''' | ||
+ | DEBUG: Modbus client: confirmation from 192.168.1.110:502:0 0x01050011FF00 '''- Right feedback from the device''' | ||
+ | DEBUG: Modbus client: waiting for messages for 192.168.1.110:502:0 | ||
+ | DEBUG: Add message 010500110000 to 192.168.1.110:502:0 queue | ||
+ | DEBUG: Modbus thread unlocked for 192.168.1.110:502:0 | ||
+ | DEBUG: Modbus client: send packet to 192.168.1.110:502:0 0x010500110000''' - Send ‘OFF’ to first coil''' | ||
+ | DEBUG: Modbus client: confirmation from 192.168.1.110:502:0 0x010500110000''' - Right feedback from the device''' | ||
+ | DEBUG: Modbus client: waiting for messages for 192.168.1.110:502:0 | ||
+ | </translate> |
Latest revision as of 15:10, 15 January 2022
ModBus TCP Plugin installation & configuration
- Make sure you have ModBus TCP licenses
- Make sure you have the latest versions of LT Setup, LT Server, ModBus TCP plugin installed
- Configure plugin before enabling.
IP - IP address of a ModBus TCP device, make sure that you can ping this device
Port - 502 it is default port in most cases, but check documentation of your ModBus TCP device
Master/Slave - this option means that you add a Master device or Slave device
- Enable plugin.
Examples
- Go to Scripts page and create Blockly script
- Add ModBus block from Other tab
- Choose ModBus TCP com-port from dropdown list and fill other fields. Save script and try it.
Logs
Starting Service of MODBUS TCP plugin for Larnitech system... Started Service of MODBUS TCP plugin for Larnitech system. Compiled: Jul 7 2021 13:59:57 INF: Settings: INF: debug yes - Debug mode is enabled INF: modbus-devices 192.168.1.110:502:0 INF: Modbus 192.168.1.110:502:0 thread created INF: Modbus 192.168.1.110:502:0 thread started DEBUG: Modbus client: connected to 192.168.1.110:502:0 - Plugin connected to the device DEBUG: Modbus client: waiting for messages for 192.168.1.110:502:0 DEBUG: Add message 01050011FF00 to 192.168.1.110:502:0 queue DEBUG: Modbus thread unlocked for 192.168.1.110:502:0 DEBUG: Modbus client: send packet to 192.168.1.110:502:0 0x01050011FF00 - Send ‘ON’ to first coil DEBUG: Modbus client: confirmation from 192.168.1.110:502:0 0x01050011FF00 - Right feedback from the device DEBUG: Modbus client: waiting for messages for 192.168.1.110:502:0 DEBUG: Add message 010500110000 to 192.168.1.110:502:0 queue DEBUG: Modbus thread unlocked for 192.168.1.110:502:0 DEBUG: Modbus client: send packet to 192.168.1.110:502:0 0x010500110000 - Send ‘OFF’ to first coil DEBUG: Modbus client: confirmation from 192.168.1.110:502:0 0x010500110000 - Right feedback from the device DEBUG: Modbus client: waiting for messages for 192.168.1.110:502:0