{"id":21820312,"url":"https://github.com/seikosantana/modbus-sim","last_synced_at":"2026-06-22T18:32:00.000Z","repository":{"id":134283598,"uuid":"590745789","full_name":"seikosantana/modbus-sim","owner":"seikosantana","description":"A cross-platform Modbus server (slave) simulator with configurable rules for changing register values periodically for modbus-based development testing purposes.","archived":false,"fork":false,"pushed_at":"2023-01-19T05:34:19.000Z","size":8,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T16:51:11.073Z","etag":null,"topics":["modbus","simulator"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/seikosantana.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-19T05:11:34.000Z","updated_at":"2023-01-19T05:34:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"c6a71dd2-f9f2-4382-b111-60fe3e0f66d1","html_url":"https://github.com/seikosantana/modbus-sim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/seikosantana/modbus-sim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seikosantana%2Fmodbus-sim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seikosantana%2Fmodbus-sim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seikosantana%2Fmodbus-sim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seikosantana%2Fmodbus-sim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seikosantana","download_url":"https://codeload.github.com/seikosantana/modbus-sim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seikosantana%2Fmodbus-sim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34661703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["modbus","simulator"],"created_at":"2024-11-27T16:31:17.661Z","updated_at":"2026-06-22T18:31:59.982Z","avatar_url":"https://github.com/seikosantana.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ModbusSim\nA cross-platform Modbus server (slave) simulator with configurable rules for\nchanging register values periodically for modbus-based development testing purposes.\n\n## Configuration\nOne purpose of this simple simulator is to simulate changing values on the server-side.\nConfiguration is done in the `appsettings.json` file.\n\n### Modbus Settings\nThe `ModbusSettings` key in the JSON configures which port the server will be listening at,\nand how many seconds an idle connection is timed-out.\n```json\n\"ModbusSettings\": {\n    \"Port\": 5502,\n    \"ConnectionTimeoutSeconds\": 60\n}\n```\n\n### Rules\nThe `Rules` key in the JSON configures how holding registers will change values.\nThe `SimpleIncrementRules` is the only type of rule implemented for now, where\nthe register range defined between`StartReg` and `EndReg` inclusively will be\nincremented until the `MaxValue`, and then will be reset to its `InitialValue`.\n`EndReg` is optional. When `EndReg` is not defined, the rule applies only to the\nregister `StartReg`.\n\n```json\n\"Rules\": {\n    \"SimpleIncrementRules\": [\n        {\n            \"StartReg\": 1,\n            \"EndReg\": 10,\n            \"InitialValue\": 0,\n            \"MaxValue\": 4,\n            \"DelaySeconds\": 5\n        },\n        {\n            \"StartReg\": 11,\n            \"EndReg\": 20,\n            \"InitialValue\": 0,\n            \"MaxValue\": 2,\n            \"DelaySeconds\": 8\n        }\n    ]\n},\n```\n\nMore type of rules will be implemented in the future, if necessary.\n\n## Tips and Notes\n- If `EndReg` is not defined, rule applies only to a register `StartReg`.\n- If a register value should only be initialized, but not changing, set `MaxValue`\nas in `InitialValue`\n- The default configuration has `Port` set to 5502 to avoid `Permission Denied`. Most\nmodbus servers listens on port 502.\n- Rules are checked and validated when ModbusSim starts. Any other rule validation \ndetails can be seen on outputs or logs.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseikosantana%2Fmodbus-sim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseikosantana%2Fmodbus-sim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseikosantana%2Fmodbus-sim/lists"}