ao_modbus_server
Active object handling Modbus RTU request and response event flows.
Inherited Component
Inherited Requirements
Relationship Diagram
SW Unit Relations
Outgoing Relations
Relation |
UML Type |
Visibility |
Target Unit |
Description |
|---|---|---|---|---|
dependency |
private |
Modbus server uses hardware-adapted UART events. |
||
dependency |
private |
Modbus server forwards configuration update requests to config manager for validation and commit. |
Incoming Relations
Relation |
UML Type |
Visibility |
Source Unit |
Description |
|---|---|---|---|---|
dependency |
public |
Runtime supervisor dispatches communication events. |
Data Types
Internal runtime context for ao_modbus_server.
Struct Members
Name |
Type |
Description |
|---|---|---|
session_state |
Modbus session state. |
|
last_function_code |
Last processed function code. |
|
exception_active |
Exception response active. |
|
last_request_tick |
Last request processing tick. |
Event payload handled by ao_modbus_server.
Struct Members
Name |
Type |
Description |
|---|---|---|
signal_id |
Modbus event signal id. |
|
function_code |
Requested function code. |
|
register_address |
Starting register address. |
|
register_count |
Register quantity. |
Result code for ao_modbus_server operations.
Enum Members
Name |
Value |
Description |
|---|---|---|
OK |
0 |
Transaction served. |
FRAME_ERROR |
1 |
Frame parsing failed. |
MODBUS_EXCEPTION |
2 |
Exception response returned. |
Attributes
Attribute |
Type |
Visibility |
Description |
|---|---|---|---|
ctx |
private |
Runtime context for ao_modbus_server state timing and error tracking. |
Methods
dispatch
Return Type: ao_modbus_server_result
Visibility: public
Description: Process one ao_modbus_server event and update runtime outputs.
Parameters
Name |
Type |
Direction |
Description |
|---|---|---|---|
event |
in |
Process one ao_modbus_server event and update runtime outputs. |
init
Return Type: ao_modbus_server_result
Visibility: public
Description: Initialize ao_modbus_server runtime state and dependencies.
Dynamic Behaviour
State Machines
ao_modbus_server_state
This state machine models Modbus request processing phases including frame reception validation protocol error handling and response transmission to ensure deterministic interface behavior for valid and invalid master transactions.
Sequence Diagrams
SEQ-001_Runtime_Event_Orchestration
Primary runtime interoperability sequence showing scheduler tick propagation through dispatcher fan-out and deterministic active-object processing order across monitoring control safety diagnostics and communication units.
SEQ-004_Modbus_Event_Servicing
Runtime-driven communication events are processed by the Modbus server through hardware-adapted UART event exchange.
SEQ-005_Startup_To_Ready
Startup lifecycle sequence with explicit readiness gates before entering Run state.
SEQ-007_Controlled_Shutdown
Controlled shutdown sequence defining stop ordering and completion criteria.