Actuator Sensor Interface Link
Actuator Sensor Interface Link
Actuator Sensor Interface Link
Technical Description, Installation Instructions, Operation Data Exchange between DP Master and AS-i Slave Using the Command Interface Slave Diagnostics Eliminating Problems / Error Displays
1 2 3 4 5
Appendix AS-Interface Protocol Implementation Conformance Statements Structure of the PROFIBUS Parameter Assignment and Configuration Frame
AS-Interface
A B C D E
Glossary
PROFIBUS
Index
ASInterface
Classification of Safety-Related Notices This manual contains notices which you should observe to ensure your own personal safety, as well as to protect the product and connected equipment. These notices are highlighted in the manual by a warning triangle and are marked as follows according to the level of danger: Danger indicates that death or severe personal injury will result if proper precautions are not taken.
Warning indicates that death or severe personal injury can result if proper precautions are not taken.
Caution with warning triangle indicates that minor personal injury can result if proper precautions are not taken.
Caution without warning triangle indicates that damage to property can result if proper precautions are not taken.
Notice indicates that an undesirable result or status can result if the relevant notice is ignored.
Note highlights important information on the product, using the product, or part of the documentation that is of particular importance and that will be of benefit to the user.
Trademarks SIMATICR, SIMATIC HMIR and SIMATIC NETR are registered trademarks of SIEMENS AG. Third parties using for their own purposes any other names in this document which refer to trademarks might infringe upon the rights of the trademark owners. Safety Instructions Regarding your Product: Before you use the product described here, read the safety instructions below thoroughly. Qualified Personnel Only qualified personnel should be allowed to install and work on this equipment. Qualified persons are defined as persons who are authorized to commission, to ground, and to tag circuits, equipment, and systems in accordance with established safety practices and standards. Correct Usage of Hardware Products Note the following: Warning This device and its components may only be used for the applications described in the catalog or the technical description, and only in connection with devices or components from other manufacturers which have been approved or recommended by Siemens. This product can only function correctly and safely if it is transported, stored, set up, and installed correctly, and operated and maintained as recommended. Before you use the supplied sample programs or programs you have written yourself, make certain that no injury to persons nor damage to equipment can result in your plant or process. EU Directive: Do not start up until you have established that the machine on which you intend to run this component complies with the directive 89/392/EEC. Correct Usage of Software Products Note the following: Warning This software may only be used for the applications described in the catalog or the technical description, and only in connection with software products, devices, or components from other manufacturers which have been approved or recommended by Siemens. Before you use the supplied sample programs or programs you have written yourself, make certain that no injury to persons nor damage to equipment can result in your plant or process.
Prior to Startup Prior to startup, note the following: Caution Prior to startup, note the information and follow the instructions in the latest documentation. You will find the ordering data for this documentation in the relevant catalogs or contact your local Siemens office.
Copyright E Siemens AG 20012002 All rights reserved The reproduction, transmission or use of this document or its contents is not permitted without express written authority. Offenders will be liable for damages. All rights, including rights created by patent grant or registration of a utility model or design, are reserved.
Disclaimer of Liability We have checked the contents of this manual for agreement with the hardware and software described. Since deviations cannot be precluded entirely, we cannot guarantee full agreement. However, the data in this manual are reviewed regularly and any necessary corrections included in subsequent editions. Suggestions for improvement are welcomed.
4
Siemens Aktiengesellschaft
Preface
Requirements
To understand this manual, you require the following: S S A working knowledge of PROFIBUS DP You should be familiar with the AS-Interface Introduction and Basic Information manual (not supplied with this documentation package).
Preface
Contents
1 Technical Description, Installation Instructions, Operation . . . . . . . . . . . . . . . . 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.7.1 1.7.2 1.7.3 1.8 1.9 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 1.10 2 General Notes on Operation Safety Warnings . . . . . . . . . . . . . . . . . . . . . Application of the Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Technical Data of the Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing the Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Front Panel Access to all Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Connection Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Display and Control Elements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Status Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Slave Display for AS-i Slaves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Displaying and Setting the PROFIBUS Address . . . . . . . . . . . . . . . . . . . . . Configuring the AS-Interface with the SET Button (Button Configuration) Configuring the DP/AS-i Link 20E as a DP Slave on the DP Master . . . . General Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Importing a GSD File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Configuration in STEP 7 Basic Configuration . . . . . . . . . . . . . . . . . . . . . . Configuring in STEP 7 Slave Configuration . . . . . . . . . . . . . . . . . . . . . . . . Upload Actual Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Transmission Rate on PROFIBUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 10 11 13 14 15 16 18 19 21 23 25 28 29 31 33 36 41 42 43 44 45 46 47 51 52 54 56 60 61 63 64 70 76
Data Exchange Between the DP Master and AS-i Slave . . . . . . . . . . . . . . . . . . . . 2.1 2.2 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 2.5 Preparation for Operation an Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . How the Interfaces Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Transferring AS-i Binary Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Addressing AS-i Slaves . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Accessing AS-i Binary Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Transferring AS-i Analog Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Calling Acyclic Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Programming Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PROFIBUS DP Control Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Using the Command Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1 3.2 3.3 Command Interface of the DP/AS-Interface Link 20E . . . . . . . . . . . . . . . . . Command Interface for SIMATIC S7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Description of the AS-i Slave Commands . . . . . . . . . . . . . . . . . . . . . . . . . . .
Contents
3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.3.10 3.3.11 3.3.12 3.3.13 3.3.14 3.3.15 3.3.16 3.3.17 3.3.18 3.3.19 3.3.20 3.3.21 3.3.22 3.3.23 3.3.24 3.3.25 3.3.26 3.3.27 3.3.28 3.3.29 3.3.30 3.3.31 4
Set_Permanent_Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Get_Permanent_Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Write_Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read_Parameter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Store_Actual_Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set_Extended_Permanent_Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . Get_Extended_Permanent_Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . Store_Actual_Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Get_Extended_Actual_Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set_LPS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set_Offline_Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Select Autoprogramming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Set_Operation_Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Change_AS-i_Slave_Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Get_AS-i_Slave_Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Get_LPS, Get_LAS, Get_LDS, Get_Flags . . . . . . . . . . . . . . . . . . . . . . . . . . Get_Extended_Total_Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Store_Extended_Total_Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Write_Extended_Parameter_List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read_Extended_Parameter_Echo_List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read_Version_ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read_AS-i_Slave_ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read_AS-i_Slave_Extended_ID1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Write_AS-i_Slave_Extended_ID1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read_AS-i_Slave_Extended_ID2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read_AS-i_Slave_I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Get_LPF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Write_AS-i_Slave_Parameter_String . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read_AS-i_Slave_Parameter_String . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read_AS-i_Slave_ID_String . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Read_AS-i_Slave_Diagnostic_String . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 98 103 108 109 110 112 113 114 115 116 117 118 119 120 121 123 124 125 127 127 127 131 132 133
Slave Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 4.2 4.3 4.4 4.5 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Station Status 1 to 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PROFIBUS Address of the DP Master and Vendor ID . . . . . . . . . . . . . . . . Structure of ID-Related Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure of the Device-Related Diagnostic Information . . . . . . . . . . . . . . .
Dealing with Problems/Error Displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 5.2 Replacing a Defective AS-i Slave/Automatic Address Programming . . . . Error Displays/Remedying Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Contents
A B C D E
AS-Interface Protocol Implementation Conformance Statement (PICS) . . . . . Structure of the PROFIBUS DP Parameter Assignment and Configuration Frame . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Notes on the CE Mark . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E.1 E.2 Terms Relating to AS-Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Terms Relating to PROFIBUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Contents
10
This chapter explains the performance, installation and basic functions of the master module DP/AS-Interface Link 20E module (DP/AS-i Link 20E). You will learn the following: S S S S S How to install the DP/AS-i Link 20E module The display and control elements of the DP/AS-i Link 20E module How to configure the DP/AS-i Link 20E module with the push button How to configure a SIMATIC S7 DP master in STEP 7 How to set the PROFIBUS address for the DP/AS-i Link 20E module
11
1.1
Caution When handling and installing the DP/AS-i Link 20E module, make sure that you adhere to the ESD guidelines. The DP/AS-i Link 20E module must only be connected when the AS-i power supply unit is turned off.
Caution Noise immunity/grounding To ensure the noise immunity of the DP/AS-i Link 20E module, both the DP/AS-i Link 20E module and the AS-i power supply unit must be grounded correctly.
Caution The AS-i power supply unit used must provide a low voltage, safely isolated from the network. This safe isolation can be implemented according to the following requirements: S S S VDE 0100 Part 410 = HD 384-4-4 = IEC 364-4-41 (as functional extra-low voltage with safe isolation) or VDE 0805 = EN60950 = IEC 950 (as safety extra-low voltage SELV) or VDE 0106 Part 101
Note The DP/AS-i Link 20E module can be configured, installed and started up independent of the PROFIBUS installation.
12
1.2
29 24 19 14 9 4 28 23 18 13 8 3 27 22 17 12 7 2 31 26 21 16 11 6 1 30 25 20 15 10 5 0
X2 34 6GK71415 2AA0
5B slave
5A slave
AS-i cable
Branch
Figure 1-1
13
Features
The DP/AS-i Link 20E allows byte and word-consistent exchange of I/O data with a DPV0, DPV1 master and the AS-i slaves. S DPV0 mode In the DPV0 mode and using a maximum of 32/32 bytes from the I/O area, up to 62 digital AS-i slaves can be operated at a transmission rate of 9.6 Kbps up to 12 Mbps. The command interface and the simple access to the AS-i analog values using the AS-i slave profile 7.3/7.4 are not available in the DPV0 mode. S DPV1 mode In the DPV1/DPx mode and using a maximum of 32/32 bytes from the I/O area, up to 62 digital AS-i slaves can be operated at a transmission rate of 9.6 Kbps up to 12 Mbps. In addition to this, the services read_record/write_record allow a maximum of 32 AS-i analog slaves with up to 4 analog I/O channels to be operated. Commands complying with the AS-i master specification M1e are implemented with the read_record/write_record (record 2) services.
14
1.3
Configuration of the AS-Interface Supported AS-i master profiles Connection of the AS-i cable
Connection to PROFIBUS PROFIBUS address setting Permitted loading 5V DC at PROFIBUS connector Data rates supported (transmission rate) on PROFIBUS
Power supply from the AS-i cable Current consumption from the AS-i cable Power consumption Ambient conditions
Horizontal installation: 0 to 60C Vertical installation: 0 to 45C 40C to +70C max. 95% at +25C
IP 20 90 x 80 x 62 approx. 200 g
15
1.4
Options
The DP/AS-i Link 20E module has type of protection IP 20. S S You can install the DP/AS-i Link 20E module on a normal standard rail (complying with EN 50022). As an option, you can also install the module on a wall directly using the mounting holes in the casing.
Convection
Make sure that you leave at least 5 cm clearance above and below the module to allow heat dissipation.
Vertical Installation
The standard rail can also be installed vertically. Due to the reduced convection, the maximum permitted ambient temperature is reduced to 45C. Fit a grounding clip to the standard rail below the DP/AS-i Link 20E to prevent it slipping down on the standard rail.
16
1.5
) * ) *
ADR BF SF
PROFIBUS DP
Display elements
28 27 26 25
SET
Mounting hole for wall installation SET Button For AS-i configuration For setting the PROFIBUS address DISPLAY Button Changes over the display Labeling Field status display LED Row with 8 two-color LEDs (red/green or yellow/green) for status display or group/slave display
Figure 1-2
Front Panel
17
1.6
Connection Elements
Connections
The DP/AS-i Link 20E module has the following connections: S S S Two connections to the AS-i cable (bridged internally) One connection for functional earth One connection to PROFIBUS (9-pin sub D female connector)
The connectors are located below the upper cover of the front panel of the DP/AS-i Link 20E module.
Caution The permitted current loading of the AS-i connection contacts is 3 A. If this value is exceeded on the AS-i cable, the DP/AS-i Link 20E module must not be looped into the AS-i cable but must be connected with a tap line (only one pair of connectors of the DP/AS-i Link 20E module is used).
The DP/AS-i Link 20E module is supplied with power entirely from the AS-Interface. The current consumption from the AS-Interface is 200 mA.
PROFIBUS DP
Figure 1-3
18
Caution The free terminals 6 and 7 in the terminal block must not be connected.
The DP/AS-i Link 20E module has a connection for functional ground. This connector should be connected to the PE conductor with as little resistance as possible.
Connection to PROFIBUS DP
Connection to PROFIBUS DP is via a 9-pin sub D female connector.
Warning When laying and installing the PROFIBUS DP cable and the bus connector, follow the instructions in /5/.
To connect to PROFIBUS DP, bus connectors are available with cable outlets at different angles (0, 30 and 90). Once again, follow the instructions in /5/.
19
1.7
5..9 5B..9B
20..24 20B..24B
ADR BF
SF
Static display: AS-i standard slaves and A slaves Flashing display: B slaves
red red or off green
Key:
green or off
20
off
1.7.1
Status Display
ADR BF
off
The status display is the default standard display in the basic status of the DP/AS-i Link 20E module. No group LED is lit green. The ADR LED must also not be lit red. The lower 7 LEDs indicate the status of the DP/AS-i Link 20E; the label to the right of the LEDs then applies. The bottom 5 LEDs indicate errors/states on the AS-Interface. The BF LED indicates an error on PROFIBUS-DP
SF
SF (red)
red or off
red or off
S The connection between the DP master and the DP/AS-i Link 20E
module has broken down or the DP master is not active.
S The DP/AS-i Link 20E has detected an internal error (for example
EEPROM defective).
S While pressing the SET button, the DP/AS-i Link 20E module
cannot currently make the required mode change (for example a slave exists with address 0). Run AS-i Power Fail The LED is lit when the DP/AS-Interface Link 20E is supplied with power. This indicates that the voltage supplied to the AS-i cable by the AS-i power supply unit is too low. Note: The DP/AS-i Link 20E module is supplied with power entirely from the AS-Interface. Total failure of the AS-i power supply can therefore no longer be displayed by AS-i Power Fail. You can recognize this situation because the PWR LED is not lit.
21
Table 1-2
, (continued) Status Configuration Error Meaning This LED indicates whether the slave configuration detected on the AS-i cable matches the expected configuration on the DP/AS-i Link 20E module. If they do not match, the CER LED is lit. The CER LED is lit in the following situations:
S When a configured AS-i slave does not exist on the AS-i cable (for
example failure of the slave).
S When an AS-i slave exists on the AS-i cable but it was not
previously configured.
CM (yellow)
Configuration Mode
22
1.7.2
ADR BF
green or off
The slave display can be recognized by the fact that at least one group LED is lit green and that the ADR LED is not red. The lower 5 LEDs then indicate the slaves on the AS-Interface. In this case, the label to the left of the LEDs applies. The display always represents 5 slaves.
green or off
SF
green or off
The lower five LEDs are lit green to indicate the detected or active AS-i slaves within the group. You can move from group to group by pressing the DISPLAY button again. The module returns to the status display in the following situations: S After displaying the last group (AS-i slaves 30, 31) and pressing the DISPLAY button twice. (In other words changing to the PROFIBUS address display and then to the status display.) If you do not press the DISPLAY button for approximately 8 minutes.
23
ADR
28 27 26 25
X 2 3 4 6GK1 415-2AA00
Figure 1-4
From the display you can obtain the following information: S S The group LEDs indicate the second group of five. Within this group, the active AS-i slaves 6 and 8 are displayed by the lower five LEDs.
24
1.7.3
ADR BF
red
If the top LED (ADR) of the group display is lit up red, the 7 lower LEDs indicate the PROFIBUS address of the DP/AS-i Link 20E in binary format.
SF
green or off
green or off
2. Change the display on the DP/AS-i Link 20E module until the ADR LED is lit red by pressing the DISPLAY button (note: starting from the status display, the button must be pressed 15 times!). The DP/AS-i Link 20E module then indicates the currently set PROFIBUS address using the 7 lower LEDs. 3. If you now press the DISPLAY button, the DP/AS-i Link 20E returns to the status display, the set PROFIBUS address is retained. If, on the other hand, you press the SET button, you can set a new value for the PROFIBUS address. First of all, the BF LED flashes and the most significant bit of the PROFIBUS address is displayed. 4. If you press SET, this bit is set (LED on), if you press the DISPLAY button, the bit is reset (LED off). The display then jumps to the SF LED (next address bit of the PROFIBUS address). 5. By following the steps outlined above, you can now set or reset each of the individual bits of the PROFIBUS address.
25
6. When all the bits have been entered, the display of the set address bits alternates quickly red/green or yellow/green. If you press the SET button again, the set PROFIBUS address is adopted by the DP/AS-i Link 20E module. If, on the other hand, you press DISPLAY, the new address is discarded. The entry of the new address must then be repeated (as in step 4 and 5). The value of the address bits represented by the LEDs of the PROFIBUS address is illustrated in the following example:
red green
ADR
64 32 16 8 4 2 1
green
green
Figure 1-5
In the example above, the PROFIBUS address 69 was set with the SET/DISPLAY buttons. The highest address that can be set is address 126. Remember that address 126 is reserved on PROFIBUS for special functions (address assignment). For data exchange with a DP master, you can use addresses 1 to 125.
26
1.8
If you press the SET button, the mode changes to the other mode. Notice Note that the SET button is only effective when the connection to the DP master is interrupted or when the DP master is set to STOP.
Configuration Mode
The configuration mode is used during AS-i installation and startup. In the configuration mode, the DP/AS-i Link 20E module can exchange data with every AS-i slave connected to the AS-i cable (except for the AS-i slave with address 0). Any AS-i slaves that are added later are detected immediately by the master and activated and included in the cyclic data exchange. When installation and startup is completed, the DP/AS-i Link 20E module can be switched to the protected mode using the SET button. Any AS-i slaves active at this point are therefore configured. The AS-i slave information shown below is then stored in non-volatile memory on the DP/AS-Interface Link 20E module: S S S the addresses the ID codes the I/O configuration
27
Protected Mode
If the DP/AS-Interface Link 20E is in the protected mode, it only exchanges data with slaves that are configured. In this sense, configured means that the slave addresses stored on the DP/AS-Interface Link 20E and the configuration data stored on the DP/AS-Interface Link 20E match the values of the existing AS-i slaves.
Notice It is only possible to configure the AS interface in the status display or slave display status. The DP/AS-i Link 20E module must not be in the PROFIBUS address display mode; in other words when the SET button is pressed, the ADR LED display must not lights up red.
28
Notice Changing from the configuration mode to the protected mode is only possible when there is no AS-i slave with address 0 connected to the AS-Interface. If a slave 0 is connected, the SF LED lights up when the SET button is pressed.
29
1.9
30
1.9.1
General Procedure
1) With SIMATIC S7 masters with an integrated interface and with the CP 443-5 EXT, these functions are also available (at the time of printing, these functions were being prepared for the CP 342-5).
S S7 with DP interface
integrated in the CPU or
S S7 with DP
attachment via CP 342-5 and CP 443-5
31
Table 1-4
, continued DP master configured with... Tool Procedure For example import GSD file in COM PROFIBUS For example import GSD file in COM PROFIBUS Enable DPV1 (see Section 1.9.2) DPV0 Mode/Features
Type of DP Master
Standard complying with Depending on specific DPV0 master Standard complying with Depending on specific DPV1 master
DPV1
GSD file
The GSD file also contains the information about the DP/AS-i Link 20E required by the configuration tool (for example STEP 7 or COM PROFIBUS). The GSD file is shipped on diskette along with this manual and can also be downloaded via a modem from the Interface Center Frth at the telephone number +49 911 737972. The GSD file can also be downloaded from the Internet at http://www.ad.siemens.de/csinfo/ (under All Downloads...).
32
1.9.2
Caution If you use a DPV0 master, you must leave the DPV1 disable setting! Otherwise the I/O transfer may be deactivated if AS-i errors occur.
33
34
1.9.3
After you have inserted the DP/AS-i Link 20E as a DP slave, there are still no AS-i slaves to be seen in the detailed view of the station window. With this default setting, the configuration rules of configuration by button apply initially (see Section 1.8 ).
35
Reserved length: Pack: The address utilization is optimized; all gaps are eliminated
36
Automatic address programming when slaves are replaced: If you replace an AS-i slave (due to a fault), the addresses are programmed automatically. If you do not require this functionality, for example for safety reasons, the option can be deselected here.
37
1.9.4
Meaning
Configuring AS-i slaves completely in STEP 7 as described below allows you to adapt the AS-Interface to the I/O address range of SIMATIC S7. The settings you have made up to now in the basic configuration are adequate to start up the DP/AS-i Link 20E with a SIMATIC S7 DP master. All other configuration information relating to the AS-i slaves can then also be stored on the DP/AS-i Link 20E using the configuration button (see Section 1.8). If you want to configure the AS-i slaves in greater detail in STEP 7, follow the instructions below.
38
There are two types of AS-i slave available: S S AS-i A/B slave AS-i slave with extended addressing mode AS-i standard slave or AS-i analog slave AS-i slave for the standard address area; if you use this slave type, you cannot use an AS-i A/B slave under the same AS-i address in the B address area.
39
In this box, you should enter the manufacturers information for the AS-i slaves:
As an option, you can also enable the use of startup parameters here. Whether or not these parameters are used depends on the slave type.
Depending on the I/O configuration, you can specify the address area for input/output data here.
For AS-i slaves that do not support the ID1/ID2 codes, enter the values FH.
40
ID codes for analog slaves that can be found in the relevant manual. Here, for example:
For AS-i slaves that do not support the ID1/ID2 codes, enter the values FH.
41
The parameters in this box specify the slave profile. In addition to the I/O configuration:
As an option, you can also enable the use of startup parameters here. Whether or not these parameters are used depends on the slave type. With A/B slaves, only three bits are available! Bit 4 is required for the address changeover.
Depending on the I/O configuration, you can specify the address area for input/output data here.
42
1.9.5
Aims
You can upload the current actual configuration over the ASi Link 20E to the open STEP 7 project. This allows you S S to read in a complex configuration and to use it as a basis for further configuration in STEP 7; to check the current configuration.
Notice The uploaded configuration is always the current actual configuration. The actual configuration can differ from the configuration set with the buttons and stored on the ASi master, for example, when a slave was subsequently removed or added. If you download the configuration from the STEP 7 project to the ASi Link 20E, the configuration detected during button configuration is overwritten.
43
1.10
44
This chapter contains the information you require to access the AS-Interface from the DP master via the DP/AS-Interface Link 20E (DP/AS-i Link 20E) The chapter explains the transfer of the following: S S Binary values using the cyclic DP services Analog values using the acyclic DP services
45
2.1
Before putting the system into operation, the following independent steps must first be worked through:
Write a user program with binary value access for the DP master > Section 2.3
Configure DP master with DP/AS-i Link as DP slave and AS-i master > Section 1.9
Write a user program with analog value access for the DP master > Section 2.4
46
2.2
DP/AS-i Link
AS-i slaves
Acyclic services
write_record
30 25 20 15 10 5 0
AS-Interface
AS-i slave 1
AS-i slave 2
AS-i slave n
47
2.3
Purpose This section explains how the binary values of attached AS-i slaves can be accessed by the user program on the DP master.
DP/AS-i Link
AS-i slaves
DP Output area
X2 34 6GK71415 2AA0
PROFIBUS
Figure 2-1
From the point of view of the PROFIBUS DP master, the DP/AS-i Link 20E occupies S A maximum of 32 input bytes and a maximum of 32 output bytes
Addressing these bytes within the DP master (in the user program etc.) depends on the PROFIBUS DP master being used. You will find examples of this below. For more detailed information, refer to /3/ and the manuals for your PROFIBUS DP master.
48
AS-Interface
AS-i slave 1
AS-i slave 2
AS-i slave n
2.3.1
Slave 3 or 3A Slave 5 or 5A Slave 7 or 7A Slave 9 or 9A Slave 11 or 11A Slave 13 or 13A Slave 15 or 15A Slave 17 or 17A Slave 19 or 19A Slave 21 or 21A Slave 23 or 23A Slave 25 or 25A Slave 27 or 27A Slave 29 or 29A Slave 31 or 31A Slave 1B Slave 3B Slave 5B Slave 7B Slave 9B
49
Byte Number *) m+21 m+22 m+23 m+24 m+25 m+26 m+27 m+28 m+29 m+30 m+31
Bits 74 Slave 10B Slave 12B Slave 14B Slave 16B Slave 18B Slave 20B Slave 22B Slave 24B Slave 26B Slave 28B Slave 30
Bit 3 | Bit 2 | Bit 1 | Bit 0
Bits 30 Slave 11B Slave 13B Slave 15B Slave 17B Slave 19B Slave 21B Slave 23B Slave 25B Slave 27B Slave 29B Slave 31B
Bit 3 | Bit 2 | Bit 1 | Bit 0
*) m = start address of the input or output data on the DP master **) Bits 47 in the first byte of the input data are known as the status nibble; they are reserved for the command interface of the DP/AS-i Link 20E (see Section 3.1). Bits 47 in the first byte of the output data are also reserved and have no further significance.
50
Example of a Configuration
Figure 2-2 shows an example of the PROFIBUS DP master addressing four AS-i slaves. In the DP master, the start addresses m = 0 are used for the I/O data. The bits relevant for the user program (existing AS-i slaves) are shown on a gray background. The bits shown on a white background are irrelevant for the user program since no AS-i slaves are assigned here.
DP master
32 Input bytes
0 slave 1
Bit 3 Bit 2 Bit 1 Bit 0 Bit 3 Bit 2 Bit 1 Bit 0
32 Output bytes
0 slave 1
Bit 3 Bit 2 Bit 1 Bit 0 Bit 3 Bit 2 Bit 1 Bit 0
slave 2
Bit 3 Bit 2
slave 3
slave 2
Bit 3 Bit 2 Bit 1 Bit 0
slave 3
Bit 3 Bit 2 Bit 1 Bit 0
2 . . . 31
Bit 3
slave 4
slave 5
2 . . . 31
slave 4
slave 5
Slave 30B
Bit 3 Bit 2
Slave 31B 4 3 2 1 0
Slave 30B 7 6 5 4
Slave 31B 0
AS-i slaves
Figure 2-2
In the figure above, for example, the 2I/2O module (AS-i slave number 3 with two inputs and two outputs) occupies bits 0 and 1 in input byte 1 and bits 2 and 3 in output byte 1. The assignment of the AS-i terminals of the AS-i bus modules to the data bits of the input/output bytes is shown below based on the example of slave number 3: 1 Input byte 1
Terminal 2 on the AS-i bus module Terminal 1 on the AS-i bus module
Bit no.
51
3 Output byte 1
Terminal 4 on the AS-i bus module Terminal 3 on the AS-i bus module
Bit no.
52
2.3.2
53
2.4
Purpose This section explains how you can access analog values of attached AS-i slaves in the user program of the DP master.
Notice The following explanations apply only to AS-i slaves that handle analog value transfer in compliance with the AS-i slave profile 7.3 or 7.4. Analog value transfer in compliance with AS-i slave profile 7.1/7.2 is not supported by the DP/AS-i Link 20E. In this case, analog transfer must be implemented in your software.
54
DP/AS-i Link
ADR BF 29 24 19 14 9 4 28 23 18 13 8 3 27 22 17 12 7 2 31 26 21 16 11 6 1 30 25 20 15 10 5 0 DIA SF APF CER AUP CM 6GK71415 2AA0 X2 34 DP-AS Interface Link 20
AS-i slaves
read_record
PROFIBUS
Figure 2-3
AS-Interface
AS-i slave 1
AS-i slave 2
AS-i slave n
55
2.4.1
Calls
Table 2-1 Call read_record write_record With SIMATIC S7 SFC 59 SFC 58 With the DP programming interface dpc*_read dpc*_write
Call Parameters
Certain parameters must have values assigned to specify the job. The names of these parameters and the type of parameter setting can vary depending on the type of the DP master. The following table provides you with an overview of the parameters according to the DP-V1 specification and shows examples of how they are mapped in the parameter assignment of a user program for a SIMATIC S7 CPU and a user program for a PC/programming device in which the SIMATIC NET programming interface is used.
56
Parameters for Sending/Receiving SIMATIC S7 (SFC 58/59) LADDR (the start address of the cyclic input bytes of the DP/AS-i Link must be specified (see also Section 1.9). The S7 CPU calculates the PROFIBUS address from this information.) IOID The following fixed value must be entered: B#16#54 For PC: DP programming interface (dpc*_read/write) C_Ref Meaning PROFIBUS address of the DP/AS-i Link (DP slave)
PROFIBUS address
Fixed value
Slot_number
Slot_number
Index Length
Index Length_s
Data record number (140147; see Table 2-3) Length of the input/output data area Address of the input/output data area Return parameter for execution check
Data
Data_s
57
2.4.2
Programming
Job Parameters
Make the parameter settings for the read_record and write_record jobs as described in Section 2.4.1. Access to the analog values is controlled by the following parameters: S Index: Specifies the data record number in which the analog values are stored on the DP/AS-i Link 20E. How the available data record numbers 140 to 147 are used is explained below. Length: Specifies the length of the input/output data area; the specified length must be adapted to the data record being used and the address area of the analog slaves. This is explained in greater detail and with examples below. Data: Specifies the address of the input/output data area in which your user program accesses the analog values or makes the analog values available.
Data Consistency
In terms of one AS-i slave, the analog values transferred to the DP master are always consistent.
58
Table 2-3
Accessing Analog Values using Data Records Start addresses for analog values in the data record
DS 140 0 8 16 24 32 40 48 56 64 72 80 88 96 104 112 120 128 136 144 152 160 168 176 184 192 200 208 216 224 232
DS 141
DS 142
DS 143
DS 144
DS 145
DS 146
DS 147
0 8 16 24 32 40 48 56 64 72 80 88 96 104 112 120 128 136 144 152 160 168 176 184 192 200 208 0 8 16 24 32 40 48 56 64 72 80 88 96 104 112 120 128 136 144 152 160 168 176 0 8 16 24 32 40 48 56 64 72 80 88 96 104 112 120 128 136 144 0 8 16 24 32 40 48 56 64 72 80 88 96 136 144 0 8 16 24 32 40 48 56 64 72 80 0 8 16 24 32 40 48 0 8 16
59
Table 2-4
Address Area for the Analog Values of an AS-i Slave Byte no. (start address + offset) Start address + 0 Start address + 1 Start address + 2 Start address + 3 Start address + 4 Start address + 5 Start address + 6 Start address + 7 Analog value channel Channel 1 / high byte Channel 1 / low byte Channel 2 / high byte Channel 2 / low byte Channel 3 / high byte Channel 3 / low byte Channel 4 / high byte Channel 4 / low byte
Examples: 1. Configuration: Analog slaves have the AS-i addresses 16 You use data record 140 and specify 48 as the data record length. 2. Configuration: 1 analog slave with AS-i address 7 is used You use data record 141 and specify 24 as the data record length. 3. Configuration: The entire address range for 31 analog slaves is used You use data record 140 and specify 224 as the data record length. This covers analog slaves 128. For the other analog slaves 2931, you use data record 147 in a second job and specify 24 as the data record length. 4. Configuration: Analog slaves are in the address range 2931 You use data record 147 and specify 24 as the data record length.
60
Note In SIMATIC S7, the number of simultaneously active read_record and write_record jobs is restricted. The maximum permitted number depends on the particular S7 CPU. If more than the maximum number of jobs are triggered, they are terminated with the error 80C3h (temporary lack of resources). The rejected job must then be repeated.
61
2.4.3
Programming Examples
Table 2-5
STL L T DB40.DBW DB40.DBW 10 32 Explanation //Slave 6, input channel 2 //Slave 9, output channel 1 //RD_REC //Fixed value //Start of cyclic input data //DS141 (slave 5 and following) //Return parameter //Return parameter //Receive buffer (slaves 5...8)
CALL SFC 59 REQ :=TRUE IOID :=B#16#54 LADDR :=W#16#120 RECNUM :=B#16#8D RET_VAL :=MW130 BUSY :=M129.0 RECORD :=P#DB40.DBX 0.0 BYTE 32
CALL SFC 58 REQ :=TRUE IOID :=B#16#54 LADDR :=W#16#120 RECNUM :=B#16#8E RECORD :=P#DB40.DBX 32.0 BYTE 32 RET_VAL :=MW132 BUSY :=M129.1
//WR_REC //Fixed value //Start of cyclic input data //DS142 (slave 9 and following) //Send buffer (slaves 9...12) //Return parameter //Return parameter
62
2.5
Table 2-6 Control command FREEZE Effect The values of the binary input data of the AS-i slaves are frozen by the DP/AS-i Link 20E. The DP/AS-i Link 20E updates this data once with each further FREEZE. The FREEZE command is canceled. The values of the binary output data are frozen by the DP/AS-i Link 20E. The DP/AS-Interface Link 20 updates this data once with each further SYNC. The SYNC command is canceled. The values of the binary output data passed on by the DP/AS-i Link 20E to the AS-i slaves are set to 0 by the DP/AS-i Link 20E.
63
64
Via the command interface, you can control the response of the AS-i master completely from within your user program. This chapter contains the information you require to access the command interface of the DP/AS-Interface Link 20E from your DP master. Apart from a detailed description of the commands, the two interface variants are explained in detail as follows: S S The command interface of the DP/AS-Interface Link 20E The command interface with SIMATIC S7
65
3.1
Note A special function block (FC ASI_3422) is available for the AS-i commands in a SIMATIC S7 DP master. This FC handles the command protocol described below independently (see Section 3.2). You will find FC ASI_3422 in the programming example on the diskette supplied with the printed version of this manual.
DP/AS-i Link
ADR BF 29 24 19 14 9 4 28 23 18 13 8 3 27 22 17 12 7 2 31 26 21 16 11 6 1 30 25 20 15 10 5 0 DIA SF APF CER AUP CM 6GK71415 2AA0 X2 34 DP-AS-Interface Link 20
AS-i slaves
Status information
S Command response
PROFIBUS
Figure 3-1
66
AS-Interface
S Command job
AS-i slave 1
AS-i slave 2
AS-i slave n
Job Parameters
Set the parameters for the read_record and write_record jobs as described in Section 2.4.1. Sending the commands is controlled by the following parameters: S S Index: Specifies the data record number = 2 Length: The length of the data sent (with write_record) depends on the command; The length of the data received (with read_record) is indicated by the DP/AS-i Link 20E using the status nibble.
67
Completed without error and without response data or terminated with error
Table 3-1
Status nibble (1st byte of the digital input data) Bit 7 1 Bit 6 0 Bit 5 0 Bit 4 0 Startup ID 1:
Following a startup/restart of the AS-i master, the status nibble changes between the values 1000 B and 1110 B. It is possible to trigger a command with the user program 1 1 1 0 Startup ID 2: Following a startup/restart of the AS-i master, the status nibble changes between the values 1000 B and 1110 B. It is possible to trigger a command with the user program 1 0 1 0 0 1 0 0 Reserved for SIMATIC S7 application FC ASI_3422 It is possible to trigger a command with the user program Command processing active It is not possible to trigger a command with the user program
68
Table 3-1
Coding of the Status Nibble, continued Meaning Command processing is completed. With an asynchronous read job, a 2-byte return value can be fetched by the AS-i master. Two situations must be distinguished: The return value is 0: A command without response data was completed without error The return value is a value not equal to 0: The command was terminated with error.(See Table 3-3) A new command can be triggered by the user program
Command processing was completed without error. Using an asynchronous read job, 1 byte of response data can be fetched by the AS-i master. A new command can be triggered by the user program Command processing was completed without error. Using an asynchronous read job, 4 bytes of response data can be fetched by the AS-i master. A new command can be triggered by the user program Command processing was completed without error. Using an asynchronous read job, 14 bytes of response data can be fetched by the AS-i master. A new command can be triggered by the user program Command processing was completed without error. Using an asynchronous read job, 16 bytes of response data can be fetched by the AS-i master. A new command can be triggered by the user program Command processing was completed without error. Using an asynchronous read job, 32 bytes of response data can be fetched by the AS-i master. A new command can be triggered by the user program Command processing was completed without error. Using an asynchronous read job, 56 bytes of response data can be fetched by the AS-i master. A new command can be triggered by the user program Command processing was completed without error. Using an asynchronous read job, 221 bytes of response data can be fetched by the AS-i master. A new command can be triggered by the user program Job processing is completed. The response data or the return value of the previous job have already been read by the user. A new command can be triggered by the user program
69
Example:
Based on the following table, you can see how the display in the status nibble changes due to the device state and the command processing in the user program.
Table 3-2 Action 1. AS-i power supply switched on for the DP/AS-i Link 20E. 2. The user program transfers a command (for example write_parameter) with an asynchronous write job to the DP/AS-i Link 20E. 3. The AS-i master completes the command. The return value can be read by the user program. 4. The user program reads a 2-byte return value using an asynchronous read job. 5. ....further program execution ... 6. The user program transfers a command (for example, Get_LPS, Get_LAS, Get_LDS, Get_Flags) with an asynchronous write access to the DP/ASi Link 20E. 7. The AS-i master completes the command without error. The response data can be read by the user program 8. The user program reads 32 bytes of response data with an asynchronous read job. Reaction in the Status Nibble 1110B....1000B.....1110B.... 0010B (briefly, depending on the command) 0001B 0100B .... 0010B (briefly, depending on the command) 1011B 0100B
Return Value
Error free processing is encoded in the return value of the response buffer. There is an error when value in the status nibble is completed without error and without response data or terminated with error (Coding: 0001H).
Table 3-3 Return Value in the Response Buffer Meaning Job completed without error The AS-i slave address is incorrect The AS-i slave is not activated (not in LAS). Error on AS-Interface. Command not permitted in the current status of the AS-i master. An AS-i slave with address 0 exists. The AS-i slave has illegal configuration data (I/O or ID codes). The addressed AS-i slave was not found on the AS-Interface. An AS-i slave with address 0 exists.
STATUS 0000H
8381H 8382H 8383H 8384H 8385H 8386H
83A1H 83A2H
70
Table 3-3
Return Value in the Response Buffer, continued Meaning An AS-i slave with the new address already exists on the AS-Interface. The AS-i slave address cannot be deleted. The AS-i slave address cannot be set. The AS-i slave address cannot be stored permanently. Error reading the extended ID1 code. The target address is not plausible (for example a B slave address was used for a standard slave). A length error has occurred transferring a string according to profile 7.4. A protocol error has occurred transferring a string according to profile 7.4. The job number or the job parameter is unknown. The AS-i master has detected an EEPROM error.
STATUS 83A3H 83A4H 83A5H 83A6H 83A7H 83A8H 83B1H 83B2H 83F8H 83F9H
Note Errors that occur during processing of the acyclic services and that are indicated by call parameters such as Return Value can be found in the documentation of the relevant programming interface.
71
3.2
Purpose
In SIMATIC S7, a convenient command interface is available with FC ASI_3422. By calling FC ASI_3422, you can handle both the transfer of the command and the acceptance of the response data. After it has been called, FC ASI_3422 instigates and handles the write_record and read_record calls independently.
Call Interface
ASI_3422
BOOL BOOL WORD ANY ANY DWORD ACT STARTUP LADDR SEND RECV STATUS DWORD DONE ERROR BOOL BOOL
Formal Parameters Para Type I Data Type BOOL Memory Area I,Q,M,D,L,constant Remarks As long as ACT = 1, command processing is started provided no other call is being processed. A CPU startup is indicated to the FC by STARTUP = 1. After the function is run through the first time, STARTUP must be reset by the user. Start address of the DP/AS-i Link 20E in the S7 address area. The module start address is specified during STEP 7 configuration.
STARTUP
BOOL
I,Q,M,D,L,constant
LADDR
WORD
I,Q,M,D,L,constant
SEND
ANY
I,Q,M,D,L
Send buffer The parameter references a memory area in which the command must be specified by the user. for example: P#DB20.DBX 20.0 byte 10
72
Formal Parameters, continued Para Type I Data Type ANY Memory Area I,Q,M,D,L Receive buffer This buffer is only relevant for commands that supply response data. The parameter references a memory area in which the command response is stored. The length information in the ANY pointer specified here is irrelevant. The FC itself obtains the length of the response data. for example: P#DB30.DBX 20.0 byte 1 Remarks
Q Q I/Q
DONE = 1 signals job completed without error. ERROR = 1 signals job terminated with error. 1st word: Job status / error code (see Table 3-5); For job terminated with error, an error code is generated that describes the error in greater detail. 2nd word: Required by the FC for internal purposes and must not be modified. Note: For FC calls to different DP/AS-i Link 20E modules, different double words must be used for the STATUS parameter.
73
Points to Note
S If you use the FC interface FC ASI_3422 for command processing, you must not send other commands via the read_record and write_record with data record number 2 at the same time. You must use version 2.0 or higher of the FC ASI_3422 FC ASI_3422 is not reentrant! FC calls must not be programmed in priority classes that can interrupt each other (for example by a call in OB1 and in OB35). In SIMATIC S7, the number of simultaneously active read_record and write_record jobs is restricted. The maximum number of jobs depends on the S7 CPU. If more jobs are triggered, these are terminated with the error 80C3h (temporary lack of resources). The rejected job must then be repeated.
S S
Signal Sequence of the Formal Parameters ACT, DONE, ERROR and STATUS
A command call is started by ACT = 1. During the processing of the job, the first word of STATUS has the value 8181H. This indicates that a job is being processed. On completion of the job, the user is informed of the result in the DONE or ERROR parameters. If no error occurred, DONE is set. In jobs involving response data from the DP/AS-i Link 20E, these are available in the receive buffer specified for RECV. In this case, 0000H is entered in the first word of STATUS. If an error occurred, ERROR is set. In this case, no receive data are available from the DP/AS-i Link 20E for jobs with response data. To identify the error in greater detail, an error code is entered in the first word of STATUS. The DONE, ERROR and STATUS parameters remain unchanged until the next job is processed. ACT
DONE
ERROR
STATUS
Figure 3-3
8181h
0000h
8181h
0000h
8181h
8181h 8381h
74
Error Coding ERROR 0 1 1 1 STATUS 0000H 8090H 8092H 8093H Meaning Job completed without error Address in LADDR invalid A type other than BYTE is specified in the ANY reference. This SFC is not permitted for the module selected with LADDR and IOID. (S7-300 modules are permitted for S7-300, S7-400 modules for S7-400, S7-DP modules for S7-300 and S7-400.) Negative acknowledgment when reading from AS-i master. Negative acknowledgment when writing to AS-i master DP protocol error at Layer 2 DP protocol error involving user interface/user Communication problems on K bus AS-i master does not recognize the data record Specified data record length incorrect The configured slot is not in use. Actual module type does not match the expected module type in SDB1 Data record cannot be read The specified data record is currently being processed There is a job pileup Resource (memory) in use Communication error Distributed I/Os not available Data record transfer aborted due to priority class abort (warm restart or background) of the distributed I/Os. Job active (no error) ID following warm restart (STARTUP=TRUE) Data type of the RECV formal parameter illegal The AS-i slave address is incorrect The AS-i slave is not activated (not in LAS). Error on the AS-Interface Command not permitted in the current status of the AS-i master. An AS-i slave with address 0 exists. The AS-i slave has illegal configuration data (I/O or ID codes). The addressed AS-i slave was not found on the AS-Interface. An AS-i slave with address 0 exists.
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1
80A0H 80A1H 80A2H 80A3H 80A4H 80B0H 80B1H 80B2H 80B3H 80C0H 80C1H 80C2H 80C3H 80C4H 80C5H 80C6H 8181H 8182H 8184H 8381H 8382H 8383H 8384H 8385H 8386H
0 0
1 1
83A1H 83A2H
75
Error Coding, continued ERROR 1 1 1 1 1 1 1 1 1 1 1 STATUS 83A3H 83A4H 83A5H 83A6H 83A7H 83A8H 83B1H 83B2H 83F8H 83F9H 8F22H 8F23H Meaning An AS-i slave with the new address already exists on the AS-Interface. The AS-i slave address cannot be deleted. The AS-i slave address cannot be set. The AS-i slave address cannot be stored permanently. Error reading the extended ID1 code. The target address is not plausible (for example a B slave address was used for a standard slave). A length error has occurred transferring a string according to profile 7.4. A protocol error has occurred transferring a string according to profile 7.4. The job number or the job parameter is unknown. The AS-i master has detected an EEPROM error. Area length area reading a parameter Area length error writing a parameter This error code indicates that a parameter is entirely or partly outside the address area or that the length of a bit array of an ANY parameter cannot be divided by 8.
8F24H 8F25H
Area error reading a parameter Area error writing a parameter This error codes indicates that a parameter is located in an area that is illegal for a system function.
8F28H 8F29H
Alignment error reading a parameter Alignment error writing a parameter This error code indicates that the reference to a parameter is a bit address other than 0.
8F30H 8F31H
The parameter is in the write-protected global DB The parameter is in the write-protected instance DB This error code indicates that a parameter is located in a write-protected data block.
0 0 0
1 1 1
The DB number in the parameter is too high The parameter contains the number of a DB that is not loaded An access error has occurred while the system attempted to read out a parameter from the peripheral area of the inputs. An access error occurred while the system was attempting to write a parameter to the peripheral area of the outputs
8F43H
76
Error Coding, continued ERROR 1 1 1 STATUS 8F44H 8F45H 8F7FH Meaning This parameter code indicates that read access to a parameter was denied This error code indicates that write access to a parameter was denied Internal error
77
3.3
Overview
This section describes the command calls that can be sent by the DP master to the DP/AS-i Link 20E. With these command calls, the DP/AS-i Link 20E provides the complete functionality of the master profile M1e of the AS-i master specification. In addition to this, the DP/AS-i Link 20E can be configured completely by the DP master using command calls. The use of the jobs is described in the individual descriptions of the jobs themselves, in the PICS appendix and in the detailed explanations in /1/ and /2/. The available commands are listed in the table below:
Table 3-6 AS-i Slave Commands Name Set_Permanent_Parameter > described in Section 3.3.1 Get_Permanent_Parameter > described in Section 3.3.2 Write_Parameter > described in Section 3.3.3 Read_Parameter > described in Section 3.3.4 Store_Actual_Parameters > described in section 3.3.5 Set_Extended_Permanent_Configurati on > described in section 3.3.6 Get_Extended_Permanent_Configurati on > described in section 3.3.7 Store_Actual_Configuration > described in Section 3.3.8 Get_Extended_Actual_Configuration > described in section 3.3.9 Set_LPS > described in section 3.3.10 Set_Offline_Mode > described in section 3.3.11 Select_Autoprogramming > described in section 3.3.12 Set_operation_mode > described in section 3.3.13 Slave address LPS Mode Mode Mode actual configuration Slave address Parameter Slave address, parameter Slave address Slave address, parameter Slave address Parameter Parameter echo (optional) Parameter value Return Coding 00H 01H 02H 03H 04H 25H
specified configuration
26H
78
Table 3-6
AS-i Slave Commands, continued Name Parameter Address 1, Address2 Slave address None Error record of the AS-i slave LDS, LAS, LPS, flags Return Coding 0DH 0FH 30H
Change_AS-i_Slave_Address > described in Section 3.3.14 Get_AS-i_Slave_Status > described in Section 3.3.15 Get_LPS, Get_LAS, Get_LDS, Get_Flags > described in section 3.3.16 Get_Extended_Total_Configuration > described in section 3.3.17 Store_Extended_Total_Configuration > described in section 3.3.18 Write_Extended_Parameter_List > described in Section 3.3.19 Read_Extended_Parameter_Echo_List > described in section 3.3.20 Read_Version_ID > described in section 3.3.21 Read_AS-i_Slave_ID > described in section 3.3.22 Read_AS-i_Slave_Extended_ID1 > described in section 3.3.23 Write_AS-i_Slave_Extended_ID1 > described in section 3.3.24 Read_AS-i_Slave_Extended_ID2 > described in section 3.3.25 Read_AS-i_Slave_I/O > described in section 3.3.26 Get_LPF > described in section 3.3.27 Write_AS-i_Slave_Parameter_String > described in section 3.3.28 Read_AS-i_Slave_Parameter_String > described in section 3.3.29 Read_AS-i_Slave_ID_String > described in section 3.3.30 Read_AS-i_Slave_Diagnostic_String > described in section 3.3.31
Actual configuration, current parameters, LAS, flags Total configuration Parameter list Parameter echo list Versions*String Slave address Slave address Extended ID1 code Slave address Slave address Extended ID2 code I/O configuration ID*Code Extended ID1 code
39H
3AH 3CH 33H 14H 17H 37H 3FH 38H 18H 3EH LPF
Slave address, parameter string Slave address Slave address Slave address Parameter string ID string Diagnostic string
79
80
Bit 7
Bit 6
Bit 0
Where the S(elect) bit for selecting the slave type is specified as follows: S S bit = 0 Standard AS-i slave or AS-i slave with extended addressing mode in address area A S bit = 1 AS-i slave with extended addressing mode in address area B
81
3.3.1
Set_Permanent_Parameter
Purpose
With this call, a parameter value for the specified AS-i slave is configured on the DP/AS-i Link 20E. The value is stored permanently in the EEPROM of the DP/AS-i Link 20E. The configured parameter is not transferred immediately by the DP/AS-i Link 20E to the AS-i slave. The configured parameter value is only transferred when the AS-i slave is activated after turning on the power supply on the DP/AS-i Link 20E. This call is not permitted for AS-i slaves that comply with the AS-i slave standard profile 7.4. For these AS-i slaves, the AS-i master handles the AS-i slave parameter assignment itself. In this case, the configured parameters are always set to FH.
Note If you use CPUs from the SIMATIC S7 system as the PROFIBUS DP master, then dependent on the configuration in STEP 7, these may send a complete AS-i slave configuration to the DP/AS-i Link 20E during the DP startup. Use of the call described here is then generally unnecessary.
82
3.3.2
Get_Permanent_Parameter
Purpose
With this call, a slave-specific parameter value stored on the EEPROM of the DP/AS-i Link 20E is read.
83
3.3.3
Write_Parameter
84
3.3.4
Read_Parameter
Purpose
This call returns the current parameter value (actual parameter) of an AS-i slave sent by the DP/AS-i Link 20E. This value must not be confused with the parameter echo that is supplied by the AS-i slave as a response to the write_parameter job.
85
3.3.5
Store_Actual_Parameters
Purpose
With this call, the configured parameters stored on the EEPROM are overwritten with the current, permanently stored (actual) parameters; in other words, the parameters of all the AS-i slaves are configured. For AS-i slaves that comply with the AS-i slave standard profile 7.4, the AS-i master manages the AS-i slave parameter assignment itself. The configured parameters for these AS-i slaves always have the value FH.
86
3.3.6
Set_Extended_Permanent_Configuration
Purpose
This call sets the following configuration data for the addressed AS-i slave. S S S S I/O configuration ID code Extended ID1 code Extended ID2 code
The configuration data are stored permanently on the EEPROM of the DP/AS-i Link 20E and are used as the expected configuration by the AS-i master in the protected mode. The configuration data are specified by the manufacturer of the AS-i slave. The meaning of the configuration data is described in /2/. If the addressed AS-i slave does not support an extended ID code 1/2, the value FH must be specified. When this command is executed, the AS-i master changes to the offline phase and then changes back to the normal mode (warm restart on the AS-i master). This call is not made in the protected mode. Note If you use CPUs from the SIMATIC S7 system as the PROFIBUS DP master, then dependent on the configuration in STEP 7, these may send a complete AS-i slave configuration to the DP/AS-i Link 20E during the DP startup. Use of the call described here is then generally unnecessary.
87
3.3.7
Get_Extended_Permanent_Configuration
Purpose
This call reads the following configuration data (configured data) of an addressed AS-i slave stored on the EEPROM of the AS-i master. S S S S I/O configuration ID code Extended ID1 code Extended ID2 code
The configuration data are specified by the manufacturer of the AS-i slave. The meaning of the configuration data is described in /2/.
88
3.3.8
Store_Actual_Configuration
Note If you use CPUs from the SIMATIC S7 system as the PROFIBUS DP master, then dependent on the configuration in STEP 7, these may send a complete AS-i slave configuration to the DP/AS-i Link 20E during the DP startup. Use of the call described here is then generally unnecessary.
89
3.3.9
Get_Extended_Actual_Configuration
The configuration data are specified by the manufacturer of the AS-i slave. The meaning of the configuration data is described in /2/.
90
3.3.10
Set_LPS
Note If you use CPUs from the SIMATIC S7 system as the PROFIBUS DP master, then dependent on the configuration in STEP 7, these may send a complete AS-i slave configuration to the DP/AS-i Link 20E during the DP startup. Use of the call described here is then generally unnecessary.
Slave 4 Slave 12 Slave 20 Slave 28 Slave 4B Slave 12B Slave 20B Slave 28B
Slave 5 Slave 13 Slave 21 Slave 29 Slave 5B Slave 13B Slave 21B Slave 29B
Slave 6 Slave 14 Slave 22 Slave 30 Slave 6B Slave 14B Slave 22B Slave 30B
Slave 7 Slave 15 Slave 23 Slave 31 Slave 7B Slave 15B Slave 23B Slave 31B
The bits in the LPS data have the following meaning: 0: AS-I slave not configured 1: AS-I slave configured.
91
3.3.11
Purpose
Set_Offline_Mode
This call switches between the online and offline mode. The online mode is the normal operating situation for the AS-i master. Here, the following jobs are processed cyclically: S During the data exchange phase, the fields of the output data are transferred to the slave outputs for all AS-i slaves in the LAS. The addressed AS-i slaves transfer the values of the slave inputs to the master when the transfer was free of errors. This is followed by the inclusion phase in which there is a search for the existing AS-i slaves and newly added AS-i slaves are entered in the LDS or LAS. In the management phase, jobs from the user such as writing parameters are executed.
S S
In the offline mode, the DP/AS-i Link 20E only processes jobs from the user. (Jobs that involve the immediate addressing of an AS-i slave are rejected with an error.) There is no cyclic data exchange with the AS-i slaves. The OFFLINE=TRUE bit is not permanently stored; in other words, following a cold/warm restart, the DP/AS-i Link 20E is once again in the online mode.
92
3.3.12
Select Autoprogramming
Purpose
This call can enable or disable the automatic address programming function (see also section 5.1). The AUTO_ADDR_ENABLE bit is stored permanently; in other words, it is retained after a warm/hot restart on the AS-i master.
93
3.3.13
Set_Operation_Mode
94
3.3.14
Change_AS-i_Slave_Address
95
3.3.15
Get_AS-i_Slave_Status
Purpose
With this call, the status register of the addressed AS-i slave can be read out. Depending on the type of AS-i slave, the flags of the status register have the following meaning:
Status Bit S0
AS-i slave complying with standard 2.0 Address volatile This flag is set when
S the internal slave routine for permanent storage of the AS-i slave address is
active. This can take up to 15 ms and must not be interrupted by a further addressing call.
S the AS-i internal slave address comparison recognizes that the stored
address is not the same as the entry in the address register. S1 Parity error detected This flag is set when the AS-i slave has recognized a parity error in a received frame since the last read and delete status job. S2 End bit error detected This flag is set when the AS-i slave has recognized an end bit error in a frame since the last read and delete status job. S3 Read error in non-volatile memory This bit is set when the AS-i slave has detected a read error when reading the non-volatile memory. I/O error detected An AS-i slave can set this flag when it has detected and error (for example wire break) in the attached I/Os. reserved
96
3.3.16
Purpose
With this call, the following entries are read out of the DP/AS-i Link 20E: S S S S The list of active AS-i slaves (LAS) The list of detected AS-i slaves (LDS) The list of permanent AS-i slaves (LPS) the flags according to the AS-i slave specification
LAS slave LAS slave 1 2 LAS slave LAS slave 9 10 LAS slave LAS slave 17 18 LAS slave LAS slave 25 26 LAS slave LAS slave 1B 2B LAS slave LAS slave 9B 10B LAS slave LAS slave 17B 18B LAS slave LAS slave 25B 26B
LAS slave LAS slave 5 6 LAS slave LAS slave 13 14 LAS slave LAS slave 21 22 LAS slave LAS slave 29 30 LAS slave LAS slave 5B 6B LAS slave LAS slave 13B 14B LAS slave LAS slave 21B 22B LAS slave LAS slave 29B 30B
LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave 0 1 2 3 4 5 6 7 LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave 8 9 10 11 12 13 14 15 LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave 16 17 18 19 20 21 22 23
97
LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave 24 25 26 27 28 29 30 31 LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave 0B 1B 2B 3B 4B 5B 6B 7B LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave 8B 9B 10B 11B 12B 13B 14B 15B LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave 16B 17B 18B 19B 20B 21B 22B 23B LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave LDS slave 24B 25B 26B 27B 28B 29B 30B 31B LPS slave 0 LPS slave 8 LPS slave 16 LPS slave 24 LPS slave 0B LPS slave 8B LPS slave 16B LPS slave 24B LPS slave LPS slave 1 2 LPS slave LPS slave 9 10 LPS slave LPS slave 17 18 LPS slave LPS slave 25 26 LPS slave LPS slave 1B 2B LPS slave LPS slave 9B 10B LPS slave LPS slave 17B 18B LPS slave LPS slave 25B 26B LPS slave 3 LPS slave 11 LPS slave 19 LPS slave 27 LPS slave 3B LPS slave 11B LPS slave 19B LPS slave 27B LPS slave 4 LPS slave 12 LPS slave 20 LPS slave 28 LPS slave 4B LPS slave 12B LPS slave 20B LPS slave 28B LPS slave LPS slave 5 6 LPS slave LPS slave 13 14 LPS slave LPS slave 21 22 LPS slave LPS slave 29 30 LPS slave LPS slave 5B 6B LPS slave LPS slave 13B 14B LPS slave LPS slave 21B 22B LPS slave LPS slave 29B 30B LPS slave 7 LPS slave 15 LPS slave 23 LPS slave 31 LPS slave 7B LPS slave 15B LPS slave 23B LPS slave 31B
98
Flag 1
Bit Number 0 1 2 3 4 5 6 7 Meaning OFFLINE_READY APF NORMAL_MODE CONFIG_MODE AUTO_ADDR_AVAIL AUTO_ADDR_ASSI_GN LDS_0 CONFIG_OK
Flag 2
Bit Number 0 1 2 3 4 5 6 7 Meaning OFFLINE INTERNAL EEPROM_OK AUTO_ADDR_ENABLE PERIPHERY_FAULT reserved reserved MPO startup
99
3.3.17
Get_Extended_Total_Configuration
Purpose
This command reads the following data from the DP/AS-i Link 20E: S S S S The list of active AS-i slaves (LAS) This indicates which of the connected AS-i slaves are activated. The current configuration data of the connected AS-i slaves (I/O configuration and ID code). The current parameters of the AS-i slaves (actual parameters) The current flags.
This command can, for example, be used to find out the configuration of the stations connected to the AS-i cable after installation. The configuration data read in can, if necessary, be modified and saved on the DP/AS-i Link 20E as the expected configuration using the command Configure Total System (see Section 3.3.18).
Bit 2
Bit 1
Bit 0
LAS slave LAS slave LAS slave LAS slave LAS slave LAS slave LAS slave 1 2 3 4 5 6 7 LAS slave LAS slave LAS slave LAS slave LAS slave LAS slave LAS slave 9 10 11 12 13 14 15 LAS slave LAS slave LAS slave LAS slave LAS slave LAS slave LAS slave 17 18 19 20 21 22 23 LAS slave LAS slave LAS slave LAS slave LAS slave LAS slave LAS slave 25 26 27 28 29 30 31 LAS slave LAS slave LAS slave LAS slave LAS slave LAS slave LAS slave 1B 2B 3B 4B 5B 6B 7B LAS slave LAS slave LAS slave LAS slave LAS slave LAS slave LAS slave 9B 10B 11B 12B 13B 14B 15B
100
Bit 2
Bit 1
Bit 0
LAS slave LAS slave LAS slave LAS slave LAS slave LAS slave LAS slave 17B 18B 19B 20B 21B 22B 23B LAS slave LAS slave LAS slave LAS slave 28B 29B 30B 31B I/O configuration slave 0 Ext ID2 slave 0 I/O configuration slave 1 Ext ID2 slave 1 I/O configuration slave 2 Ext ID2 slave 2 I/O configuration slave 3 Ext ID2 slave 3 I/O configuration slave 4 Ext ID2 slave 4 I/O configuration slave 5 Ext ID2 slave 5 I/O configuration slave 6 Ext ID2 slave 6 I/O configuration slave 7 Ext ID2 slave 7 I/O configuration slave 8 Ext ID2 slave 8 I/O configuration slave 9 Ext ID2 slave 9 I/O configuration slave 10 Ext ID2 slave 10 I/O configuration slave 11 Ext ID2 slave 11 I/O configuration slave 12 Ext ID2 slave 12 I/O configuration slave 13 Ext ID2 slave 13 I/O configuration slave 14 Ext ID2 slave 14 I/O configuration slave 15 Ext ID2 slave 15 I/O configuration slave 16 Ext ID2 slave 16 I/O configuration slave 17 Ext ID2 slave 17 I/O configuration slave 18 Ext ID2 slave 18 I/O configuration slave 19 Ext ID2 slave 19 I/O configuration slave 20 Ext ID2 slave 20 I/O configuration slave 21 Ext ID2 slave 21
LAS slave LAS slave LAS slave LAS slave 24B 25B 26B 27B ID_CODE slave 0 Ext ID1 slave 0 ID_CODE slave 1 Ext ID1 slave 1 ID_CODE slave 2 Ext ID1 slave 2 ID_CODE slave 3 Ext ID1 slave 3 ID_CODE slave 4 Ext ID1 slave 4 ID_CODE slave 5 Ext ID1 slave 5 ID_CODE slave 6 Ext ID1 slave 6 ID_CODE slave 7 Ext ID1 slave 7 ID_CODE slave 8 Ext ID1 slave 8 ID_CODE slave 9 Ext ID1 slave 9 ID_CODE slave 10 Ext ID1 slave 10 ID_CODE slave 11 Ext ID1 slave 11 ID_CODE slave 12 Ext ID1 slave 12 ID_CODE slave 13 Ext ID1 slave 13 ID_CODE slave 14 Ext ID1 slave 14 ID_CODE slave 15 Ext ID1 slave 15 ID_CODE slave 16 Ext ID1 slave 16 ID_CODE slave 17 Ext ID1 slave 17 ID_CODE slave 18 Ext ID1 slave 18 ID_CODE slave 19 Ext ID1 slave 19 ID_CODE slave 20 Ext ID1 slave 20 ID_CODE slave 21 Ext ID1 slave 21
101
ID_CODE slave 22 Ext ID1 slave 22 ID_CODE slave 23 Ext ID1 slave 23 ID_CODE slave 24 Ext ID1 slave 24 ID_CODE slave 25 Ext ID1 slave 25 ID_CODE slave 26 Ext ID1 slave 26 ID_CODE slave 27 Ext ID1 slave 27 ID_CODE slave 28 Ext ID1 slave 28 ID_CODE slave 29 Ext ID1 slave 29 ID_CODE slave 30 Ext ID1 slave 30 ID_CODE slave 31 Ext ID1 slave 31 reserved reserved ID_CODE slave 1B Ext ID1 slave 1B ID_CODE slave 2B Ext ID1 slave 2B ID_CODE slave 3B Ext ID1 slave 3B ID_CODE slave 4B Ext ID1 slave 4B ID_CODE slave 5B Ext ID1 slave 5B ID_CODE slave 6B Ext ID1 slave 6B ID_CODE slave 7B Ext ID1 slave 7B ID_CODE slave 8B Ext ID1 slave 8B ID_CODE slave 9B Ext ID1 slave 9B ID_CODE slave 10B Ext ID1 slave 10B ID_CODE slave 11B Ext ID1 slave 11B ID_CODE slave 12B Ext ID1 slave 12B ID_CODE slave 13B Ext ID1 slave 13B ID_CODE slave 14B Ext ID1 slave 14B
I/O configuration slave 22 Ext ID2 slave 22 I/O configuration slave 23 Ext ID2 slave 23 I/O configuration slave 24 Ext ID2 slave 24 I/O configuration slave 25 Ext ID2 slave 25 I/O configuration slave 26 Ext ID2 slave 26 I/O configuration slave 27 Ext ID2 slave 27 I/O configuration slave 28 Ext ID2 slave 28 I/O configuration slave 29 Ext ID2 slave 29 I/O configuration slave 30 Ext ID2 slave 30 I/O configuration slave 31 Ext ID2 slave 31 reserved reserved I/O configuration slave 1B Ext ID2 slave 1B I/O configuration slave 2B Ext ID2 slave 2B I/O configuration slave 3B Ext ID2 slave 3B I/O configuration slave 4B Ext ID2 slave 4B I/O configuration slave 5B Ext ID2 slave 5B I/O configuration slave 6B Ext ID2 slave 6B I/O configuration slave 7B Ext ID2 slave 7B I/O configuration slave 8B Ext ID2 slave 8B I/O configuration slave 9B Ext ID2 slave 9B I/O configuration slave 10B Ext ID2 slave 10B I/O configuration slave 11B Ext ID2 slave 11B I/O configuration slave 12B Ext ID2 slave 12B I/O configuration slave 13B Ext ID2 slave 13B I/O configuration slave 14B Ext ID2 slave 14B
102
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
ID_CODE slave 15B Ext ID1 slave 15B ID_CODE slave 16B Ext ID1 slave 16B ID_CODE slave 17B Ext ID1 slave 17B ID_CODE slave 18B Ext ID1 slave 18B ID_CODE slave 19B Ext ID1 slave 19B ID_CODE slave 20B Ext ID1 slave 20B ID_CODE slave 21B Ext ID1 slave 21B ID_CODE slave 22B Ext ID1 slave 22B ID_CODE slave 23B Ext ID1 slave 23B ID_CODE slave 24B Ext ID1 slave 24B ID_CODE slave 25B Ext ID1 slave 25B ID_CODE slave 26B Ext ID1 slave 26B ID_CODE slave 27B Ext ID1 slave 27B ID_CODE slave 28B Ext ID1 slave 28B ID_CODE slave 29B Ext ID1 slave 29B ID_CODE slave 30B Ext ID1 slave 30B ID_CODE slave 31B Ext ID1 slave 31B reserved Parameters slave 2 Parameters slave 4 Parameters slave 6 Parameters slave 8 Parameters slave 10 Parameters slave 12 Parameters slave 14 Parameters slave 16 Parameters slave 18 Parameters slave 20 Parameters slave 22 Parameters slave 24 Parameters slave 26 Parameters slave 28 Parameters slave 30
I/O configuration slave 15B Ext ID2 slave 15B I/O configuration slave 16B Ext ID2 slave 16B I/O configuration slave 17B Ext ID2 slave 17B I/O configuration slave 18B Ext ID2 slave 18B I/O configuration slave 19B Ext ID2 slave 19B I/O configuration slave 20B Ext ID2 slave 20B I/O configuration slave 21B Ext ID2 slave 21B I/O configuration slave 22B Ext ID2 slave 22B I/O configuration slave 23B Ext ID2 slave 23B I/O configuration slave 24B Ext ID2 slave 24B I/O configuration slave 25B Ext ID2 slave 25B I/O configuration slave 26B Ext ID2 slave 26B I/O configuration slave 27B Ext ID2 slave 27B I/O configuration slave 28B Ext ID2 slave 28B I/O configuration slave 29B Ext ID2 slave 29B I/O configuration slave 30B Ext ID2 slave 30B I/O configuration slave 31B Ext ID2 slave 31B Parameters slave 1 Parameters slave 3 Parameters slave 5 Parameters slave 7 Parameters slave 9 Parameters slave 11 Parameters slave 13 Parameters slave 15 Parameters slave 17 Parameters slave 19 Parameters slave 21 Parameters slave 23 Parameters slave 25 Parameters slave 27 Parameters slave 29 Parameters slave 31
103
154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 ... 218
reserved Parameters slave 2B Parameters slave 4B Parameters slave 6B Parameters slave 8B Parameters slave 10B Parameters slave 12B Parameters slave 14B Parameters slave 16B Parameters slave 18B Parameters slave 20B Parameters slave 22B Parameters slave 24B Parameters slave 26B Parameters slave 28B Parameters slave 30B
Parameters slave 1B Parameters slave 3B Parameters slave 5B Parameters slave 7B Parameters slave 9B Parameters slave 11B Parameters slave 13B Parameters slave 15B Parameters slave 17B Parameters slave 19B Parameters slave 21B Parameters slave 23B Parameters slave 25B Parameters slave 27B Parameters slave 29B Parameters slave 31B Flag 1 Flag 2 reserved ..... reserved
Flag 1
Bit Number 0 1 2 3 4 5 6 7 Meaning OFFLINE_READY APF NORMAL_MODE CONFIG_MODE AUTO_ADDR_AVAIL AUTO_ADDR_ASSI_GN LDS_0 CONFIG_OK
Flag 2
Bit Number 0 1 2 3 4 5 6 7 Meaning OFFLINE INTERNAL EEPROM_OK AUTO_ADDR_ENABLE PERIPHERY_FAULT reserved reserved MPO startup
The meaning of the flags is the same as for the Get_LPS, Get_LAS, Get_LDS, Get_Flags job.
104
3.3.18
Store_Extended_Total_Configuration
Purpose
With this call, the required total configuration of the AS interface is transferred to the AS-i master and stored permanently in the EEPROM as the expected configuration. This configures the DP/AS-i Link 20E. The following data are transferred: S S S The list of configured AS-i slaves specifying the AS-i slaves that can be activated by the AS-i master in the protected mode. The list of configuration data specifying the ID codes and I/O configurations the AS-i slaves must have. The list of AS-i slave parameters configured on the AS-i master and stored in non-volatile memory. These parameters are transferred to the AS-i slaves when the AS-i master starts up. The flags that determine the operating status of the AS-i master following start up.
This call is not made in the protected mode. For AS-i slaves that comply with the standard profile 7.4, the AS-i master manages the parameter assignment itself. The parameter values for slaves complying with standard profile 7.4 specified in the call are ignored by the AS-i master. If you use CPUs from the SIMATIC S7 system as the PROFIBUS DP master, then dependent on the configuration in STEP 7, these may send a complete AS-i slave configuration to the DP/AS-i Link 20E during the DP startup. Use of the call described here is then generally unnecessary.
Bit 2
Bit 1
Bit 0
105
Byte Bit 7 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 LPS slave 8B LPS slave 16B LPS slave 24B Bit 6 Bit 5
Bit 2
Bit 1
Bit 0
LPS slave LPS slave LPS slave LPS slave LPS slave LPS slave LPS slave 9B 10B 11B 12B 13B 14B 15B LPS slave LPS slave LPS slave LPS slave LPS slave LPS slave LPS slave 17B 18B 19B 20B 21B 22B 23B LPS slave LPS slave LPS slave LPS slave 25B 26B 27B 28B ID_CODE slave 0 Ext ID1 slave 0 ID_CODE slave 1 Ext ID1 slave 1 ID_CODE slave 2 Ext ID1 slave 2 ID_CODE slave 3 Ext ID1 slave 3 ID_CODE slave 4 Ext ID1 slave 4 ID_CODE slave 5 Ext ID1 slave 5 ID_CODE slave 6 Ext ID1 slave 6 ID_CODE slave 7 Ext ID1 slave 7 ID_CODE slave 8 Ext ID1 slave 8 ID_CODE slave 9 Ext ID1 slave 9 ID_CODE slave 10 Ext ID1 slave 10 ID_CODE slave 11 Ext ID1 slave 11 ID_CODE slave 12 Ext ID1 slave 12 ID_CODE slave 13 Ext ID1 slave 13 ID_CODE slave 14 Ext ID1 slave 14 ID_CODE slave 15 Ext ID1 slave 15 ID_CODE slave 16 Ext ID1 slave 16 ID_CODE slave 17 Ext ID1 slave 17 ID_CODE slave 18 Ext ID1 slave 18 ID_CODE slave 19 Ext ID1 slave 19 ID_CODE slave 20 Ext ID1 slave 20 LPS slave LPS slave LPS slave 29B 30B 31B I/O configuration slave 0 Ext ID2 slave 0 I/O configuration slave 1 Ext ID2 slave 1 I/O configuration slave 2 Ext ID2 slave 2 I/O configuration slave 3 Ext ID2 slave 3 I/O configuration slave 4 Ext ID2 slave 4 I/O configuration slave 5 Ext ID2 slave 5 I/O configuration slave 6 Ext ID2 slave 6 I/O configuration slave 7 Ext ID2 slave 7 I/O configuration slave 8 Ext ID2 slave 8 I/O configuration slave 9 Ext ID2 slave 9 I/O configuration slave 10 Ext ID2 slave 10 I/O configuration slave 11 Ext ID2 slave 11 I/O configuration slave 12 Ext ID2 slave 12 I/O configuration slave 13 Ext ID2 slave 13 I/O configuration slave 14 Ext ID2 slave 14 I/O configuration slave 15 Ext ID2 slave 15 I/O configuration slave 16 Ext ID2 slave 16 I/O configuration slave 17 Ext ID2 slave 17 I/O configuration slave 18 Ext ID2 slave 18 I/O configuration slave 19 Ext ID2 slave 19 I/O configuration slave 20 Ext ID2 slave 20
DP/AS-Interface Link 20E Release 11/2002 C79000-G8976-C13804
106
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
ID_CODE slave 21 Ext ID1 slave 21 ID_CODE slave 22 Ext ID1 slave 22 ID_CODE slave 23 Ext ID1 slave 23 ID_CODE slave 24 Ext ID1 slave 24 ID_CODE slave 25 Ext ID1 slave 25 ID_CODE slave 26 Ext ID1 slave 26 ID_CODE slave 27 Ext ID1 slave 27 ID_CODE slave 28 Ext ID1 slave 28 ID_CODE slave 29 Ext ID1 slave 29 ID_CODE slave 30 Ext ID1 slave 30 ID_CODE slave 31 Ext ID1 slave 31 irrelevant irrelevant ID_CODE slave 1B Ext ID1 slave 1B ID_CODE slave 2B Ext ID1 slave 2B ID_CODE slave 3B Ext ID1 slave 3B ID_CODE slave 4B Ext ID1 slave 4B ID_CODE slave 5B Ext ID1 slave 5B ID_CODE slave 6B Ext ID1 slave 6B ID_CODE slave 7B Ext ID1 slave 7B ID_CODE slave 8B Ext ID1 slave 8B ID_CODE slave 9B Ext ID1 slave 9B ID_CODE slave 10B Ext ID1 slave 10B ID_CODE slave 11B Ext ID1 slave 11B ID_CODE slave 12B Ext ID1 slave 12B ID_CODE slave 13B Ext ID1 slave 13B
I/O configuration slave 21 Ext ID2 slave 21 I/O configuration slave 22 Ext ID2 slave 22 I/O configuration slave 23 Ext ID2 slave 23 I/O configuration slave 24 Ext ID2 slave 24 I/O configuration slave 25 Ext ID2 slave 25 I/O configuration slave 26 Ext ID2 slave 26 I/O configuration slave 27 Ext ID2 slave 27 I/O configuration slave 28 Ext ID2 slave 28 I/O configuration slave 29 Ext ID2 slave 29 I/O configuration slave 30 Ext ID2 slave 30 I/O configuration slave 31 Ext ID2 slave 31 irrelevant irrelevant I/O configuration slave 1B Ext ID2 slave 1B I/O configuration slave 2B Ext ID2 slave 2B I/O configuration slave 3B Ext ID2 slave 3B I/O configuration slave 4B Ext ID2 slave 4B I/O configuration slave 5B Ext ID2 slave 5B I/O configuration slave 6B Ext ID2 slave 6B I/O configuration slave 7B Ext ID2 slave 7B I/O configuration slave 8B Ext ID2 slave 8B I/O configuration slave 9B Ext ID2 slave 9B I/O configuration slave 10B Ext ID2 slave 10B I/O configuration slave 11B Ext ID2 slave 11B I/O configuration slave 12B Ext ID2 slave 12B I/O configuration slave 13B Ext ID2 slave 13B
107
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
ID_CODE slave 14B Ext ID1 slave 14B ID_CODE slave 15B Ext ID1 slave 15B ID_CODE slave 16B Ext ID1 slave 16B ID_CODE slave 17B Ext ID1 slave 17B ID_CODE slave 18B Ext ID1 slave 18B ID_CODE slave 19B Ext ID1 slave 19B ID_CODE slave 20B Ext ID1 slave 20B ID_CODE slave 21B Ext ID1 slave 21B ID_CODE slave 22B Ext ID1 slave 22B ID_CODE slave 23B Ext ID1 slave 23B ID_CODE slave 24B Ext ID1 slave 24B ID_CODE slave 25B Ext ID1 slave 25B ID_CODE slave 26B Ext ID1 slave 26B ID_CODE slave 27B Ext ID1 slave 27B ID_CODE slave 28B Ext ID1 slave 28B ID_CODE slave 29B Ext ID1 slave 29B ID_CODE slave 30B Ext ID1 slave 30B ID_CODE slave 31B Ext ID1 slave 31B reserved Parameters slave 2 Parameters slave 4 Parameters slave 6 Parameters slave 8 Parameters slave 10 Parameters slave 12 Parameters slave 14 Parameters slave 16 Parameters slave 18 Parameters slave 20 Parameters slave 22 Parameters slave 24 Parameters slave 26
I/O configuration slave 14B Ext ID2 slave 14B I/O configuration slave 15B Ext ID2 slave 15B I/O configuration slave 16B Ext ID2 slave 16B I/O configuration slave 17B Ext ID2 slave 17B I/O configuration slave 18B Ext ID2 slave 18B I/O configuration slave 19B Ext ID2 slave 19B I/O configuration slave 20B Ext ID2 slave 20B I/O configuration slave 21B Ext ID2 slave 21B I/O configuration slave 22B Ext ID2 slave 22B I/O configuration slave 23B Ext ID2 slave 23B I/O configuration slave 24B Ext ID2 slave 24B I/O configuration slave 25B Ext ID2 slave 25B I/O configuration slave 26B Ext ID2 slave 26B I/O configuration slave 27B Ext ID2 slave 27B I/O configuration slave 28B Ext ID2 slave 28B I/O configuration slave 29B Ext ID2 slave 29B I/O configuration slave 30B Ext ID2 slave 30B I/O configuration slave 31B Ext ID2 slave 31B Parameters slave 1 Parameters slave 3 Parameters slave 5 Parameters slave 7 Parameters slave 9 Parameters slave 11 Parameters slave 13 Parameters slave 15 Parameters slave 17 Parameters slave 19 Parameters slave 21 Parameters slave 23 Parameters slave 25 Parameters slave 27
108
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171
Parameters slave 28 Parameters slave 30 reserved Parameters slave 2B Parameters slave 4B Parameters slave 6B Parameters slave 8B Parameters slave 10B Parameters slave 12B Parameters slave 14B Parameters slave 16B Parameters slave 18B Parameters slave 20B Parameters slave 22B Parameters slave 24B Parameters slave 26B Parameters slave 28B Parameters slave 30B Flag 1 Flag 2
Parameters slave 29 Parameters slave 31 Parameters slave 1B Parameters slave 3B Parameters slave 5B Parameters slave 7B Parameters slave 9B Parameters slave 11B Parameters slave 13B Parameters slave 15B Parameters slave 17B Parameters slave 19B Parameters slave 21B Parameters slave 23B Parameters slave 25B Parameters slave 27B Parameters slave 29B Parameters slave 31B
Flag 1
Bit Number 0 1 2 3 4 5 6 7 Meaning OFFLINE_READY APF NORMAL_MODE CONFIG_MODE AUTO_ADDR_AVAIL AUTO_ADDR_ASSI_GN LDS_0 CONFIG_OK
Flag 2
Bit Number 0 1 2 3 4 5 6 7 Meaning OFFLINE INTERNAL EEPROM_OK AUTO_ADDR_ENABLE PERIPHERY_FAULT reserved reserved MPO startup
Flags whose values modify the AS-i master mode are shown in gray. The values of the other flags have no significance for the store total configuration command and cannot be modified on the AS-i master with this call..
CONFIG_MODE
The entry 0 means that the DP/AS-i Link 20E changes to the protected mode after executing the command. The entry 1 means that the configuration mode is retained. 0: On completion of the job, the AS-i master starts up in the protected mode. 1: On completion of the job, the AS-i master starts up in the configuration mode..
AUTO_ADDR_ENABLE
0 means that the automatic address programming is disabled, 1 means that the automatic address programming is enabled. 0: Automatic address programming disabled. 1: Address programming enabled
109
3.3.19
Write_Extended_Parameter_List
Purpose
With this command, the parameters for all slaves are transferred to the AS-i master. The AS-i master transfers only the parameters that have changed; in other words, that differ from the previously set (actual) parameters to the AS-i slaves.
Bit 2
Bit 1
Bit 0
irrelevant Parameters slave 2 Parameters slave 4 Parameters slave 6 Parameters slave 8 Parameters slave 10 Parameters slave 12 Parameters slave 14 Parameters slave 16 Parameters slave 18 Parameters slave 20 Parameters slave 22 Parameters slave 24 Parameters slave 26 Parameters slave 28 Parameters slave 30 irrelevant Parameters slave 2B Parameters slave 4B Parameters slave 6B Parameters slave 8B Parameters slave 10B Parameters slave 12B Parameters slave 14B Parameters slave 16B Parameters slave 18B Parameters slave 20B Parameters slave 22B Parameters slave 24B Parameters slave 26B Parameters slave 28B Parameters slave 30B
Parameters slave 1 Parameters slave 3 Parameters slave 5 Parameters slave 7 Parameters slave 9 Parameters slave 11 Parameters slave 13 Parameters slave 15 Parameters slave 17 Parameters slave 19 Parameters slave 21 Parameters slave 23 Parameters slave 25 Parameters slave 27 Parameters slave 29 Parameters slave 31 Parameters slave 1B Parameters slave 3B Parameters slave 5B Parameters slave 7B Parameters slave 9B Parameters slave 11B Parameters slave 13B Parameters slave 15B Parameters slave 17B Parameters slave 19B Parameters slave 21B Parameters slave 23B Parameters slave 25B Parameters slave 27B Parameters slave 29B Parameters slave 31B
110
3.3.20
Read_Extended_Parameter_Echo_List
Purpose
The read parameter echo list call outputs the echo values of all AS-i slaves. The echo values of an AS-i slave originate from the last parameter call sent to this AS-i slave. Structure of the Job Data in the Send Buffer
Byte 0 1 Meaning Command number: 33h 00h
111
3.3.21
Purpose
Read_Version_ID
This call reads out the version ID of the firmware of the DP/AS-i Link 20E.
The response of the DP/AS-i Link 20E contains the name and the firmware version number in the form shown below:
112
Byte 23 24 25 26 27 28 29 30 30
Meaning y
x.yy stands for the current version number of the firmware of DP/AS-i Link 20E.
113
3.3.22
Read_AS-i_Slave_ID
Purpose
With this call, the ID code of an AS-i slave can be read out directly over the AS-i cable. The call is intended for diagnostic purposes and is not required in the normal master mode.
114
3.3.23
Read_AS-i_Slave_Extended_ID1
Purpose
With this call, the extended ID1 code of an AS-i slave can be read out directly over the AS-i cable. The call is intended for diagnostic purposes and is not required in the normal master mode.
115
3.3.24
Write_AS-i_Slave_Extended_ID1
Meaning
With this call, the extended ID1 code of an AS-i slave with address 0 can be written directly over the AS-i cable. The call is intended for diagnostic purposes and is not required in the normal master mode. The AS-i master passes on the extended ID1 code to the AS-i slave without any plausibility check.
116
3.3.25
Read_AS-i_Slave_Extended_ID2
Purpose
With this call, the extended ID2 code of an AS-i slave can be read out directly over the AS-i cable. The call is intended for diagnostic purposes and is not required in the normal master mode.
117
3.3.26
Read_AS-i_Slave_I/O
Purpose
With this call, the I/O configuration of an AS-i slave can be read out directly over the AS-i cable. The call is intended for diagnostic purposes and is not required in the normal master mode.
118
3.3.27
Get_LPF
Purpose
With this call, the list of peripheral faults (LPF) signaled by the AS-i slaves is read out from the AS-i master. The LPF is updated cyclically by the AS-i master. Whether and when as AS-i slave signals faults of the attached peripherals (for example wire break) can be found in the description of the AS-i slave.
Slave 16B Slave 17B Slave 18B Slave 19B Slave 20B Slave 21B Slave 22B Slave 23B Slave 2B4 Slave 25B Slave 26B Slave 27B Slave 28B Slave 29B Slave 30B Slave 31B reserved reserved reserved
For the LPF data, the bit values have the following meaning: Bit=0: Slave signals no peripheral fault Bit=1: Slave signals peripheral fault.
119
3.3.28
Write_AS-i_Slave_Parameter_String
Purpose
With this call, a parameter string complying with AS-i slave profile 7.4 can be sent to the AS-i master that passes on the string to the AS-i slave address specified in the send buffer. With this call, a send buffer with a maximum of 223 bytes is transferred to the AS-i master. The actual number of parameter bytes to be sent to the AS-i slave is calculated by the AS-i master from byte 2 of the send buffer (number of parameter bytes). The remaining information in the string is not evaluated by the AS-i master and is passed on to the AS-i slave transparently. As long as the string transfer is active, there is no user/analog data exchange with the addressed AS-i slave.
Byte 0 1 2 3 4 ...
Meaning Command number: 40 H Slave address Number of parameter bytes String byte (1) String byte (2) ..... String byte (n-1)
...
120
3.3.29
Read_AS-i_Slave_Parameter_String
Purpose
With this call, a parameter string complying with AS-i slave profile 7.4 can be read from the AS-i slave with the AS-i slave address specified in the send buffer. The AS-i master supplies up to 221 bytes of response data. The number of parameter bytes actually sent by the AS-i slave is signaled by the AS-I master in byte 0 of the receive buffer (number of parameter bytes). If the AS-i slave sends a string longer than 220 bytes, the AS-i master aborts the string transfer and terminates the job with an error. The received data are then not made available to the user program. As long as the string transfer is active, there is no user/analog data exchange with the addressed AS-i slave.
121
3.3.30
Read_AS-i_Slave_ID_String
Purpose
With this call, an identification string complying with the AS-i slave profile 7.4 can be read from the AS-i slave with the AS-i slave address specified in the send buffer. The AS-i master supplies up to 221 bytes of response data. The number of ID bytes actually sent by the AS-i slave is signaled by the ASi master in byte 0 of the receive buffer (number of ID bytes). If the AS-i slave sends a string longer than 220 bytes, the AS-i master aborts the string transfer and terminates the job with an error. The received data are then not made available to the user program. As long as the string transfer is active, there is no user/analog data exchange with the addressed AS-i slave.
Note As an exception, with this call, the bytes contained in the bits Follows and Valid are also transferred (see ASi slave profile 7.4).
122
3.3.31
Read_AS-i_Slave_Diagnostic_String
Purpose
With this call, a diagnostic string complying with AS-i slave profile 7.4 can be read from the AS-i slave with the AS-i slave address specified in the send buffer. The AS-i master supplies up to 221 bytes of response data. The number of diagnostic bytes actually sent by the AS-i slave is signaled by the ASi master in byte 0 of the receive buffer (number of diagnostic bytes). If the AS-i slave sends a string longer than 220 bytes, the AS-i master aborts the string transfer and terminates the job with an error. The received data are then not made available to the user program. As long as the string transfer is active, there is no user/analog data exchange with the addressed AS-i slave.
123
124
Slave Diagnostics
With slave diagnostics, errors on PROFIBUS DP (for example parameter assignment errors) and errors on the AS-Interface are signaled to the DP master. In the protected mode, the DP/AS-Interface Link 20E (DP/AS-i Link 20E) signalsdiagnostics whenever the configuration on the AS-Interface is changed. Changes to the configuration include: when the voltage on the AS-Interface is too low (AS-i Power Fail) and when configuration errors are detected (missing, incorrect or existing but unconfigured AS-i slaves). If the error is eliminated again on the AS-Interface, this is indicated byleaving diagnostic state (bit 3 in the station status 1 set to0). The exact cause of the problem is entered in the device-related diagnostic information see Section 4.5. In the configuration mode, errors on the AS-Interface are not indicated to the DP master.
125
Slave Diagnostics
4.1
Overview
Notice Remember that the DP/AS-i Link 20E only signals errors on the AS-Interface when the DP/AS-i Link 20E is operating in the protected mode and when the diagnostic interrupt is enabled in the DP configuration. In SIMATIC S7, the default is diagnostic interrupt deactivated.
Notice If the AS-i voltage drops below 14 V, then no DP data exchange is possible due to the lack of power supply. This means that no diagnostic message can be created to signal that the AS-i power supply is too low. The DP master recognizes that the DP/AS-i Link 20E module has failed and indicates this problem to its user program.
Access Mechanism
Read the manual of your DP master to find out the mechanisms you can use on the DP master to access diagnostic information. The following sections explain the content of the slave diagnostic information.
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Byte 8 Byte 9 Byte 10 Byte 11 Byte 12 Byte 13
Station status 1 to 3
126
Slave Diagnostics
Byte 14 Byte 15 Byte 16 Byte 17 Byte 18 Byte 19 Byte 20 Byte 21 Byte 22 Byte 23 Byte 24 Byte 25 Byte 26 Byte 27
Error in AS-i slave 0 to 7 Error in AS-i slave 8 to 15 Error in AS-i slave 16 to 23 Error in AS-i slave 24 to 31 Error in AS-i slave 1B..7B Error in AS-i slave 8B..15B Error in AS-i slave 16B..23B Error in AS-i slave 24B..31B
4.2
Station Status 1 to 3
Purpose
The station status provides an overview of the status of a DP slave. The following applies to the individual error bits in the station status: S S 0: No error 1: error
Station status 1
Byte 0 Bit 0 Value/meaning 1: The DP/AS-i Link 20E module cannot be addressed by the DP master. Remedy
S Bus connector connected? S RS-485 repeater set correctly? S External auxiliary voltage on the
DP/AS-i Link 20E module exists? 1 2 1: DP/AS-i Link 20E module not yet ready for data exchange. Has the DP/AS-i Link 20E module already started up?
1: Incorrect configuration data from the DP Check the configuration master. Required configuration is not supported by the DP/AS-i Link 20E module. 1: Error on the AS-Interface (device-related diagnostics) 0: No error was detected on the AS-Interface. Evaluate the device-related diagnostic information (see Section 4.5 ).
127
Slave Diagnostics
Byte
Bit 4
Value/meaning 1: Function not supported, e.g. changing the DP address of the DP/AS-i Link 20E module by the DP master. 1: The DP master cannot interpret the response from the DP/AS-i Link 20E module correctly. 1: The DP/AS-i Link 20E detects an incorrect parameter assignment frame (e.g. incorrect length, incorrect ID number, incorrect parameters). 1: The DP/AS-i Link 20E module was assigned parameters by a different DP master from the DP master that currently has access to the DP/AS-i Link 20E module.
This bit is always 1 if, for example, you are accessing the DP/AS-i Link 20E module with a PG or a different DP master. The DP address of the parameter assignment master is in the diagnostic byteMaster PROFIBUS Address.
Station Status 2
Byte 1 Bit 0 1 2 3 4 5 6 7 Value/meaning 1: The DP/AS-i Link 20E module must have parameters reassigned by the DP master. 1: A static diagnostic message exists. 1 :This bit is always 1 with the DP/AS-i Link 20E module. 1: The response monitoring of the DP/AS-i Link 20E module is activated. 1: The DP/AS-i Link 20E module has received theFREEZE control command. 1: The DP/AS-i Link 20E module has received theSYNC control command. 0: This bit is always set to 0. 1: The DP/AS-i Link 20E module is deactivated, in other words it is not taking part in the current processing.
Station Status 3
Byte 2
Value/meaning Station status 3 is reserved and is irrelevant for diagnostics on the DP/AS-i Link 20E module.
128
Slave Diagnostics
4.3
Byte 3
4 5
80H 98H
Vendor ID of the DP/AS-i Link 20E module In slave diagnostics byte 4 and byte 5 also include the Vendor ID of the diagnostics, DP/AS-i Link 20E module.
4.4
Byte 6 7 8
Value
43H
Value/meaning Header and length of the ID-related diagnostic information Fixed value Fixed value
00H 00H
4.5
Byte 9 10
Value
13H
Meaning Header and length of the device-related diagnostic information. Fixed value
01H
129
Slave Diagnostics
Byte 11 12
Value
04H 00H
Bytes 13 to 23 of the device-related diagnostic information contain error bits for errors on the AS-Interface. A delta list (bytes 20.23) contains all the AS-i slaves that deviate from the configuration, in other words missing, incorrect or existing but not configured AS-i slaves.
Byte 13
Value/meaning
1: Internal error (for example EEPROM defective). 1: External error (for example slave failed or APF). 1: At least one slave differs from the expected configuration. 1: Voltage on the AS-Interface too low (APF). 0
Byte 14
Meaning
Byte 15
Bit 0 1 2 3 4..7
Value/meaning 1: At least one AS-i slave differs from the expected configuration. 0 0: Normal status 1: The DP/AS-i Link 20E module is offline. 1: Hardware error (internal watchdog) 0
Byte 16
Value/meaning
130
Slave Diagnostics
Byte 17 18 19
Value
60H 00H 40H
Byte 20 21 22 23 24 25 26 27
Bit *) 0..7 0..7 0..7 0..7 0..7 0..7 0..7 0..7 1: Error in AS-i slave 0 to 7 1: Error in AS-i slave 8 to 15 1: Error in AS-i slave 16 to 23 1: Error in AS-i slave 24 to 31 1: Error in AS-i slave 0B.. 7B 1: Error in AS-i slave 8B..15B 1: Error in AS-i slave 16B..23B 1: Error in AS-i slave 24B..31B
Value/meaning *)
131
Slave Diagnostics
132
This chapter contains information on specific operating states of the DP/AS-Interface Link 20E (DP/AS-i Link 20E) and explains how to deal with errors.
133
5.1
The sections below explain how to replace failed AS-i slaves using the automatic address programming function.
You can recognize the failed AS-i slave simply because the LED assigned to the slave flashes on the front panel. To see this, you must switch to the slave display (see Section 1.7.2)
You can now replace the defective AS-i slave as follows: S Replace the defective AS-i slave with an identical AS-i slave with address zero (default address).
The DP/AS-i Link 20E module now programs this slave with the address of the original slave you are replacing. The AUP display goes off. The LED in the slave display of the DP/AS-i Link 20E module indicates that the slave has been included.
134
5.2
Table 5-1 Error BF LED lit (indicates an error on PROFIBUS) Possible Cause Remedy
Connection to the PROFIBUS ma- Check the attachment of the DP ster interrupted. master and DP/AS-i Link 20E module to PROFIBUS. DP master in wrong mode. Check/correct the mode on the DP master.
Incorrect parameter assignment/ Check/correct the configuration of configuration by the PROFIBUS the DP master. DP master. The PROFIBUS address configured on the DP master does not match the address of the DP/AS-i Link 20E module. APF LED lit Power requirements of the AS-i slaves are too high. Result: Voltage on the AS-i cable too low. The AS-i power supply unit is not connected or is defective. Short circuit on the AS-i cable SF lights up without pressing the SET button. The DP/AS-i Link 20E module signals diagnostic information to the DP master. Causes: Parameter assignment/ configuration error on PROFIBUS, configuration error on the AS-Interface (for example slave failed) or AS-i Power Fail. Check the power requirements of the AS-i slaves. If necessary, supply the AS-i slaves with an external voltage. Check the connection of the AS-i power supply unit and if necessary replace it. Check the AS-i cable and the connected AS-i slaves. Check the CER, APF LEDs. Evaluate the bits in the slave diagnostic information to identify the error in greater detail.
SF is lit when the SET button is pressed. CER LED is permanently lit.
A slave with address 0 exists Remove the slave with address 0 when there is a change to the pro- from the AS-i cable. tected mode. The DP/AS-i Link 20E module has Configure the DP/AS-i Link 20E not yet been configured. module using the SET button on the front panel. A configured AS-i slave has failed Replace the defective AS-i slave (evaluate the slave display). or reconfigure the DP/ASi Link 20E module if the AS-i slave is not required. An unconfigured slave was connected to the AS-i cable. Remove the AS-i slave or reconfigure the DP/AS-i Link 20E module.
135
Table 5-1
, continued Error Possible Cause An AS-i slave was connected whose configuration data (I/O configuration, ID code) do not match the values of the configured AS-i slave. Short circuit on the AS-i cable Remedy Check whether the wrong slave has been connected. If necessary, reconfigure the DP/AS-i Link 20E module. Check the AS-i cable and the connected AS-i slaves. Check the electrical connections of the AS-i slaves. Check the correct grounding of the DP/AS-i Link 20E module and check the AS-i cable. Check that the shield of the AS-i power supply unit is connected correctly.
The CER display flickers, in other words a configured slave is lost sporadically.
Bad contact
The DP/AS-i Link 20E module does not switch from the configuration mode to the protected mode.
Cyclic data exchange with the DP Interrupt the connection to the DP master is active. master (by unplugging the bus connector) or switch the DP master to STOP. The SET button was not pressed long enough. Press the SET button for at least 0.5 seconds.
An AS-i slave with address 0 is Remove the AS-i slave with adconnected to the AS-i cable. dress 0. The DP/AS-i Link 20E module cannot switch to the protected mode as long as this slave exists. The DP/AS-i Link 20E module Cyclic data exchange with the DP Interrupt the connection to the DP does not switch from the protected master is active. master (by unplugging the bus mode to the configuration mode. connector) or switch the DP master to STOP. The SET button was not pressed long enough. After failure of an AS-i slave, the AUP display remains off. The DP/AS-i Link 20E module is in the configuration mode. Press the SET button for at least 0.5 seconds. Automatic Programming is not possible in the configuration mode. Program the address of the new AS-i slave with the address programmer or using the command interface of the DP/AS-i Link 20E. Check the AS-i cable. If APF is displayed at the same time, check the power supply on the AS-i cable. If more than one slave is defective, program the address on the replaced slaves using the addressing unit.
136
Table 5-1
The DP/AS-i Link 20E module has Remove the unconfigured AS-i detected unconfigured AS-i slaslaves from the AS-i cable. ves. Automatic address programming is unsuccessful although the AUP display is lit. The configuration data (I/O configuration, ID code) of the replaced AS-i slave do not match the values of the original slave. Check whether the correct replacement slave was used. Compare the information from the manufacturer about configuration data. If you want to replace the original slave with a different type, assign the address with the addressing unit and reconfigure the DP/ASi Link 20E module (with the SET button). Set the address of the replaced slave with the addressing unit.
The replaced AS-i slave does not have the address ZERO.
The replaced AS-i slave is not cor- Check the connections of the rectly connected or is defective. slave and if necessary replace the slave. The CER LED and the LEDs of active AS-i slaves flicker irregularly. An extender is installed in the AS- Correct the connections on the Interface with Line1 and Line2 extender. and the connections are reversed.
137
138
Status = Write_ODI(Image)
3 4 5 6 7
Status = Set_Permanent_Parameter(Addr, X Param) Param, Status = Get_Permanent_Parameter(Addr) Status, Param = Write_Parameter(Addr, Param) Status, Param = Read_Parameter(Addr) Status = Store_Actual_Parameters() X X X X
139
, continued Function or Call on the Host Interface (symbolic representation) Status = Set_Permanent_Configuration(Addr, Config) Status, Config = Get_Permanent_Configuration(Addr) Status = Store_Actual_Configuration() Status, Config = Read_Actual_Configuration(Addr) Status = Set_LPS(List31) Status, List31 = Get_LPS() Status, List31 = Get_LAS() Status, List32 = Get_LDS() Status = Get_Flags() Status, Flag = Get_Flag_Config_OK() Status, Flag = Get_Flag_LDS.0() Status, Flag = Get_Flag_Auto_Address_Assign() Status, Flag = Get_Flag_Auto_Prog_Available() Status, Flag = Get_Flag_Configuration_Active() Status, Flag = Get_Flag_Normal_Operation_Active() Status, Flag = Get_Flag_APF() Status, Flag = Get_Flag_Offline_Ready() Status, Flag = Get_Flag_Periphery_OK() Status = Set_Operation_Mode(Mode) Status = Set_Offline_Mode(Mode) Status = Activate_Data_Exchange(Mode) Status = Change_Slave_Address(Addr1, Addr2) Status = Set_Auto_Address_Enable Status = Get_Auto_Address_Enable M1e X Comment / Function implemented by / see Section see Section 3.3
9 10 11 12 13 14 15 16.0 16.1 16.2 16.3 16.4 16.5 16.6 16.7 16.8 16.9 17 18 19 20 21.1 21.2
X X X X X X X X X X X X X X X X X X X X X X
see Section 3.3 By pressing the SET button; also using a command (see Section 3.3) see Section 3.3 see Section 3.3 see Section 3.3 see Section 3.3 see Section 3.3 see Section 3.3 see Section 3.3 see Section 3.3 see Section 3.3 see Section 3.3 see Section 3.3 see Section 3.3 see Section 3.3 see Section 3.3 see Section 3.3 By pressing the SET button; also with a command (see Section 3.3) see Section 3.3 not implemented see Section 3.3 see Section 3.3 see Section 3.3
22.1
140
, continued Function or Call on the Host Interface (symbolic representation) Status, Resp = Cmd_Read_IO_Configuration(Addr, CONF) Status, Resp = Cmd_Read_Identification_Code(Addr, IDCOD) Status, Resp = Cmd_Read_Status(Addr, STAT) Status, Resp = Cmd_Read_Reset_Status(Addr, STATRES) Status, Resp = Cmd_Read_Ext_ID-Code_1(Addr, IDCOD1) Status, Resp = Cmd_Read_Ext_ID-Code_2(Addr, IDCOD2) Status, S_List = Get_LPF() Status = Write_Extended_ID-Code_11(S_Ext_ID-C ode_1) Supported Slave Profiles Analog slave profile S7.3 support integrated Analog slave profile S7.4 support integrated X X see Section 3.3 see Section 3.3 M1e X Comment / Function implemented by / see Section see Section 3.3
22.3
22.4 22.5
22.6
22.7
23 24
X X
Part B 1 2
Symbols in column 3 (M2) Symbol X Purpose Function exists Function does not exist
141
How the AS-i cycle time depends on the number of connected slaves
The AS-i cycle time can be calculated using the following formula:
Note: If two 2 AS-i slaves with extended addressing mode occupy the same address (for example, address 5A and address 5B), this slave pair is calculated as one 1 AS-i slave in the above formula. The reason for this is that slave pairs with the same address are only addressed in every second cycle. The cycle time in the formula above is therefore doubled for such slaves. -
142
Note If you configure the DP/AS-Interface Link 20E using configuration tools such as STEP 7 or COM PROFIBUS, you do not require this information. The menus of these tools show you the options available for configuring/assigning parameters to the DP/AS-Interface Link 20E.
143
Configuration Frame
The structure of the configuration frame depends on whether you require I/O operation with up to 31 AS-i slaves or with up to a maximum of 62 AS-i slaves in the extended addressing mode.
Operation
Configuration Frame
I/O operation for up to p p 31 AS i slaves 1) AS-i l I/O operation in the extended addressing mode
1) The default configuration (response to a Get_Cfg frame prior to initialization by the DP master) is the configuration with I/O operation for up to 31 AS-i slaves.
Standard Section
Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6
80H 98H
Station status, see /6/ Watchdog factor 1, see /6/ Watchdog factor 2, see /6/ Min. TSDR, see /6/ Vendor ID, high byte, see /6/ Vendor ID, low byte, see /6/ Group ID, see /6/
144
User-specific Parameters
Bit 6 X 0
Bit 5 0 X
Bit 4 0 0
00H 07H 81H 00H 00H
Bit 3 0 0
Bit 2 X 0
Bit 1 X 0
Bit 0 X 0 Fixed value Fixed value Fixed value Fixed value Fixed value Fixed value Fixed value
X 0
1CH
00H
(fixed value)
1) Range of values for byte 7: bit 0 =1: Start bit monitoring on; bit 1 =1: Stop bit monitoring on; bit 2 =0: Watchdog base =10 ms; bit 2 =1: Watchdog base = 1 ms; bit 6 =0: Fail-safe mode is not supported; bit 7 =0: DP standard operation; bit 7 =1: DPV1 mode (read_record/write_record interface enabled) 2) Range of values for byte 8: bit 5 =0: Disable diagnostic interrupt; bit 5 =1: Enable diagnostic interrupt; 3) Range of values for byte 16: bit 0 =0: Configuration master is DPV0 or DPV1 master; Bit 1 =0 button configuration; bit 2 =1: DP/AS-i Link 20E is operated by an S7 DP master that was configured with a GSD file (older STEP 7 versions); with all other DP masters, bit 2 =0.
Note In the configuration tool, the user-specific parameters can also be represented starting with the identification Byte 0. Note the information in the documentation and help texts of the configuration tool.
145
146
References
/1/
AS-Interface: The Actuator-Sensor-Interface for Automation Werner Kriesel, O.W. Madelung, Carl Hanser Verlag Mnchen Wien 1994
/2/
AS-Interface Complete Specification can be ordered from the ASI Association e.V. Address: AS-International Association e.V. Manager: Dr. Otto W. Madelung Auf den Broich 4A D 51519 Odenthal Germany Tel.: +49 2174 40756 Fax.: +49 2174 41571 (The AS-i technology is promoted by the AS-Interface Association e. V.) Internet address of the AS-International Association e.V.: http:/www.as-interface.com
/3/
SIMATIC NET Industrial Communications Networks Catalog IK 10 The catalog can be ordered from your local SIEMENS branch office or distributor.
/4/
Profibus & AS-Interface Components on the Field Bus Catalog ST PI The catalog can be ordered from your local SIEMENS branch office or distributor.
147
References
/5/
SIMATIC NET Industrial Communications Networks PROFIBUS Networks Manual Siemens AG
/6/
PROFIBUS standard EN 50170
Order Numbers
The order numbers of the SIEMENS documentation listed above can be found in the catalogs SIMATIC NET Industrial Communication, Catalog IK10 and SIMATIC Programmable Controllers SIMATIC S7 / M7 / C7 Components for Integrated Automation, Catalog ST70. You can order these catalogs and obtain additional information from your local SIEMENS branch or distributor. -
148
EU Directive EMC 89/336/EEC The product listed above meets the requirements of the EU directive 89/336/EEC Electromagnetic Compatibility. The EU conformity certificates are available for the relevant authorities according to the EU directive and are kept at the following address: Siemens Aktiengesellschaft Bereich Automatisierungstechnik Industrielle Kommunikation (A&D PT2) Postfach 4848 D-90327 Nuremberg, Germany
Area of Application The product meets the following requirements: Area of application Noise emission Industrial EN 50081-2 : 1993 Requirements Noise immunity EN 50082-2 : 1995
Installation Instructions The product meets the requirements providing you adhere to the instructions for installation and operation as described in this documentation:
Information for Manufacturers of Machines The product is not a machine in the sense of the EU directive on machines. There is therefore no conformity certificate for this product complying with the EU directive for machines 89/392/EEC. If the product is integrated as part of a machine, it must be included in the conformity application of the manufacturer.
149
150
Glossary
E.1 E.2
E
E-2 E-5
151
Glossary
E.1
APF
AS-I Power Fail. Flag or LED display that indicates that the power supply on the AS-i cable is too low or has failed (for example failure of the AS-i power supply unit).
AS-i (AS-Interface) Actuator-sensor interface. A network system for the lowest field area of the automation range. It is suitable for networking sensors and actuators with control devices. (previous name: SINEC S1)
AS-i A/B slave AS-i A/B slaves use the extended addressing mode. Pairs of A/B slaves can be assigned to one address on the AS-Interface; by organizing addresses in this way, up to 62 AS-i A/B slaves can be attached to the AS-Interface.
AS-i analog slave AS-i analog slaves are special AS-i standard slaves that exchange analog values with the AS-i master.
AS-i library Library whose functions allow the user program to communicate with the AS-i driver.
AS-i master The AS-i master is used to monitor and control the simplest binary actuators and sensors via AS-i modules or AS-i slaves. A distinction is made between a standard AS-i master and an extended AS-i master.
152
Glossary
AS-i module For the AS-Interface, a module concept has been defined that allows the blocktype linking of AS-i slaves sensors and actuators via AS-i modules. The following types of module exist: Active AS-i modules with integrated AS-i chip: These are used to attach up to four conventional sensors and four conventional actuators. Passive AS-i modules: These function as distributors and allow attachment of up to four sensors and actuators with AS-i chips. In keeping with the concept of the standard AS-i master and the extended AS-i master, either AS-i chaps with standard functions or with extended functions are used in the AS-i slaves.
AS-i slave All the nodes that can be addressed by an AS-i master are known as AS-i slaves. AS-i slaves are distinguished by their packaging (AS-i modules and sensors or actuators with an integrated AS-i attachment) and their address range (AS-i standard slaves and AS-i A/B slaves with the extended addressing mode).
AS-i standard slave An AS-i standard slave always occupies one address on the AS-Interface; with this address organization, up to 31 AS-i standard slaves can be attached to the AS-Interface.
Extended AS-i master An extended AS-i master supports 31 addresses that can be used for standard AS-i slaves or AS-i slaves with the extended addressing mode. This increases the number of addressable AS-i slaves to a maximum of 62. The extended AS-i masters of SIMATIC NET support the integrated transfer of AS-Interface analog slaves that operate in compliance with Profile 7.3/7.4 of the AS-Interface Specification.
153
Glossary
Standard AS-i master Up to 31 standard slaves or slaves with the extended addressing mode (A slaves only) can be attached to a standard AS-i master.
154
Glossary
E.2
Bus parameter Bus parameters control the way in which data is transmitted on the bus. Each > station on > PROFIBUS must use bus parameters that match the bus parameters of the other stations.
CLEAR mode Mode of the DP master. Inputs are read cyclically, outputs remain set to 0.
CP Communications processor: Module for communications tasks for installation in computers or programmable logic controllers.
Device database Device database data (in a GSD file) contain DP slave descriptions complying with EN 50170, Vol 2. The use of DDB makes it easier to configure the > DP master and > DP slaves.
Distributed peripheral I/Os (DP) Input and output modules used in a distributed configuration by the CPU (central processing unit of the controller). The programmable logic controller and the distributed I/Os are connected via the > PROFIBUS bus system. For the programmable logic controllers, there is no difference between these I/Os and local process inputs or process outputs.
DP master Active station on > PROFIBUS that can send frames unsolicited when it is in possession of the token .
DP master system A > DP master and all the > DP slaves with which this DP master exchanges data.
155
Glossary
DP mode In communication between the DP master and the DP slaves, a distinction is made between the following four modes: OFFLINE STOP CLEAR RUN Each of these modes is characterized by defined actions between the DP master and DP slave.
Firmware In this case, the software running on the DP/ASInterface Link 20E.
FREEZE mode The FREEZE mode is a DP mode in which process data can be acquired from one, or several (group) or from all DP slaves at the same time. The point at which the data is acquired is indicated by the FREEZE command (this is a control frame for synchronization).
Maximum station delay A > bus parameter for > PROFIBUS. The Maximum Station Delay (max. TSDR) specifies the longest time required by one of the > stations in a > subnet between receiving the last bit of an unacknowledged > frame to sending the first bit of the next frame. A sender must wait until the max. TSDR has elapsed after sending an unacknowledged frame before it can send a further frame.
Minimum Station Delay A > bus parameter for > PROFIBUS. The Minimum Station Delay (min. TSDR) specifies the minimum time that the receiver of a > frame must wait before sending the confirmation or sending a further frame. The min. TSDR is based on the longest time required by a station in the sub system to receive a confirmation after sending the frame.
PROFIBUS A field bus complying with EN 50170, Vol. 2. Previous name: SINEC L2.
156
Glossary
PROFIBUS address The PROFIBUS address is a unique identifier of a > station connected to > PROFIBUS. The PROFIBUS address is transferred in the > frame to address a station.
SIMATIC NET Siemens SIMATIC Network and Communication. Product name for > networks and network components from Siemens (previously SINEC).
SIMATIC NET PROFIBUS SIMATIC NET bus system for industrial application based on PROFIBUS. (previously SINEC L2).
SINEC Previous product name for networks and network components from Siemens. New name: SIMATIC NET.
SYNC mode The SYNC mode is a DP mode in which one, more than one (group) or all > DP slaves transfer data to their process outputs at the same time. The time at which the data is transferred is signaled by the SYNC command (a control frame for synchronization).
Target rotation time A > bus parameter for > PROFIBUS. The token gives a > station on PROFIBUS the right to transmit frames. A station compares the token rotation time it has measured with the target rotation time. The difference between the two times decides whether only high or also low priority frames can be sent.
Token bus Network access technique for bus access rights with more than one active station (used in PROFIBUS). The token is passed on from active station to active station. The following applies to each active station: The token passes through a complete rotation between a station sending and receiving the token.
157
Glossary
158
Components of the product, 13, 14 Configuration, general procedure, 31 Acyclic services, 56 Configuration by button, 35 call parameters, 56 Configuration frame, 30 programming, 58 Configuration in STEP 7, basic configuration, Addressing 35 AS-i input or output data on the DP master, Configuration mode, 23, 27 49 Configuring in STEP 7, slave configuration, 38 example, 51 Connection contacts, 18 Analog values Connection elements, 17, 18 examples of access via data records, 60 Control elements, 17 mapping in data records, 58 Convection, 16 representation, 60 special situations, 61 ASInterface, vendor ID, 129 D AS-i A/B slave, 39, 42 Data consistency, 58 AS-i analog slave, 39, 41 Data exchange between DP master and AS-i addressing, 50 slave, 45 AS-i slave, interface to, 49 Diagnostics AS-i standard slave, 39, 40 devicerelated, 129 AS-Interface IDrelated, 129 configuring with the SET button, 27 Display elements, 17 cycle time, 142 DP master, 30, 54 DP master, interface to, 48, 54 configurable modes and features, 31 master, 13 with acyclic services, 56 slave DP slave, configuring properties, 36 interface to, 48, 54 DP-Master, 48 replacing defective slaves, 134 slaves, 48 Automatic address programming, 134
E B
BMP file, 32 Button DISPLAY, 17 SET, 17 Button configuration, 27 Error displays, 133 remedies, 135 ESD guidelines, 12 Examples accessing AS-i binary data. Siehe programming examples mapping analog values in the data records, 60
C
CE mark, 149 CLEAR, 63 COM-PROFIBUS, 31 Command interface, 65 description of the commands, 78 for SIMATIC S7, 72 general structure of the receive buffer, 80 general structure of the send buffer, 80 significance and functions, 66
F
Features, 14 FREEZE, 63 Front panel, 17
159
G
GSD file, 32 importing, 33
Programming Siehe auch examples acyclic services, 58 Protected mode, 23, 27, 125
I
I/O addresses, masking, 50 Installation, 16 Interfaces, 47 to DP master : PROFIBUS, 47 to the AS-i devices, 47 IP 20 degree of protection, 16
R
read_record, 47 call, 56 Return value, in the response buffer, 70
S
Samples, analog value access. Siehe programming examples Signal sequence of the formal parameters ACT, DONE, ERROR and STATUS, 74 Slave address, general structure, 81 Slave diagnostics, 125, 126 Slave display, 23 example of, 24 Standard rail, 16 Station status, 127 Status display, 21 Status nibble, coding, 68 STEP 7, 31
L
LED, 20, 21 row, 17
N
Noise immunity/grounding, 12
O
Operation, 45
P
Parameter assignment frame, user-specific parameters, 145 Parameter assignment/configuration frame, 34 PICS, 139 Power supply unit, 12 Preparing for operation, 46 Problems, 133 PROFIBUS address, 15, 129 displaying, 25 setting, 25 PROFIBUS DP connection to, 19 control commands, 63 master, configuration tool entries, 33 slave, 13 PROFIBUS-DP, master, 48 available master functions, 139 DP configuration, 30
T
Technical data, 15 Transferring analog values, 54 Transmission rate, PROFIBUS, 15, 44
U
User program, 67, 73
V
Vendor ID, 129
W
write_record, 47 call, 56
160