Changed boolean register usage and attributes

This commit is contained in:
Felix Weiß
2023-06-23 13:51:11 +02:00
parent 50a11a3497
commit ebee8a0623
15 changed files with 256 additions and 300 deletions

View File

@@ -7,7 +7,7 @@ namespace Examples {
public class TestRegisters : RegisterCollectionBase {
//corresponds to a R100 boolean register in the PLC
[Register(1000, RegisterType.R)]
[Register(IOType.R, 1000)]
public bool TestBool1 { get; private set; }
private int testDuplicate;
@@ -19,7 +19,7 @@ namespace Examples {
}
//corresponds to a XD input of the PLC
[Register(RegisterType.X, SpecialAddress.D)]
[Register(IOType.X, (byte)0xD)]
public bool TestBoolInputXD { get; private set; }
//corresponds to a DT1101 - DT1104 string register in the PLC with (STRING[4])