Difference between revisions of "Modbus TCP/ru"

From Larnitech wiki page
Jump to navigation Jump to search
(Created page with "<li>Убедитесь, что у вас установлены последние версии программ LT Setup, LT Server, плагина ModBus TCP. <br>file:new...")
(Created page with "<li>Перед включением настройте плагин. <br>700px|link=<br> <br>700px|link=<br> <br>file:newmodb...")
Line 10: Line 10:
 
</li>
 
</li>
  
<li>Configure plugin before enabling.
+
<li>Перед включением настройте плагин.
 
<br>[[file:newmodbus3.png|700px|link=]]<br>
 
<br>[[file:newmodbus3.png|700px|link=]]<br>
 
<br>[[file:newmodbus4.png|700px|link=]]<br>
 
<br>[[file:newmodbus4.png|700px|link=]]<br>
 
<br>[[file:newmodbus5.png|700px|link=]]<br>
 
<br>[[file:newmodbus5.png|700px|link=]]<br>
'''IP''' - IP address of a ModBus TCP device, make sure that you can ping this device<br>
+
'''IP''' - IP-адрес устройства ModBus TCP, убедитесь, что вы можете пропинговать это устройство<br>
'''Port''' - 502 it is default port in most cases, but check documentation of your ModBus TCP device<br>
+
'''Port''' - порт 502 в большинстве случаев является портом по умолчанию, однако проверьте документацию вашего устройства ModBus TCP для уточнений<br>
'''Master/Slave''' - this option means that you add a Master device or Slave device<br>
+
'''Master/Slave''' - опция выбора статуса добавляемого устройства - ведущее или ведомое<br>
 
</li>
 
</li>
  

Revision as of 10:39, 17 January 2022

Other languages:
English • ‎русский

Установка и настройка плагина ModBus TCP

  1. Убедитесь, что у вас есть лицензии ModBus TCP.
    Newmodbus1.png
  2. Убедитесь, что у вас установлены последние версии программ LT Setup, LT Server, плагина ModBus TCP.
    Newmodbus2.png
  3. Перед включением настройте плагин.
    Newmodbus3.png

    Newmodbus4.png

    Newmodbus5.png
    IP - IP-адрес устройства ModBus TCP, убедитесь, что вы можете пропинговать это устройство
    Port - порт 502 в большинстве случаев является портом по умолчанию, однако проверьте документацию вашего устройства ModBus TCP для уточнений
    Master/Slave - опция выбора статуса добавляемого устройства - ведущее или ведомое
  4. Enable plugin.
    Newmodbus6.png

Examples

  1. Go to Scripts page and create Blockly script
    Newmodbus7.png
  2. Add ModBus block from Other tab
    Newmodbus8.png
  3. Choose ModBus TCP com-port from dropdown list and fill other fields. Save script and try it.
    Newmodbus9.png

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