{"id":19449466,"url":"https://github.com/techplexengineer/modbus-sim","last_synced_at":"2026-05-13T13:31:27.794Z","repository":{"id":144897390,"uuid":"501295842","full_name":"TechplexEngineer/modbus-sim","owner":"TechplexEngineer","description":"Simple Modbus/tcp simulator","archived":false,"fork":false,"pushed_at":"2022-06-08T16:02:52.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-07T23:36:24.065Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TechplexEngineer.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-06-08T14:53:09.000Z","updated_at":"2022-08-15T15:30:47.000Z","dependencies_parsed_at":"2023-04-26T01:17:01.069Z","dependency_job_id":null,"html_url":"https://github.com/TechplexEngineer/modbus-sim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechplexEngineer%2Fmodbus-sim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechplexEngineer%2Fmodbus-sim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechplexEngineer%2Fmodbus-sim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechplexEngineer%2Fmodbus-sim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechplexEngineer","download_url":"https://codeload.github.com/TechplexEngineer/modbus-sim/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240636767,"owners_count":19832937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-10T16:32:42.792Z","updated_at":"2026-05-13T13:31:27.742Z","avatar_url":"https://github.com/TechplexEngineer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[Modbus Simulator](github.com/techplexengineer/modbus-sim)\n================\n\nA simple modbus/tcp server based on the modbus server implementation from github.com/tbrandon/mbserver\n\nThe Holding Registers and Input Registers are defined as follows:\n\n### Holding Registers\n\nTo read Holding Register `100` use `400100`\n\n| Address | Description |\n| :-----: | ----------- |\n| 100     | 0xff00 ie. 65280 |\n| 101     | 0xffff ie. 65535 or -1 |\n| 102     | 0x0000 ie. 0 |\n| 201     | artificially generates error: IllegalFunction |\n| 202     | artificially generates error: IllegalDataAddress |\n| 203     | artificially generates error: IllegalDataValue |\n| 204     | artificially generates error: SlaveDeviceFailure |\n| 205     | artificially generates error: AcknowledgeSlave |\n| 206     | artificially generates error: SlaveDeviceBusy |\n| 207     | artificially generates error: NegativeAcknowledge |\n| 208     | artificially generates error: MemoryParityError |\n| 210     | artificially generates error: GatewayPathUnavailable |\n| 211     | artificially generates error: GatewayTargetDeviceFailedtoRespond |\n| 300     | uptime msb |\n| 301     | uptime lsb |\n| 302     | application start time msb |\n| 303     | application start time lsb |\n| 400     | unixtime msb |\n| 401     | unixtime lsb |\n| 500     | math.pi msb |\n| 501     | math.pi lsb |\n\n### Input Registers\n\nTo read Input Register `100` use `300100`\n\n| Address | Description |\n| :-----: | ----------- |\n| 100     | 0xff00 ie. 65280 |\n| 101     | 0xffff ie. 65535 or -1 |\n| 102     | 0x0000 ie. 0 |\n| 201     | artificially generates error: IllegalFunction |\n| 202     | artificially generates error: IllegalDataAddress |\n| 203     | artificially generates error: IllegalDataValue |\n| 204     | artificially generates error: SlaveDeviceFailure |\n| 205     | artificially generates error: AcknowledgeSlave |\n| 206     | artificially generates error: SlaveDeviceBusy |\n| 207     | artificially generates error: NegativeAcknowledge |\n| 208     | artificially generates error: MemoryParityError |\n| 210     | artificially generates error: GatewayPathUnavailable |\n| 211     | artificially generates error: GatewayTargetDeviceFailedtoRespond |\n| 300     | uptime msb |\n| 301     | uptime lsb |\n| 302     | application start time msb |\n| 303     | application start time lsb |\n| 400     | unixtime msb |\n| 401     | unixtime lsb |\n| 500     | math.pi msb |\n| 501     | math.pi lsb |\n\n## Supported Architectures\nSimply pulling `techplex/modbus-sim:latest` should retrieve the correct image for your arch.\n\nThe architectures supported by this image are:\n| Architecture | Available |\n| :----------: | :-------: |\n| x86-64       | ✅        |\n| arm64        | ✅        |\n| armhf        | ✅        |\n\n\n## Application Setup\nThe application can be accessed at tcp://yourhost:1502\n\n## Usage\nHere are some example snippets to help you get started creating a container.\n\n### docker-compose\n\n```yaml\n---\nversion: \"2.1\"\nservices:\n  modbus:\n    image: techplex/modbus-sim:latest\n    container_name: modbus\n    ports:\n      - 1502:1502\n    restart: unless-stopped\n```\n\n### docker cli\n\n```bash\ndocker run -d \\\n  --name=modbus \\\n  -p 1502:1502 \\\n  --restart unless-stopped \\\n  techplex/modbus-sim:latest\n```\n\n## Updating Info\n\nBelow are the instructions for updating containers:\n\n### Via Docker Compose\n\n* Update all images: `docker-compose pull`\n  * or update a single image: `docker-compose pull techplex/modbus-sim`\n* Let compose update all containers as necessary: `docker-compose up -d`\n  * or update a single container: `docker-compose up -d techplex/modbus-sim`\n* You can also remove the old dangling images: `docker image prune`\n\n### Via Docker Run\n\n* Update the image: `docker pull techplex/modbus-sim:latest`\n* Stop the running container: `docker stop techplex/modbus-sim`\n* Delete the container: `docker rm techplex/modbus-sim`\n* Recreate a new container with the same docker run parameters as instructed above\n* You can also remove the old dangling images: `docker image prune`\n\n## Building locally\n\nIf you want to make local modifications to these images for development purposes or just to customize the logic:\n\n```bash\ngit clone https://github.com/techplexengineer/modbus-sim.git\ncd modbus-sim\ndocker build \\\n  --no-cache \\\n  --pull \\\n  -t techplex/modbus-sim:latest .\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechplexengineer%2Fmodbus-sim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechplexengineer%2Fmodbus-sim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechplexengineer%2Fmodbus-sim/lists"}