background image

Technical Description, Installation Instructions, Operation

22

DP/AS-Interface Link 20E

Release 11/2002

C79000-G8976-C138–04

Table 1-2

, (continued)

LED (color)

Meaning

Status

CER (yellow)

Configuration
Error

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.

S

When an attached AS-i slave has different configuration data (I/O
configuration, ID code) from the slave configured on the
DP/AS-i Link 20E.

S

When the DP/AS-i Link 20E module is in the offline mode.

AUP (green)

Autoprog
available

In the protected mode of the DP/AS-i Link 20E module, the LED
indicates that automatic address programming of an AS-i slave is
possible. The automatic address programming makes it much easier
to exchange a defective AS-i slave on the AS-i cable (for more
detailed information refer to Chapter 5.1).

CM (yellow)

Configuration
Mode

This LED displays the mode of the DP/AS-i Link 20E module.

S

LED lit: configuration mode

S

LED unlit: protected mode

The configuration mode is only required for installing and starting up
the DP/AS-i Link 20E module. In the configuration mode, the
DP/AS-i Link 20E module activates all connected AS-i slaves and
exchanges data with them. For more information about the
configuration mode, refer to Section 1.8.

Содержание DP/AS-Interface Link 20E

Страница 1: ...s 4 Eliminating Problems Error Displays 5 Appendix AS Interface Protocol Implementation Conformance Statements A Structure of the PROFIBUS Parameter Assignment and Configuration Frame B References C Note on the CE Mark D Glossary E Index Release 11 2002 C79000 G8976 C138 04 DP AS Interface Link 20E Manual SIMATIC NET Industrial Ethernet PROFIBUS AS Interface AS Interface ...

Страница 2: ...sult 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 unde...

Страница 3: ...ption 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 p...

Страница 4: ... 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 Disclaimer of Liability Copyright E Siemens AG 2001 2002 All rights reserved The reproduction transmission or use of this document or its contents is not permitted without express written authority Offender...

Страница 5: ...o AS i in the following chapters You want to set up an AS i system and include the DP AS i Link 20E module in it You will find the information you require about connecting and operating the DP AS i Link 20E module in Chapter 1 You want to know how to operate the DP AS i Link 20E from the point of view of the PROFIBUS DP master Read Chapter 2 in this manual Chapter 3 explains the command interface ...

Страница 6: ...Preface 6 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...

Страница 7: ...e on the DP Master 28 1 9 1 General Procedure 29 1 9 2 Importing a GSD File 31 1 9 3 Configuration in STEP 7 Basic Configuration 33 1 9 4 Configuring in STEP 7 Slave Configuration 36 1 9 5 Upload Actual Configuration 41 1 10 Transmission Rate on PROFIBUS 42 2 Data Exchange Between the DP Master and AS i Slave 43 2 1 Preparation for Operation an Overview 44 2 2 How the Interfaces Work 45 2 3 Transf...

Страница 8: ...figuration 103 3 3 19 Write_Extended_Parameter_List 108 3 3 20 Read_Extended_Parameter_Echo_List 109 3 3 21 Read_Version_ID 110 3 3 22 Read_AS i_Slave_ID 112 3 3 23 Read_AS i_Slave_Extended_ID1 113 3 3 24 Write_AS i_Slave_Extended_ID1 114 3 3 25 Read_AS i_Slave_Extended_ID2 115 3 3 26 Read_AS i_Slave_I O 116 3 3 27 Get_LPF 117 3 3 28 Write_AS i_Slave_Parameter_String 118 3 3 29 Read_AS i_Slave_Par...

Страница 9: ... Interface Protocol Implementation Conformance Statement PICS 137 B Structure of the PROFIBUS DP Parameter Assignment and Configuration Frame 141 C References 145 D Notes on the CE Mark 147 E Glossary 149 E 1 Terms Relating to AS Interface 150 E 2 Terms Relating to PROFIBUS 153 ...

Страница 10: ...Contents 10 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...

Страница 11: ...f the master module DP AS Interface Link 20E module DP AS i Link 20E You will learn the following S How to install the DP AS i Link 20E module S The display and control elements of the DP AS i Link 20E module S How to configure the DP AS i Link 20E module with the push button S How to configure a SIMATIC S7 DP master in STEP 7 S How to set the PROFIBUS address for the DP AS i Link 20E module 1 ...

Страница 12: ...re 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 VDE 0100 Part 410 HD 384 4 4 IEC 364 4 41 as functional extra low voltage w...

Страница 13: ...nding on the slave type you can access binary values or analog values The following AS i slaves can be used Standard Slaves AS i Analog Slaves Slaves with the extended addressing mode Branch AS i power supply Active module with slave ASIC Passive module without slave ASIC AS i cable Actuator sensor with slave ASIC Wider networking via PROFIBUS DP DP AS Interface Link 20E SF APF CER AUP CM 6GK71415...

Страница 14: ...g 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 o...

Страница 15: ...inal 4 maximum 3 A Connection to PROFIBUS Via 9 pin sub D female connector PROFIBUS address setting Address range 1 to 126 Set with SET and DISPLAY buttons Permitted loading 5V DC at PROFIBUS connector max 90 mA Data rates supported transmission rate on PROFIBUS 9 6 Kbps 19 2 Kbps 45 45 Kbps 93 75 Kbps 187 5 Kbps 500 Kbps 1 5 Mbps 3 Mbps 6 Mbps 12 Mbps Power supply from the AS i cable Current cons...

Страница 16: ... locks into position 2 Other modules can be installed to the left and right of the module Removing the Module from the Standard Rail To remove the module from the standard rail follow the procedure below 1 When removing the module from the standard rail the power supply and signal cables must be removed first 2 After the cables have been disconnected press the catch on the module down using a scre...

