7/4/2023 0 Comments Powerlogic modbus server![]() ![]() Set the input or holding register at address to value using encoding. Set_holding_register(address, value, encoding) Set_input_register(address, value, encoding) Set_discrete_inputs(start_address, values) Set Input and Holding Registers This function can only process one value. Set the coil or discrete_input at address to value. The thread does not block the main thread, but it prevents the program from exiting until s.stop() is called. Start and stop the server thread which accepts requests. If the datastore is not explicitly given, an empty DictDatastore is instantiated and used. S = modbus_server.Server(host='localhost', port=502, datastore=None, loglevel="INFO", autostart=False) set_coil ( 1, True ) Functions Server Object Minimal Example import modbus_server s = modbus_server.
0 Comments
Leave a Reply. |