Fix bug with PowerFeedback value
authorlaurent
Thu, 23 Feb 2012 15:48:19 +0100
changeset 2035 1d113faf4433
parent 2034 ae8fecf082a1
child 2036 7c31fab22c74
Fix bug with PowerFeedback value
etherlab/plc_ds402node.c
--- a/etherlab/plc_ds402node.c	Wed Feb 22 01:39:22 2012 +0100
+++ b/etherlab/plc_ds402node.c	Thu Feb 23 15:48:19 2012 +0100
@@ -96,7 +96,7 @@
 		return;
 	}
 
-	__DS402Node_%(location)s.axis->PowerFeedback = __DS402Node_%(location)s.state != __OperationEnabled;
+	__DS402Node_%(location)s.axis->PowerFeedback = __DS402Node_%(location)s.state == __OperationEnabled;
 	__DS402Node_%(location)s.axis->ActualPosition = (IEC_REAL)(*(__DS402Node_%(location)s.ActualPosition)) * __DS402Node_%(location)s.axis->RatioDenominator / __DS402Node_%(location)s.axis->RatioNumerator;
 
 	__MK_UpdateAxis(*__IW%(location)s_0);