mirror of
https://github.com/S7NetPlus/s7netplus.git
synced 2025-12-20 10:26:49 +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
|
then add the code to read or write the complete struct
|
||||||
```csharp
|
```csharp
|
||||||
// reads a struct from DataBlock 1
|
// reads a struct from DataBlock 1, startAddress 0
|
||||||
TestClass testClass = new TestClass();
|
TestClass testClass = new TestClass();
|
||||||
plc.ReadClass(testClass, 1);
|
plc.ReadClass(testClass, 1, 0);
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user