添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

This is a sample program of Modbus/RTU master created in Python.

Modbus/RTU communication can be executed by specifying the COM port, setting the baudrate and parity etc.

■ Execution example

py rtumaster.py

■ Screen Image

■ Step to Use

  • Enter "0" and press the enter key.
  • In Init, enter the COM port to be used, baudrate, parity bit, data bit, stop bit, and slave ID to connect with the device.
  • To input or output via Modbus communication, please click the button after setting the parameters of each function code. * Please refer to the following for the function code corresponding to each button.
    Example) 0 1 1
    In this sample, the maximum number of reading is 2000 bits / 125 words, and the maximum number of writing is 1968 bits / 123 words.
    * This is the maximum value of the Modbus specifications.
  •