etherlab/plc_cia402node.c
changeset 2096 c9b0340ea0f5
parent 2094 72b74099b873
child 2104 69ffbd4bcfc3
--- a/etherlab/plc_cia402node.c	Wed Jan 30 23:46:58 2013 +0100
+++ b/etherlab/plc_cia402node.c	Thu Feb 07 00:59:50 2013 +0100
@@ -118,6 +118,8 @@
 	}
 
 	// Default variables retrieve
+	__CIA402Node_%(location)s.axis->CommunicationReady = *(__CIA402Node_%(location)s.StatusWord) != 0;
+	__CIA402Node_%(location)s.axis->ReadyForPowerOn = __CIA402Node_%(location)s.state == __SwitchedOn || __OperationEnabled;
 	__CIA402Node_%(location)s.axis->PowerFeedback = __CIA402Node_%(location)s.state == __OperationEnabled;
 	__CIA402Node_%(location)s.axis->ActualPosition = AXIS_UNIT_TO_USER_UNIT(*(__CIA402Node_%(location)s.ActualPosition));
 	__CIA402Node_%(location)s.axis->ActualVelocity = AXIS_UNIT_TO_USER_UNIT(*(__CIA402Node_%(location)s.ActualVelocity));