asdf6
Member
Since v24 Rockwell introduced a feature called Program Parameters, which allows programmers to better customize the data sharing interface between programs. In a nutshell, the types of parameters they offer are:
- Input Parameters - pass by value
- Output Parameters - pass by value
- InOut Parameters - pass by reference
- Public Parameters - Similar to aliasing
Discussion questions:
- Do you make use of this feature?
- Does this feature actually contribute to code encapsulation? (Is it noticeably easier to reuse code?)
- In which scenarios would you use or not use this feature.
The company I work for now does not make use of this feature at all. We mainly use routines within a program for code segregation rather than programs within a task.
- Input Parameters - pass by value
- Output Parameters - pass by value
- InOut Parameters - pass by reference
- Public Parameters - Similar to aliasing
Discussion questions:
- Do you make use of this feature?
- Does this feature actually contribute to code encapsulation? (Is it noticeably easier to reuse code?)
- In which scenarios would you use or not use this feature.
The company I work for now does not make use of this feature at all. We mainly use routines within a program for code segregation rather than programs within a task.
Last edited: