From 430d8b773a2fcdee4e62f18dcb8c533577b6f9d3 Mon Sep 17 00:00:00 2001 From: Michele Cattafesta Date: Thu, 31 Aug 2017 21:11:08 +0100 Subject: [PATCH] Updated Home (markdown) --- Home.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Home.md b/Home.md index feb5dba..c9bb1cd 100644 --- a/Home.md +++ b/Home.md @@ -203,7 +203,7 @@ Define a DataBlock in the plc like: Then add a struct into your .Net application that is similiar to the DB in the plc: -`public struct testStruct +public struct testStruct { public bool varBool0; public bool varBool1; @@ -212,19 +212,15 @@ Then add a struct into your .Net application that is similiar to the DB in the p public bool varBool4; public bool varBool5; public bool varBool6; - public byte varByte0; public byte varByte1; - public ushort varWord0; - public double varReal0; public bool varBool7; public double varReal1; - public byte varByte2; public UInt32 varDWord; -}` +} then you add the code to read or write the complete struct // reads a struct from DataBlock 1