RSmith - 2020-04-20

I'm interested in best practice for naming POUs in large projects.

I'm a relative newbie and haven't been able to find any examples of large CODESYS projects. My latest project now has around 30 POUs, mainly ST, but the top level is Ladder. The machine runs several parallel processes on multiple parts, each process may have child subroutines.

At the moment I have prefixed the POU names with a Pxxx code to give a bit of structure (see screenshot). In this example:

  • P200_Xaxis has child processes P210_Process1, P220_Process2 & P230_Process3.
  • P210_Process1 has child processes P211_PressureTest and P212_PumpCycle.
  • P220_Process2 has a child process P221_PressureTest.

Does this make sense to people? Any thoughts/improvements welcome.

Thanks!

 

Last edit: RSmith 2020-04-20