S5-100U
9
Integrated Blocks and Their Functions
9.1
Assigning Internal Functions to DB1, for CPU 103 Version 8MA03 and
Higher
You can program the following CPU functions:
•
Using the integral real-time clock (see chapter 12)
•
Exchanging data via SINEC L1 (see chapter 13)
•
Changing polling interval for time-controlled program processing (OB 13) (see chapter 7)
•
Assigning system parameters (see section 9.1.3)
•
Setting the address for the parameter error code (see section 9.1.2)
To assign parameters to these functions, you must configure data block 1 (DB1).
9.1.1
Configuration and Default Settings for DB1
To make it easier for you to assign parameters, data block 1 is already integrated in the CPU with
.
default parameters
After performing an overall reset, you can load the default DB1 from the
programmable controller into your programmer and display it on the screen (see Figure 9-1). The
character string "DB1" must remain before the parameter blocks and be followed by at least one
filler (such as a blank space or a comma).
0:
KS
= 'DB1 SL1: SLN 1
12:
KS
= 'DB2
24:
KS
= ' KBE MB100 KBS MB101
36:
KS
= 'PGN 1
48:
KS
= 'CLK DB5
60:
KS
= 'MW102
72:
KS
= 'OHE N
84:
KS
= '12:10:00
96:
KS
= '01.04. 13:00:00
108:
KS
= '000000:00:00 # ; SDP: WD';
120:
KS
= ' 500 ;
132:
KS
= ' ;
This preset DB1 has one parameter block for each function. Each parameter block begins with a
block ID (shown in Figure 9-1 in the shaded background). The block ID is followed by a colon. The
individual parameters for each function are contained in these parameter blocks.
Each parameter block begins with a block ID followed by a colon. This colon must be followed by
at least one filler (such as a blank space or a comma). A semicolon must be at the end of each
parameter block with at least one filler between the semicolon and the next block ID.
EWA 4NEB 812 6120-02
SF ';
DW0
EF DB3
DW0
';
';
; #CLP: CF 0
';
DW0
STW
';
STP Y SAV Y ';
SET 4 01.04.92 ';
TIS 4
';
OHS ';
TFB: OB13
100
';
END
';
Figure 9-1. DB1 with Default Parameters
Integrated Blocks and Their Functions
9-1