Programming The Messages In A Function Block - Siemens S5-100U User Manual

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

Advertisement

S5-100U

13.3.3 Programming the Messages in a Function Block

The control program must execute the following tasks:
Enable the send and receive mailboxes and process the data contained in them.
Manage the coordination bytes (e.g. send request, error evaluation).
Example:
Data traffic with the master as slave 1
Definitions:
Slave 1 receives three bytes from Master 0.
The information is stored in the process output image table (QB0, QB1, QB2).
Slave 1 sends three bytes (IB0, IB1, IB2) to the master.
Parameters are set in FB1 as shown in Figure 13-2.
Programming the individual blocks:
STL
OB22:
JU
FB1
BE
OB1:
.
.
JU FB2
.
.
.
BE
EWA 4NEB 812 6120-02
OB22 is processed once only following power up. It calls FB1,
which assigns the parameters to the slave.
OB1 is scanned cyclically, and calls FB2, which services the send
and receive mailboxes.
Figure 13-8. Organization of Program Execution
Connecting the S5-100U to SINEC L1
Explanation
13-11

Advertisement

Table of Contents
loading

Table of Contents