Skip to content

haellingsen/modbus_server

Repository files navigation

modbus_server

spawns a modbus server (default host "0.0.0.0" port 502) based on pyModbusTCP and a http server (localhost:8000) showing a dump of the words and bits on the slave.

Config variables in main.py:

  • WEBPORT = 8000
  • MODBUSPORT = 502
  • WEBDIRECTORY = "webui"
  • MODBUS_BITCOUNT = 100
  • MODBUS_WORDCOUNT = 100
  • MODBUS_ENABLE_RANDOM_NUMBER_POPULATION_BITS = True
  • MODBUS_ENABLE_RANDOM_NUMBER_POPULATION_WORDS = True
  • MODBUS_RANDOM_NUMBER_COUNT_BITS = MODBUS_BITCOUNT
  • MODBUS_RANDOM_NUMBER_COUNT_WORDS = MODBUS_WORDCOUNT
  • MODBUS_RANDOM_NUMBER_START_BITS = 25
  • MODBUS_RANDOM_NUMBER_START_WORDS = 25
  • MODBUS_PRINT_TO_TERMINAL_ENABLED = False

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published