Siemens SIMATIC NET S7-CPs Configuring And Installing page 110

Configuring and commissioning
Hide thumbs Also See for SIMATIC NET S7-CPs:
Table of Contents

Advertisement

4 SEND/RECEIVE Interface in the User Program
Calling FCs in the CPU program
One possible sequence for FCs in conjunction with the organization and program
blocks in the CPU cycle is illustrated in the following diagram.
Read PII
OB
Write PIQ
Legend:
Í Í
Í Í
Figure 4-2
Typical sequence of function calls in the CPU cycle
The following points are illustrated by the diagram:
S The user program consisting of any number of blocks (OBs, FBs or FCs −> see
also /6/ accesses several connections (Figure 4-2 illustrates three connections).
S At various points (event and program-controlled) the user program sends data
A−110
User program
AG_RECV
Ç Ç Ç Ç Ç Ç Ç Ç
AG_RECV
Ç Ç Ç Ç Ç Ç Ç Ç
AG_SEND
Í Í Í Í Í Í Í Í
AG_RECV
Í Í Í Í Í Í Í Í
Í Í Í Í Í Í Í Í Í
AG_SEND
Í Í Í Í Í Í Í Í Í
Ç Ç Ç Ç Ç Ç Ç Ç Ç
AG_SEND
Ç Ç Ç Ç Ç Ç Ç Ç Ç
Ç Ç Ç Ç Ç Ç Ç Ç Ç
Sequence of the CPU cycle
Ç Ç
The different shading shows which
connections and FC blocks belong
Ç Ç
together.
S7-CPs for Industrial Ethernet Configuring and Commissioning
Read in the received
data of the
connection
Communications
connection
Ç Ç Ç Ç Ç Ç Ç
Ç Ç Ç Ç Ç Ç Ç
Communications
connection
Ç Ç Ç Ç Ç Ç Ç
Ç Ç Ç Ç Ç Ç Ç
Í Í Í Í Í Í Í
Í Í Í Í Í Í Í
Communications
Í Í Í Í Í Í Í
connection
Í Í Í Í Í Í Í
Í Í Í Í Í Í Í
Transfer send data
for the connection
Release 07/2010
C79000−G8976−C182−10

Advertisement

Table of Contents
loading

Table of Contents