Страница 17: ... 5 6 7 8 0 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 X 2 3 4 DISPLAY SET 1 PROFIBUS DP BF SF ADR Connection Elements front cover open Control Elements front cover open Group Display 3 LEDs Slave Display 5 LEDs 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 LE...

Страница 18: ...20E module has two connections for AS i cables that are jumpered internally in the DP AS i Link 20E module This allows the DP AS i Link 20E module to be looped into the AS i cable 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...

Страница 19: ...n for functional ground This connector should be connected to the PE conductor with as little resistance as possible terminal 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...

Страница 20: ...wing figure shows the possible display statuses of the group display You can change between the status display slave display and PROFIBUS display with the DISPLAY button Each time you press the button you change to the next display status finally returning to the initial status ÍÍ ÍÍ ÍÍ ÍÍ ÈÈÈ ÈÈÈ ÈÈÈ ÈÈÈ ADR BF SF 0 4 1B 4B 5 9 5B 9B 10 14 10B 14B 20 24 20B 24B 25 29 25B 29B 30 31 30B 31B 15 19 1...

Страница 21: ...E module has broken down or the DP master is not active S The DP AS i Link 20E module was not or was incorrectly configured assigned parameters by the DP master SF red System error The LED is lit when S In the protected mode a diagnostic interrupt entering state was triggered on the DP master S The DP AS i Link 20E has detected an internal error for example EEPROM defective S While pressing the SE...

Страница 22: ...figuration ID code from the slave configured on the DP AS i Link 20E S When the DP AS i Link 20E module is in the offline mode AUP green Autoprog available In the protected mode of the DP AS i Link 20E module the LED indicates that automatic address programming of an AS i slave is possible The automatic address programming makes it much easier to exchange a defective AS i slave on the AS i cable f...

Страница 23: ... and A slaves S Flashing display B slaves 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 ...

Страница 24: ... 6 7 8 0 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 X 2 3 4 BF SF ADR Group Display 3 LEDs Slave Display 5 LEDs Display elements 6GK1 415 2AA00 Figure 1 4 Example of a Slave Display From the display you can obtain the following information S The group LEDs indicate the second group of five S Within this group the active AS i slaves 6 and 8 are displayed by the lower five L...

Страница 25: ...odule 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 th...

Страница 26: ...en 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 RUN APF CER AUP CM BF SF ADR Labeling field status display LED row Value of the address bits red green green green 64 32 16 8 4 2 1 In the example the LEDs indicate the PROFIBUS address 64 4 1 69 Figure 1 5 In the example above the PROFIBUS address...

Страница 27: ...T 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 lat...

Страница 28: ...n the status display or slave dis play 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 dis play must not lights up red Configuring using Buttons 1 Press the DISPLAY button to set the DP AS i Link 20E display to the status display mode initial status 2 Check whether the DP AS i Link 20E module is in the co...

Страница 29: ...Link 20E Release 11 2002 C79000 G8976 C138 04 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 ...

Страница 30: ...h the DP slaves differs depending on the device you are using as the DP master Generally you provide the information specifying the structure of the DP master system during configuration The following aspects of DP configuration on the DP master are explained in this section S The use of the GSD file S The entries to be made in the configuration tool of the DP master S Configuration of a DP master...

Страница 31: ...asters 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 Configuring the DP Master The following table provides an overview of how to configure the possible modes dependent on the DP master and tool used You should also refer to the information in the manual of the relevant configur...

Страница 32: ...OFIBUS Enable DPV1 see Section 1 9 2 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 Fürth at the telephone number 49 911 737972 The GSD file can also be downloaded from ...

Страница 33: ...signment When setting parameters for DP operation with the DP AS Interface Link 20E you can select between the following operating parameters DPV1 acyclic data enable disable default disable With these operating parameters the DPV1 disable mode is the default With this setting no acyclic data transfer is possible If you want to use the command interface and the analog data transfer with the AS Int...

Страница 34: ...Configuration Frame If your DP master cannot process GSD files under some circumstances you can enter the parameter assignment frame and configuration frame for the DP AS i Link 20E module when you configure the DP master The structure of the parameter assignment and configuration frame for the DP AS i Link 20E module is explained in Appendix C ...

Страница 35: ...P AS i Link 20E is taken from the hardware catalog in STEP 7 HW Config just like any other DP slave and inserted in the graphic display of the DP master system 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...

Страница 36: ...er configuration information relevant to the AS i slaves can be stored on the DP AS i Link 20E by configuring with the button see Section 1 8 If you require a more detailed AS i configuration using STEP 7 follow the instructions in the next section 1 9 4 S Digital Addresses tab To configure the address areas for the DP input data and DP output data change to the Digital Addresses tab Pack The addr...

Страница 37: ... Parameters tab Automatic address programming when slaves are replaced If you replace an AS i slave due to a fault the addresses are pro grammed automatically If you do not require this functiona lity for example for safety reasons the option can be deselected here For the protected mode the dia gnostic interrupt can be selected here ...

Страница 38: ...7 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 Configuring AS i Slaves To set a specific slave configuration take the AS i slaves from the hardware catalog and insert them in a ...

Страница 39: ...ve 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 Configuring the Properties of an AS i Slave By configuring the properties of the AS i slaves you can do the following S Store general information for the AS i slaves S Enter configuration data of the AS i slaves S Specify the...

Страница 40: ...enter the manu facturers information for the AS i slaves S I O Configuration standardized meaning S ID Code standardized meaning S ID1 2 Code Extended ID code complying with the new standard 2 1 1 As an option you can also enable the use of startup parameters here Whether or not these pa rameters are used de pends on the slave type Depending on the I O configuration you can specify the address are...

Страница 41: ...ination of the I O configuration and the three ID codes Please refer to the manual of the AS i slave you are using for information about the parameter settings These parameters are specified in compliance with the DP standard V1 Example General I O configuration for analog slaves ID codes for analog slaves that can be found in the relevant manual Here for example S ID Code 3h S ID1 Fh is not evalu...

