Specifications

48
Application Example for CP525 in 115U Section 5-11
5.11 Application Example for CP525 in 115U
In this example:
The communications data block is DB33 starting at DW0.
The coordination flag is M100.3.
Flag 50 is to be written to.
The coordination flag, also referred to as interprocessor communication flag by
Siemens, must be activated on the CP525 via a hardware jumper (see reference
material (CP525).
In addition, the interprocessor communication flag must be defined in DB1 of the
115U. An illustration is shown below:
DB1 :
DW 0: KH=4D41 \
1: KH=534B . ”MASK01” Header identifier
2. KH=3130 /
DW 3: KH=CA00 Output-interprocessor com-
munication flag
4: KF=100 MB100
DW 5: KH=EEEE End identifier
The following structure must be implemented in OB1. This block is executed at
cyclic intervals.
:.
:.
:SPA FB245 Execution of the RECEIVE-block
NAME:REC-ALL
ANZW:MW220
.
.
The interprocessor communication flag number is
entered in the indication word parameter of the
RECEIVE-block
:L MB221 If the defined interprocessor communication flag is in
the LOW-Byte
:L KF+100
.!=F
:S M 100.3 it must be set here.
:.
:.
:SPA FB186 Evaluation block
Processes the data of the communications data block
and resets flag 100.3.