hit counter script

Siemens SIMATIC S7 System Manual page 6

Hide thumbs Also See for SIMATIC S7:
Table of Contents

Advertisement

Table of contents
4
Device configuration ................................................................................................................................ 69
4.1
Inserting a CPU........................................................................................................................... 70
4.2
Detecting the configuration for an unspecified CPU ................................................................... 71
4.3
Configuring the operation of the CPU ......................................................................................... 72
4.4
Adding modules to the configuration........................................................................................... 73
4.5
Configuring the parameters of the modules................................................................................ 74
4.6
Creating a network connection ................................................................................................... 75
4.7
Configuring an IP address in your project................................................................................... 76
5
Programming concepts ............................................................................................................................ 79
5.1
Guidelines for designing a PLC system ...................................................................................... 79
5.2
Structuring your user program .................................................................................................... 80
5.3
Using blocks to structure your program ...................................................................................... 81
5.3.1
Organization block (OB).............................................................................................................. 82
5.3.2
Function (FC) .............................................................................................................................. 84
5.3.3
Function block (FB) ..................................................................................................................... 84
5.3.4
Data block (DB)........................................................................................................................... 86
5.4
Understanding data consistency................................................................................................. 86
5.5
Selecting the programming language ......................................................................................... 87
5.6
Copy protection ........................................................................................................................... 89
5.7
Downloading the elements of your program ............................................................................... 89
5.8
Uploading the elements of your program.................................................................................... 90
5.9
Debugging and testing the program............................................................................................ 91
6
Programming instructions ........................................................................................................................ 93
6.1
Basic instructions ........................................................................................................................ 93
6.1.1
Bit logic........................................................................................................................................ 93
6.1.1.1
Set and reset instructions............................................................................................................ 95
6.1.1.2
Positive and negative edge instructions...................................................................................... 97
6.1.2
Timers ......................................................................................................................................... 99
6.1.3
Counters.................................................................................................................................... 102
6.1.3.1
Counters.................................................................................................................................... 102
6.1.3.2
CTRL_HSC instruction .............................................................................................................. 105
6.1.3.3
Operation of the high-speed counter ........................................................................................ 107
6.1.3.4
Configuration of the HSC .......................................................................................................... 110
6.1.4
Compare.................................................................................................................................... 111
6.1.5
Math .......................................................................................................................................... 113
6.1.5.1
MOD instruction ........................................................................................................................ 114
6.1.6
Move.......................................................................................................................................... 119
6.1.6.1
Swap instruction........................................................................................................................ 122
6.1.7
Convert...................................................................................................................................... 123
6.1.7.1
Scale and normalize instructions .............................................................................................. 124
6.1.8
Program control......................................................................................................................... 126
6.1.9
Logical operations ..................................................................................................................... 127
6.1.10
Shift and Rotate ........................................................................................................................ 130
6
S7-1200 Programmable controller
System Manual, 11/2009, A5E02486680-02

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-1200

Table of Contents

Save PDF