Страница 42: ... The parameters in this box specify the slave profile In addition to the I O configuration S ID Code standardized meaning S ID1 2 Code Extended ID code complying with the new standard 2 1 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 addre...

Страница 43: ...ration from the STEP 7 project to the AS i Link 20E the configuration detected during button configuration is overwritten Follow the steps below Preparation Create and download the basic configuration 1 Create a basic configuration by inserting the AS i Link 20E in a DP master system of an S7 300 S7 400 station 2 Download this basic configuration to the S7 station with HW Config Uploading 3 Then s...

Страница 44: ... AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 1 10 Transmission Rate on PROFIBUS The DP AS i Link 20E supports the following transmission rates on PROFIBUS DP 9 6 Kbps 19 2 Kbps 45 45 Kbps 93 75 Kbps 187 5 Kbps 500 Kbps 1 5 Mbps 3 Mbps 6 Mbps 12 Mbps ...

Страница 45: ...nd AS i Slave 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 Binary values using the cyclic DP services S Analog values using the acyclic DP services 2 ...

Страница 46: ... must first be worked through Write a user program with analog value access for the DP master Section 2 4 Configure DP master with DP AS i Link as DP slave and AS i master Section 1 9 You can configure a DP master system for example in HW Config of STEP 7 Putting into operation Write a user program with binary value access for the DP master Section 2 3 For example create a program for an S7 CPU wi...

Страница 47: ...ÍÍ ÍÍÍ ÎÎ ÍÍÍ ÍÍÍ ÎÎ ÎÎ ÍÍÍ ÍÍÍ ÎÎÎ ÎÎÎ PROFIBUS AS Interface DP AS i Link Cyclic services read_record S Analog values S Command response write_record S Write analog values S Command job Write binary values Acyclic services SF APF CER AUP CM 6GK714152AA0 1 2 3 4 5 6 7 8 0 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 X 2 3 4 DIA ADR BF DP AS Interface Link 20 Read binary valu...

Страница 48: ... i slave 1 AS i slave n ÍÍÍÍ ÍÍÍÍ ÍÍÍÍ ÎÎÎÎ ÎÎÎÎ ÎÎÎÎ AS i slaves ÍÍÍ ÍÍÍ ÎÎÎ ÍÍÍ ÍÍÍ ÎÎÎ ÎÎÎ ÍÍÍ ÍÍÍ ÎÎÎ ÎÎÎ PROFIBUS AS Interface DP AS i Link Cyclic services SF APF CER AUP CM 6GK714152AA0 1 2 3 4 5 6 7 8 0 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 X 2 3 4 DIA ADR BF DP AS Interface Link 20 Read binary values Write binary values DP Output area DP Input area Figure 2 1 ...

Страница 49: ...es of output data see table below The start addresses of the input or output data depend on the configuration of the PROFIBUS DP master In SIMATIC S7 the address range selected for the input and output data area must always be identical Byte Number Bits 7 4 Bits 3 0 m 0 Status Nibble Slave 1 or 1A Bit 3 Bit 2 Bit 1 Bit 0 m 1 Slave 2 or 2A Slave 3 or 3A m 2 Slave 4 or 4A Slave 5 or 5A m 3 Slave 6 o...

Страница 50: ... see Section 3 1 Bits 4 7 in the first byte of the output data are also reserved and have no further significance Masking I O Addresses I O addresses that are not used in the lower part of the table can be masked during DP configuration for example in the STEP 7 configuration using the Reserved Length parameter see Section 1 9 3 Example You are not using any B slaves as AS i slaves with binary inp...

Страница 51: ...lave 30B slave 4 slave 5 slave 2 slave 3 slave 4 slave 5 Slave 30B Slave 31B Bit 0 Bit 1 Bit 2 Bit 3 Bit 0 Bit 0 Bit 0 Bit 0 Bit 0 Bit 0 Bit 0 Bit 0 Bit 0 Bit 0 Bit 0 Bit 0 Bit 1 Bit 1 Bit 1 Bit 1 Bit 1 Bit 1 Bit 1 Bit 1 Bit 1 Bit 1 Bit 1 Bit 1 Bit 3 Bit 2 Bit 2 Bit 2 Bit 2 Bit 2 Bit 2 Bit 2 Bit 2 Bit 2 Bit 2 Bit 2 Bit 2 Bit 2 Bit 3 Bit 3 Bit 3 Bit 3 Bit 3 Bit 3 Bit 2 Bit 3 Bit 3 Bit 3 Bit 3 Bit 3...

Страница 52: ...a Exchange Between the DP Master and AS i Slave 52 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 3 2 Bit no Output byte 1 Terminal 3 on the AS i bus module Terminal 4 on the AS i bus module ...

Страница 53: ...ess binary data of the AS i slaves depends on the DP master you are using Please refer to the relevant user documentation A SIMATIC S7 is the DP master If you have configured the I O addresses of the DP AS i Link 20E in the area of the process image you can access the AS i bit values using single bit commands Example see also Figure 2 2 A I 1 0 Attachment 1 on AS i module 3 Q 1 3 Attachment 4 on A...

Страница 54: ...ave 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 Analog Interface Between the DP Master and DP AS i Link 20E Analog values are read and written using the acyclic services of PROFIBUS DP V1 In the user program of the DP master you use the read_record a...

Страница 55: ...face DP AS i Link write_record S Analog values S Command job Acyclic services SF APF CER AUP CM 6GK714152AA0 1 2 3 4 5 6 7 8 0 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 X 2 3 4 DIA ADR BF DP AS Interface Link 20 Data area for analog output values Data area for analog input values read_record S Analog values S Command response Data records 140 147 for analog values outputs...

Страница 56: ...g analog values S Command interface see Chapter 3 Calls Table 2 1 Call With SIMATIC S7 With the DP programming interface read_record SFC 59 dpc _read write_record SFC 58 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 provide...

