feat: Add Plc.ReadStatusAsync

This commit is contained in:
Michael Croes
2023-07-22 22:53:45 +02:00
parent 1fc6899905
commit 0d9ccea11b
2 changed files with 21 additions and 0 deletions

View File

@@ -329,5 +329,15 @@ namespace S7.Net
return package.ToArray();
}
private static byte[] BuildSzlReadRequestPackage(ushort szlId, ushort szlIndex)
{
var stream = new System.IO.MemoryStream();
WriteSzlReadRequest(stream, szlId, szlIndex);
stream.SetLength(stream.Position);
return stream.ToArray();
}
}
}