Doc PS Rev R 35-71
(3) The internal structure of the software
shallhave distinct logical areas and order as a minimum it should have the following
1 System management and global signal generation
2 Instrumentation handling (read, scale and evaluation)
3 Safety
and interlock functions 4 Continuous logic control
5 Sequence logic control
6 Command execution logic (convert continuous and sequential logic decisions to physical output signals)
7 Device handling (valves, drives c)
8 Message handling (alarms, warnings, user prompts c)
9
Communications (4) The use of subroutines for common tasks or functions (for example, string manipulation, timing functions, standard calculations, mathematical operations c)
willbe permitted.
Where subroutines are used, these
willbe clearly identified as subroutine modules and
willhave their own area within the software structure, see § 4.1.3-(2).
(5) The organisation of the software within the Controller
willuse the standard techniques
built into the Controller and willbe organised via the standard
organisation blocks(OBs) available to all Controllers for cyclic processing, interrupt detection and fault handling.