Страница 57: ...FIBUS address from this information C_Ref PROFIBUS address of the DP AS i Link DP slave IOID The following fixed value must be entered B 16 54 Fixed value Slot_number Is calculated from LADDR Not an SFC parameter Slot_number With DP AS i Link Any value Index RECNUM Index Data record number 140 147 see Table 2 3 Length RECORD Referenced using ANY pointer Length_s Length of the input output data are...

Страница 58: ... analog values available You will find sample calls at the end of this chapter Data Consistency In terms of one AS i slave the analog values transferred to the DP master are always consistent Mapping the Analog Values in the Data Records To access analog values you can select one of the data records 140 to 147 The data records differ from each other in their length This allows you to optimize the ...

Страница 59: ...6 4 24 5 32 0 6 40 8 7 48 16 8 56 24 9 64 32 0 10 72 40 8 11 80 48 16 12 88 56 24 13 96 64 32 0 14 104 72 40 8 15 112 80 48 16 16 120 88 56 24 17 128 96 64 32 0 18 136 104 72 40 8 19 144 112 80 48 16 20 152 120 88 56 24 21 160 128 96 64 32 0 22 168 136 104 72 40 8 23 176 144 112 80 48 16 24 184 152 120 88 56 24 25 192 160 128 96 64 32 0 26 200 168 136 104 72 40 8 27 208 176 144 112 80 48 16 28 216...

Страница 60: ...ength 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 1 28 For the other analog slaves 29 31 you use data record 147 in a second job and specify 24 as the data re...

Страница 61: ...slave has failed This analog slave signals Value Invalid S In the output direction write_record the DP AS i Link 20E behaves as follows In the CLEAR status of the DP master corresponds to the STOP state of a PLC the DP AS i Link 20E stops transfer of the analog output values How the analog slave reacts depends on the particular device When the DP AS i Link 20E starts up all analog output values ar...

Страница 62: ... 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 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 Receiv...

Страница 63: ...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 UNFREEZE The FREEZE command is canceled SYNC 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 UNSYNC The SYNC command is canceled CLEAR The values of the binary o...

Страница 64: ...Data Exchange Between the DP Master and AS i Slave 64 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...

Страница 65: ...ly 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 The command interface of the DP AS Interface Link 20E S The command interface with SIMATIC S7 3 ...

Страница 66: ... within your user program AS i commands are read and written using the acyclic services of PROFIBUS DP V1 In the user program on the DP master you use the services read_record and write_record data record 2 DP master AS i slave 2 AS i slave 1 AS i slave n ÍÍÍÍ ÍÍÍÍ ÎÎÎÎ ÎÎÎÎ ÎÎÎÎ AS i slaves ÍÍÍ ÍÍÍ ÎÎÎ ÍÍÍ ÍÍÍ ÎÎÎ ÎÎÎ ÍÍÍ ÍÍÍ ÎÎÎ ÎÎÎ PROFIBUS AS Interface DP AS i Link write_record S Command job A...

Страница 67: ...llowing in your user program 1 Specify the command call in a send buffer in the user program 2 Send this job with write_record record 2 to the DP AS i Link 20E 3 Following this query the status of command processing in the input area for binary values cyclic services see Section 2 1 The status information is entered in bits 4 to 7 in the reserved first byte of the DP input area status nibble 4 Var...

Страница 68: ...e Figure 3 2 Table 3 1 Coding of the Status Nibble Status nibble 1st byte of the digital input data Meaning Bit 7 Bit 6 Bit 5 Bit 4 1 0 0 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 ...

Страница 69: ...program 0 1 1 1 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 1 0 0 1 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 progra...

Страница 70: ...Flags with an asynchronous write access to the DP AS i Link 20E 0010B briefly depending on the command 7 The AS i master completes the command without error The response data can be read by the user program 1011B 8 The user program reads 32 bytes of response data with an asynchronous read job 0100B Return Value Error free processing is encoded in the return value of the response buffer There is an...

Страница 71: ... reading the extended ID1 code 83A8H The target address is not plausible for example a B slave address was used for a standard slave 83B1H A length error has occurred transferring a string according to profile 7 4 83B2H A protocol error has occurred transferring a string according to profile 7 4 83F8H The job number or the job parameter is unknown 83F9H The AS i master has detected an EEPROM error...

Страница 72: ...OOL LADDR SEND WORD ANY RECV ANY DWORD Table 3 4 Formal Parameters Name Para Type Data Type Memory Area Remarks ACT I BOOL I Q M D L constant As long as ACT 1 command processing is started provided no other call is being processed STARTUP I BOOL I Q M D L constant 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 LA...

Страница 73: ...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 Commands in the User Program To work with commands you require the following in your user program 1 In the warm restart branch of your S7 user program call FC ASI_3422 once with the parameter value STARTUP TR...

Страница 74: ... job must then be repeated 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 respo...

Страница 75: ...B2H The configured slot is not in use 0 1 80B3H Actual module type does not match the expected module type in SDB1 0 1 80C0H Data record cannot be read 0 1 80C1H The specified data record is currently being processed 0 1 80C2H There is a job pileup 0 1 80C3H Resource memory in use 0 1 80C4H Communication error 0 1 80C5H Distributed I Os not available 0 1 80C6H Data record transfer aborted due to p...

Страница 76: ...meter 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 0 1 8F24H Area error reading a parameter 8F25H Area error writing a parameter This error codes indicates that a parameter is located in an area that is illegal for a system function 0 1 8F28H Alignment error reading a parameter...

Страница 77: ...02 C79000 G8976 C138 04 Table 3 5 Error Coding continued DONE Meaning STATUS ERROR 0 1 8F44H This parameter code indicates that read access to a parameter was denied 0 1 8F45H This error code indicates that write access to a parameter was denied 0 1 8F7FH Internal error ...

