Controlling The Ip And Evaluating Ip Data; Direct Data Interchange; Data Interchange Using Control Function Block Fb 168 - Siemens Simatic S5 IP 240 Manual

Counter/positioning/position decoder module
Hide thumbs Also See for Simatic S5 IP 240:
Table of Contents

Advertisement

IP 240
Data
byte
7
7
DL 8
2
2
7
DR 8
2
2
7
DL 9
2
2
7
DR 9
2
2
7
DL 10
2
2
7
DR 10
2
2

10.12 Controlling the IP and Evaluating IP Data

Sections 10.13 to 10.21 describe the available options for IP control following configuring, and tell
you
what data is made available by the IP 240 and
how this data can be read out from the IP and evaluated.
After configuring, you can either use control FB 168 for data interchange between the S5 CPU and
the IP 240, or you can program direct data interchange between CPU and IP yourself.

Data interchange using control function block FB 168

As does the configuring FB, control FB 168 uses a data block (DB) for data interchange between
S5 CPU and IP 240.
In the following sections, you will find information on
the data words in which you must enter new data for a Write,
the data words in which data read out from the IP 240 is entered and
how you must initialize the FB so that it will transfer the new data.
In Section 10.23.1 you will find a summary of the contents of the data block, and in Section 10.23.3
a summary of the parameters for control FB 168.

Direct data interchange

Direct data interchange means that you can transfer data directly to or read data directly from the
IP 240. A 16-byte address space is provided for direct data interchange. By specifying a job
number, you tell the IP 240 which job it is to execute.
In the following sections, you will find information on
the job numbers you must use,
the contents of the transfer buffer for the various jobs and
the offset under which the various bytes can be read or written. The absolute address is a
composite of the offset and the module start address.
Chapter 11 "Direct Data Interchange with the IP 240" provides a detailed description of direct
data interchange.
EWA 4NEB 811 6120-02a
Table 10-15. Contents of Data Words 8 to 10
Bit
6
5
4
3
2
6
5
4
3
2
2
2
2
2
6
5
4
3
2
2
2
2
2
6
5
4
3
2
2
2
2
2
6
5
4
3
2
2
2
2
2
6
5
4
3
2
2
2
2
2
6
5
4
3
2
2
2
2
2
1
0
1
0
2
2
1
0
2
2
Extension to error no. 3
1
0
2
2
1
0
2
2
Extension to error no. 2
1
0
2
2
1
0
2
2
Extension to error no. 1
Positioning
Description
Error no. 3
Error no. 2
Error no. 1
10-37

Advertisement

Table of Contents
loading

Table of Contents