Updated Home (markdown)

Michele Cattafesta
2017-08-31 21:11:08 +01:00
parent c7801404c7
commit 430d8b773a

@@ -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