etherlab/plc_cia402node.c
changeset 2088 c0952932d74b
parent 2084 579af800b359
child 2091 d964dbc2c7b0
equal deleted inserted replaced
2087:8421bd1f8b06 2088:c0952932d74b
    46 int __init_%(location)s()
    46 int __init_%(location)s()
    47 {
    47 {
    48 %(init_entry_variables)s
    48 %(init_entry_variables)s
    49 	*__IW%(location)s_0 = __MK_Alloc_AXIS_REF();
    49 	*__IW%(location)s_0 = __MK_Alloc_AXIS_REF();
    50 	__CIA402Node_%(location)s.axis = __MK_GetPublic_AXIS_REF(*__IW%(location)s_0);
    50 	__CIA402Node_%(location)s.axis = __MK_GetPublic_AXIS_REF(*__IW%(location)s_0);
       
    51 	__MK_Set_AXIS_REF_Pos(*__IW%(location)s_0, %(slave_pos)d);
    51 	*(__CIA402Node_%(location)s.ModesOfOperation) = 0x08;
    52 	*(__CIA402Node_%(location)s.ModesOfOperation) = 0x08;
    52     return 0;
    53     return 0;
    53 }
    54 }
    54 
    55 
    55 void __cleanup_%(location)s()
    56 void __cleanup_%(location)s()