From 63f5a60eeaf55969f043d1bfabfa4c3e8530e873 Mon Sep 17 00:00:00 2001 From: Michele Cattafesta Date: Thu, 31 Aug 2017 21:03:57 +0100 Subject: [PATCH] Updated Home (markdown) --- Home.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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;}