plcopen/types_enums.py
changeset 2530 02d09fc6eb90
parent 2529 efb532295607
child 3750 f62625418bff
equal deleted inserted replaced
2521:48ebcbe7f19b 2530:02d09fc6eb90
   115     return "R::%s::%s" % (config, resource)
   115     return "R::%s::%s" % (config, resource)
   116 
   116 
   117 
   117 
   118 def GetElementType(tagname):
   118 def GetElementType(tagname):
   119     words = tagname.split("::")
   119     words = tagname.split("::")
       
   120     if len(words) == 1:
       
   121         return ITEM_CONFNODE
   120     return {
   122     return {
   121         "D": ITEM_DATATYPE,
   123         "D": ITEM_DATATYPE,
   122         "P": ITEM_POU,
   124         "P": ITEM_POU,
   123         "T": ITEM_TRANSITION,
   125         "T": ITEM_TRANSITION,
   124         "A": ITEM_ACTION,
   126         "A": ITEM_ACTION,