added startAddress at ReadStruct

FalcoGoodbody
2020-09-09 23:27:33 +02:00
parent ee35f20841
commit e06b8829df

@@ -237,8 +237,8 @@ public struct testStruct
```
then add the code to read or write the complete struct
```csharp
// reads a struct from DataBlock 1
testStruct test = (testStruct) plc.ReadStruct(typeof(testStruct), 1);
// reads a struct from DataBlock 1 at StartAddress 0
testStruct myTestStruct = (testStruct) plc.ReadStruct(typeof(testStruct), 1, 0);
```
## Read a class / Write a class