Страница 78: ...et_Permanent_Parameter described in Section 3 3 1 Slave address parameter 00H Get_Permanent_Parameter described in Section 3 3 2 Slave address Parameter 01H Write_Parameter described in Section 3 3 3 Slave address parameter Parameter echo optional 02H Read_Parameter described in Section 3 3 4 Slave address Parameter value 03H Store_Actual_Parameters described in section 3 3 5 04H Set_Extended_Perm...

Страница 79: ...ed in section 3 3 20 Parameter echo list 33H Read_Version_ID described in section 3 3 21 Versions String 14H Read_AS i_Slave_ID described in section 3 3 22 Slave address ID Code 17H Read_AS i_Slave_Extended_ID1 described in section 3 3 23 Slave address Extended ID1 code 37H Write_AS i_Slave_Extended_ID1 described in section 3 3 24 Extended ID1 code 3FH Read_AS i_Slave_Extended_ID2 described in sec...

Страница 80: ...ands are shown on a gray background Byte Meaning q 0 Command number q 1 Job data q Job data q start address of the send buffer on the DP master General Structure of the Receive Buffer The basic structure of the response buffer is shown below The bytes only relevant with certain commands are shown on a gray background Byte Meaning n 0 Response data n 1 Response data n Response data n start address ...

Страница 81: ...essed in a command or in a response the address is structured as shown below Bit 7 Bit 6 Bit 5 Bit 4 Bit 0 S bit Slave address 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 S bit 1 AS i slave with extended addressing mode in address area B ...

Страница 82: ...e 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 STE...

Страница 83: ...urpose With this call a slave specific parameter value stored on the EEPROM of the DP AS i Link 20E is read Structure of the Job Data in the Send Buffer Byte Meaning 0 Command number 01 H 1 Slave address Structure of the Response Data in the Receive Buffer Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 0 reserved configured parameters ...

Страница 84: ...parameter echo This can deviate from the value that has just been written according to the AS i master specification 2 The AS i slave response is returned as a parameter echo in the response data This call is not permitted for AS i slaves that comply with the AS i slave standard profile 7 4 For these slaves the AS i master handles the AS i slave parameter assignment itself Structure of the Job Dat...

Страница 85: ... 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 Structure of the Job Data in the Send Buffer Byte Meaning 0 Command number 03 H 1 Slave address Structure of the Response Data in the Receive Buffer Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 0 reserved Parameter ...

Страница 86: ...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 Structure of the Job Data in the Send Buffer Byte Meaning 0 Command n...

Страница 87: ...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 o...

Страница 88: ...r S I O configuration S ID code S Extended ID1 code S 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 Structure of the Job Data in the Send Buffer Byte Meaning 0 Command number 26H 1 Slave address Structure of the Response Data in the Receive Buffer Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 0 ID code I ...

Страница 89: ...ted in the list of permanent AS i slaves LPS 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 The call is not executed 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 con...

Страница 90: ...re read S I O configuration S ID code S Extended ID1 code S 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 Structure of the Job Data in the Send Buffer Byte Meaning 0 Command number 28 H 1 Slave address Structure of the Response Data in the Receive Buffer Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 0 ID ...

Страница 91: ...d here is then generally unnecessary Structure of the Job Data in the Send Buffer Byte Meaning Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 0 Command number 29 H 1 00H 2 irrelevant Slave 1 Slave 2 Slave 3 Slave 4 Slave 5 Slave 6 Slave 7 3 Slave 8 Slave 9 Slave 10 Slave 11 Slave 12 Slave 13 Slave 14 Slave 15 4 Slave 16 Slave 17 Slave 18 Slave 19 Slave 20 Slave 21 Slave 22 Slave 23 5 Slave 24 Sla...

Страница 92: ...errors S 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 S In the management phase jobs from the user such as writing parameters are executed 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...

Страница 93: ...ss 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 Structure of the Job Data in the Send Buffer Byte Meaning Bit 7 Bit 1 Bit 0 0 Command number 0BH 1 reserved Value for AUTO_ADDR_ENABLE 1 Automatic address program ming enabled 0 Automatic address program ming disabled ...

Страница 94: ... for AS i slave 0 are activated This also applies to AS i slaves in which there are differences between the expected and actual configuration The OPERATION MODE bit is stored permanently in other words it is retained following a cold warm restart When you change from the configuration mode to the protected mode there is a warm restart on the AS i master change to the offline phase followed by a ch...

Страница 95: ...de when the following conditions are fulfilled 1 An AS i slave with AS i slave address old exists 2 If the old AS i slave address is not equal to 0 then an AS i slave with address 0 cannot be connected at the same time 3 The AS i slave address new must have a valid value 4 An AS i slave with AS i slave address new must not exist Note When the AS I slave address is changed the AS i slave is not res...

Страница 96: ...ecognizes that the stored address is not the same as the entry in the address register S 1 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 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 S 2 End bit error detected This ...

Страница 97: ...lave 15 2 LAS slave 16 LAS slave 17 LAS slave 18 LAS slave 19 LAS slave 20 LAS slave 21 LAS slave 22 LAS slave 23 3 LAS slave 24 LAS slave 25 LAS slave 26 LAS slave 27 LAS slave 28 LAS slave 29 LAS slave 30 LAS slave 31 4 LAS slave 0B LAS slave 1B LAS slave 2B LAS slave 3B LAS slave 4B LAS slave 5B LAS slave 6B LAS slave 7B 5 LAS slave 8B LAS slave 9B LAS slave 10B LAS slave 11B LAS slave 12B LAS ...

Страница 98: ...PS slave 8 LPS slave 9 LPS slave 10 LPS slave 11 LPS slave 12 LPS slave 13 LPS slave 14 LPS slave 15 18 LPS slave 16 LPS slave 17 LPS slave 18 LPS slave 19 LPS slave 20 LPS slave 21 LPS slave 22 LPS slave 23 19 LPS slave 24 LPS slave 25 LPS slave 26 LPS slave 27 LPS slave 28 LPS slave 29 LPS slave 30 LPS slave 31 20 LPS slave 0B LPS slave 1B LPS slave 2B LPS slave 3B LPS slave 4B LPS slave 5B LPS ...

