etherlab/plc_cia402node.c
changeset 2045 62e102935f3e
parent 2043 27d4cb689a79
child 2059 b74955d211c7
equal deleted inserted replaced
2044:76346b30f6f9 2045:62e102935f3e
    59 	IEC_UINT statusword_inactive = *(__CIA402Node_%(location)s.StatusWord) & __InactiveMask;
    59 	IEC_UINT statusword_inactive = *(__CIA402Node_%(location)s.StatusWord) & __InactiveMask;
    60 	IEC_UINT statusword_active = *(__CIA402Node_%(location)s.StatusWord) & __ActiveMask;
    60 	IEC_UINT statusword_active = *(__CIA402Node_%(location)s.StatusWord) & __ActiveMask;
    61 
    61 
    62 	if (__FirstTick) {
    62 	if (__FirstTick) {
    63 %(init_axis_params)s
    63 %(init_axis_params)s
    64 		_FirstTick = 0;
    64 		__FirstTick = 0;
    65 	}
    65 	}
    66 
    66 
    67 	// CIA402 node state computation
    67 	// CIA402 node state computation
    68 	__CIA402Node_%(location)s.state = __Unknown;
    68 	__CIA402Node_%(location)s.state = __Unknown;
    69 	switch (statusword_inactive) {
    69 	switch (statusword_inactive) {