mirror of
https://github.com/S7NetPlus/s7netplus.git
synced 2025-12-18 01:16:50 +08:00
added startAddress at ReadClass
4
Home.md
4
Home.md
@@ -283,7 +283,7 @@ public class TestClass
|
||||
```
|
||||
then add the code to read or write the complete struct
|
||||
```csharp
|
||||
// reads a struct from DataBlock 1
|
||||
// reads a struct from DataBlock 1, startAddress 0
|
||||
TestClass testClass = new TestClass();
|
||||
plc.ReadClass(testClass, 1);
|
||||
plc.ReadClass(testClass, 1, 0);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user