Страница 99: ... in other words exactly one AS i slave is currently out of operation AUTO_ADDR_ASSIGN This flag is set when the automatic address programming is possible in other words AUTO_ADDR_ENABLE 1 and there is no incorrect slave connected to the AS i Interface LDS_0 This flag is set when an AS i slave exists with address 0 CONFIG_OK This flag is set when the desired configured and actual configuration matc...

Страница 100: ...ected configuration using the command Configure Total System see Section 3 3 18 Structure of the Job Data in the Send Buffer Byte Meaning 0 Command number 39H Structure of the Response Data in the Receive Buffer Byte Meaning Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 0 00H 1 00H 2 LAS slave 0 LAS slave 1 LAS slave 2 LAS slave 3 LAS slave 4 LAS slave 5 LAS slave 6 LAS slave 7 3 LAS slave 8 LAS...

Страница 101: ... ID1 slave 7 Ext ID2 slave 7 26 ID_CODE slave 8 I O configuration slave 8 27 Ext ID1 slave 8 Ext ID2 slave 8 28 ID_CODE slave 9 I O configuration slave 9 29 Ext ID1 slave 9 Ext ID2 slave 9 30 ID_CODE slave 10 I O configuration slave 10 31 Ext ID1 slave 10 Ext ID2 slave 10 32 ID_CODE slave 11 I O configuration slave 11 33 Ext ID1 slave 11 Ext ID2 slave 11 34 ID_CODE slave 12 I O configuration slave...

Страница 102: ...slave 1B I O configuration slave 1B 77 Ext ID1 slave 1B Ext ID2 slave 1B 78 ID_CODE slave 2B I O configuration slave 2B 79 Ext ID1 slave 2B Ext ID2 slave 2B 80 ID_CODE slave 3B I O configuration slave 3B 81 Ext ID1 slave 3B Ext ID2 slave 3B 82 ID_CODE slave 4B I O configuration slave 4B 83 Ext ID1 slave 4B Ext ID2 slave 4B 84 ID_CODE slave 5B I O configuration slave 5B 85 Ext ID1 slave 5B Ext ID2 ...

Страница 103: ...D1 slave 25B Ext ID2 slave 25B 126 ID_CODE slave 26B I O configuration slave 26B 127 Ext ID1 slave 26B Ext ID2 slave 26B 128 ID_CODE slave 27B I O configuration slave 27B 129 Ext ID1 slave 27B Ext ID2 slave 27B 130 ID_CODE slave 28B I O configuration slave 28B 131 Ext ID1 slave 28B Ext ID2 slave 28B 132 ID_CODE slave 29B I O configuration slave 29B 133 Ext ID1 slave 29B Ext ID2 slave 29B 134 ID_CO...

Страница 104: ...lave 18B Parameters slave 19B 164 Parameters slave 20B Parameters slave 21B 165 Parameters slave 22B Parameters slave 23B 166 Parameters slave 24B Parameters slave 25B 167 Parameters slave 26B Parameters slave 27B 168 Parameters slave 28B Parameters slave 29B 169 Parameters slave 30B Parameters slave 31B 170 Flag 1 171 Flag 2 172 reserved 218 reserved Flag 1 Flag 2 Bit Number Meaning Bit Number Me...

Страница 105: ...ves 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 A...

Страница 106: ...ion slave 6 23 Ext ID1 slave 6 Ext ID2 slave 6 24 ID_CODE slave 7 I O configuration slave 7 25 Ext ID1 slave 7 Ext ID2 slave 7 26 ID_CODE slave 8 I O configuration slave 8 27 Ext ID1 slave 8 Ext ID2 slave 8 28 ID_CODE slave 9 I O configuration slave 9 29 Ext ID1 slave 9 Ext ID2 slave 9 30 ID_CODE slave 10 I O configuration slave 10 31 Ext ID1 slave 10 Ext ID2 slave 10 32 ID_CODE slave 11 I O confi...

Страница 107: ...ID1 slave 31 Ext ID2 slave 31 74 irrelevant irrelevant 75 irrelevant irrelevant 76 ID_CODE slave 1B I O configuration slave 1B 77 Ext ID1 slave 1B Ext ID2 slave 1B 78 ID_CODE slave 2B I O configuration slave 2B 79 Ext ID1 slave 2B Ext ID2 slave 2B 80 ID_CODE slave 3B I O configuration slave 3B 81 Ext ID1 slave 3B Ext ID2 slave 3B 82 ID_CODE slave 4B I O configuration slave 4B 83 Ext ID1 slave 4B E...

Страница 108: ...1 slave 24B Ext ID2 slave 24B 124 ID_CODE slave 25B I O configuration slave 25B 125 Ext ID1 slave 25B Ext ID2 slave 25B 126 ID_CODE slave 26B I O configuration slave 26B 127 Ext ID1 slave 26B Ext ID2 slave 26B 128 ID_CODE slave 27B I O configuration slave 27B 129 Ext ID1 slave 27B Ext ID2 slave 27B 130 ID_CODE slave 28B I O configuration slave 28B 131 Ext ID1 slave 28B Ext ID2 slave 28B 132 ID_COD...

Страница 109: ...s slave 30B Parameters slave 31B 170 Flag 1 171 Flag 2 Flag 1 Flag 2 Bit Number Meaning Bit Number Meaning 0 OFFLINE_READY 0 OFFLINE 1 APF 1 INTERNAL 2 NORMAL_MODE 2 EEPROM_OK 3 CONFIG_MODE 3 AUTO_ADDR_ENABLE 4 AUTO_ADDR_AVAIL 4 PERIPHERY_FAULT 5 AUTO_ADDR_ASSI_GN 5 reserved 6 LDS_0 6 reserved 7 CONFIG_OK 7 MPO startup Flags whose values modify the AS i master mode are shown in gray The values of ...

