mirror of
https://github.com/S7NetPlus/s7netplus.git
synced 2025-12-19 09:56:49 +08:00
Updated Value conversion (markdown)
@@ -91,8 +91,7 @@ private byte[] ConvertStringToByteArray(string myString)
|
||||
|
||||
// use the helper function to convert myString into S7-String and write it to the plc
|
||||
// write the string into DataBlock 204, startAddress 0
|
||||
byte[] byteArray;
|
||||
byteArray = ConvertStringToByteArray(myString);
|
||||
byte[] byteArray = ConvertStringToByteArray(myString);
|
||||
plc.WriteBytes(DataType.DataBlock, 204, 0, byteArray);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user