Skip to content

Commit 8f9e796

Browse files
Allow sub object 0 to be edited for PDO mapping parameters and thus support dynamic PDOs fixes #46
1 parent 0c11e50 commit 8f9e796

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎EDSTest/DeviceODView.cs‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,17 @@ public void validateanddisplaydata()
327327

328328
}
329329

330+
if (od.parent.objecttype == ObjectType.REC &&
331+
((od.parent.index >=0x1600 && od.parent.index <= 0x17ff) || (od.parent.index >= 0x1A00 && od.parent.index <= 0x1Bff)) &&
332+
od.subindex == 0)
333+
{
334+
//We are allowed to edit the no sub objects for the PDO mappings as its a requirment to support dynamic PDOs
335+
336+
textBox_defaultvalue.Enabled = true;
337+
comboBox_accesstype.Enabled = true;
338+
}
339+
340+
330341
updating = false;
331342

332343
return;

0 commit comments

Comments
 (0)