diff -r d964dbc2c7b0 -r c9776ae8b5d0 etherlab/plc_cia402node.c --- a/etherlab/plc_cia402node.c Fri Nov 09 11:27:30 2012 +0100 +++ b/etherlab/plc_cia402node.c Thu Nov 15 22:43:44 2012 +0100 @@ -11,6 +11,8 @@ #include "iec_std_lib.h" #endif +#include "POUS.h" + IEC_INT beremiz__IW%(location)s_0; IEC_INT *__IW%(location)s_0 = &beremiz__IW%(location)s_0; @@ -48,11 +50,14 @@ %(extern_located_variables_declaration)s +%(fieldbus_interface_declaration)s + int __init_%(location)s() { %(init_entry_variables)s *__IW%(location)s_0 = __MK_Alloc_AXIS_REF(); __CIA402Node_%(location)s.axis = __MK_GetPublic_AXIS_REF(*__IW%(location)s_0); +%(fieldbus_interface_definition)s __MK_Set_AXIS_REF_Pos(*__IW%(location)s_0, %(slave_pos)d); *(__CIA402Node_%(location)s.ModesOfOperation) = 0x08; return 0;