Write it once, use it twice
Getting the lesson ready…
Write the rules once in a function block, call it for each pump, and give each call its own instance.
Write it once, use it twice: the words you will learn
- a ready-made piece of code with a name, used again and again (Rockwell: an Add-On Instruction, AOI)
- function block
- running a block from your code, here once on every scan
- call
- a value passed to a block, or handed back by it: Input, Output and InOut
- parameter