Anhang_IV - Siemens
Training document for the company-wide
automation solution
Totally Integrated Automation (T I A)
Appendix IV
Fundamentals of fieldbus systems
with SIMATIC S7-300
This document was provided by Siemens A&D SCE (automation and drive technology, Siemens A&D Cooperates with Education) for training purposes. Siemens does not make any type of guarantee regarding its contents.
The passing on or duplication of this document, including the use and report of its contents, is only permitted within public and training facilities.
Exceptions require written permission by Siemens A&D SCE (Mr. Knust: E-Mail: michael.knust@hvr.siemens.de). Offences are subject to possible payment for damages caused. All rights are reserved for translation and any case of patenting or GM entry.
We thank the company Michael Dziallas Engineering and the instructors of vocational schools as well as further persons for the support with the production of the document.
PAGE:
1. Forward 5
1.1 Preface 6
2. Hierarchy Level in Automations Technology 7
3. Field Bus Systems (A Choice) 9
3.1 INTERBUS-S – One of the first 9
3.2 PROFIBUS - Versatility 9
3.3 AS-I – Small and fast 10
3.4 CAN – Field bus on wheels 10
4. Integrated Bus systems for the SIMATIC S7-300 11
4.1 The Multipoint - Interface (MPI) 11
4.2 The AS- Interface (AS-I) 11
4.3 The PROFIBUS 11
5. The Multipoint - Interface (MPI) 12
5.1 Technical data for the MPI 12
5.2 Configuration of a MPI network 13
5.3 Commissioning of a MPI network 15
5.3.1 Commissioning of a SIMATIC S7-300 to the MPI network 15
5.3.2 Commissioning of an Operator Panel / An Operator Station on a MPI network 19
5.3.3 Commissioning of a program device / PC on a MPI network 19
5.4 Global data communication with MPI 23
5.4.1 Functionality of a cyclic data exchange 23
5.4.2 Reaction time and transmission security 24
5.4.3 Global data configuration 24
6. The AS- Interface 26
6.1 Technical data for the AS- Interface 26
6.2 Configuration of an AS- Interface 27
6.2.1 Basic components of an AS- Interface configuration 28
6.3 Technical data for the CP 342-1 30
6.4 Bus access process 31
6.5 Data transmission and transmission security 32
6.6 Commissioning of the AS- Interface with the CP342-2 as Master 34
6.7 Addressing of the AS- Interface slaves 36
6.8 AS- Interface Version 2.1 37
6.8.1 AS-I binary values exchange with standard A slaves 39
6.8.2 AS-I binary values exchange with B slaves 40
6.8.3 Transmitting AS-I analog values 42
PAGE:
7. The Profibus 45
7.1 Profibus- FMS 46
7.2 Profibus- PA 47
7.3 Profibus- DP 48
7.3.1 Technical data for the Profibus-DP 48
7.3.2 Configuration of the Profibus-DP 50
7.3.3 Devices types by Profibus-DP 50
7.3.4 System configuration 51
7.4 Bus access process 53
7.4.1 Frame configuration 54
7.5 Data transmission and transmission security 58
7.5.1 Time response of the Profibus-DP 58
7.5.2 Protection mechanisms 59
7.6 Commissioning of the Profibus-DP 60
7.6.1 Commissioning of the Profibus-DP with the CPU 315-2DP 60
7.6.2 Commissioning of the Profibus-DP with the CP342-5DP 61
7.6.3 Blocks for the CP342-5DP 61
7.6.3.1 DP-SEND (FC1) 62
7.6.3.2 DP-RECEIVE (FC2) 63
7.6.3.3 AG-SEND (FC5) 64
7.6.3.4 AG-RECEIVE (FC6) 65
1. Forward
Appendix IV is the requirement for the processing of the module of the theme Industrial field bus systems.
Learning goal:
This document should give you an overview of field bus systems in general and should introduce the integrated bus systems of the automation system S7-300. They are:
( Multi Point Interface (MPI)
( AS-Interface
( PROFIBUS
Requirements:
Since the basics are found within this appendix, no special requirements are necessary.
1.1 preface
By complex systems with a large number of in-/output signals, it is no longer practical to realize the automation task with a signal, central controller.
Then one has skipped the control tasks in order to distribute more smaller automation devices. These devices are coordinated from higher order controllers or mainframes, which are integrated over a bus system in the whole process.
The in- and outputs are no longer connected to the central signal modules directly on the controller, but are distributed in a process from location by I/O modules that are connected over a field bus with a signal controller.
This distribution of the automation task with the connection of the peripherals from location has the following advantages:
1. Simpler programming through smaller programs,
2. Minimization of the cabling cost, (Cabling errors are reduced),
3. Breaking down system structures,
4. Simple expansion resp. modification,
5. Short positions by critical signals e.g. analog values or counter frequencies, digitalized into
I/O range,
6. Flexibility from automation systems is increased by the assignment of the peripherals
7. Higher system availability by faults through self-sustaining controllers,
8. Comprehensive self monitoring and error diagnostic of the transmission system,
9. Installation and maintenance is simplified,
In the following pages, the different field bus systems should be visualized for realization of each solution in order to then be responsive to the bus systems of the SIMATIC S7-300.
2. Hierarchy Level in automations technology
[pic]
In order to receive the complex information in large enterprise in the handle, different hierarchy levels are built inside of the whole automation range.
The information exchange takes place inside of and between a signal hierarchy plane (vertical and horizontal).
Each hierarchy level is assigned a further level in which the requirements by the communication are arranged. There the different communication tasks can no longer be released with a network. Different communication systems would be developed.
In the upper levels, you find complex computer systems. Large data heaps with uncritical reaction time, large node counters and a further expansion of networks dominate it.
The communication in the lower level is embodied through minor data heaps and message throughput such as smaller node counters. Here lie real time requirements in the foreground. The length of the network is rather small.
One differentiates the following five hierarchy levels:
( The analysis of the information from the production process that the application plan, such as the stipulation of guidelines and strategies for manufacturing take place in the planning level. In longer periods, larger data heaps are transmitted here over a large range.
( The coordination of a single production range takes place in the process control level. Here the cell level is provided with jobs and program data and it is decided, how the production has to occur. This process control computer such as a computer for configuration, diagnosis, operation and protocol, resides in this level.
( The cell level integrates the single manufacturing cells that are controlled from the cell computer or the PLCs. Here in the foreground lies the specific communication between intelligent systems.
( In the field level, you find programmable devices for open or closed loop control and monitor like PLCs or industry computers that evaluate the data of the sensor/actuator level. For the connection to the superposed systems, larger data heaps with critical reaction time are transmitted.
( The actuator-/sensor level is an integral part of the field level and integrates the technical process with the controller. This occurs with simple field devices like sensors and actors. The faster cyclic actualization of the in- and output data lies in the middle point, where small messages are transmitted. The duration for the actualization of the in- and output data must circumstantially be smaller as the cycle time of the controller.
3. Field bus systems (A choice)
Direct in the range of the field bus systems there is a multitude of systems with competitive standards that will be assured in this hard-fought market. Without demand for completeness, the most important field bus systems in Europe should be shortly visualized.
3.1 interbus-s – one of the first
In 1985, the Interbus-S was developed from the Phoenix Contact Company with the goal being to avoid costly parallel cabling in the PLC peripherals.
The Interbus-S does not want to represent a universal communications medium, but rather single PLCs, CNC controllers or process automation systems with their peripherals connected. The strength of the Interbus-S is a very high transmission efficiency with very small data heaps per node.
The Interbus-S is qualified only for the lowest hierarchy level. It connects sensors and actors with the corresponding controllers. It is not designed for the linking controllers to one another in a network.
3.2 profibus - Versatility
The PROFIBUS (Process Field Bus) is qualified for the networking of complex devices with its multi master protocol.
The PROFIBUS is named after DIN 19245, where it extends its user range from the field level to the process control level.
In principle it is applicable with its protocol profile PROFIBUS-DP (Distributed I/O) down to the sensor/actor level. For the cost efficient activation of a large number of sensors and actors, it offers the integration of the bus on low-order levels like the AS-I.
3.3 AS-I – small and fast
The AS-I (Actuator Sensor Interface) is matched to the requirements in the lowest level.
AS-I operates actors and sensors with the first control level and replaces them with cable harnesses, distributor cabinets and connecting terminal plates. Since then, the AS-I is an open standard. In the meantime, many manufacturers offer intelligent, AS-I compatible actors and sensors in order to be able to transfer more information than only 1/0.
AS-I is especially easy in data manipulation. Field devices are simply clamped into cut terminal technology on an unprotected 2 way conductive flat cable. As a result, the installation can then be accomplished by people without any expertise.
AS-I is fast, simple, cost effective and also future safe because it meets more than half of the world market’s requirements for sensors from manufacturers that support it.
3.4 CAN – Field bus on wheels
The CAN bus system (Controller Area Network) was primarily developed by Bosch in cooperation with Intel, in order to reduce cable harnesses in automobile building. When one compares the requirements of KFZ bus systems with those of industrial field bus systems, then one sees striking similarities:
( Minor costs,
( Functional safety under difficult environmental conditions,
( High real-time capability and
( Simple data manipulation.
CAN is therefore very well suited for the networking of intelligent sensors and actors within machines.
4. Integrated Bus systems for the SIMATIC S7-300
In the frame of ‘Totally Integrated Automation’, different bus systems as an integral component were included in the SIMATIC S7-300.
Therefore, the three following bus systems shall be explained in more depth:
4.1 the Multipoint- interface (MPI)
This bus system was chiefly developed as a programming interface. MPI serves likewise for the communication with components that work for the ‘man/machine interface’ and for homogenous communication between automation devices.
4.2 the AS- Interface (AS-I)
The AS-Interface is a network system for binary sensors and actors in the lowest field range.
4.3 the Profibus
PROFIBUS is a bus system that is used in the field range as well as for cell networks with a small amount of nodes.
There are three protocol profiles for the PROFIBUS that can be operated together on a circuit (RS 485 fiber-optic cable).
( PROFIBUS-FMS (Fieldbus Message Specification) is suited for the communication of automation devices in small cell nets under one another and for the communication with field devices with a FMS interface.
( PROFIBUS-DP (Distributed Peripheral) is the protocol profile for the connection of distributed I/Os in the field area e.g. ET 200 modules with very fast reaction time.
( PROFIBUS-PA (Process Automation) is the communication compatible addition from the PROFIBUS-DP about a transmission technology that allows the users into the EX-area. The transmission technology of the PROFIBUS-PA corresponds to the international Standard IEC 1158-2.
In the frame of this document, we will only take a further look into the PROFIBUS-DP. There this frequently applicable case is together with the SIMATIC S7-300 and also exists for an integrated interface.
5. the MultiPoint- Interface (MPI)
This bus system was developed as a program interface for the SIMATIC S7. The MPI serves likewise for the communication with components that are used for the ‘man/machine interface’ and for the homogenous communication between automation devices.
The operation area from the MPI and PROFIBUS is divided into many areas, where MPI is considerably cost effective. This interface is already available in all SIMATIC S7 products.
The considerable advantage over the PROFIBUS is that the transmission protocol displays an abstract “SIEMENS-Standard“ so that no product from “outside manufacturers“ can be integrated into each bus system.
5.1 Technical data for the MPI
The MPI (Multipoint Interface) is one of the many integrated communication interface devices of the SIMATIC S7 that is simultaneously connected with more program devices/PCs with STEP 7, HMI systems (Operator panel/operator station), S7-300, M7-300, S7-400 and M7-400.
It can be used for simple linking in networks and enables the following forms of communication:
With the service global communications, the networked CPUs can cyclically exchange data under one another. A S7-300 CPU can therefore exchange a maximal of 4 packets with at least 22 bytes, where with STEP 7 V4.x a max. of 15 CPUs can participate on the data exchange.
Programming- and diagnostic functions can be executed with MPI from other programmed devices/PCs to all networked PLCs. There the MPI interface of the CPU is directly connected with the internal communications bus (K-BUS) of the S7-300. The function modules (FM) and communications modules (CP) are switched directly over the MPI with the K-Bus connection from the PG.
The connection from operator panels/operator stations to the SIMATIC S7 PLCs is simply realistic with the MPI. There the communication services default can be supported and standard FBs are no longer necessary by the SIMATIC S5.
The following performance data from the company SIEMENS is entered for the MPI:
Max. of 32 MPI nodes
Each CPU has a possibility of a max. of 8 dynamic communication connections for the basic communication to SIMATIC S7/M7-300/-400.
Each CPU can operate a max. of 4 statistic communication connections for the additional communication to the PG/PC, SIMATIC HMI-Systems and SIMATIC S7/M7-300/400.
Data transmission speed 187,5 kbit/s or 12Mbit/s
Flexible configuration possibilities in the bus or tree structure (with repeaters)
Max. wire length 10km
10. Interface: RS485
5.2 configuration of a MPI Network
The configuration of an MPI network is shown as follows:
Up to 32 nodes can be connected with one another. Each is monitored. It should be taken into account that communication processors (CPs) and function modules that are in the SIMATIC S7-300 must also have MPI addresses and be counted towards the number of nodes.
The addresses of several nodes can be assigned between 0 and 31 (standard setting).
It makes sense, however, not to assign the address 0 (standard setting for program devices) in a closed network configuration in order to carry though a diagnosis by the MPI with additional program devices, without needing to adjust the MPI addresses of the program devices.
For an eventually available operator panel, the address 1 (standard setting for an operation panel) should be assigned.
To avoid cable reflections, make sure the first and last nodes of the MPI network are hooked up to the slots‘ integrated terminator.
The MPI network is compiled with a shielded and a stranded filter 2 wire cable and can be used up to a length of 50 m. These 50 m are measured from the first node to the last node of the MPI network.
Should this large distance be used, then the PS 485 repeaters must be used. A cable length can be up to 1000 m in length between 2 RS 485 repeaters when no other node is found between the 2 repeaters. One can place up to 10 repeaters in a row.
The components that come by the configuration of the MPI configuration for operation, are the same bus cables like the bus connectors and RS 485 repeaters that are used by the electrical net of the PROFIBUS.
Therefore the electrical net can be configured as either cables or a tree structure with the help of the repeater.
[pic]
Example of a tree structure under the use of repeaters
When a PROFIBUS-DP is ready in a system, it should be considered in the configuration phase, whether to develop PG functions over the PROFIBUS-DP and save the MPI cabling.
5.3 commissioning of a MPI network
So that all connected nodes can communicate with one another over the MPI, each node must contain an MPI address, a maximum MPI address such as a subnet with a transmission rate. Therefore the following rules are required:
10. All MPI addresses in a subnet must be different.
11. The highest possible MPI address such as the transmission rate must be larger than or equal to the largest actual MPI address and must be equal by all nodes.
5.3.1 commissioning of a SIMATIC S7-300 to the MPI network
By the SIMATIC S7-300 it should be noted that many communication processors (CPs) and function modules (FMs) have a single MPI address. This address is automatically given from the CPU, by means of a sequence in which the modules are ordered on the module rack, acquired and allocated in the following pattern:
CPU: MPI address
CP/FM1: MPI address + 1
CP/FM2: MPI address + 2
Through this, direct access is provided from the program device over the CPU on the associated module. This access takes place in the S7-300 over the internal communication bus (K-Bus).
After the entry of the hardware module in HW Config is completed, the connection of the PLC can be configured by the MPI network. The following steps need to be followed:
1. The PLC must be connected over the MPI to the program device. It is not yet found in the MPI network.
2. Double click on the CPU in the configuration table.
[pic]
3. Then click on( Properties.
[pic]
4. By the properties of the MPI interface, only the MPI address of the CPU is specified (The MPI address must not be larger than the highest set MPI address!) and the MPI subset is chosen.
When the setting for the highest MPI address or transmission rate of the subnet must be adjusted, click on ( Properties with the mouse.
[pic]
[pic]
5. The settings must be accepted ( OK ( OK ( OK.
6. Now the downloading of the altered configuration takes place in the CPU and in the eventual, available CPs and FMs (The mode switch on the CPU must be on STOP!).
In the hardware configuration the MPI addresses of the CPs and FMs corresponding to the chosen MPI address for the CPU were entered.
[pic]
For the checking of the operation capability of the MPI connection one can, for example after the choice of the following MPI node, take into effect a change of operation mode from the program device/PC. By erroneous transmission, the set values must be checked. It must be ensured that the right MPI address was set and chosen. Furthermore the properties of the transmission rate and highest MPI address must agree with all nodes.
There can also be an error by the cabling by the switching of the terminal resistances. Therefore one should have first checked if the bus terminal resistances are set to the right setting and then if they have a bus connector contact, a ground connection or a short bus connection.
5.3.2 commissioning of an Operator Panel/an Operator Station on a MPI network
The operator panels/ operator stations must also be configured for the operation by the MPI configuration. The setting of the MPI address, the highest MPI address, and the transmission rate, such as the assignment to a subnet and the corresponding communication partner takes place here with special parameter tools like ProTool.
[pic]
5.3.3 commissioning of a program device / PC on the MPI network
There are many possibilities for the connection of a program device/PC on the MPI network. There are MPI slot cards for the PCI, PCMIA or the alternative PC-Adapter that can be connected on a serial interface.
By the commissioning of a program device/PC to a MPI network the parameters MPI address and highest MPI address such as the transmission rate must be assigned. In the following example, the configuration for a PC Adapter is shown:
1. Call ‘Set PG-PC-Interface‘. ( ( Start ( SIMATIC ( STEP 7 ( Set PG-PC-Interface)
[pic]
2. The module Select ( ( Select ) is available as the MPI-interface.
[pic]
3. Select the desired module (e.g. ( PC-Adapter) and install
((Install).
[pic]
4. Choose the desired device (e.g. ( PC Adapter ( Close )
[pic]
5. Choose Properties of the MPI module (e.g. ( PC Adapter(MPI) ( Properties).
[pic]
6. Specify MPI address, timeout, highest node address etc.
Note:
It is recommended to use the preset values!
[pic]
7. Accept settings ( ( OK ( OK ).
5.4 Global data communication with MPI
The global data communication is simple possible data like inputs, outputs, memory bits such as areas in data blocks exchanged between S7-300 and S7-400 CPUs over the MPI interface.
This data in the operation system of the S7-300/400-CPU is an integrated communication possibility that makes a cyclic data exchange possible without having to connect extra blocks to it.
The commissioning takes place by simple parameterizing.
5.4.1 Functionality of a cyclic data exchange
The cyclic data exchange takes place by the cycle control point together with the process image exchange. The CPU sends the global data by the end of a cycle and reads this data at the beginning of a cycle.
Therefore a S7-300/400-CPU sends your data simultaneously to all S7-300/400-CPUs to the MPI subnet (Broadcast). Up to 15 different nodes can be entered into the global data table.
With the help of a scan rate factor that you indicate in a global data table, you can set after how many cycles the data transmission of data receiving should take place.
The max. number of the transmitted data depends on the type of CPU:
CPU 31x CPU 412 CPU 413 CPU 414 CPU 416
8Bytes 32Bytes 32Bytes 32Bytes 32Bytes
Broadcast processing:
Standard calls and data processing are carried through a broadcast in a network without waiting for a return message. When different global data is sent over the CPU, there is overlap.
.
5.4.2 Reaction time and transmission security
The reaction time is dependent on the cycle time of the user program and it averages to a n order (GD scan rate factor) time.
The reaction time can be calculated approximately with the following formula:
Tmax. = Cycle time sent * U-Factor sent + cycle received + MPI number-Tln.
This processing is broadcast processing and guarantees no data security. Thus the global data communication is not qualified for security relevant release between system components.
5.4.3 Global data configuration
Global data communication is not programmed, but rather configured.
With STEP 7, a global data table is created in which the configuration data for the data exchange is specified. All SIMATIC S7-300/400-CPUs that should participate by global data communication must be in the same STEP 7 project and like described in point 5.3.1, have been taken by the MPI network into operation.
(You can find additional information in the STEP 7 reference manual).
The configuration of the MPI network and the setting of the global data table takes place as follows:
1. Open a project.
2. Choose object properties of the MPI network (Menu instruction Edit).
- Highest MPI address and
- Transmission rate setting
3. Assure that the CPU’s different MPI addresses have not been altered in the ‘HW Config‘.
4. Choose MPI network ( ( MPI(1) ).
5. Define the global data in the GD table (( Options ( Define Global Data)
- Enter CPU (( Highlight field ( Edit ( CPU)
- Enter e.g. memory bits-, outputs- and input ranges
- Each line belongs to a sender (( Edit ( Sender)
- Compile global data table (( GD-Table (Compile)
[pic]
Global data table
6. Download configuration data in the CPUs ( ( PLC ( Download to Module)
Now the sending CPU sends the global data at the end of a cycle and the receiving CPU reads this data at the beginning of a cycle.
Note
Regard that the reading of the global data takes place before the reading of the PII and before the program processing.
The sending of the global data is first accomplished after the processing of the control program and the reading out of the PIQ in the task modules.
6. the AS-Interface
The Actuator-Sensor-Interface (AS-I) serves as the information transmission in the lowest field area and like the PROFIBUS, is an open standard. A multitude of manufactures offer products and interfaces to the AS-Interface. The AS-Interface enables a simple and extremely cost efficient integration of sensors and actors in the industrial communication and provides these sensors and actors simultaneously with the important auxiliary power. With this system, predominately binary sensors and actors are operated with the controllers. So far it is important for process signals that arise before a location to transfer with conventional parallel wiring over in-/output modules into the controller. AS-I replaces the expensive cable tree by a simple and complete unprotected 2 wire cable for all sensors and actors.
Through the robust design in a degree of protection IP65 or IP67, the AS-Interface increases straight in the lowest field area of usual and hard operating conditions.
6.1 Technical data for an AS- Interface
The technical data and transmission protocol of the AS-Interface are specified in the Norm EN 50 295.
The following performance data for the AS-Interface is specified here:
Max. 31 AS-I nodes with 4 Bit I/O user data
Max. 124 I/O sensors and actors
Access processing with cyclic polling in the master/slave process
Max. cycle time 5ms
Error safe identification and iteration of faulty frames.
Transmission medium is a usual 2 wire cable (2 x 1,5 mm2 ) for data and a max. of 2A auxiliary power per AS-I pro AS-I cable. The power supply consists of 30 V DC. The signal of the data transmission is modulated. An additional power supply of 24V DC (auxiliary power) is possible.
Connection and assembly of the AS-I components in an insulation displacement method.
AS-I slave module with integrated circuit (AS-I chip) that requires no processor and no software. This results in an approximate, delay free processing of the frames and a small construction volume of the slave
Special AS-I sensors and actors are directly integrated with the AS-I chips.
Flexible configuration possibilities like in the conduit with cables, stars or tree structures
Max. wire length of 100m or 300m (with repeaters)
6.2 configuration of an AS-Interface
The configuration of an AS-Interface can appear as follows:
Additionally the addressing of the AS-I slaves requires one more addressing device:
+
The AS-Interface is a single-master system. Therefore there always exists exactly one master and up to 31 slaves in each system with the CP342-2. If more slaves are required, an additional AS-Interface system with an additional master must be inserted.
6.2.1 Basic components of an AS-Interface configuration:
The AS-Interfaces occurs modularly under the use of the following components:
Power supply 30V DC (Power supply)
[pic]
The 30V power supply is attached directly to the data circuit.
AS-I data circuit as unprotected 2 wire cable.
[pic]
The connection of the AS-I components takes place in an insulation displacement method, where the AS-I cable is flattened in order to avoid wiring errors by assembly.
AS-I master as a connection device for the controlling by the user or a higher level bus system with the corresponding master chips.
[pic]
Over the AS-I master, the user can have access to the I/O data of the AS-I slave. This occurs at the S7-300 in the user program of the CPU.
AS-I slaves with slave ASIC
[pic] [pic]
For the AS-Interface, there is a large choice in slaves from different manufacturers. Each slave must be assigned by the commissioning of a target AS-I address that is then saved there. The addressing occurs either with the configuration device or over the master in which each slave is written a single connection by an addressed frame. This also functions when one slave is exchanged.
Configuration device for the setting of the slave addresses
[pic]
With the programming and service unit (PSG), the AS-I slave addresses can be set very easily.
Optional: Repeater for additional wire length up to 300 m (100m without repeater)
[pic]
In order to implement a bus configuration with a larger expansion (e.g. by material systems), the repeaters must be interposed. This is connected with the AS-I data circuit.
Optional: additional power supply 24V DC (power supply) for auxiliary power
[pic]
When an AS-I slave requires more as 100mA or all slaves require more than 2A of auxiliary power pro AS-I cable, an additional power supply of 24V DC is required. This is connected over the AS-I network cable (black) with the auxiliary power contacts of the slaves.
AS-I network cable for the auxiliary power as an unprotected black 2 wire cable.
[pic]
The connection of the auxiliary power occurs in an insulation displacement method where the AS-I cable is flattened in order to avoid wire errors by assembly.
6.3 Technical data for the CP 342-2
The AS-Interface master CP342-2 can be used in the S7-300 or also in a PROFIBUS slave ET 200M by any activation either in the central device or in one of the 3 additional devices and occupies a slot there.
It offers the following functions and characteristics:
· Simpler operation in the I/O address range of the SIMATIC S7-300 and ET 200M
· Configuration of the CPs is not necessary
· Triggering of up to 31 AS-Interface slaves corresponding to the AS-I specification V2.0
· Up to 248 binary elements by the operation of triggerable bi-directional slaves
· Monitoring of the power supply on the AS-Interface cable
· Requires 1 Slot
· 16 bytes are occupied in the I/O operation in the analog address place
· LEDs for the displaying of operation states such as the operational readiness of the connected slaves
· Button for the switching of the operation mode and for the altering of the current configuration
· Connection possibility for the AS-Interface cable over the standard front connector
The CP342-2 recognizes two modes:
· Configuration mode:
This mode is set in the delivered state of the CP342-2 (LED CM).
The configuration mode serves for the commissioning of an AS-I installation. In this mode, the CP342-2 can exchange data with each of the connected slaves on the AS-I cable. New incoming slaves are quickly recognized from the master and recorded in the cyclic data exchange.
· Protected mode:
One switches into protected mode with the SET- Button.
In this mode the CP342-2 exchanges data only with slaves that are “configured“. “Configured“ means that slave addresses stored in the CP and configuration data stored in the CP agree with the values of the appropriate slaves.
6.4 Bus access process
The master contains a processor, whose software is provided from the manufacturer so that the communication between master and slaves executes fully independent with an addressed and programmed device.
The addressed slaves are cyclically spoken to and questioned by the master module during data exchange.
Therefore the net data rate averages to 4 bits pro call of a slave.
The serial information transmission between the master and the slaves that is implemented by an extremely small frame length with minor overhead, determines a max. cycle time of 5 ms. The real-time requests are fulfilled for most of the control programs in the exercise.
The I/O addressing of a master module for a control program’s purpose is identical with the addressing of conventional digital or analog in-/output task modules.
The master module also displays an address range in the CPU, which it can access in the program.
Each single AS-I slave allocates a nibble (4 bit large data unit) for inputs and outputs in this address range.
Parameterized frames are accomplished acyclically like configured or addressed frames where no real-time request exists. It is also only possible to run a parameter call to a slave per cycle.
To recognize transmission errors faster, all frames are checked quickly through a routine handler for their validness. If needed the frames run once again.
6.5 Data transmission and transmission security
The data transmission occurs over the 2-conductor, unprotected and oil resistant AS-I data circuit which is connected to a power supply of 30V DC. The signal is modulated on this power level.
The AS-I messages are shown as follows:
The following bits are relevant for the data transmission:
( ST = Start bit
( CB = Control bit
( A4 ... A0 = Address of the slave (5 Bit )
( I4 ..... I0 = Information unit from the master to the slave (5 Bit )
( I3 ..... I0 Information unit form the slave to the master (4 Bit )
( PB = Parity bit
( EB = End bit
The master can start a call alone if the frame is very short with little corresponding protocol overhead. Through this and through the limited number of slaves the in-/output data can be actualized very quickly in all slaves without the AS-Interface having to operate with a higher data rate. By this principle, the AS-Interface is less accident prone by a feed by foreign electromagnetic fields.
This ruggedness, next to the cheap price, is one of the advantages compared to other systems (e.g. the PROFIBUS) that must carry along many large protocol overheads due to their versatile communication possibilities.
A master call with a slave response executes by the AS-Interface with the following measurements:
Master call :
( The Start Bit ST marks the start of a master call (ST = 0).
( The Control Bit CB recognizes the data.- (CB = 0) Address- (CB = 0), Parameter- (CB = 0) and
command call (CB = 1).
( The address of the called slave remains in the 5 bits A4...A0.
( The information unit of the master to the slave is transmitted into the 5 bits I4...I0.
( The Parity Bit PB makes sure that the sum of all “1en“ in the master call is even.
Through this, the slave can recognize if the transmission of the call occurred error free.
( The End Bit EB highlights the end of the master call (EB = 1).
( The master pause is pushed between 3..10 bit time for the guarantee of transmission safety.
Slave response:
( The Start Bit ST highlights the start of the slave response (ST = 0).
( The information unit of the slave to the master is transmitted into 4 bits I3...I0.
( The Parity Bit PB makes sure that the sum of all “1en“ in the master call is even.
Through this, the master can recognize if the transmission of the reply occurred error free.
( The End Bit EB highlights the end of the slave response (EB = 1).
( The slave pause is pushed between 3..10 bit times for the guarantee of transmission safety.
With this transmission process, a very high transmission security is guaranteed. Single, double, and triple errors are always recognized. 4/5ouple errors are always recognized with a probability of 99.9999%. There all slaves are called from the master by each cycle. The failure of a component is quickly recognized.
Through a permanent comparison of the preset/actual configuration in the master, the warning errors like error addressing, are fixed and reported.
6.6 commissioning of an AS-Interface with the CP342-2
The following steps must be followed by the user in order to bring the AS-Interface into operation with the CP342-2, to setup a project and to set the hardware configuration with the CP342-2 AS-I.
1. First all slaves must be assigned explicit addresses with the programming and service unit (PSG):
[pic]
AS-I slave connected or placed on an integrated base of the PSG
1.1 Turn on PSG (START)
1.2 Activation (ENTER)
1.3 Choose ‘Master‘ (F3)
1.4 Choose ‘Single operation’ (F1)
1.5 Choose ‘New address’ (F1)
1.6 Activate AS-I address (ENTER)
1.7 Enter new address (e.g.: 2)
1.8 Activate inputs (ENTER)
1.9 Return to the main menu (2x ESC)
1.10 Turn off PSG (F4)
2. Then the transfer of the yellow data cable and the connection of all slaves of the power supply (30V DC) and the master as well the repeater in the insulation displacement method occur. Therefore the profile of the data circuit must be accounted for.
3. When an additional power supply (24V DC) is required , it can be connected to the AS-I slaves with the black AS-I power cable. Therefore the profile must be accounted for by the connection in the insulation displacement method of the power cable.
4. Finally you can connect the sensors to the M12 connector for the AS-I slaves and they will be mounted to the slaves.
5. Now the AS-I line is ready and the CP342-2 can be setup and parameterized.
6. In order to bring the S7-300 with the CP342-2 into operation, you must switch the mode switch on the CPU to STOP.
7. Bring the CP342-2 into the configuration mode in which you activate the SET- Button of the CP342-2. The display CM lights now and the recognized slaves are displayed on the diagnostic LEDs of the CP342-2.
Note:
You can also insert or remove additional slaves on the AS-I cable. Newly inserted slaves are quickly recognized and activated from the CP3423-2.
8. Activate the SET- Button of the CP342-2. The CP now stores those activated slaves that were indicated. The “actual configuration“ as non volatile preset configuration is switched in the protected operation. The LED “CM“ lights.
9. Now switch the mode switch of the CPU to RUN-P. The system startup of the CP342-2 is now complete .
6.7 Address assignment of the AS-Interface Slaves
The CP342-2 is assigned over the hardware configuration of a slot.
Pro slot, the CPU activates a memory area with a size of 16 bytes in the memory I/O for the domain. When, for example, the CP342-2 is configured on slot 6 then 16 bytes starting from address 288 are used for the data exchange.
Each slave has a maximum of 4 inputs and 4 outputs. Therefore only 4 bits per slave (nibble) can be assigned in the memory of the CP342-2. The assignment of several slaves to the address area is specified as follows:
|Inputs |IN / OUT |IN / OUT |Address |Outputs |
|PIQ |7 |6 |5 |4 |
|25 |Slave02 |Slave03 |289 |65 |
|26 |Slave04 |Slave05 |290 |66 |
|27 |Slave06 |Slave07 |291 |67 |
|28 |Slave08 |Slave09 |292 |68 |
|29 |Slave10 |Slave11 |293 |69 |
|30 |Slave12 |Slave13 |294 |70 |
|31 |Slave14 |Slave15 |295 |71 |
|32 |Slave16 |Slave17 |296 |72 |
|33 |Slave18 |Slave19 |297 |73 |
|34 |Slave20 |Slave21 |298 |74 |
|35 |Slave22 |Slave23 |299 |75 |
|36 |Slave24 |Slave25 |300 |76 |
|37 |Slave26 |Slave27 |301 |77 |
|38 |Slave28 |Slave29 |302 |78 |
|39 |Slave30 |Slave31 |303 |79 |
These assignments are obtained by the AS-I slaves when the addresses from I24.0 are used for inputs and addresses Q64.0 for outputs. Through the program instructions download and transfer, this assignment can be dealt within the OB1.
e.g. L PID288, T ID24 etc. for the inputs.
L QD64, T PQD288 etc. for the outputs.
In order to acquire the address of the second output by the AS-I Slave 2 (Slave 2, Out 2), the following steps needs to be performed:
Byte address for Slave02 from the PIQ: 65
Bit address for Out2: 5
Resulting Address: Q 65.5
For the third input by AS-I Slave 7 (Slave7,In3), the address is I 27.2.
6.8 AS-Interface Version 2.1
Additions to the past system properties (Version 2.0):
Addition of up to 62 Slaves
[pic]
Simpler connection of analog slaves
[pic]
AS-Interface Version 2.1 in comparison
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| |So far: Version 2.0 |Version 2.1 |
|Number of slaves |Max. 31 |Max. 62 |
|Signal amount |124 I + 123 O |248 I + 186 O |
|Transmission |Data and power up to 8A |Data and power up to 8A |
|Medium |Unprotected wire 2X1.5mm2 |Unprotected wire 2X1.5mm2 |
|Max. cycle time |5 ms |10 ms |
|Analog value transmission|With function block |Integrated into the master |
|Number of analog values |16 bytes for digital and |124 analog values possible |
| |analog values | |
|Access method |Master/slave |Master/slave |
|Cable length |100 m, up to 300m with |100 m, up to 300m with repeater|
| |repeater | |
System addition: max. 62 slaves
[pic]
So far:
Each slave has an address(max. 4I / 4Q)
Version 2.1:
2 Slaves, each address with A or B recognition:
A/B slaves ! (Max. 4I / 3Q)
[pic]
Note:
With an AS-I addressing and diagnostic device for AS-Interface version 2.1 or for CP342-2 (AS-I master with additional specification 2.1), the addresses of the slaves can be set to the value 1 to 31 (resp. 1A to 21A and 1B to 31B).
Further slaves are identified as single slaves.
A/B and single slaves can be operated together.
Communication cycle:
1) Queries all single slaves and all A slaves
2) Queries all single slaves and all B slaves
Cycle duration:
Between 5 ms with use of a max. 31 A or single slaves,
up to 10 ms with use of a max. 62 A and B slaves
6.8.1 AS-I binary values exchange with standard A slaves
You access the binary values of the AS-I standard slaves (resp. A slaves) in the user program over the corresponding STEP 7 peripheral instructions.
[pic]
Note
The access of the inputs and outputs of the standard/A slaves occurs by the CP343-2 exactly like it does by the AS-Interface specification 2.0.
6.8.2 AS-I binary values exchange with B slaves
You access the binary values from B slaves in the user program over the system function block SFC 58 (”Write_Record”) / SFC 59 (“Read_Record”) .
You always use record number 150 for access.
[pic]
Note
The CP 343–2 administrates the binary data of the B slaves in 2 16 byte large areas (an area for the input data and an area for the output data).
Access to binary data from B slaves
In record 150, this structure contains these ranges of the structure of the binary data for the standard and A slaves.
[pic]
The following example program shows the access on the binary data from the B slaves.
[pic]
6.8.3 Transmitting AS-I analog values
You can set up to 31 AS-I slaves with up to 4 analog inputs or outputs. There is no load of the CPU, in which the signal is assigned as a complete analog value to the PLC(12 bit).
You access the analog values from the AS-I analog slaves in the user program over the system function block SFC 58 (”Write_Record”) / SFC 59 (“Read_Record”). For this access, you use data record numbers 140 through 147.
For each data record you can use between 2 bytes and a max. of 128 bytes. For each slave address, an 8 byte comprehensive range for the addressing of 4 analog channels is used.
[pic]
Note
The following types apply only for AS-I slaves that process an analog value transmission for the AS-I slave profile 7.3 and 7.4.
The analog value transmission for the AS-I slave profile 7.1 to 7.2 is not supported by the CP343-2. In this case, the analog transfer software technology must be implemented.
The following table indicates with which data record and from which AS-I slave the analog values are transmitted. The way that the analog values of the analog slaves are ordered is taken from the following table.
The tables are applied for the analog inputs and similarly for the analog outputs.
[pic]
Examples / Reading note to the table
1. Configuration:
The analog slaves have the AS-I addresses 1–6.
You use the data record 140 and the value 48 as the data record length.
2. Configuration:
It uses 1 analog slave with the AS-I address 7.
You use the data record 141 and the value 24 as the data record length.
3. Configuration:
The whole address range for 31 analog slaves is used.
You use the data record 140 and the value 128 as the data record length.
Therefore you include the analog slaves 1–16.
For the rest of the analog slaves 17-31, you use the data record 144 and the value 120 as the data record length for the next application.
4. Configuration:
Analog slaves lying in address range 29–31.
You use the data record 147 and the value 24 as the data record length.
Program example:
[pic]
7. The profibus
Out of the processing of the “BMFT- Combined project field bus”, in which 13 companies and 5 colleges are associated with, the DIN 19245, otherwise known as the ”PROFIBUS“ (PROcess FIeld BUS) was developed in the beginning of 1991.
The goal of the project was to develop a field bus system that made it possible to link up a network of automation devices of the lowest field level from sensors and actors up to the process control in the cell level.
This national scaling was met in the European Norm EN 50170 in 1996.
A field bus standard was made with the PROFIBUS which is open and company neutral. Devices of different manufacturers are equipped with a proper interface.
Due to it’s comprehension and also differentiated functionality, the PROFIBUS masks large areas of sensors/actors next to the field and cell levels and guarantees a good uniformity for the higher level bus systems of the process control level.
The characteristics of the PROFIBUS are thoroughly described in the following sections.
- PROFIBUS- FMS
- PROFIBUS- PA
- PROFIBUS- DP
These 3 compatible variants of the PROFIBUS co-ordinate properties and user ranges. They make a transparent communication from sensor/actor to the systems in the process control level possible. Planning, installation and maintenance are therefore economic and technically simple to implement.
7.1 PROFIBUS-FMS (Fieldbus Message Specification)
PROFIBUS-FMS builds a bridge between the cell and the field level. It corresponds to the DIN 19245 and is integrated into the European field bus norm EN 50170. As a result of its performance capable user functions, it is qualified for sophisticated communication tasks like for the data exchange of the intelligent automation devices to one another. Therefore one differentiates which data between active nodes (master) and passive nodes (slave) under the use of token passing with documented master-slave processing cyclic or acyclic exchanges. A transmission rate of 1.5 Mbit/s is possible.
The token passing method guarantees the allocation of the bus access authorization in which the token is contained inside of an exactly specified time frame.
The master-slave method enables the master to possess the direct send authorization when the assigned slaves communicate with the master.
PROFIBUS-FMS works object oriented and makes standardized access possible to variables, programs and large data areas (domains). All communication objects of a node are entered by the configuration of a bus system in the object directory. The access to the communication object occurs though a short representation (index) or optimally over symbolic names. The data transmission occurs on the base of logical connections.
7.2 PROFIBUS-PA (Process Automation)
PROFIBUS-PA is the PROFIBUS variant for the process automation in process engineering. Originally the PROFIBUS-PA was specified in the specification ISP 3.0 (Interoperable Systems Project). Since June 1994, it was currently named PROFIBUS-ISP. In the beginning of 1995 this variant was renamed to PROFIBUS-PA. It uses processes specified in the international NORM IEC 1158-2 transmission technology and enables these processes through intrinsic safety and remote power feeding of nodes. These properties permit that also during the current operation, field devices can be cut off. For this, a non intrinsically safe field bus must have been completely disconnected.
Basic data of the Norm IEC 1158-2 (the PROFIBUS-PA) given:
1. Digital, bit synchronous data transmission
2. Data rate 31,25 kBit/s
3. Error safe start and end delimiter
4. Send level 0,75 VSS to 1 VSS
5. Remote power feeding over signal download
6. Lines- Stars- and tree topology are supported
7. Power transmission: DC
8. Up to 32 nodes per cable segment
9. Length of up to 1900 m per cable segment (without repeater)
10. Bus expandable with a maximum of 4 repeaters in a row
Fieldbus in the intrinsically safe field range with an incoming supply over the field bus (top) and the external incoming supply (bottom).
[pic]
The intrinsically safe transmission technology for the IEC 1158-2 should be available for the user profiles of the PROFIBUS-FMS and PROFIBUS-DP. Next to these user profiles, communication and device profiles are defined.
7.3 PROFIBUS-DP (Distributed I/O)
The PROFIBUS-DP is positioned in the DIN E 19245 Part 3 and integrated into the European field bus norm EN 50170. It is tailored on the requirements for faster, more efficient data exchange between the automation devices and the distributed devices like binary or analog in-/output modules and actuators. This shift of the peripherals in the field level enables the incoming supply by the cables. For this reason the user field of the PROFIBUS is added underneath thereafter. The PROFIBUS-DP uses the approved properties of the PROFIBUS transmission technology and of the bus access protocol (DIN 19245 Part 1). It adds this to the functions with which the high requirements are fulfilled for the system reaction time in the range of the distributed I/O. Therefore it is possible for the PROFIBUS-FMS and PROFIBUS-DP to simultaneously execute on a single cable.
In the following section, the PROFIBUS-DP will be dealt with in more detail.
7.3.1 Technical data for the PROFIBUS-DP
The following Parameter are specified for the PROFIBUS-DP in the Norm 50170.
The bus allocation occurs by the PROFIBUS-DP after the processing of ‘’Token passing with supported master-slave’.
Typical cycle time is given with 5 -10 ms.
A maximum of 127 nodes with a frame length of 0-246 bytes user data can be connected.
Standard-transmission rates are defined as 9,6 KBaud / 19,2 KBaud / 93,75 KBaud / 187,5 KBaud / 500 KBaud / 1,5 MBaud / 3 MBaud / 6 MBaud / 12 MBaud.
The bus configuration is modular expandable where as the peripherals and field devices are connected and unconnected during the operation.
The data transmission occurs either over a 2 wire cable with a RS-485 interface or over a fiber-optic cable. We restrain ourselves here to the 2 wire cable data transmission possibility.
The unprotected and twisted 2 wire cable (Twisted Pair) has a minimum cross section of 0.22 mm² and must be connected at the end with the shaft resistor.
An area-wide network occurs by the PROFIBUS-DP through the compartmentalization of the bus system in the bus segments that can be connected over repeaters.
The topology of the single bus segment is the line structure (up to 1200 m) with short drop cables ( ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- nzcs 361 new zealand border agencies application for
- ophi oxford poverty human development initiative
- event meeting planning networking and education
- mpisai a cross platform implementation of mpi 1
- mapping mpi to machine implementing the mpi standard
- anhang iv siemens
- home veterans affairs
- second first annual session of year
- nzcs 224 tsw client registration application
Related searches
- siemens learning advantage web site
- siemens learning advantage nx
- learning advantage siemens plm
- siemens online learning
- siemens learning center
- siemens online training courses
- siemens online training
- siemens training classes by location
- siemens online training portal
- siemens online training pep
- siemens free online training
- siemens pep connect online modules