mirror of
https://github.com/S7NetPlus/s7netplus.git
synced 2025-12-17 17:06:50 +08:00
Edit: within the part "Read class" changed the words structs to class
4
Home.md
4
Home.md
@@ -281,9 +281,9 @@ public class TestClass
|
||||
public UInt32 varDWord { get; set;}
|
||||
}
|
||||
```
|
||||
then add the code to read or write the complete struct
|
||||
then add the code to read or write the complete class
|
||||
```csharp
|
||||
// reads a struct from DataBlock 1, startAddress 0
|
||||
// reads a class from DataBlock 1, startAddress 0
|
||||
TestClass myTestClass = new TestClass();
|
||||
plc.ReadClass(myTestClass, 1, 0);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user