Programming The Function Blocks; General Information On Data Block Assignment - Siemens SIMATIC CP 440 Manual

Installation and parameter assignment
Table of Contents

Advertisement

Communication Using Function Blocks
6.5

Programming the Function Blocks

This section is intended for all those who have changed from SIMATIC S5 to
SIMATIC S7. The following sections tell you what to watch for when you program
function blocks in STEP 7.
6.5.1

General Information on Data Block Assignment

Addressing
Data operands are addressed in data blocks byte by byte in STEP 7 (instead of
word by word as in STEP 5). You therefore have to convert the addresses of the
data operands.
15 14 13 12 11 10
7
Figure 6-4
The address of a data word in STEP 7 is doubled compared to STEP 5. It is no
longer divided into a right and a left data byte. Bit numbering is always from 0 to 7.
6-18
DW [n]
DL [n]
9
8
DBW [2n]
DBB [2n]
6
5
4
3
2
1
0
Comparing Data Addressing in STEP 5 and STEP 7
Point-to-point connection CP 440 Installation and Parameter Assignment
DR [n]
7
6
5
4
3
2
1
DBB [2n+1]
7
6
5
4
3
2
1
0
0
A5E00057742-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents