Skip to content

Conversation

r000bat
Copy link

@r000bat r000bat commented Aug 6, 2025

Updated the library for PHP 8.x compatibility:

  • Replaced old-style constructors
  • Made IEC helpers static
  • Switched from key_exists to array_key_exists
    Tested with PHP 8.0–8.3
  • Modbus Web Test Client (PHP + HTML + CSS + JS) [in examples]

  • add FC7 Read Exception Status handling to ModbusMaster

    document FC7 capability
    provide example script demonstrating FC7 usage

r000bat added 4 commits August 6, 2025 12:40
built with PHP and a responsive HTML/CSS/JS frontend.

Features:
- Supports Modbus TCP and UDP
- Compatible with the phpmodbus library (https://github.com/aldas/phpmodbus)
- Reads Coils, Discrete Inputs, Input Registers, Holding Registers
- Interval-based automatic polling
- Bitwise visual output (+0 to +15) with color-coded table
- Responsive two-column layout (form + result table)
- MIT License, suitable for general-purpose Modbus testing

Useful for:
- Device diagnostics
- Simulator or embedded target testing
- SCADA integrations or field testing of register outputs

GitHub: https://github.com/r000bat  
Date: 2025-08-06
- add FC7 Read Exception Status handling to ModbusMaster
- document FC7 capability
@r000bat r000bat changed the title Updated to support PHP 8 and above Updated to support PHP 8 and above + FC7 + TestClent Aug 6, 2025
@r000bat r000bat changed the title Updated to support PHP 8 and above + FC7 + TestClent Updated to support PHP 8 and above + FC7 + TestClient Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant