#!/usr/bin/env python
'''
Asynchronous Modbus Server Built in Python using the pyModbus module
'''
# Import the libraries we need
from pymodbus.server.asynchronous import StartTcpServer
from pymodbus.device import ModbusDeviceIdentification
from pymodbus.datastore import ModbusSequentialDataBlock
from pymodbus.datastore import ModbusSlaveContext, ModbusServerContext
#Create a datastore and populate i with test data
store = ModbusSlaveContext(
di = ModbusSequentialDataBlock(0, <
记-Ubuntu安装 Modbus 栈,PyModbus模块
最新推荐文章于 2024-06-03 08:00:00 发布