Страница 110: ...eters slave 16 Parameters slave 17 11 Parameters slave 18 Parameters slave 19 12 Parameters slave 20 Parameters slave 21 13 Parameters slave 22 Parameters slave 23 14 Parameters slave 24 Parameters slave 25 15 Parameters slave 26 Parameters slave 27 16 Parameters slave 28 Parameters slave 29 17 Parameters slave 30 Parameters slave 31 18 irrelevant Parameters slave 1B 19 Parameters slave 2B Paramet...

Страница 111: ... slave 14 Par echo slave 15 8 Par echo slave 16 Par echo slave 17 9 Par echo slave 18 Par echo slave 19 10 Par echo slave 20 Par echo slave 21 11 Par echo slave 22 Par echo slave 23 12 Par echo slave 24 Par echo slave 25 13 Par echo slave 26 Par echo slave 27 14 Par echo slave 28 Par echo slave 29 15 Par echo slave 30 Par echo slave 31 16 irrelevant Par echo slave 1B 17 Par echo slave 2B Par echo ...

Страница 112: ... of the DP AS i Link 20E Structure of the Job Data in the Send Buffer Byte Meaning 0 Command number 14H The response of the DP AS i Link 20E contains the name and the firmware version number in the form shown below Structure of the Response Data in the Receive Buffer Byte Meaning 0 S 1 i 2 e 3 m 4 e 5 n 6 s 7 8 A 9 G 10 11 L 12 I 13 N 14 K 15 2 16 0 17 I 18 19 V 20 x 21 22 y ...

Страница 113: ...the Command Interface 113 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 Byte Meaning 23 y 24 25 26 27 28 29 30 30 x yy stands for the current version number of the firmware of DP AS i Link 20E ...

Страница 114: ...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 Structure of the Job Data in the Send Buffer Byte Meaning 0 Command number 17H 1 Slave address Structure of the Response Data in the Receive Buffer Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 0 reserved ID code ...

Страница 115: ...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 Structure of the Job Data in the Send Buffer Byte Meaning 0 Command number 37H 1 Slave address Structure of the Response Data in the Receive Buffer Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 0 reserved Extended ID1 code ...

Страница 116: ...e 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 Structure of the Job Data in the Send Buffer Byte Meaning 0 Command number 3FH 1 irrelevant Extended ID1 code ...

Страница 117: ...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 Structure of the Job Data in the Send Buffer Byte Meaning 0 Command number 38H 1 Slave address Structure of the Response Data in the Receive Buffer Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 0 reserved Extended ID2 code ...

Страница 118: ... 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 Structure of the Job Data in the Send Buffer Byte Meaning 0 Command number 18 1 Slave address Structure of the Response Data in the Receive Buffer Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 0 reserved I O configuration ...

Страница 119: ... 3 Bit 2 Bit 1 Bit 0 0 Slave 0 Slave 1 Slave 2 Slave 3 Slave 4 Slave 5 Slave 6 Slave 7 1 Slave 8 Slave 9 Slave 10 Slave 11 Slave 12 Slave 13 Slave 14 Slave 15 2 Slave 16 Slave 17 Slave 18 Slave 19 Slave 20 Slave 21 Slave 22 Slave 23 3 Slave 24 Slave 25 Slave 26 Slave 27 Slave 28 Slave 29 Slave 30 Slave 31 4 Slave 0B Slave 1B Slave 2B Slave 3B Slave 4B Slave 5B Slave 6B Slave 7B 5 Slave 8B Slave 9B...

Страница 120: ... 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 ...

Страница 121: ...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 Structure of the Job Data...

Страница 122: ...he 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...

Страница 123: ...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 Structure of the Job Dat...

Страница 124: ...Using the Command Interface 124 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...

Страница 125: ... 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 by leaving diagnostic state bit 3 in the station status 1 set to 0 The exact cause of the problem is ent...

Страница 126: ...nal 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 Structure of Slave Diag...

Страница 127: ...idual error bits in the station status S 0 No error S 1 error Station status 1 Byte Bit Value meaning Remedy 0 0 1 The DP AS i Link 20E module cannot be addressed by the DP master S Is the correct DP address set on the DP AS i Link 20E module S Bus connector connected S RS 485 repeater set correctly S External auxiliary voltage on the DP AS i Link 20E module exists 1 1 DP AS i Link 20E module not ...

Страница 128: ...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 byte Master PROFIBUS Address Station Status 2 Byte Bit Value meaning 1 0 1 The DP AS i Link 20E module must have parameters reassigned by the DP master 1 1 A static diagnostic message exists 2 1 This bit is always 1 with the DP AS i Link 20...

Страница 129: ...s byte 4 and byte 5 also include the Vendor ID of the DP AS i Link 20E module 4 4 Structure of ID Related Diagnostics ID related diagnostics is not used by the DP AS i Link 20E Bytes 6 to 8 therefore contain only fixed values Byte Value Value meaning 6 43H Header and length of the ID related diagnostic information 7 00H Fixed value 8 00H Fixed value 4 5 Structure of the Device Related Diagnostic I...

Страница 130: ...but not configured AS i slaves Byte Bit Value meaning 13 0 1 Group error bit 1 1 Internal error for example EEPROM defective 2 1 External error for example slave failed or APF 3 1 At least one slave differs from the expected configuration 4 1 Voltage on the AS Interface too low APF 5 7 0 Byte Value Meaning 14 1C H Module class Byte Bit Value meaning 15 0 1 At least one AS i slave differs from the ...

