etherlab/EthercatCIA402Slave.py
changeset 2358 8e5a9830867e
parent 2356 c26e0c66d8d5
child 2360 2a3d022a7dac
equal deleted inserted replaced
2357:7c67286cddbe 2358:8e5a9830867e
   322             extern_located_variables_declaration, entry_variables,
   322             extern_located_variables_declaration, entry_variables,
   323             init_entry_variables])
   323             init_entry_variables])
   324 
   324 
   325         # Write generated content to CIA402 node file
   325         # Write generated content to CIA402 node file
   326         Gen_CIA402Nodefile_path = os.path.join(buildpath,
   326         Gen_CIA402Nodefile_path = os.path.join(buildpath,
   327                                 "cia402node_%s.c"%location_str)
   327                                 "cia402node_%s.c" % location_str)
   328         cia402nodefile = open(Gen_CIA402Nodefile_path, 'w')
   328         cia402nodefile = open(Gen_CIA402Nodefile_path, 'w')
   329         cia402nodefile.write(plc_cia402node_code % locals())
   329         cia402nodefile.write(plc_cia402node_code % locals())
   330         cia402nodefile.close()
   330         cia402nodefile.close()
   331 
   331 
   332         return [(Gen_CIA402Nodefile_path, '"-I%s"'%os.path.abspath(self.GetCTRoot().GetIECLibPath()))],"",True
   332         return [(Gen_CIA402Nodefile_path, '"-I%s"' % os.path.abspath(self.GetCTRoot().GetIECLibPath()))],"",True