Skip to content

Latest commit

Β 

History

History
30 lines (21 loc) Β· 826 Bytes

File metadata and controls

30 lines (21 loc) Β· 826 Bytes

Modbus Segment Framework (IEC ST)

A lightweight, structured Modbus OOP communication library for IEC 61131-3 Structured Text.

This library focuses on clean separation between transport, memory, and data mapping, providing a more maintainable alternative to traditional register-based access patterns.


πŸš€ Overview

Traditional Modbus usage in PLC environments often looks like this:

value := MW%1234;

This approach: mixes transport with logic hides communication state makes testing difficult scales poorly for complex data structures

The library introduces an approach based on: Segments – represent Modbus memory blocks Service – processes communication centrally Codecs – map raw data to typed structures Cursor – simplifies sequential parsing

Status: In progress