You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HI,
im trying to download all DB from cpu , while reading the libnodave crashes and sometimes i get stack overflow exception in PLCListBlocks method , i tried same with snap7 and i can download the blocks , here is the output i got from Snap7:
Cpu Type : 6ES7 410-5HX08-0AB0
+-----------------------------------------------------
| UNIT Connection
+-----------------------------------------------------
| Result : OK
| Execution time : 793 ms
+-----------------------------------------------------
Connected to : 192.168.2.11 (Rack=0, Slot=3)
PDU Requested : 480 bytes
PDU Negotiated : 480 bytes
+-----------------------------------------------------
| List Blocks in AG
+-----------------------------------------------------
| Result : OK
| Execution time : 270 ms
+-----------------------------------------------------
OBCount : 22
FBCount : 106
FCCount : 2667
SFBCount : 28
SFCCount : 72
DBCount : 9647
SDBCount : 55
as you can see during "more data" , the thread crashes.
i tested it on another cpu and the thing i noticed (maybe im wrong) if the Total DB count is on the low side like maybe few hundred's , it works flawlessly
Code:
var connection = new PLCConnection(
new PLCConnectionConfiguration("BackupS7",
LibNodaveConnectionConfigurationType.ObjectSavedConfiguration)
{
ConnectionType = LibNodaveConnectionTypes.ISO_over_TCP,
CpuIP = "192.168.2.11",
CpuRack = 0,
CpuSlot = 3
});
connection.Connect();
var szlDat = connection.PLCGetSZL(0x0111, 1);
if (szlDat.SZLDaten.Length > 0)
{
xy11Dataset xy11Szl = szlDat.SZLDaten[0] as xy11Dataset;
if (xy11Szl != null)
Console.WriteLine("Connected, MLFB: " + xy11Szl.MlfB);
}
var x = connection.PLCGetState();
var existingBlocks = connection.PLCListBlocks(PLCBlockType.DB);
The text was updated successfully, but these errors were encountered:
HI,
im trying to download all DB from cpu , while reading the libnodave crashes and sometimes i get stack overflow exception in PLCListBlocks method , i tried same with snap7 and i can download the blocks , here is the output i got from Snap7:
Cpu Type : 6ES7 410-5HX08-0AB0
+-----------------------------------------------------
| UNIT Connection
+-----------------------------------------------------
| Result : OK
| Execution time : 793 ms
+-----------------------------------------------------
Connected to : 192.168.2.11 (Rack=0, Slot=3)
PDU Requested : 480 bytes
PDU Negotiated : 480 bytes
+-----------------------------------------------------
| List Blocks in AG
+-----------------------------------------------------
| Result : OK
| Execution time : 270 ms
+-----------------------------------------------------
OBCount : 22
FBCount : 106
FCCount : 2667
SFBCount : 28
SFCCount : 72
DBCount : 9647
SDBCount : 55
+-----------------------------------------------------
And here is the output from the Toolbox lib:
as you can see during "more data" , the thread crashes.
i tested it on another cpu and the thing i noticed (maybe im wrong) if the Total DB count is on the low side like maybe few hundred's , it works flawlessly
Code:
var connection = new PLCConnection(
new PLCConnectionConfiguration("BackupS7",
LibNodaveConnectionConfigurationType.ObjectSavedConfiguration)
{
ConnectionType = LibNodaveConnectionTypes.ISO_over_TCP,
CpuIP = "192.168.2.11",
CpuRack = 0,
CpuSlot = 3
});
connection.Connect();
var szlDat = connection.PLCGetSZL(0x0111, 1);
if (szlDat.SZLDaten.Length > 0)
{
xy11Dataset xy11Szl = szlDat.SZLDaten[0] as xy11Dataset;
if (xy11Szl != null)
Console.WriteLine("Connected, MLFB: " + xy11Szl.MlfB);
}
var x = connection.PLCGetState();
var existingBlocks = connection.PLCListBlocks(PLCBlockType.DB);
The text was updated successfully, but these errors were encountered: