diff --git a/Home.md b/Home.md index 1725730..64156df 100644 --- a/Home.md +++ b/Home.md @@ -196,10 +196,12 @@ public ErrorCode WriteStruct(object structValue, int db, int startByteAdr = 0) • structType: Type of the struct to be read, for example: typeOf(MyStruct)) • db: index of the DB to read • startByteAdr: specified the first address of the byte to read (the default is zero). + Example: -You define a DataBlock in the plc like: - ![struct](https://github.com/killnine/s7netplus/blob/master/Documentation/struct.png) -Then you add a struct into your .Net application that is similiar to the DB in the plc: +Define a DataBlock in the plc like: +![struct](https://github.com/killnine/s7netplus/blob/master/Documentation/struct.png) + +Then add a struct into your .Net application that is similiar to the DB in the plc: public struct testStruct { public bool varBool0; @@ -238,9 +240,11 @@ public ErrorCode WriteClass(object classValue, int db, int startByteAdr = 0) • db: index of the DB to read • startByteAdr: specified the first address of the byte to read (the default is zero). Example: -You define a DataBlock in the plc like: +Define a DataBlock in the plc like: + ![struct](https://github.com/killnine/s7netplus/blob/master/Documentation/struct.png) -Then you add a struct into your .Net application that is similiar to the DB in the plc: + +Then add a struct into your .Net application that is similiar to the DB in the plc: public class TestClass { public bool varBool0 { get; set;}