Upload
catalincc
View
32
Download
4
Tags:
Embed Size (px)
DESCRIPTION
PLC
Citation preview
Training Guide
PS 4-141-MM1PS 4-151-MM1
9/96 AWB 27-1272-GB1st edition 9/96
Moeller GmbH, Bonn
Author: Norbert MausolfEditor: Thomas KrachtTranslator: Karin Weber
Caution!
Dangerous electrical voltage!
Before commencing the installation
l Disconnect the power supply of the device.
l Ensure that the device cannot be accidentally restarted.
l Verify isolation from the supply.
l Earth and short circuit.
l Cover or enclose neighbouring units that are live.
l Follow the engineering instructions (AWA) of the device concerned.
l Only suitably qualified personnel may work on this device/system.
l Before installation and before touching the device ensure that you are free of electrostatic charge.
l Connecting cables and signal lines should be installed so that inductive or capacitive interference do not impair the automation functions.
l Install automation devices and related operating elements in such a way that they are well protected against unintentional operation.
l Suitable safety hardware and software measures should be implemented for the I/O interface so that a line or wire breakage on the signal side does not result in undefined states in the automation devices.
l Ensure a reliable electrical isolation of the low voltage for the 24 volt supply. Only use power supply units complying with IEC 60 364-4-41 or HD 384.4.41 S2.
l Deviations of the mains voltage from the rated value must not exceed the tolerance limits given in the specifications, otherwise this may cause malfunction and dangerous operation.
l Emergency stop devices complying with IEC/EN 60 204-1 must be effective in all operating modes of the automation devices. Unlatching the emergency-stop devices must not cause uncontrolled operation or restart.
l Devices that are designed for mounting in housings or control cabinets must only be operated and controlled after they have been installed with the housing closed. Desktop or portable units must only be operated and controlled in enclosed housings.
l Measures should be taken to ensure the proper restart of programs interrupted after a voltage dip or failure. This should not cause dangerous operating states even for a short time. If necessary, emergency-stop devices should be implemented.
IBM is a registered trademark of International Business Machines Corporation.
All other brand and product names are trademarks or registered trademarks of the owner concerned.
All rights reserved, including those of the translation.
No part of this manual may be reproduced in any form (printed, photocopy, microfilm or any otherprocess) or processed, duplicated or distributed by means of electronic systems without written permission of Moeller GmbH, Bonn.
Subject to alterations without notice.
19/96
AW
B 2
7-12
72-G
B
Contents
About this Manual 2Hardware and software requirements 3
1 Task Definition 4Elements of the tank level control 5Stages of the tank level control 6
2 Installing and Wiring the Controller 9Address coding 9Setting bus terminating resistors 10Wiring 10
3 Setting System Parameters 12SYSTEM PARAMETERS 12
4 Configure Stations 15
5 Addressing Stations 17Address elements 17Addressing 18
6 Writing the IL Program 19IL editor 19IL program 20Reference file 23
7 Compiling IL Program 24Compiler message 24
8 Transferring the Program to thePS 4-141-MM1 26Requirements 26Transfer 27
9 Commissioning 28
10 Online Program Modifications 29
11 Conclusion 31
Index 33
27-1
272-
GBAbout this Manual
This training guide provides an overview of the Sucosoft S 30-S4 programming package and the PS 4-141-MM1 and PS 4-151-MM1.
The manual introduces the handling of Sucosoft S 30-S4 using the example of a control application from creating your own program file to commission the IL program in the controller.
The following example is executed with the PS 4-141-MM1; but the program can also be used for the PS 4-151-MM1 without modifications. When configuring the device, the PS 4-151-MM1 must be stated. The both controllers differ from each other in the following points:
Table 1: Differentiation features
It is assumed that you know how to used the MS-DOS operation system, as well as having a knowledge of open loop control engineering.
All actions which are to be executed by the user are marked with a .
PS 4-141-MM1 PS 4-151-MM1
24 V DC power supply 115230 V AC power supply
14 digital outputs 24 V 8 relay outputs (NO contact)2 9/96
AW
B
Hardware and software 9/
96 A
WB
27-
1272
-GBrequirements
Hardware and software requirements
The following hardware and software is required for the control task:
Hardware
PS 4-141-MM1/PS 4-151-MM1 programmable controllerEM 4-201-DX2 expansion moduleLE 4-116-XD1 local expansion moduleZB 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 memory3.5/1.44 Mbyte disk driveHard disk with at least 5 Mbyte free memorySerial interface (COM1 to COM4)Parallel printer interface (LPT1)
Software
MS-DOS operating system from version 3.0Sucosoft S 30-S4 programming software from version 2.0
The installation of Sucosoft S 30-S4 is described in the manual Installation, Operation, Documentation (AWB 27-1185-GB).3
27-1
272-
GB1 Task Definition
The PS 4-141-MM1 in conjunction with the external module EM 4-201-DX2 and a LE 4-116-XD1 local expansion module connected to it has the task to execute a tank level control.
The tank shown in the following figure is meant to buffer deviations in the supply volume and keep the drain valve Y0 open as long as possible in order to supply a bottling plant. When the start button S3 is pressed, the lamp H1 is permanently lit to indicate that the plant is in operation.
The supply is meant to keep the tank level at maximum. The limit switches S0 and S1 enable the switch hysteresis of the inlet valve Y1 to be implemented, i.e. when the liquid level drops to the level of limit switch S1, the inlet valve Y1 is opened, and is closed when the level reaches limit switch S0.
If more water drains out of the tank than goes in, and therefore the water level continues to drop even though the inlet valve is open, the drain valve Y0 will close as soon as the tank level goes below switch S2. It will not open again until the level has reached switch S0.
The plant can be switched off via the S4 stop button.4 9/96
AW
B
Elements of the tank level 9/
96 A
WB
27-
1272
-GBcontrol
Elements of the tanklevel control
Table 2: Elements of the tank level control
Figure 1: Tank level control
Y0 Drain valve
Y1 Inlet valve
S0 Limit switch (break)
S1 Limit switch
S2 Limit switch
S3 Start button
S4 Stop button
H1 Lamp (ON indication)
S3
S4
S0
S1
S2
Y1
Y0
H1
0
15
27-1
272-
GBTask Definition
Stages of the tank level control
The entire process can be divided into six different stages:
S0
S1
Y1
S2Y0
S0
S1
Y1
S2Y0
S0
S1
Y1
S2Y0
S0
S1
S2Y0
S0
S1
S2Y0
S0
S1
Y1
S2Y0
6 9/96
AW
B Figure 2: Stages 1 to 6 of the tank level control
Stages of the tank level 9/
96 A
WB
27-
1272
-GBcontrol
The following diagram shows the logical states of the switches and valves in each stage:
Figure 3: Stage diagram of the level control
1
0
1
0
1
0
1
0
1
0
Y1
S0
S1
S2
Y0
Level rising Level dropping Level rising7
27-1
272-
GBTask Definition
The following table is derived from the stage diagram:
Table 3: Status of the switches and valves
Y1 = 0/1: Inlet valve closed/openS0 = 0/1: Water level over/under limit switch S0 (break)S1 = 0/1: Water level under/over limit switch S1 (make)S2 = 0/1: Water level under/over limit switch S2 (make)Y0 = 0/1: Drain valve closed/open
Switches,valves
Stage
1 2 3 4 5 6 1
Y1 1 1 1 0 0 1 1
S0 1 1 1 0 1 1 1
S1 0 0 1 1 1 0 0
S2 0 1 1 1 1 1 0
Y0 0 0 0 1 1 1 08 9/96
AW
B
9/96
AW
B 2
7-12
72-G
B2 Installing and Wiring the Controller
Five inputs are required for switches S0, S1, S2, S3 and S4, and three outputs are required for the valves Y0, Y1 and lamp H1. The PS 4-141-MM1 is thus able to handle the control task on its own. However, the network solution in this example has been selected to show you how to use the additional networking functions of the PS 4-141-MM1.
Address coding The station address of the EM 4-201-DX2 must be set before the PS 41-141-MM1 is networked and wired with the EM 4-201-DX2 and the connected LE 4-116-XD1.
Set the address coding switch S2 for the selected station address 1 and the Suconet K protocol as follows (see also AWB 27-1257-GB, Page 5-15ff.):
Figure 4: Switch positions S2 of the EM 4-201-DX2 as first station on the line via Suconet K
1 to 5: Station address 1; 6: Suconet K; 7, 8: Position optional
OFF
1 2 3 4 5 6 7 89
Installing and Wiring the
27-1
272-
GBController
Setting bus terminating resistors
The bus terminating resistors for the first and last station on the bus must be closed.
Set the switch S1 of the EM 4-201-DX2 as follows:
Figure 5: Switch positions S1 of the EM 4-201-DX2 as first station on the line via Suconet K
Wiring The following figure shows the wiring of the PS 4-141-MM1, EM 4-201-DX2 and the LE 4-116-XD1
OFF
1 210 9/96
AW
B
9/96
AW
B 2
7-12
72-G
BWiring
Figure 6: Wiring of the control system
EM 4-201-DX2 LE 4-116-XD1
22,5 mm
S3 S4
+24 V 0 V
PS 4-141-MM1
2,5 mm
Digital Input
Digital Output
Digital Input Digital Output
Digital Input Digital Output
Suconet K
Suconet K1/K
KPG 1-PS 3 H1Y1
S2 S1 S0
Y0
211
27-1
272-
GB3 Setting System Parameters
The system parameters determine the system configuration of the control system. These specifications are compiled and then transferred to the controller together with the user program.
The default values need not be modified for the tank level control system. However, since the setting in the System Parameters menu is required in many applications, the steps required for this are described below:
SYSTEM PARAMETERS
Call up the SYSTEM PARAMETERS menu from the main menu of Sucosoft S 30-S4 by pressing the function keys [F1] PROGRAMMING and [F3] SYSTEM PARAMETERS.
Since the system parameters form part of the user program, you are requested to enter the name of the program file and the appropriate drive.
Enter the drive (e. g. C) and the file name (e. g. PLANT2).
Press the function key [F2] SYSTEM PARAMETERS and enter the stated values for the following fields.
Start after NOT READYThe controller is to carry out a cold start after Not Ready. In this case, all dynamic variables and program sections are reset to the previously set value before the PLC starts to process the user program.
Enter a 1 into the entry field12 9/96
AW
B
9/96
AW
B 2
7-12
72-G
BSYSTEM PARAMETERS
Maximum cycle timeThis 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 rangeMake 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).
PasswordAssign a password of max. 8 characters to protect the controller from unauthorized access.
Enter, for example, the name test2.
Version number for user programThe user program has the version number 1.0.
Enter 1.0 in this line.
Figure 7: System parameters for the IL program of the tank level control13
27-1
272-
GBSetting System Parameters
Save the set system parameters by pressing the following function keys:F1ReturnF4SAVE PROGRAMF2Save old nameF1Return
You should now be in the PROGRAMMING menu.14 9/96
AW
B
9/96
AW
B 2
7-12
72-G
B4 Configure Stations
Once the system parameters are defined in the Device configurator of the Sucosoft S30-S4, configure the stations of the control system. Figure 6Wiring of the control system shows which devices are to be configured.
Call up the Device configurator from the PROGRAMMING menu by pressing the function key [F4]:
You will be asked for the name of the program file and the drive since the Device configurator is also part of the user program.
Enter the drive C and the file name PLANT2.
Select F2 CONFIGURE.
In this menu you can expand the PS 4-141-MM1 with the EM 4-201-DX2 remotely. The EM 4-201-DX2 is then expanded locally with an LE4-116-XD1. Proceed as follows:
Select F4 Replace module and select the PS 4-141-MM1 in the selection window. Confirm by clicking Return.
Select F2 Add station and select the station EM 4-201-DX2 in the selection window.
Select F3 Add module and select the module LE 4-116-XD1 in the selection window.
The following display appears:15
27-1
272-
GBConfigure Stations
Figure 8: Device configuration for tank level control
Save the device configuration viaF1 ReturnF4 SAVE PROGRAMF2 Save old nameF1 Return
You will now have returned to the PROGRAMMING menu.16 9/96
AW
B
9/96
AW
B 2
7-12
72-G
B5 Addressing Stations
In order to create the program in the IL editor you have to know how the inputs and outputs of the individual stations are to be addressed. The addressing of the stations depends on the logical configuration that you carried out in the Device configurator.
Figure 6 Wiring of the control system shows how the switches and valves of the I/O are to be assigned to the devices. This data is also required by the PLC in order to address the stations. The stations are addressed according to the general syntax rule:
Operand-data type-line-station-module-byte-bit
Address elements The table below show how the values defined in the example are assigned to the seven address elements:
The data type must not be stated when addressing in bit format.17
27-1
272-
GBAddressing Stations
Table 4: Address elements of the station
The inputs/outputs of the stations are addressed as follows according to this table and the general syntax rule:
Addressing Y0 Q 1.1.1.1.3Y1 Q 0.0.0.0.4 (Q0.4)*)
H1 Q 0.0.0.0.2 (Q0.2)*)
S0 I 1.1.0.0.2S1 I 1.1.0.0.1S2 I 1.1.0.0.0S3 I 0.0.0.0.3 (I0.3)*)
S4 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
Address elements Stations
PS 4-141-MM1 EM 4-201-DX2 LE 4-116-XD1
Operands:I = Input, Q = Output
I: S3, S4Q: 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
0 1 1
Station number (0-8):0 = Master1 = first Slave, etc.
0 1 1
Module (local expansion 0-6) 0 0 1
Byte 0 0 1
Bit number of the input(Input)/output (output)
Input bit 3, 4Output bit 2, 4
Input bit0, 1, 2
Output bit 3 (bit 3 from most signifi-cant output byte 1)18 9/96
AW
B units.
9/96
AW
B 2
7-12
72-G
B6 Writing the IL Program
The actual writing of the IL program is started after the system parameters have been set and the device configuration completed.
IL editor Press function key [F2] in the PROGRAMMING menu to call up the the IL editor.
Enter the file name (e. g. PLANT2) and select the drive (e. g. C).
Enter the same name (PLANT2) for the reference file and select the same drive (C).
Press function key [F2] EDIT PROGRAM FILE.
The menu-driven IL editor will appear on the screen where you will enter your IL program.
Figure 9: IL editor 19
27-1
272-
GBWriting the IL Program
Press function key [F2] Open block.
Enter an appropriate block name and comment.
First of all incorporate the configuration file with the name PLANT2 in the IL program. Observe the following syntax:
#include"PLANT2.K42"
Start writing the IL program.
IL program 00000 EXAMPLE "Program example PS 4-141-MM1 with EM 4-201-DX2 and 001 "connected L E4-116-XD1002 003 "Example of a tank level control004 00001 INCLUDE "Include the configuration file001 002 #include"plant2.k42"003 00002 CONTROL "Control voltage ON - OFF001 002 L I 0.3 Control voltage ON S3003 S Q 0.2 Control light H1004 S M 0.0 Start marker005 006 L I 0.4 Control voltage OFF S4007 R Q 0.2 Control light H1008 R M 0.0 Start marker009 00003 START "Start tank program001 002 LN M 0.0 Start marker003 JC RESET004 00004 FULL "Save Full signal from tank
There are several ways of programming a tank level control. In this example, a sequence program was chosen intentionally in order to show more clearly the six different stages of the tank level control.20 9/96
AW
B 001
9/96
AW
B 2
7-12
72-G
BIL program
002 LN I 1.1.0.1.2 Tank Full maximum S0003 S M 0.1 Marker Tank was full004 005 "Reset Full signal from tank006 007 LN I 1.1.0.1.1 Tank Full minimum S1008 R M 0.1 Marker Tank was full009 00005 EMPTY "Save Empty signal001 002 LN I 1.1.0.1.0 Tank is empty S2003 S M 0.2 Marker Tank was empty004 005 "Reset Empty signal006 007 LN I 1.1.0.1.2 Tank Full maximum S0008 R M 0.2 Marker Tank was empty009 00006 STAGE1 "Implement stage 1 of the truth table001 002 L I 1.1.0.1.2 Tank Full maximum S0003 AN I 1.1.0.1.1 Tank Full minimum S1004 AN I 1.1.0.1.0 Tank is empty S2005 R Q 1.1.1.1.3 Valve drain Y0006 S Q 0.4 Valve drain Y1007 JC END008 00007 STAGE2 "Implement stage 2 of the truth table001 002 L I 1.1.0.1.2 Tank Full maximum S0003 AN I 1.1.0.1.1 Tank Full minimum S1004 A I 1.1.0.1.0 Tank is empty S2005 A M 0.2 Marker Tank was empty006 R Q 1.1.1.1.3 Valve drain Y0007 S Q 0.4 Valve drain Y1008 JC END009 00008 STAGE3 "Implement stage 3 of the truth table001 002 L I 1.1.0.1.2 Tank Full maximum S0003 A I 1.1.0.1.1 Tank Full minimum S1004 A I 1.1.0.1.0 Tank is empty S2005 A M 0.2 Marker Tank was empty006 R Q 1.1.1.1.3 Valve drain Y0007 S Q 0.4 Valve drain Y1008 JC END21
009
27-1
272-
GBWriting the IL Program
00009 STAGE4 "Implement stage 4 of the truth table001 002 LN I 1.1.0.1.2 Tank Full maximum S0003 A I 1.1.0.1.1 Tank Full minimum S1004 A I 1.1.0.1.0 Tank is empty S2005 A M 0.1 Marker Tank was full006 A Q 0.4 Valve drain Y1007 S Q 1.1.1.1.3 Valve drain Y0008 JC END009 00010 STAGE5 "Implement stage 5 of the truth table001 002 L I 1.1.0.1.2 Tank Full maximum S0003 A I 1.1.0.1.1 Tank Full minimum S1004 A I 1.1.0.1.0 Tank is empty S2005 A M 0.1 Marker Tank was full006 R Q 0.4 Valve drain Y1007 S Q 1.1.1.1.3 Valve drain Y0008 JC END009 00011 STAGE6 "Implement stage 6 of the truth table001 002 L I 1.1.0.1.2 Tank Full maximum S0003 AN I 1.1.0.1.1 Tank Full minimum S1004 A I 1.1.0.1.0 Tank is empty S2005 S Q 1.1.1.1.3 Valve drain Y0006 S Q 0.4 Valve drain Y1007 JP END008 00012 RESET "Reset outputs Y0 and Y1001 "after switching off the plant002 003 L K 1004 R Q 1.1.1.1.3 Valve drain Y0005 R Q 0.4 Valve drain Y1006 00013 END "End of program001 002 EP 22 9/96
AW
B
9/96
AW
B 2
7-12
72-G
BReference file
Save your program:F1 ReturnF4 SAVE PROGRAMF2 Save old nameF1 Return
You will then return to the PROGRAMMING menu.
Reference file Sucosoft S 30-S4 will automatically create the reference file while you are entering the IL program. The reference file lists all operands and the corresponding symbols assigned to them.
Reference file for IL program:
Use the DOCUMENTATION menu in Sucosoft to printout program fils and Help lists such as corss-reference files, utilisation files and reference files (see AWB 27-1185-GB).
Symbol Operand V Terminal Operand comment-------------------------------------------------------S3 I 0.3 Control voltage ON S3S4 I 0.4 Control voltage OFF S4S2 I 1.1.0.1.0 Tank is empty S2S1 I 1.1.0.1.1 Tank Full minimum S1S0 I 1.1.0.1.2 Tank Full maximum S0H1 Q 0.2 Control light H1Y1 Q 0.4 Valve drain Y1Y0 Q 1.1.1.1.3 Valve drain Y0
M 0.0 Start markerM 0.1 Marker Tank was fullM 0.2 Marker Tank was empty
The five-digit syntax is used in the printout of the IL program for better understanding of the spatially addressing of the inputs/outputs. The operands can also be addressed symbolically (e. g. LS1 instead of L I 1.1.0.0.1)23
27-1
272-
GB7 Compiling IL Program
Once the IL program is saved it can be compiled. When compiling the program it is converted into a machine code which the PS 4-141-MM1 can process.
Press function key F7 OPTIONS in the F4 SYSTEM SELECTION menu. Make the following entries in this menu:
Programming via Suconet K: NoInclude drive scan when converting: Yes
Proceed as follows when compiling the IL program. In the PROGRAMMING menu press function key
F5 COMPILER
Enter the drive (C) and the name of the program file (PLANT2).
Repeat this operation for the reference file.
Two prompts appear:
Should Include files be read by one drive?
Answer this prompt with Yes (Y).
Enter the standard drive: Enter drive C:
Compiler message Your IL program will now be compiled. If the syntax is free of errors, the following window will appear on screen:24 9/96
AW
B
9/96
AW
B 2
7-12
72-G
BCompiler message
Figure 10: Prompts of the compiler
Press Enter to return to the PROGRAMMING menu.
If the compiler indicates one or several error messages, correct the IL program at the appro-priate point and recompile the program.25
27-1
272-
GB8 Transferring the Program to the PS 4-141-MM1
The compiler has now converted the program into a code which understands the P S4-141-MM1.
Requirements Before you can transfer the program to the PS 4-141-MM1 the following steps must be taken:
Connect the PC to the controller using the ZB 4-303-KB1 programming cable.
Figure 11: Programming the PS 4-141-MM1
Switch on the 24 V DC power supply for the controller. The controller must be in Ready or Not Ready status. This is indicated by the Ready LED (yellow) or the Not Ready LED (red). Not Ready is lit if, for example, there is no program stored in the controller.
Set the operating mode selector switch S2 of the PS 4-141-MM1 to position 1 (Halt).
COM1...COM4 ZB 4-303-KB1
PS 4-141-MM126 9/96
AW
B
9/96
AW
B 2
7-12
72-G
BTransfer
Transfer Proceed as follows to transfer the program to the controller:
Press the function key [F1] to change to the MAIN MENU.
Confirm the function keys one after another:[F2] TEST/COMMISSIONING and [F6] TRANSFER DRIVE PLC
Enter the program name (PLANT2) and the corresponding drive (C).
The LEDs Ready and Not Ready are lit during the transfer process. The program is now stored in the controller.
Figure 12: Status display and operating mode selector switch
1 Ready2 Run3 Not Ready4 Battery
1 2 3 4
Reset
1 Halt2 Run3 Run M-Reset S2
12
327
27-1
272-
GB9 Commissioning
The user program is located in the controller and ready to start.
Set the operating mode selector switch S2 to position 2 (Run) or 3 (Run M-Reset)
Press the Reset button.
The PS 4-141-MM1 is then in Run status and you can test your program using the task definition. Program modifications can be carried out in the IL editor or in the ONLINE editor.28 9/96
AW
B
9/96
AW
B 2
7-12
72-G
B10 Online Program Modifications
The ONLINE MODIFICATION function is particulary useful during commissioning. It enables you to carry out program modifications while the PS 4-141-MM1 is in operation. The following modifications are possible:
Opening new blocksInserting instructions and allocationsDeleting instructions and allocationsModifying jumps and jump destinationsChanging function block parameters
Press the function key [F5] in the TEST/COMMISSIONING menu.
Enter the name of the drive (C) and the name of the file (PLANT2).
Online program The current program is now shown:29
Figure 13: Online program
Online Program
27-1
272-
GBModifications
Program modification Select [F2] EDIT PROGRAM FILE in the ONLINE MODIFICATION menu to change the program.
Figure 14: Online modification, Edit program file
Use function key [F6] Activate to transfer the compiled modifications to the PS 4-141-MM1.
Please observe the following section:Care should be taken when carrying out online program modifications in order to ensure the safety of personnel and machinery.Do not switch off your PC before you have left the ONLINE MODIFICATION menu with [F1] Return. Otherwise your program in the programmable controller will no longer correspond with the sour-ce file on the data carrier.Once the Online modification has been suc-cessfully completed, a new compiler run should be carried out and the program transferred to the PS 4-141-MM1 with the CPU stopped. This mini-mizes the load on the program memory.30 9/96
AW
B
9/96
AW
B 2
7-12
72-G
B11 Conclusion
The example of the tank level control system in this manual has explained to you all the stages of a project, from the task definition, to wiring, to programming and finally to Online modifications. This has given you an overview of the elements of the controller as well as the most important menus in Sucosoft S 30-S4.
If you wish to transfer your special application to the example, detailed information is provided in the documentation on the manuals of the PS 4-141-MM1, the Sucosoft S 30-S4 and programming:
Hardware and Engineering of the PS4-141-MM1and PS 4-151-MM1 (AWB 27-1266-GB)Installation, Operation and Documentation (AWB 27-1185-GB)Programming (AWB 27-1186-GB)
Good luck!31
27-1
272-
GBIndex
AActive marker range . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12Add module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Add station . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Address coding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8Address coding switch . . . . . . . . . . . . . . . . . . . . . . . . . . . 8Address elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16Addressing stations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
BBit number. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Bus terminating resistors . . . . . . . . . . . . . . . . . . . . . . . . . 9Byte . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
CCommissioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27Compiling IL program . . . . . . . . . . . . . . . . . . . . . . . . . . . 23Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Cycle time, maximum . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
DData type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Device configurator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14Differentiation features PS 4-141-MM1/PS 4-151-MM1 . 1
EElements of the tank level control . . . . . . . . . . . . . . . . . . . 4Error messages, compiler . . . . . . . . . . . . . . . . . . . . . . . . 24
HHardware requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . 2
IIL editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18IL program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Include. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Incorporating the configuration file . . . . . . . . . . . . . . . . . 19Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 832 9/96
AW
B
9/96
AW
B 2
7-12
72-G
BIndex
LLine number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
MMode selector switch . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
OOnline program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28Operand . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
PPassword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22Program modification, online . . . . . . . . . . . . . . . . . . . . . 29Programming cable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
RReference file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
SSave
Device configuration . . . . . . . . . . . . . . . . . . . . . . . . . 15IL program. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22System parameters. . . . . . . . . . . . . . . . . . . . . . . . . . 13
Software requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . 2Stage diagramm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6Stages of the tank level control . . . . . . . . . . . . . . . . . . . . 5Start after Not Ready . . . . . . . . . . . . . . . . . . . . . . . . . . . 11Station number . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Switch S1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9Switch S2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8System parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
TTask definition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3Transferring the program . . . . . . . . . . . . . . . . . . . . . . . . 25
VVersion number for user program. . . . . . . . . . . . . . . . . . 12
WWiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1033
Contents1 Task Definition 42 Installing and Wiring the Controller 93 Setting System Parameters 124 Configure Stations 155 Addressing Stations 176 Writing the IL Program 197 Compiling IL Program 248 Transferring the Program to the PS4141MM1 269 Commissioning 2810 Online Program Modifications 2911 Conclusion 31
About this ManualTable 1 : Differentiation featuresHardware and software requirements
1 Task DefinitionElements of the tank level controlTable 2 : Elements of the tank level controlFigure 1 : Tank level control
Stages of the tank level controlFigure 2 : Stages 1 to 6 of the tank level controlFigure 3 : Stage diagram of the level controlTable 3 : Status of the switches and valves
2 Installing and Wiring the ControllerAddress codingFigure 4 : Switch positions S2 of the EM4-201-DX2...
Setting bus terminating resistorsFigure 5 : Switch positions S1 of the EM4-201-DX2...
WiringFigure 6 : Wiring of the control system
3 Setting System ParametersSYSTEM PARAMETERSFigure 7 : System parameters for the IL program of...
4 Configure StationsFigure 8 : Device configuration for tank level co...
5 Addressing StationsAddress elementsTable 4 : Address elements of the station
Addressing
6 Writing the IL ProgramIL editorFigure 9 : IL editor
IL program00000 EXAMPLE "Program example PS4-141-MM1 with E...002003 "Example of a tank level control00400001 INCLUDE "Include the configuration file001002 #include"plant2.k42"00300002 CONTROL "Control voltage ON - OFF001002 L I 0.3 Control voltage ON S3003 S Q 0.2 Control light H1004 S M 0.0 Start marker005006 L I 0.4 Control voltage OFF S4007 R Q 0.2 Control light H1008 R M 0.0 Start marker00900003 START "Start tank program001002 LN M 0.0 Start marker003 JC RESET00400004 FULL "Save Full signal from tank001002 LN I 1.1.0.1.2 Tank Full maximum S0003 S M 0.1 Marker Tank was full004005 "Reset Full signal from tank006007 LN I 1.1.0.1.1 Tank Full minimum S1008 R M 0.1 Marker Tank was full00900005 EMPTY "Save Empty signal001002 LN I 1.1.0.1.0 Tank is empty S2003 S M 0.2 Marker Tank was empty004005 "Reset Empty signal006007 LN I 1.1.0.1.2 Tank Full maximum S0008 R M 0.2 Marker Tank was empty00900006 STAGE1 "Implement stage 1 of the truth table001002 L I 1.1.0.1.2 Tank Full maximum S0003 AN I 1.1.0.1.1 Tank Full minimum S1004 AN I 1.1.0.1.0 Tank is empty S2005 R Q 1.1.1.1.3 Valve drain Y0006 S Q 0.4 Valve drain Y1007 JC END00800007 STAGE2 "Implement stage 2 of the truth table001002 L I 1.1.0.1.2 Tank Full maximum S0003 AN I 1.1.0.1.1 Tank Full minimum S1004 A I 1.1.0.1.0 Tank is empty S2005 A M 0.2 Marker Tank was empty006 R Q 1.1.1.1.3 Valve drain Y0007 S Q 0.4 Valve drain Y1008 JC END00900008 STAGE3 "Implement stage 3 of the truth table001002 L I 1.1.0.1.2 Tank Full maximum S0003 A I 1.1.0.1.1 Tank Full minimum S1004 A I 1.1.0.1.0 Tank is empty S2005 A M 0.2 Marker Tank was empty006 R Q 1.1.1.1.3 Valve drain Y0007 S Q 0.4 Valve drain Y1008 JC END00900009 STAGE4 "Implement stage 4 of the truth table001002 LN I 1.1.0.1.2 Tank Full maximum S0003 A I 1.1.0.1.1 Tank Full minimum S1004 A I 1.1.0.1.0 Tank is empty S2005 A M 0.1 Marker Tank was full006 A Q 0.4 Valve drain Y1007 S Q 1.1.1.1.3 Valve drain Y0008 JC END00900010 STAGE5 "Implement stage 5 of the truth table001002 L I 1.1.0.1.2 Tank Full maximum S0003 A I 1.1.0.1.1 Tank Full minimum S1004 A I 1.1.0.1.0 Tank is empty S2005 A M 0.1 Marker Tank was full006 R Q 0.4 Valve drain Y1007 S Q 1.1.1.1.3 Valve drain Y0008 JC END00900011 STAGE6 "Implement stage 6 of the truth table001002 L I 1.1.0.1.2 Tank Full maximum S0003 AN I 1.1.0.1.1 Tank Full minimum S1004 A I 1.1.0.1.0 Tank is empty S2005 S Q 1.1.1.1.3 Valve drain Y0006 S Q 0.4 Valve drain Y1007 JP END00800012 RESET "Reset outputs Y0 and Y1001 "after switching off the plant002003 L K 1004 R Q 1.1.1.1.3 Valve drain Y0005 R Q 0.4 Valve drain Y100600013 END "End of program001002 EPUse the DOCUMENTATION menu in Sucosoft to printout...Reference file
7 Compiling IL ProgramCompiler messageFigure 10 : Prompts of the compilerIf the compiler indicates one or several error mes...
8 Transferring the Program to the PS4141MM1RequirementsFigure 11 : Programming the PS4-141-MM1
TransferFigure 12 : Status display and operating mode sele...
9 Commissioning10 Online Program ModificationsOnline programFigure 13 : Online program
Program modificationFigure 14 : Online modification, Edit program file
11 ConclusionIndexABCDEHILMOPRSTVW
U2_d_si1.pdfVor Beginn der Installationsarbeiten
H1272u1g.pdf??????PS 4-141-MM1PS 4-151-MM1