Skip to main content

simple Modebus client and server test by response of random number

Project description

Modbus TCP simulator

-set config in register_params.json

ex)
{
"40001":{"max_int":300, "min_int":100, "address":40001},
"40002":{"max_int":300, "min_int":20, "address":40002},
"40004":{"max_int":300, "min_int":20, "address":40004}
}

start simulating server by 'ygModBus runserver'

ctrl+c for terminate server

args:
('-H', '--host', type=str, default='127.0.0.1', help='Host (default: 127.0.0.1)')
('-p', '--port', type=int, default=502, help='TCP port (default: 502)')
('-j', '--json', type=str, default='register_params.json', help='JSON file with register parameters (default: register_params.json)')
('-i', '--interval', type=float, default=1.0, help='Interval in seconds for updating holding registers (default: 1.0)')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ygModbus-0.0.10-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file ygModbus-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: ygModbus-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for ygModbus-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 b1e6036d0d60fc203e256d3b69ad210f450f5e03aaa9d32dbd8f911259fdd6e8
MD5 d3bd6b73eef652b3817a3954da3760b2
BLAKE2b-256 e2e2971057a413be54629c3b06d9d101d1eaa4be0c6daf22241fe31d38ede537

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page