etherlab/plc_cia402node.c
changeset 2104 69ffbd4bcfc3
parent 2096 c9b0340ea0f5
child 2118 c317b1aaf920
equal deleted inserted replaced
2103:5a82d40c4b04 2104:69ffbd4bcfc3
    56 int __init_%(location)s()
    56 int __init_%(location)s()
    57 {
    57 {
    58 %(init_entry_variables)s
    58 %(init_entry_variables)s
    59 	*__IW%(location)s_0 = __MK_Alloc_AXIS_REF();
    59 	*__IW%(location)s_0 = __MK_Alloc_AXIS_REF();
    60 	__CIA402Node_%(location)s.axis = __MK_GetPublic_AXIS_REF(*__IW%(location)s_0);
    60 	__CIA402Node_%(location)s.axis = __MK_GetPublic_AXIS_REF(*__IW%(location)s_0);
    61 	__MK_Set_AXIS_REF_Pos(*__IW%(location)s_0, %(slave_pos)d);
    61 	__CIA402Node_%(location)s.axis->NetworkPosition = %(slave_pos)d;
    62 	*(__CIA402Node_%(location)s.ModesOfOperation) = 0x08;
    62 	*(__CIA402Node_%(location)s.ModesOfOperation) = 0x08;
    63     return 0;
    63     return 0;
    64 }
    64 }
    65 
    65 
    66 void __cleanup_%(location)s()
    66 void __cleanup_%(location)s()