RuleGo RuleGo
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • StreamSQL
  • AI Agent Framework
  • TPCLAW Agent Platform (opens new window)
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • StreamSQL
  • AI Agent Framework
  • TPCLAW Agent Platform (opens new window)
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文

广告采用随机轮播方式显示 ❤️成为赞助商
  • Quick Start

  • Rule Chain

  • Standard Components

  • Extension Components

    • Extension Components Overview
    • filter

    • action

    • transform

    • external

    • ai

    • ci

    • IoT

      • IoT Components Overview
      • Input Endpoints

        • OPC_UA Subscribe
        • SNMP Trap Endpoint
        • Modbus Server Endpoint
          • Configuration
          • How It Works
          • Write Trigger Message
          • Use Cases
      • Protocol Acquisition

      • Time-Series Database

      • 控制

      • IoT Scenarios
    • Stream Processing

    • Service Discovery

    • file

  • Custom Components

  • Components marketplace

  • Visualization

  • AOP

  • Trigger

  • Advanced Topic

  • Agent Framework

  • RuleGo-Server

  • FAQ

  • Endpoint Module

  • Support

  • StreamSQL

目录

Modbus Server Endpoint

endpoint/modbusServer: v0.37.0+Modbus TCP slave endpoint. Accepts master connections; writes to Coil/Holding Register trigger rule chain messages.

Requires: rulego-components-iot (opens new window)

# Configuration

Field Type Description Default
server string Listen URL (tcp://host:port) tcp://:502
unitId int Slave unit ID (0 = accept all) 0
maxClients uint Max concurrent connections 10
coils uint Coil area size (bits) 2000
registers uint Register area size (words) 2000

# How It Works

  1. In-memory register table: 4 areas (Coils/DI/HR/IR); master reads return table values
  2. Write triggers rule chain: master writes to HR/Coil → message flows into rule chain
  3. External write-back: rule chain updates registers via SetRegisters/SetCoils for master to read

# Write Trigger Message

{"type": "holding_register", "unitId": 1, "addr": 100, "quantity": 2, "values": [1234, 5678], "clientAddr": "192.168.1.10:54321"}
1

Metadata injection: modbusType (coil/holding_register), clientAddr.

# Use Cases

  • SCADA bridge: master writes → trigger automation
  • Virtual device: rule chain updates registers → master polls
  • Write-triggered flows: PLC write → alert/logging/linkage
Edit this page on GitHub (opens new window)
Last Updated: 2026/07/29, 07:07:39
SNMP Trap Endpoint
OPC_UA Read

← SNMP Trap Endpoint OPC_UA Read→

Theme by Vdoing | Copyright © 2023-2026 RuleGo Team | Apache 2.0 License

  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式