equal
deleted
inserted
replaced
43 colname = ["#"] |
43 colname = ["#"] |
44 if position: |
44 if position: |
45 colname.append(_("Position")) |
45 colname.append(_("Position")) |
46 return colname + [_("Name"), _("Index"), _("SubIndex"), _("Type"), _("Access")] |
46 return colname + [_("Name"), _("Index"), _("SubIndex"), _("Type"), _("Access")] |
47 |
47 |
|
48 |
48 ACCESS_TYPES = { |
49 ACCESS_TYPES = { |
49 'ro': 'R', |
50 'ro': 'R', |
50 'wo': 'W', |
51 'wo': 'W', |
51 'rw': 'R/W'} |
52 'rw': 'R/W'} |
52 |
53 |
54 def GetAccessValue(access, pdo_mapping): |
55 def GetAccessValue(access, pdo_mapping): |
55 value = "SDO: %s" % ACCESS_TYPES.get(access, "") |
56 value = "SDO: %s" % ACCESS_TYPES.get(access, "") |
56 if pdo_mapping != "": |
57 if pdo_mapping != "": |
57 value += ", PDO: %s" % pdo_mapping |
58 value += ", PDO: %s" % pdo_mapping |
58 return value |
59 return value |
|
60 |
59 |
61 |
60 VARIABLES_FILTERS = [ |
62 VARIABLES_FILTERS = [ |
61 (_("All"), (0x0000, 0xffff)), |
63 (_("All"), (0x0000, 0xffff)), |
62 (_("Communication Parameters"), (0x1000, 0x1fff)), |
64 (_("Communication Parameters"), (0x1000, 0x1fff)), |
63 (_("Manufacturer Specific"), (0x2000, 0x5fff)), |
65 (_("Manufacturer Specific"), (0x2000, 0x5fff)), |
325 self.EtherCATManagementEditor.Scroll(posx, posy) |
327 self.EtherCATManagementEditor.Scroll(posx, posy) |
326 self.EtherCATManagementEditor.SetScrollbars(SCROLLBAR_UNIT, SCROLLBAR_UNIT, |
328 self.EtherCATManagementEditor.SetScrollbars(SCROLLBAR_UNIT, SCROLLBAR_UNIT, |
327 maxx / SCROLLBAR_UNIT, maxy / SCROLLBAR_UNIT, posx, posy) |
329 maxx / SCROLLBAR_UNIT, maxy / SCROLLBAR_UNIT, posx, posy) |
328 event.Skip() |
330 event.Skip() |
329 # ------------------------------------------------------------------------------------------------------- |
331 # ------------------------------------------------------------------------------------------------------- |
|
332 |
330 |
333 |
331 CIA402NodeEditor = NodeEditor |
334 CIA402NodeEditor = NodeEditor |
332 |
335 |
333 |
336 |
334 def GetProcessVariablesTableColnames(): |
337 def GetProcessVariablesTableColnames(): |
593 args = self.CurrentNodesFilter.copy() |
596 args = self.CurrentNodesFilter.copy() |
594 args["limits"] = self.CurrentFilter |
597 args["limits"] = self.CurrentFilter |
595 entries = self.Controler.GetNodesVariables(**args) |
598 entries = self.Controler.GetNodesVariables(**args) |
596 self.RefreshVariablesGrid(entries) |
599 self.RefreshVariablesGrid(entries) |
597 |
600 |
|
601 |
598 NODE_POSITION_FILTER_FORMAT = _("Node Position: %d") |
602 NODE_POSITION_FILTER_FORMAT = _("Node Position: %d") |
599 |
603 |
600 |
604 |
601 class MasterEditor(ConfTreeNodeEditor): |
605 class MasterEditor(ConfTreeNodeEditor): |
602 |
606 |