# Modbus TCP simulator
-set config in register_params.json
ex)
<br>
{<br>
"40001":{"max_int":300, "min_int":100, "address":40001},<br>
"40002":{"max_int":300, "min_int":20, "address":40002},<br>
"40004":{"max_int":300, "min_int":20, "address":40004}<br>
}
start simulating server by 'ygModbus-runserver'
ctrl+c for terminate server
ygModBus-runserver args:<br>
('-H', '--host', type=str, default='127.0.0.1', help='Host (default: 127.0.0.1)')<br>
('-p', '--port', type=int, default=502, help='TCP port (default: 502)')<br>
('-j', '--json', type=str, default='register_params.json', help='JSON file with register parameters (default: register_params.json)')<br>
('-i', '--interval', type=float, default=1.0, help='Interval in seconds for updating holding registers (default: 1.0)')<br>
get response from server by 'ygModbus-request'
ygModbus-request args:<br>
('-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)')
('-n', '--number', type=int, default=1, help='Number of holding registers (default: 1)')
('-s', '--start', type=int, default=40001, help='Starting register address (default: 40001)')
Raw data
{
"_id": null,
"home_page": "https://github.com/devggu/",
"name": "ygModbus",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": "",
"keywords": "modebus,pshn123,devggu,TCP,server,client",
"author": "devggu",
"author_email": "pshnb123@gmail.com",
"download_url": "",
"platform": null,
"description": "# Modbus TCP simulator\r\n\r\n-set config in register_params.json\r\n\r\nex)\r\n<br>\r\n{<br>\r\n \"40001\":{\"max_int\":300, \"min_int\":100, \"address\":40001},<br>\r\n \"40002\":{\"max_int\":300, \"min_int\":20, \"address\":40002},<br>\r\n \"40004\":{\"max_int\":300, \"min_int\":20, \"address\":40004}<br>\r\n}\r\n\r\nstart simulating server by 'ygModbus-runserver'\r\n\r\nctrl+c for terminate server\r\n\r\nygModBus-runserver args:<br>\r\n ('-H', '--host', type=str, default='127.0.0.1', help='Host (default: 127.0.0.1)')<br>\r\n ('-p', '--port', type=int, default=502, help='TCP port (default: 502)')<br>\r\n ('-j', '--json', type=str, default='register_params.json', help='JSON file with register parameters (default: register_params.json)')<br>\r\n ('-i', '--interval', type=float, default=1.0, help='Interval in seconds for updating holding registers (default: 1.0)')<br>\r\n\r\nget response from server by 'ygModbus-request'\r\n\r\nygModbus-request args:<br>\r\n ('-H', '--host', type=str, default='127.0.0.1', help='Host (default: 127.0.0.1)')\r\n ('-p', '--port', type=int, default=502, help='TCP port (default: 502)')\r\n ('-n', '--number', type=int, default=1, help='Number of holding registers (default: 1)')\r\n ('-s', '--start', type=int, default=40001, help='Starting register address (default: 40001)')\r\n",
"bugtrack_url": null,
"license": "",
"summary": "simple Modebus client and server test by response of random number",
"version": "0.0.14",
"project_urls": {
"Homepage": "https://github.com/devggu/"
},
"split_keywords": [
"modebus",
"pshn123",
"devggu",
"tcp",
"server",
"client"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e030c3bb6fefa6d4b85227d3316cfc35d0dabfa4dfc97d684f76eae6006b006a",
"md5": "4b7ca8ab94420416c8682ce8e82eca77",
"sha256": "cef9fc463c22fc118718723349ed48966a1e3cc4d9e27b41dff834c6c25fe4ce"
},
"downloads": -1,
"filename": "ygModbus-0.0.14-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4b7ca8ab94420416c8682ce8e82eca77",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 5057,
"upload_time": "2023-05-29T13:11:16",
"upload_time_iso_8601": "2023-05-29T13:11:16.206791Z",
"url": "https://files.pythonhosted.org/packages/e0/30/c3bb6fefa6d4b85227d3316cfc35d0dabfa4dfc97d684f76eae6006b006a/ygModbus-0.0.14-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-29 13:11:16",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "ygmodbus"
}