etherlab/etherlab.py
changeset 2085 ae263886ae92
parent 2084 579af800b359
child 2086 8e4992e0f147
equal deleted inserted replaced
2084:579af800b359 2085:ae263886ae92
   169         ("StatusWord", 0x6041, 0x00, "UINT", "I"),
   169         ("StatusWord", 0x6041, 0x00, "UINT", "I"),
   170         ("ModesOfOperationDisplay", 0x06061, 0x00, "SINT", "I"),
   170         ("ModesOfOperationDisplay", 0x06061, 0x00, "SINT", "I"),
   171         ("ActualPosition", 0x6064, 0x00, "DINT", "I"),
   171         ("ActualPosition", 0x6064, 0x00, "DINT", "I"),
   172     ]
   172     ]
   173     
   173     
   174     DEFAULT_RETRIEVE = "    __CIA402Node_%(location)s.axis->%(name)s = __CIA402Node_%(location)s.%(name)s;"
   174     DEFAULT_RETRIEVE = "    __CIA402Node_%(location)s.axis->%(name)s = *(__CIA402Node_%(location)s.%(name)s);"
   175     DEFAULT_PUBLISH = "    __CIA402Node_%(location)s.%(name)s = __CIA402Node_%(location)s.axis->%(name)s;"
   175     DEFAULT_PUBLISH = "    *(__CIA402Node_%(location)s.%(name)s) = __CIA402Node_%(location)s.axis->%(name)s;"
   176     
   176     
   177     EXTRA_NODE_VARIABLES = [
   177     EXTRA_NODE_VARIABLES = [
   178         ("DigitalInputs", [
   178         ("DigitalInputs", [
   179             {"description": ("DigitalInputs", 0x60FD, 0x00, "UDINT", "I"),
   179             {"description": ("DigitalInputs", 0x60FD, 0x00, "UDINT", "I"),
   180              "publish": None}
   180              "publish": None}