mirror of
https://github.com/S7NetPlus/s7netplus.git
synced 2025-12-17 17:06:50 +08:00
added startAddress at ReadStruct
4
Home.md
4
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user