BenKissBox
Hi guys,

I am currently working to port OpenPLC on a new target (a nice surprise is coming, believe me 😊) but I am facing a stupid problem : the files generated automatically by Beremiz / MatIEC contain a lot of stuff which can not be compiled on this target.

I need to get rid of all functions related to debugging/logging located in POUS.h and POUS.c (all POUS like LOGGER, PYTHON_EVAL, PYTHON_POLL, etc...). Need to keep only the POUs created in the PLC program.

I have spent hours looking at Beremiz and MatIEC source code to find where the C source code template for the following files is generated (I suppose they come from MatIEC, from what I see in the comment, but I took a look to Beremiz too) :
  • POUS.h
  • POUS.c
  • CONFIG.h
  • CONFIG.c
but I can't find anything.

Does anybody on the forum know how to change the template generated by Beremiz/MatEC and adapt it to specific targets ?

That would help me a lot (otherwise, I will need to write a special file parser to modify file content and remove what blocks the compilation and I feel really lazy about that 😴)

Thanks a lot

Benoit
Reply 0 0
thiagoralves
Can we schedule a call? I’m also preparing a surprise, and might have all the answers you’re looking for 
Reply 0 0
Reply