mirror of
https://github.com/S7NetPlus/s7netplus.git
synced 2025-12-17 17:06:50 +08:00
Updated Home (markdown)
6
Home.md
6
Home.md
@@ -193,9 +193,9 @@ public object ReadStruct(Type structType, int db, int startByteAdr = 0)
|
||||
|
||||
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).
|
||||
* 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:
|
||||
Define a DataBlock in the plc like:
|
||||
|
||||
Reference in New Issue
Block a user