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.
--- 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