From b0a41d091d2b9ad32f320a6e4effbebe306ad39e Mon Sep 17 00:00:00 2001 From: FalcoGoodbody Date: Tue, 9 Feb 2021 13:52:12 +0100 Subject: [PATCH] Updated Home (markdown) --- Home.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Home.md b/Home.md index eed8c03..50f249b 100644 --- a/Home.md +++ b/Home.md @@ -199,6 +199,9 @@ ushort result = (ushort)plc.Read("DB1.DBW0"); This method reads all the bytes from a specified DB needed to fill a struct in C#, and returns the struct that contains the values. It is recommended to use when you want to read many variables in a single data block in some continuous memory range. + +The "read struct" and "write struct" methods do not support strings. + ```csharp public object ReadStruct(Type structType, int db, int startByteAdr = 0) @@ -243,6 +246,9 @@ testStruct myTestStruct = (testStruct) plc.ReadStruct(typeof(testStruct), 1, 0); This method reads all the bytes from a specified DB needed to fill a class in C#. The class is passed as reference and values are assigned by using reflection. It is recommended to use when you want to read many variables in a single data block in some continuous memory range. + +The "read class" and "write class" methods do not support strings. + ```csharp public void ReadClass(object sourceClass, int db, int startByteAdr = 0)