PS 4-141-MM1
PS 4-151-MM1
Norbert Mausolf
Thomas Kracht
Karin Weber
Caution!
Dangerous electrical voltage!
Before commencing the installation
Contents
2
3
1 Task Definition
Elements of the tank level control
Stages of the tank level control
4
5
6
9
9
10
10
12
12
4 Configure Stations
15
5 Addressing Stations
Address elements
Addressing
17
17
18
19
19
20
23
7 Compiling IL Program
Compiler message
24
24
26
26
27
9 Commissioning
28
29
11 Conclusion
31
Index
33
PS 4-151-MM1
24 V DC power supply
14 digital outputs 24 V
Hardware
PS 4-141-MM1/PS 4-151-MM1 programmable
controller
EM 4-201-DX2 expansion module
LE 4-116-XD1 local expansion module
ZB 4-303-KB1 programming cable (connection
cable between PC and PS 4-141-MM1)
KPG 1-PS3 Suconet cable (connection cable
between PS 4-141-MM1 and EM 4-201-DX2)
IBM-compatible PC with
at least 640 Kbyte working memory
3.5/1.44 Mbyte disk drive
Hard disk with at least 5 Mbyte free memory
Serial interface (COM1 to COM4)
Parallel printer interface (LPT1)
Software
Task Definition
Drain valve
Y1
Inlet valve
S0
S1
Limit switch
S2
Limit switch
S3
Start button
S4
Stop button
H1
Y1
S3
S4
H1
S0
S1
Y0
S2
Task Definition
The entire process can be divided into six different
stages:
Y1
S0
Y1
S1
Y0
S1
Y0
S2
Y1
S0
S2
S0
S1
Y0
S1
Y0
S2
S0
S2
Y1
S1
S0
S1
Y0
Y0
S2
S0
S2
Y1
0
1
S0
0
1
S1
0
1
S2
0
1
Y0
0
Level rising
Level dropping
Level rising
Task Definition
The following table is derived from the stage
diagram:
Table 3: Status of the switches and valves
Switches,
valves
Stage
1
Y1
S0
S1
S2
Y0
Address coding
OFF
OFF
10
Wiring
Wiring
+24 V
0V
2,5 mm 2
S3
S4
Digital Input
Suconet K
PS 4-141-MM1
Digital Output
KPG 1-PS 3
H1
Y1
2,5 mm
S2 S1 S0
Suconet K1/K
Digital Input
Digital Output
EM 4-201-DX2
LE 4-116-XD1
Digital Input
Digital Output
Y0
11
SYSTEM
PARAMETERS
12
SYSTEM PARAMETERS
Maximum cycle time
This setting does not control the cycle time of the
user program but sets an upper limit for the fault
control.
Set the maximum cycle time to 35 ms.
Active marker range
Make this setting in accordance with your user
program since all active markers require memory.
Three marker bits are required for the user program.
Enter a 1 in this line (1 marker byte).
Password
Assign a password of max. 8 characters to protect
the controller from unauthorized access.
Enter, for example, the name test2.
Version number for user program
The user program has the version number 1.0.
13
14
Configure Stations
15
Configure Stations
16
Addressing Stations
Address elements
17
Addressing Stations
Table 4: Address elements of the station
Address elements
Stations
PS 4-141-MM1
EM 4-201-DX2 LE 4-116-XD1
Operands:
I = Input, Q = Output
I: S3, S4
Q: H1,Y1
I: S0, S1, S2
Q: Y0
Data type:
B = Byte; W = Word,
Bit without additional code
Bit
Bit
Bit
Line number:
0 = Master; 1 = Slaves
Byte
Input bit 3, 4
Output bit 2, 4
Input bit
0, 1, 2
Output bit 3
(bit 3 from
most significant output
byte 1)
Y0
Y1
H1
S0
S1
S2
S3
S4
Q 1.1.1.1.3
Q 0.0.0.0.4 (Q0.4)*)
Q 0.0.0.0.2 (Q0.2)*)
I 1.1.0.0.2
I 1.1.0.0.1
I 1.1.0.0.0
I 0.0.0.0.3 (I0.3)*)
I 0.0.0.0.4 (I0.4)*)
*) The first three zeros must not be stated when addressing the inputs
and outputs in the basic unit . They will be cut after the first line
automatically. The complete entry is required with the expansion
units.
18
Addressing
IL editor
Figure 9: IL editor
19
20
00000
001
002
003
004
00001
001
002
003
00002
001
002
003
004
005
006
007
008
009
00003
001
002
003
004
00004
001
START
L I 0.3
S Q 0.2
S M 0.0
Control voltage ON S3
Control light H1
Start marker
L I 0.4
R Q 0.2
R M 0.0
FULL
Start marker
IL program
IL program
002
003
004
005
006
007
008
009
00005
001
002
003
004
005
006
007
008
009
00006
001
002
003
004
005
006
007
008
00007
001
002
003
004
005
006
007
008
009
00008
001
002
003
004
005
006
007
008
009
LN I 1.1.0.1.2
S M 0.1
Tank is empty S2
Marker Tank was empty
STAGE2
STAGE3
1.1.0.1.2
1.1.0.1.1
1.1.0.1.0
0.2
1.1.1.1.3
0.4
END
21
22
STAGE4
STAGE5
STAGE6
1.1.0.1.2
1.1.0.1.1
1.1.0.1.0
0.1
0.4
1.1.1.1.3
END
RESET
Valve drain Y0
Valve drain Y1
00009
001
002
003
004
005
006
007
008
009
00010
001
002
003
004
005
006
007
008
009
00011
001
002
003
004
005
006
007
008
00012
001
002
003
004
005
006
00013
001
002
Reference file
Save your program:
F1 Return
F4 SAVE PROGRAM
F2 Save old name
F1 Return
You will then return to the PROGRAMMING menu.
Reference file
Symbol Operand
V Terminal Operand comment
------------------------------------------------------S3
I 0.3
Control voltage ON S3
S4
I 0.4
Control voltage OFF S4
S2
I 1.1.0.1.0
Tank is empty S2
S1
I 1.1.0.1.1
Tank Full minimum S1
S0
I 1.1.0.1.2
Tank Full maximum S0
H1
Q 0.2
Control light H1
Y1
Q 0.4
Valve drain Y1
Y0
Q 1.1.1.1.3
Valve drain Y0
M 0.0
Start marker
M 0.1
Marker Tank was full
M 0.2
Marker Tank was empty
23
Compiling IL Program
No
Yes
24
Compiler message
Compiler message
25
Requirements
COM1...COM4
ZB 4-303-KB1
26
Transfer
Proceed as follows to transfer the program to the
controller:
Transfer
1 2 3 4
1 Ready
2 Run
3 Not Ready
4 Battery
Reset
1 Halt
2 Run
3 Run M-Reset
1
2
3
S2
27
Commissioning
28
10
Online program
29
Online Program
Modifications
Program modification
30
11
Conclusion
Good luck!
31
Index
A
Active marker range . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Add module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Add station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Address coding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Address coding switch . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Address elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Addressing stations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
B
Bit number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Bus terminating resistors . . . . . . . . . . . . . . . . . . . . . . . . . 9
Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
C
Commissioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Compiling IL program . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Cycle time, maximum . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
D
Data type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Device configurator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Differentiation features PS 4-141-MM1/PS 4-151-MM1 . 1
E
Elements of the tank level control . . . . . . . . . . . . . . . . . . . 4
Error messages, compiler . . . . . . . . . . . . . . . . . . . . . . . . 24
I
IL editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
IL program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Include. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Incorporating the configuration file . . . . . . . . . . . . . . . . . 19
Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
32
H
Hardware requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Index
L
Line number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
M
Mode selector switch . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
O
Online program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Operand . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
P
Password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Program modification, online . . . . . . . . . . . . . . . . . . . . . 29
Programming cable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
R
Reference file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
S
Save
Device configuration . . . . . . . . . . . . . . . . . . . . . . . . . 15
IL program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
System parameters. . . . . . . . . . . . . . . . . . . . . . . . . . 13
Software requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Stage diagramm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Stages of the tank level control . . . . . . . . . . . . . . . . . . . . 5
Start after Not Ready . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Station number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Switch S1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Switch S2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
System parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
T
Task definition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Transferring the program . . . . . . . . . . . . . . . . . . . . . . . . 25
V
Version number for user program . . . . . . . . . . . . . . . . . . 12
W
Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
33