Made registers use the IRegister interface

- cleanup and refactoring
- fully implemented auto prop register generator unit tests #4
- added plc test program c30 fpx-h
- fixed bitarray setback
- cleaned up examples and added new ones with addition of attributes for later additions
This commit is contained in:
Felix Weiß
2023-06-15 20:04:38 +02:00
parent 6ca8e9de96
commit 09f4da54a9
23 changed files with 1478 additions and 811 deletions

View File

@@ -10,8 +10,13 @@ namespace Examples {
[Register(1000, RegisterType.R)]
public bool TestBool1 { get; private set; }
private int testDuplicate;
[Register(1000)]
public int TestDuplicate { get; private set; }
public int TestDuplicate {
get => testDuplicate;
set => AutoSetter(value, ref testDuplicate);
}
//corresponds to a XD input of the PLC
[Register(RegisterType.X, SpecialAddress.D)]