Removing call to UpdateAxis and ComputeAxis in CIA DS402 node generated retrieve and publish functions. These calls have been transfered to MCL library retrieve and publish functions.
authorLaurent Bessard
Tue, 04 Sep 2012 15:00:35 +0200
changeset 2070 dee8d519f3ff
parent 2069 840d328560f8
child 2071 37d603e91a43
Removing call to UpdateAxis and ComputeAxis in CIA DS402 node generated retrieve and publish functions. These calls have been transfered to MCL library retrieve and publish functions.
etherlab/plc_cia402node.c
--- a/etherlab/plc_cia402node.c	Fri Jul 20 02:13:07 2012 +0200
+++ b/etherlab/plc_cia402node.c	Tue Sep 04 15:00:35 2012 +0200
@@ -105,14 +105,10 @@
 
 	__CIA402Node_%(location)s.axis->PowerFeedback = __CIA402Node_%(location)s.state == __OperationEnabled;
 	__CIA402Node_%(location)s.axis->ActualPosition = (IEC_REAL)(*(__CIA402Node_%(location)s.ActualPosition)) * __CIA402Node_%(location)s.axis->RatioDenominator / __CIA402Node_%(location)s.axis->RatioNumerator;
-
-	__MK_UpdateAxis(*__IW%(location)s_0);
 }
 
 void __publish_%(location)s()
 {
-	__MK_ComputeAxis(*__IW%(location)s_0);
-
 	IEC_BOOL power = ((*(__CIA402Node_%(location)s.StatusWord) & __PowerMask) > 0) && __CIA402Node_%(location)s.axis->Power;
 
 	// CIA402 node state transition computation