DDV
Member
Good day everyone, I would like some assistance with structuring a program. Generic views will be welcome, but if you have Siemens related advice to give it would be much appreciated.
What I would like to know for instance is:
Do I group all the valves for instance together in one FUNCTION, or do I create a FUNCTION/SUBROUTINE for each valve?
If the valve only works some time, do I place it in a Function/subroutine and only call the Function when needed or do I scan the valve code all the time?
Do I place my PID blocks in one Function/Subroutine and call it PID CONTROL or do I place the PID block in the valve FUNCTION that it’s controlling?
Basically what I want is your views on placement, structure and sub-structure (if any)
Please don’t feel bound by my examples, any helpful hints will do. And if you wish to use the word C_R_A_P in your response so be it……
What I would like to know for instance is:
Do I group all the valves for instance together in one FUNCTION, or do I create a FUNCTION/SUBROUTINE for each valve?
If the valve only works some time, do I place it in a Function/subroutine and only call the Function when needed or do I scan the valve code all the time?
Do I place my PID blocks in one Function/Subroutine and call it PID CONTROL or do I place the PID block in the valve FUNCTION that it’s controlling?
Basically what I want is your views on placement, structure and sub-structure (if any)
Please don’t feel bound by my examples, any helpful hints will do. And if you wish to use the word C_R_A_P in your response so be it……