Added mapping for TouchProbe function in CIA402 slave node
authorLaurent Bessard
Wed, 08 May 2013 10:40:06 +0200
changeset 2146 0c65c96a8379
parent 2145 65ed4f7c941b
child 2147 a8b095de63e8
Added mapping for TouchProbe function in CIA402 slave node
etherlab/EthercatCIA402Slave.py
--- a/etherlab/EthercatCIA402Slave.py	Fri May 03 13:47:51 2013 +0200
+++ b/etherlab/EthercatCIA402Slave.py	Wed May 08 10:40:06 2013 +0200
@@ -36,7 +36,17 @@
     ("DigitalOutputs", [
         {"description": ("DigitalOutputs", 0x60FE, 0x00, "UDINT", "Q"),
          "retrieve": None}
-        ])
+        ]),
+    ("TouchProbe", [
+        {"description": ("TouchProbeFunction", 0x60B8, 0x00, "UINT", "Q"),
+         "retrieve": None},
+        {"description": ("TouchProbeStatus", 0x60B9, 0x00, "UINT", "I"),
+         "publish": None},
+        {"description": ("TouchProbePos1PosValue", 0x60BA, 0x00, "DINT", "I"),
+         "publish": None},
+        {"description": ("TouchProbePos1NegValue", 0x60BB, 0x00, "DINT", "I"),
+         "publish": None},
+        ]),
 ]
 EXTRA_NODE_VARIABLES_DICT = dict([("Enable" + name, value) for name, value in EXTRA_NODE_VARIABLES])