I'm not sure, I haven't used VB.Net for over a decade. But the array needs to be large enough before calling Plc.DBRead(). So probably like this: Dim codice As String Dim code(20) As Byte Plc.DBRead(MemoryArea, 0, 20, code) codice = Snap7.S7.GetStringAt(code, 0) Just try and let me know if you get an error message. Also check the return value of Plc.DBRead. It should be 0; otherwise there's an error.
Please try this: Dim codice As String Dim code() As Byte = New Byte() {} Plc.DBRead(MemoryArea, 0, 20, code) codice = Snap7.S7.GetStringAt(code, 0)
Hi all! I implemented ListBlocks and ListBlocksOfType into Sharp7. Please see https://github.com/soft79/Sharp7
Are you using the right Port/Rack number? Should be rack=0, slot=1. The sent packet is ok. Expected answer is: 03 00 00 16 02 F0 80 32 03 00 00 05 00 00 02 00 01 00 00 05 01 FF