Functions Linked to States
Functions Treatment
The Function Treatment image shows how functions (that are state dependent) are treated.
Function (Function Step)
Function |
Description |
Example |
---|---|---|
Run Function |
|
Figure 2: Change State > Error Stop > State |
Stop Function |
|
Add a New Function
- Copy a similar existing function sequence.
- Replace the old function name by the new one (e.g., Running replaced with MyFunction).
- Modify the exit section of the new function to perform the relevant actions.
- Insert the needed function code into the run part.
- Add the function call command line to the state sequence where the function is used.