Страница 131: ...AS i slave 0 to 7 21 0 7 1 Error in AS i slave 8 to 15 22 0 7 1 Error in AS i slave 16 to 23 23 0 7 1 Error in AS i slave 24 to 31 24 0 7 1 Error in AS i slave 0B 7B 25 0 7 1 Error in AS i slave 8B 15B 26 0 7 1 Error in AS i slave 16B 23B 27 0 7 1 Error in AS i slave 24B 31B Bit 0 belongs to slave 0 bit 1 belongs to slave 1 etc Note Bytes 13 to 27 correspond to diagnostic data record 1 of SIMATIC ...

Страница 132: ...Slave Diagnostics 132 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...

Страница 133: ...0E Release 11 2002 C79000 G8976 C138 04 Dealing with Problems Error Displays 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 5 ...

Страница 134: ...g function Detecting a Defective AS i Slave If the AUP LED is lit only in the protected mode this indicates the following S Exactly one slave has failed S Automatic address programming by the DP AS i Link 20E is possible 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 ...

Страница 135: ...upply unit is not connected or is defective Check the connection of the AS i power supply unit and if necessary replace it Short circuit on the AS i cable Check the AS i cable and the connected AS i slaves SF lights up without pressing the SET button The DP AS i Link 20E module si gnals diagnostic information to the DP master Causes Parameter assignment configuration error on PROFIBUS configuratio...

Страница 136: ...s connector or switch the DP ma ster 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 connected to the AS i cable The DP AS i Link 20E module cannot switch to the protected mode as long as this slave exists Remove the AS i slave with ad dress 0 The DP AS i Link 20E module does not switch from the protected mode to the ...

Страница 137: ...ave 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 AS i Link 20E module with the SET button The replaced AS i slave does not have the address ZERO Set the address of the replaced slave with the addressing unit The replaced AS i slave is...

Страница 138: ...Dealing with Problems Error Displays 138 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...

Страница 139: ...presentation M1e Comment Function implemented by see Section 1 Image Status Read_IDI X By access to the I O data of the DP AS Interface Link 20E by the DP master 2 Status Write_ODI Image X By access to the I O data of the DP AS Interface Link 20E by the DP master 3 Status Set_Permanent_Parameter Addr Param X By the PROFIBUS parameter assignment or by command see Section 3 3 4 Param Status Get_Perm...

Страница 140: ...ion 3 3 16 1 Status Flag Get_Flag_Config_OK X see Section 3 3 16 2 Status Flag Get_Flag_LDS 0 X see Section 3 3 16 3 Status Flag Get_Flag_Auto_Address_Assign X see Section 3 3 16 4 Status Flag Get_Flag_Auto_Prog_Available X see Section 3 3 16 5 Status Flag Get_Flag_Configuration_Active X see Section 3 3 16 6 Status Flag Get_Flag_Normal_Operation_Active X see Section 3 3 16 7 Status Flag Get_Flag_A...

Страница 141: ...tatus Resp Cmd_Read_Status Addr STAT X see Section 3 3 22 5 Status Resp Cmd_Read_Reset_Status Addr STATRES not implemented 22 6 Status Resp Cmd_Read_Ext_ID Code_1 Addr IDCOD1 X see Section 3 3 22 7 Status Resp Cmd_Read_Ext_ID Code_2 Addr IDCOD2 X see Section 3 3 23 Status S_List Get_LPF X see Section 3 3 24 Status Write_Extended_ID Code_11 S_Ext_ID C ode_1 X see Section 3 3 Part B Supported Slave ...

Страница 142: ...ng the following formula tcycl 1 number of activated AS i slaves x 156 ms 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 abov...

Страница 143: ...r the DP AS Interface Link 20E You require this information if you use configuration tools that cannot interpret the GSD file of the DP AS Interface Link 20E supplied on diskette with this manual 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 ...

Страница 144: ... extended addressing 32 32 Byte 0 Byte 1 Byte 2 extended addressing mode C0H 1FH 1FH 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 Structure of the Parameter Assignment Frame The parameter assignment frame of the DP AS Interface Link 20E is 17 bytes long It consists of a 7 byte stand...

Страница 145: ... 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 configurati...

Страница 146: ...Structure of the PROFIBUS DP Parameter Assignment and Configuration Frame 146 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...

Страница 147: ... 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...

Страница 148: ...dard 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 ...

Страница 149: ...ch 4848 D 90327 Nuremberg Germany Area of Application The product meets the following requirements Area of application Requirements Noise emission Noise immunity Industrial EN 50081 2 1993 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 Manufacture...

Страница 150: ...Notes on the CE Mark 150 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 ...

Страница 151: ...151 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 Glossary E 1 Terms Relating to AS Interface E 2 E 2 Terms Relating to PROFIBUS E 5 E ...

Страница 152: ...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 function...

Страница 153: ...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 organizati...

Страница 154: ...9000 G8976 C138 04 LPS List of permanent slaves Nibble A nibble is a unit of information consisting of four bits 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 ...

Страница 155: ...abase 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 dis tributed I Os are connected via the PROFIBUS bus sys...

Страница 156: ...or 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 sub net 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...

Страница 157: ...ode 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 PROFI BUS the right to transmit frames A station compares the token rotation time it has...

Страница 158: ...Glossary 158 DP AS Interface Link 20E Release 11 2002 C79000 G8976 C138 04 UNFREEZE Job for resetting the FREEZE mode UNSYNC Job for resetting the SYNC mode ...

Страница 159: ...mand 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 Components of the product 13 14 Configuration general procedure 31 Configuration by button 35 Configuration frame 30 Configuration in STEP 7 basic configuration 35 Configuration mode 23 27 Configuring in STEP 7 slave con...

Страница 160: ...to 19 control commands 63 master configuration tool entries 33 slave 13 PROFIBUS DP master 48 available master functions 139 DP configuration 30 Programming Siehe auch examples acyclic services 58 Protected mode 23 27 125 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 a...

Отзывы: