How To Program In A Function Block, For Cpu 102 And Higher - Siemens S5-100U User Manual

Simatic s5 programmable controller
Hide thumbs Also See for S5-100U:
Table of Contents

Advertisement

Connecting the S5-100U to SINEC L1
Storage location of the coordinating information for sending data (e.g., the message:
"Send Mailbox is enabled")
Name: Coordination Byte Send, abbreviated: KBS
Storage location of the coordinating information for receiving data (e.g., the message:
"Receiving data can be read")
Name: Coordination Byte Receive, abbreviated: KBE
Programmer number (necessary if you want to transmit programmer functions over the SINEC
L1 local area network), abbreviated: PGN
You can set parameters for the programmable controller for the CPU 102 in the function block, and
for the CPU 103 version 8MA03 in the integrated data block (DB1).

13.2.1 How to Program in a Function Block, for CPU 102 and Higher

You can program the SINEC L1 local area network by first setting the parameters and then
programming the "messages" in the control program (see section 13.3.3)
Setting Parameters in the Function Block
You must define the following in the program:
Your own programmer number for the programmer bus functions
Your own slave number
The data or flag areas reserved by the send and receive mailboxes
The location of the coordination bytes
You program in the function block by calling up one of the two restart organization blocks (OB21 or
OB22). You store the corresponding parameters in the system data area of the programmable
controller by using the "TNB" block transfer statement. The SINEC L1 parameter block begins at
system data word 57.
System Data
Word
SD57
Programmer number
SD58
SD59
SD60
SD61
SD62
SD63
You define the position of the coordination bytes and the starting addresses of the send and receive
mailboxes in each case by three bytes.
13-2
Table 13-1. SINEC L1 Parameter Block
High Byte
(1 through 30)
KBE
Data identifier
KBE
Data word
KBS
DB or flag byte
SF
Data identifier
SF
Data word
EF
DB or flag byte
Low Byte
Slave number
(1 through 30)
KBE
DB or flag byte
KBS
Data identifier
KBS
Data word
SF
DB or flag byte
EF
Data identifier
EF
Data word
S5-100U
Address in
System Data Area
EA72
H
EA73
H
EA74
H
EA75
H
EA76
H
EA77
H
EA78
H
EA79
H
EA7A
H
EA7B
H
EA7C
H
EA7D
H
EA7E
H
EA7F
H
EWA 4NEB 812 6120-02

Advertisement

Table of Contents
loading

Table of Contents