The text of a manual · part 3 of 7
SIMATIC S5 S5-100U Programmable Controller System Manual, CPU 100/102/103, pages 21 to 30
Pages 21 to 30 of 69
The original document is the PDF (878 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Siemens 6ES5-095-8MC01, Siemens 6ES5-431-8MA11, Siemens 6ES5-451-8MA11 and Siemens 6ES5-452-8MR11
Page 21
S5-100U The SIMATIC S5 System Family
1 The SIMATIC S5 System Family
The programmable controllers (PLCs) in the SIMATIC S5 family offer economical solutions to simple control tasks and to complex computer functions.
Figure 1-1. Members of the SIMATIC SS System Family
The S5-100U programmable controller is one of the smallest and most economical of the programmable controllers in the SIMATIC S5 family. The S5-100U is especially suited for small automation tasks. It is economical to use these programmable controllers if you want to replace more than five control relays.
EWA 4NEB 812 6120-02b 1-7
AUT 91 FE 1016
Page 22
The SIMATIC S5 System Family
S5-100U
The S5-100U has the following features: •
Modular Design Depending on the CPU you use, the S5-100U allows you to have a maximum of 448 digital inputs and outputs. It is suitable for machine control and for process automation and monitoring on a medium scale. The S5-100U allows a broad expansion capability with various types of modules to adapt optimally to a control task.
•
Rugged, Lightweight Design All of the modules you can use with the S5-100U are block-type modules that are small, rugged, and easy to use. The modules operate without fans. None of these modules has electromagnetically sensitive electronics. The modules are plugged into bus units and screwed tightly so that they are vibration-proof. The bus units snap onto a standard mounting rail. You can configure the S5-100U in one or more tiers and configure it vertically or horizontally. The S5-100U offers such a wide range of configuration possibilities that you can use it in rough and difficult operating conditions.
•
Simple Programming The programming language is STEP 5 and its comprehensive operations set. It provides three different methods of representation, - four, if you have a CPU 103 or higher. You can use any of the U series programmers to program your S5-100U, or you can load programs from memory submodules.
1-2
EWA 4NEB 812 6120-02b
Page 23
2
Technical Description 2.1
Programmable Controller Design . . . . . . . . . . . . . . . . . . . . . . . . .
2 - 1
2.2 2.2.1 2.2.2
Principle of Operation for the Programmable Controller . . . . . . . . . Functional Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Mode of Operation for the External I/O Bus . . . . . . . . . . . . . . . . .
2 - 3 2 - 3 2 - 6
EWA 4NEB 812 6120-02b
Page 24
Figures 2-1 2-2 2-3 2-4 2-5 2-6
The S5-100U . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Functional Units of the S5-100U . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example of an Arithmetic Logic Unit’s Mode of Operation ............ Accumulator Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure of the External I/O Bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Data Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 2 2 2 2 2 -
1 3 5 5 6 7
Tables 2-1 2-2
Retentive and Non-Retentive Operands . . . . . . . . . . . . . . . . . . . . . . . . . . Number of Bits per Module in the Shift Register . . . . . . . . . . . . . . . . . . . .
2 - 5 2 - 8
EWA 4NEB 812 6120-02b
Page 25
S5-100U Technical Description
2 ~~ Technical Description
This chapter describes the design and principle of operation for the S5-100U programmable controller and its accessories.
2.1 Programmable Controller Design The S5-100U belongs to the SIMATIC S5 range of programmable controllers. The S5-100U consists of various functional units (modules) that you can combine according to the task you want to perform.
IP aT
00000000
@ &
F
Figure 2-1. The S5-100U
@ Power supply module (PS 930) This module is required if 24 V DC is not available for the CPU.
@® Central processing unit (CPU)
The CPU scans the control program. In the event of a power failure, a backup battery located in the battery compartment saves the memory contents (9).
The control program can be stored in a memory submodule.
The CPU has a serial port, and you can connect a programmer, an operator panel, or a
SINEC L1 bus to it.
EWA 4NEB 812 6120-02b 2-1
Page 26
Technical Description
S5-100U
Input/output modules Input/output modules transfer information between the CPU and such process peripherals as sensors, actuators, and transducers. You can use the following types of input/output modules with your S5-100U: •
Digital input modules and digital output modules (4, 8, and 16/16 channel) - Use these modules for simple control tasks involving signal states “0” and “1” only.
•
Analog input modules and analog output modules - Use these modules to record and generate such variable quantities as currents and voltages.
•
Timer module - Use this module to set various times without having to change the program.
•
Counter module - Use this module to count pulses up to 500 Hz. You can input comparison values without having to change the program.
•
High-speed counter/position detection module - Use the high-speed counter to record high-speed counter pulses of 25/500 kHz. You can use this module for position detection in a positioning task.
•
Comparator module - This module makes it possible for you to monitor preset comparison values, such as for current and voltage.
•
Simulator module - Use this module to generate digital input signals or to display digital output signals.
•
Diagnostic module - Use this module to check the function of the I/O bus.
•
Communications module (CP) - Use this module to output message texts with the date and clock time to a connected printer. You can also use this module to connect to external systems.
•
Intelligent I/O module (IP) - Use these intelligent input/output modules for such special tasks as temperature control and positioning tasks.
Bus units with terminal blocks (Crimp-snap-in or SIGUT, screw type) Use bus units to connect the CPU to input/output modules. You can plug two input/output modules into a single bus unit. Interface modules (IM) Use these modules to assemble your S5-100U in a multi-tier configuration. Standard mounting rail Mount your programmable controller on the standard mounting rail.
2-2
EWA 4NEB 812 6120-02b
Page 27
S5-100U
2.2
Technical Description
Principle of Operation for the Programmable Controller
The remainder of this chapter explains how your S5-100U processes your program.
2.2.1
Functional Units
CPU
Program memory
Timers
Counters
Flags
Process I/O image tables
Interrupt process I/O image tables*
System data
RAM
ROM
Memory submodule
(operating system)
Processor
ALU (ACCU 1 and 2, bit-ACCU (RLO))
Serial port
I/O bus
Digital modules: - input - output
Analog modules: - input - output
Function modules
I/O modules * Beginning with CPU 103, version 8MA02 Figure 2-2. Functional Units of the S5-100U
EWA 4NEB 812 6120-02b
2-3
Page 28
Technical Description
S5-100U
Program Memory (EPROM/EEPROM) In order to safely store the control program outside of your S5-100U, you must store it on an EPROM or EEPROM memory submodule (see section 4.4). Programs that are available on a memory submodule (EPROM or EEPROM) can be copied to the internal program memory (see section 4.3). This internal program memory is a reserved area of the CPU's internal RAM memory. The internal RAM memory has the following characteristics: •
The memory contents can be changed quickly.
•
Memory contents are lost when there is a supply voltage failure and there is no battery backup.
Operating System (ROM) The operating system contains system programs that determine how the user program is executed, how inputs and outputs are managed, how the memory is divided, and how data is managed. The operating system is fixed and cannot be changed.
Process Image Tables (PII, PIQ) Signal states of input and output modules are stored in the CPU in “process image tables”. Process image tables are reserved areas in the RAM of the CPU. Input and output modules have the following separate image tables: •
Process image input table (PII)
•
Process image output table (PIQ)
Serial Interface You can connect programmers, operator panels, and monitors to the serial port (cable connector). You can use the serial port to connect your S5-100U as a slave to the SINEC L1 local area network.
Timers, Counters, Flags The CPU has timers, counters, and flags available internally that the control program can use. The program can set, delete, start, and stop the timers and counters. The time and count values are stored in reserved areas of the RAM memory. There is another area in the RAM memory where information such as intermediate results can be stored as flags. You can address the flags by bits, bytes, or words. If battery backup is available, then some of the flags and counters remain in the internal RAM memory even if the supply voltage fails or your S5-100U is switched off. These flags and counters are retentive.
2-4
EWA 4NEB 812 6120-02b
Page 29
S5-100U
Technical Description
Table 2-1 gives information about the number and retentive characteristics (the internal memory contents are retained/are not retained) of these timers, counters, and flags. Table 2-1. Retentive and Non-Retentive Operands Retentive
Non-Retentive
Operand CPU 100 to 103
CPU 100
CPU 102
CPU 103
Flags
0.0 to 63.7
64.0 to 127.7
64.0 to 127.7
64.0 to 255.7
Counters
0 to 7
8 to 15
8 to 31
8 to 127
0 to 15
0 to 31
0 to 127
Timers
Arithmetic Unit The arithmetic unit (ALU) consists of two accumulators, ACCU 1 and 2. The accumulators can process byte and word operations. Load information from the PII.
Process information in ACCU 1 and ACCU 2.
Transfer information to the PIQ.
Figure 2-3. Example of an Arithmetic Logic Unit’s Mode of Operation Accumulator Design ACCU 2 15
8
7
High byte
ACCU 1 0
Low byte
15
8
High byte
0
7
Low byte
Figure 2-4. Accumulator Design
Processor According to the control program, the processor calls statements in the program memory in sequence and executes them. It processes the information from the PII and takes into consideration the values of internal timers and counters as well as the signal states of internal flags.
External I/O Bus The I/O bus is the electrical connection for all signals that are exchanged between the CPU and the S5-100U modules in a programmable controller.
EWA 4NEB 812 6120-02b
2-5
Page 30
Technical Description
2.2.2
S5-100U
Mode of Operation for the External I/O Bus
The S5-100U has a serial bus for the transfer of data between the CPU and the I/O modules. This serial bus has the following characteristics: •
The modular design permits optimal adaptation to the particular control task.
•
No addresses have to be set on the I/O modules.
•
A terminating resistor connector is not required.
•
Direct access to individual modules is not possible.
A number of shift registers moves the data (Figure 2-5). Four data bits and one check bit for bus monitoring are assigned to each slot in the bus unit. All modules requiring more than four data bits have their own shift register and therefore do not have to use the shift register of the particular slot.
Slot number
CPU
Data ring bus
0
1
2
3
5 Bits
Shift register of a slot Shift register of an 8-channel digital module or of an analog module n x 5 Bits n=2, 4, 6 to 16
Figure 2-5. Structure of the External I/O Bus
2-6
EWA 4NEB 812 6120-02b