Download "user manual"
Transcript
Contents 1 2 How to Design Control Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1 1.1 Planning the Automation Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2 1.2 Dividing the Process into Individual Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 1.3 Describing the Individual Tasks and Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5 1.4 Establishing the Safety Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-9 1.5 Describing the Required Operator Displays and Controls . . . . . . . . . . . . . . 1-10 1.6 Creating a Configuration Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-11 Structuring the User Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1 2.1 The Programs in a CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 2.2 Elements of the User Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3 2.3 Call Hierarchy of the Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4 2.4 Variables of a Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5 2.5 Range of Instructions of the S7 CPUs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7 2.6 Organization Blocks (OB) and Program Structure . . . . . . . . . . . . . . . . . . . . 2-9 2.7 System Function Blocks (SFB) and System Functions (SFC) . . . . . . . . . . 2-10 2.8 Functions (FC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-11 2.9 Function Blocks (FB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12 2.10 Instance Data Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15 2.11 Shared Data Blocks (DB) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-17 2.12 Saving the Data of an Interrupted Block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-18 2.13 Avoiding Errors when Calling Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-20 System Software for S7-300 and S7-400 Program Design C79000-G7076-C506-01 ix