Commit Graph

2 Commits

Author SHA1 Message Date
Miguel 9d6c554534 feat: Implement address normalization and tag mapping functionality
- Added ExampleAddressNormalization class to demonstrate automatic address normalization for PLCs.
- Introduced MapTagToAddress function in PLCViewModel for mapping symbolic tags to absolute addresses.
- Enhanced reading and writing functions to utilize the new mapping system, ensuring compatibility with both AdvCoSimulator and Sharp7 drivers.
- Improved error messages for unsupported tag operations in Sharp7 mode.
- Updated documentation to reflect changes in tag handling and address normalization.
- Created TagMappingExample class to showcase differential behavior between drivers.
- Unified interface for tag operations, eliminating driver-specific code.
- Prepared for future implementation of a tag mapping table.
2025-09-03 10:15:24 +02:00
Miguel c7ecdb7c14 feat: Implement dual driver support for PLC communication with Snap7 and AdvCoSimulator
- Added IPlcConnection interface for abstraction of PLC connections.
- Implemented Sharp7Connection for native S7 communication using Sharp7 library.
- Implemented AdvCoSimulatorConnection for communication with Siemens PLCSim.
- Unified API for reading/writing boolean and numeric values across both drivers.
- Enhanced PLCViewModel to support dynamic driver switching and connection management.
- Created ExampleUsage.cs to demonstrate usage of the library with both drivers.
- Updated README.md with installation instructions and API usage examples.
- Added diagnostic tests in TestApp.cs to validate driver configurations.
- Removed snap7.dll dependency and migrated to managed Sharp7 library.
2025-09-02 18:55:37 +02:00