add writable systemcontrol

This commit is contained in:
atef 2026-02-27 12:55:54 +01:00
parent b6b1cfccb9
commit 4d27515c14
1 changed files with 4 additions and 4 deletions

View File

@ -19,14 +19,14 @@ public partial record SystemControlRegisters
{ {
private const UInt16 NoTimeout = UInt16.MaxValue; private const UInt16 NoTimeout = UInt16.MaxValue;
[HoldingRegister(1016)] private UInt16 _CommunicationTimeoutSeconds; [HoldingRegister(1016, writable: true)] private UInt16 _CommunicationTimeoutSeconds;
[HoldingRegister(1018)] public SystemConfig SystemConfig { get; set; } [HoldingRegister(1018, writable: true)] public SystemConfig SystemConfig { get; set; }
//[Coil(4002)] //[Coil(4002)]
[HoldingRegister(4002)] public Boolean ResetAlarmsAndWarnings { get; set; } [HoldingRegister(4002, writable: true)] public Boolean ResetAlarmsAndWarnings { get; set; }
[HoldingRegister(4007)] public UInt16 TargetSlave { get; set; } [HoldingRegister(4007, writable: true)] public UInt16 TargetSlave { get; set; }
//[Coil(4011)] //[Coil(4011)]
[HoldingRegister(4011, writable: true)] public Boolean UseSlaveIdForAddressing { get; set; } [HoldingRegister(4011, writable: true)] public Boolean UseSlaveIdForAddressing { get; set; }