CiA402 now fills NetworkPosition member of public axis struct
authorEdouard Tisserant
Thu, 14 Mar 2013 17:29:59 +0900
changeset 2104 69ffbd4bcfc3
parent 2103 5a82d40c4b04
child 2105 a62c0de6986f
CiA402 now fills NetworkPosition member of public axis struct
etherlab/plc_cia402node.c
--- a/etherlab/plc_cia402node.c	Thu Mar 07 00:54:45 2013 +0100
+++ b/etherlab/plc_cia402node.c	Thu Mar 14 17:29:59 2013 +0900
@@ -58,7 +58,7 @@
 %(init_entry_variables)s
 	*__IW%(location)s_0 = __MK_Alloc_AXIS_REF();
 	__CIA402Node_%(location)s.axis = __MK_GetPublic_AXIS_REF(*__IW%(location)s_0);
-	__MK_Set_AXIS_REF_Pos(*__IW%(location)s_0, %(slave_pos)d);
+	__CIA402Node_%(location)s.axis->NetworkPosition = %(slave_pos)d;
 	*(__CIA402Node_%(location)s.ModesOfOperation) = 0x08;
     return 0;
 }