diff --git a/Home.md b/Home.md index c4aded7..b6fb853 100644 --- a/Home.md +++ b/Home.md @@ -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