background image

Interface to the User Program in the S7-200 CPU

2-16

SIMATIC NET CP 243-2 AS-i Master

C79000-G8976-C142/02

2.5

Access to the Analog Input and Output Words

Principle

Using a bank-select mechanism, the 8 analog input words and the 8 analog output
words can be switched to 64 different analog input areas (banks) and 64 different
analog output areas (banks) on the CP 243-2.

Each of these banks is 8 words long.

Advantage

This bank-select mechanism has the advantage that the analog data area of 8
words available for the expansion module is increased according to the number of
banks.

Access in the User Program

The switchover to the various banks is made using bits BS0–BS5 in the control
byte of the CP 243-2 (see Section 2.3.4).

The bank select bits are binary coded and select banks as shown below:

BS5

BS4

BS3

BS2

BS1

BS0

Bank No.

0

0

0

0

0

0

Bank 0 selected

0

0

0

0

0

1

Bank 1 selected

0

0

0

0

1

0

Bank 2 selected

0

0

0

0

1

1

Bank 3 selected

0

0

0

1

0

0

Bank 4 selected

0

0

0

1

0

1

Bank 5 selected

0

0

0

1

1

0

Bank 6 selected

0

0

0

1

1

1

Bank 7 selected

0

0

1

0

0

0

Bank 8 selected

0

0

1

0

0

1

Bank 9 selected

0

0

1

0

1

0

Bank 10 selected

0

0

1

0

1

1

Bank 11 selected

0

0

1

1

0

0

Bank 12 selected

0

0

1

1

0

1

Bank 13 selected

0

0

1

1

1

0

Bank 14 selected

0

0

1

1

1

1

Bank 15 selected

0

1

0

0

0

0

Bank 16 selected

0

1

0

0

0

1

Bank 17 selected

0

1

0

0

1

0

Bank 18 selected

0

1

0

0

1

1

Bank 19 selected

0

1

0

1

0

0

Bank 20 selected

0

1

0

1

0

1

Bank 21 selected

0

1

0

1

1

0

Bank 22 selected

0

1

0

1

1

1

Bank 23 selected

0

1

1

0

0

0

Bank 24 selected

0

1

1

0

0

1

Bank 25 selected

Содержание SIMATIC NET CP 243-2

Страница 1: ...nd Diagno stics in the User Program 4 Command Interface 5 Eliminating Problems Error Displays 6 Appendix AS Interface Protocol Imple mentation Conformance State ments A References B Note on the CE Mark C Support and Training D Glossary Index 07 2000 C79000 G8976 C142 Release 02 CP 243 2 AS Interface Master Manual SIMATIC NET Industrial Ethernet PROFIBUS AS Interface AS Interface ...

Страница 2: ...s 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 Trademarks SIMATICR SIMATIC HMIR and SIMATIC NETR are registered...

Страница 3: ...general information about the AS Interface abbreviated to AS i in the following chapters You want to set up an AS i system and include the CP 243 2 module in it You will find the relevant information about connecting and operating the CP 243 2 in Chapter 3 Requirements To understand this document you should be familiar with the manual AS Interface Introduction and Basic Information part of this do...

Страница 4: ...Preface ii SIMATIC NET CP 243 2 AS i Master C79000 G8976 C142 02 ...

Страница 5: ... in the Digital Module 2 7 2 3 1 Identification Register in the Digital Module 2 8 2 3 2 Error Register in the Digital Module 2 9 2 3 3 Status Byte Input Register 8DI 2 10 2 3 4 Control Byte Output Register 8DO 2 11 2 4 Meaning of the Data in the Analog Module 2 12 2 4 1 Identification Register in the Analog Module 2 13 2 4 2 Error Register in the Analog Module 2 14 2 5 Access to the Analog Input ...

Страница 6: ...peration_Mode 5 25 5 2 14 Change_AS i_Slave_Address 5 26 5 2 15 Get_AS i_Slave_Status 5 27 5 2 16 Get_LPS Get_LAS Get_LDS Get_Flags 5 29 5 2 17 Get_Extended_Total_Configuration 5 32 5 2 18 Store_Extended_Total_Configuration 5 37 5 2 19 Write_Extended_Parameter_List 5 43 5 2 20 Read_Extended_Parameter_Echo_List 5 45 5 2 21 Read_Version_ID 5 47 5 2 22 Read_AS i_Slave_ID 5 48 5 2 23 Read_AS i_Slave_I...

Страница 7: ...TIC NET CP 243 2 AS i Master C79000 G8976 C142 02 A AS Interface Protocol Implementation Conformance Statement PICS A 1 B References B 1 C Notes on the CE Mark C 1 D SIMATIC NET Support and Training D 1 Glossary Index ...

Страница 8: ...Contents vi SIMATIC NET CP 243 2 AS i Master C79000 G8976 C142 02 ...

Страница 9: ...tallation Instructions This chapter outlines the basic functions of the CP 243 2 and explains how the module is installed and started up You will get to know the following properties of the CP 243 2 The applications The technical specifications Display and control elements Configuration 1 ...

Страница 10: ...it is turned off Caution Noise immunity grounding To ensure the noise immunity of the CP 243 2 the CP 243 2 and the AS i power supply unit must be correctly grounded 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 VDE 0100 Part 410 HD 384 4 4 IEC 364 4 41 as functional...

Страница 11: ...i power supply Active module with slave ASIC Passive module without slave ASIC AS i cable Actuator sensor with slave ASIC S7 22x CPU CP 243 2 AS i master Figure 1 1 Example of a System Configuration with the CP 243 2 System Integration and Structure The accompanying product information lists the CPUs with which the CP 243 2 can be operated From the point of view of the S7 22x CPU the CP 243 2 repr...

Страница 12: ...ion and Installation Instructions 1 4 SIMATIC NET CP 243 2 AS i Master C79000 G8976 C142 02 Components Supplied The CP 243 2 product includes the following components CP 243 2 Product information bulletin on the CP 243 2 ...

Страница 13: ...the AS i cable Via an S7 200 terminal block Permitted current loading from terminal 1 to 3 or from terminal 2 to 4 maximum 3 A Address range One digital module with 8DI 8DO and one analog module with 8AI 8AO Power supply SIMATIC backplane bus Current consumption from 5 V DC 5 V DC max 220 mA Power supply from the AS i cable Current consumption from the AS i cable According to the AS i specificatio...

Страница 14: ...n modules in the S7 200 programmable controller CPUs 22x Possible Restrictions There may however be restrictions depending on the CPU or power supply unit being used in terms of the following Expandability with several expansion modules For further information refer to 4 Electrical restrictions The maximum current consumption from the S7 backplane bus must not be exceeded Please use the calculatio...

Страница 15: ...access to all the connection display and control elements of the CP 243 2 During operation the connection and control elements are protected by a front cover Unused terminal block Status display B slave display Slave display Group display AS i cable connection SET button Display button Figure 1 2 Connections Operator Controls and Interpreting the Displays For more detailed information refer to the...

Страница 16: ... ground Figure 1 3 Connecting the AS i Cable Connections to the AS i Cable The CP 243 2 has two connections for AS i cables that are jumpered internally on the CP 243 2 This allows the CP 243 2 to be looped into the AS i cable Caution The load capacity of the AS i contacts is a maximum of 3 A If this value is exceed on the AS i cable the CP 243 2 must not be looped into the AS i cable but must be ...

Страница 17: ...tructions 1 9 SIMATIC NET CP 243 2 AS i Master C79000 G8976 C142 02 Note Functional ground The CP 243 2 has a connection for functional ground This connector should be connected to the PE conductor with as little resistance as possible terminal ...

Страница 18: ...omation tasks In standard operation no commands or special parameters are transferred to the slaves This type of operation corresponds to the profile M0 of the AS i master specification Extended Operation In extended operation the user program uses the command interface of the CP 243 2 This means that the entire range of functions in the AS i system is available to the PLC programmer In particular...

Страница 19: ...31B by pressing the DISPLAY button or If you do not press the DISPLAY button for a longer period of time approximately 8 minutes Meaning of the LEDs The front panel of the CP 243 2 has two rows of LEDs The LEDs CM AUP CER APF PWR and SF in the upper row represent the status display The B LED indicates B slaves It is lit when the slave display is active if B slaves are displayed The first five LEDs...

Страница 20: ...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 Section 6 1 CER yellow Configuration Error This LED indicates whether the slave configuration detected on the AS i cable matches the expected configuration LPS If they do not match the CER LED i...

Страница 21: ...1 2 continued LED color Meaning Status SF red System error This LED is lit in the following situations The CP 243 2 has detected an internal problem for example a defective EEPROM The CP 243 2 is unable to make the currently required mode change for example an AS i slave with address 0 exists when a button is pressed ...

Страница 22: ... CP 243 2 is in the protected mode all active AS i slaves are displayed In the protected mode failed or existing but unconfigured AS i slaves are indicated by the corresponding LED flashing Display Statuses in Detail The AS i slaves are displayed in groups of five The three group LEDs indicate which group of 5 is being displayed in binary code The 5 LEDs of the slave display then indicate the dete...

Страница 23: ...he 2nd group LED is lit i e the 2nd line from the top corresponds to 21 2DEC 2 group of 5 slaves 5 9 If the 2nd and 4th LEDs are also lit within the slave display this means that slaves 6 and 8 are active If the B LED is also lit then in this example this would mean that slaves 6B and 8B are active 2nd group LED column 2 4 The intersecting points mark slave 6 and slave 8 Figure 1 4 Example of a Sl...

Страница 24: ...on mode CM LED lit it can exchange data with every AS i slave connected to the AS i cable except for an AS i slave with address 0 Newly added AS i slaves are detected immediately by the master activated and included in cyclic data exchange When installation and startup is completed the CP 243 2 can be switched to the protected mode using the SET button At the same time active AS i slaves are confi...

Страница 25: ... the configuration mode CM LED lit If not change the CP 243 2 to the configuration mode using the SET button 3 By changing to the slave display with the DISPLAY button you can check whether all the slaves connected to the AS Interface exist 4 Press the SET button The CP 243 2 is configured At the same time the CP 243 2 is changed to the protected mode the CM LED goes off The CER LED also goes off ...

Страница 26: ...Technical Description and Installation Instructions 1 18 SIMATIC NET CP 243 2 AS i Master C79000 G8976 C142 02 ...

Страница 27: ...42 02 Interface to the User Program in the S7 200 CPU This chapter explains how the CP 243 2 is addressed You will learn the significance of the data in the digital and in the analog module and you will learn how to access the analog inputs and outputs 2 ...

Страница 28: ...ta of the AS i slaves Analog input output data of the AS i slaves AS i diagnostic information delta list AS i commands and response data Status error information Control of the CP Bank selection S7 200 CPU ÍÍ ÍÍ ÍÍ ÍÍ ÍÍ ÍÍ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ AS i master AS i cable Figure 2 1 Digital Module The digital module occupies 8 input and 8 output bits in the address area of the digital inputs and outputs T...

Страница 29: ...ies 16 input and 16 output bytes in the address area of the analog inputs and outputs Data exchange with the AS i slaves is handled via the analog module see Figure 2 1 The bank select mechanism means that a larger data area in total can be addressed in the analog module than the addressable data area in the S7 200 CPU for the expansion module ...

Страница 30: ...he S7 200 Examples The following table contains examples of the addresses of the digital and analog input output areas with the possible configurations with a CPU 212 and CPU 214 Example of a CPU 222 and a CP 243 2 CPU 222 CP 243 2 8DI 8 DO 8DI 8 DO 8AI 8AO I0 0 Q0 0 I1 0 Q1 0 AIW0 AQW0 I0 1 Q0 1 I1 1 Q1 1 AIW2 AQW2 I0 2 Q0 2 I1 2 Q1 2 AIW4 AQW4 I0 3 Q0 3 I1 3 Q1 3 AIW6 AQW6 I0 4 Q0 4 I1 4 Q1 4 AI...

Страница 31: ...7 I2 7 Q2 7 AIW14 AQW14 I1 0 Q1 0 I1 1 Q1 1 I1 2 I1 3 I1 4 I1 5 Example of a CPU 224 a CP 243 2 and a CP 243 2 CPU 224 CP 243 2 CP 243 2 14 DI 10 DO 8DI 8 DO 8AI 8AO 8DI 8 DO 8AI 8AO I0 0 Q0 0 I2 0 Q2 0 AIW0 AQW0 I3 0 Q3 0 AIW16 AQW16 I0 1 Q0 1 I2 1 Q2 1 AIW2 AQW2 I3 1 Q3 1 AIW18 AQW18 I0 2 Q0 2 I2 2 Q2 2 AIW4 AQW4 I3 2 Q3 2 AIW20 AQW20 I0 3 Q0 3 I2 3 Q2 3 AIW6 AQW6 I3 3 Q3 3 AIW22 AQW22 I0 4 Q0 4...

Страница 32: ... 243 2 14DI 10 DO 8DI 3AI 1AO 8DI 8 DO 8AI 8AO I0 0 Q0 0 I2 0 AIW0 AQW0 I3 0 Q2 0 AIW8 AQW4 I0 1 Q0 1 I2 1 AIW2 I3 1 Q2 1 AIW10 AQW6 I0 2 Q0 2 I2 2 AIW4 I3 2 Q2 2 AIW12 AQW8 I0 3 Q0 3 I2 3 I3 3 Q2 3 AIW14 AQW10 I0 4 Q0 4 I2 4 I3 4 Q2 4 AIW16 AQW12 I0 5 Q0 5 I2 5 I3 5 Q2 5 AIW18 AQW14 I0 6 Q0 6 I2 6 I3 6 Q2 6 AIW20 AQW16 I0 7 Q0 7 I2 7 I3 7 Q2 7 AIW22 AQW18 I1 0 Q1 0 I1 1 Q1 1 I1 2 I1 3 I1 4 I1 5 ...

Страница 33: ...ter 8 bits I O module identifier Error register 8 bits Input register 8DI status byte of the CP 243 2 Output register 8DO control byte of the CP 243 2 Essentially the functions shown in the following diagram are handled via these registers CP 243 2 User program Digital module 8DI 8DO Analog module 8AI 8AO S7 200 CPU ÍÍ ÍÍ ÍÍ ÍÍ ÍÍ ÍÍ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ AS i master AS i cable Status error informatio...

Страница 34: ...d below The address at which the program can access the identification register depends on the slot in which the CP 243 2 is inserted For further information about the special bit memory and its structure for I O modules refer to 4 Range of Values The identification register can be read via the special bit memory of the S7 200 CPU It provides the fixed value 05H Example Assuming that the CP 243 2 ...

Страница 35: ...ter in the Digital Module Meaning for the User Program This register always supplies the value 0 The CP 243 2 reports errors using the error register in the analog module see Section 2 4 2 Example of Access to the Error Register If the CP 243 2 is inserted directly beside the S7 200 CPU SMB9 constantly supplies the value 0 ...

Страница 36: ...it 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 0 ASI_RESP 0 0 0 0 CP_READY ASI_MODE Description of the Bits Table 2 1 Bit Value Meaning ASI_MODE 0 The CP 243 2 is in the protected mode 1 The CP 243 2 is in the configuration mode CP_READY 0 The CP 243 2 is not yet operational after turning on the power supply Evaluation of the I O data or other information from the CP is not permitted 1 The CP 243 ...

Страница 37: ...all AS i slaves see Chapter 3 Since the AS i slave data are transferred via the analog area and the S7 200 CPU does not set this area to 0 when it changes from RUN to STOP the CPU mode must be signaled to the CP 243 2 using the PLC_RUN bit as follows 0 Signal to the CP 243 2 that the S7 200 CPU is in the STOP mode The CP 243 2 sends 0 to all AS i binary slaves The analog value transfer to analog o...

Страница 38: ...tifier Error register 8 bits 8 analog input words 8 AI 8 analog output words 8 AO The most important functions handled via these areas are shown in the diagram below CP 243 2 User program Digital module 8DI 8DO S7 200 CPU ÍÍ ÍÍ ÍÍ ÍÍ ÍÍ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ AS i master AS i cable Analog module 8AI 8AO Binary input output data of the AS i slaves Analog input output data of the AS i slaves AS i diagnostic...

Страница 39: ...elow The address at which the program can access the identification register depends on the slot in which the CP 243 2 is inserted For further information about the special bit memory and its structure for I O modules refer to 4 Range of Values The identification register can be read via the special bit memory area of the S7 200 CPU It provides the fixed value 1FH Example Assuming that the CP 243 ...

Страница 40: ...ted mode This indicates a difference between the slave configuration detected on the AS i cable and the desired configuration configured on the CP 243 2 The CER LED is lit see Section 1 8 1 Status Display of the CP 243 2 APF 0 AS i voltage correct The APF LED is off 1 AS i Power Fail This indicates that the voltage supplied on the AS i cable by the AS i power supply unit is too low or there is a c...

Страница 41: ... of Access to the Error Register Assuming that the CP 243 2 is inserted directly beside the S7 200 CPU Evaluate the special memory bits SM 11 0 to SM 11 2 in the SM area for more information about the special bit memory area of the S7 200 CPU refer to 4 If an error has occurred bit SM 11 0 and or bit SM 11 2 is set ...

Страница 42: ...yte of the CP 243 2 see Section 2 3 4 The bank select bits are binary coded and select banks as shown below BS5 BS4 BS3 BS2 BS1 BS0 Bank No 0 0 0 0 0 0 Bank 0 selected 0 0 0 0 0 1 Bank 1 selected 0 0 0 0 1 0 Bank 2 selected 0 0 0 0 1 1 Bank 3 selected 0 0 0 1 0 0 Bank 4 selected 0 0 0 1 0 1 Bank 5 selected 0 0 0 1 1 0 Bank 6 selected 0 0 0 1 1 1 Bank 7 selected 0 0 1 0 0 0 Bank 8 selected 0 0 1 0 ...

Страница 43: ...ed 1 0 1 0 1 1 Bank 43 selected 1 0 1 1 0 0 Bank 44 selected 1 0 1 1 0 1 Bank 45 selected 1 0 1 1 1 0 Bank 46 selected 1 0 1 1 1 1 Bank 47 selected 1 1 0 0 0 0 Bank 48 selected 1 1 0 0 0 1 Bank 49 selected 1 1 0 0 1 0 Bank 50 selected 1 1 0 0 1 1 Bank 51 selected 1 1 0 1 0 0 Bank 52 selected 1 1 0 1 0 1 Bank 53 selected 1 1 0 1 1 0 Bank 54 selected 1 1 0 1 1 1 Bank 55 selected 1 1 1 0 0 0 Bank 56 ...

Страница 44: ...Bank select bits Analog inputs Binary inputs slave 1B to 31B Analog inputs slave 1 to 31 reserved Bank 31 Bank 32 Bank 47 Bank 48 The address area depends on the slot of the CP 243 2 see Section 2 2 8 AIW e g AIW0 AIW14 Bank 63 Response data AS i diagnostics Delta list Figure 2 4 The bank select bits are set in the control byte of the digital module by the user program see Section 2 3 4 Bank 0 Bin...

Страница 45: ...lave 23 Slave 23A Slave 22 Slave 22A Slave 21 Slave 21A Slave 20 Slave 20A Slave 19 Slave 19A Slave 18 Slave 18A Slave 17 Slave 17A Slave 16 Slave 16A Byte m 3 Slave 31 Slave 31A Slave 30 Slave 30A Slave 29 Slave 29A Slave 28 Slave 28A Slave 27 Slave 27A Slave 26 Slave 26A Slave 25 Slave 25A Slave 24 Slave 24A Byte m 4 Slave 7B Slave 6B Slave 5B Slave 4B Slave 3B Slave 2B Slave 1B Slave 0B Byte m ...

Страница 46: ...0 G8976 C142 02 Banks 32 47 Analog input data of the AS i slaves Via these areas you can access the analog input data of the AS i slaves that support the AS i slave profile 7 3 or 7 4 see Section 3 1 2 Banks 48 63 Reserved area These areas are reserved for later expansions and cannot be used ...

Страница 47: ...Bank 30 Bank 15 Bank 16 Bank select bits Analog outputs Binary outputs slave 1B to 31B Analogoutputs slave 1 to 31 reserved Bank 31 Bank 32 Bank 47 Bank 48 The address area depends on the slot of the CP 243 2 see Section 2 2 8 AIW e g AIW0 AIW14 Bank 63 Commanddata reserved Figure 2 5 Bank 0 Binary output data of the AS i slaves 1 to 31 or 1A to 31A Via these analog output words you can access the...

Страница 48: ... are reserved for later expansions and cannot be used Bank 31 Binary output data of the AS i slaves 1B 31B Using these analog output words you can access the binary outputs of the B slaves slaves with the extended addressing mode The structure of the output data is described in Section 3 1 2 Banks 32 47 Analog output data of the AS i slaves Via these areas you can access the analog binary outputs ...

Страница 49: ...Data of the AS i Slaves This chapter explains the AS i master interface of the CP 243 2 The first part covers addressing the AS i slaves and access to the binary data of the slaves In the second part addressing and access to the analog data of the AS i slaves is explained 3 ...

Страница 50: ...alog inputs for the CP 243 2 in the system data block of the S7 200 CPU Set the PLC_RUN bit bit 7 in the digital control byte to 1 at the beginning of the cyclic program Access to the I O data of the slaves is then only allowed when the CP_Ready bit bit 1 in the digital status byte is set to 1 Access to the Binary Values The CP 243 2 assigns four bits a nibble in the input and output data area for...

Страница 51: ...0 or slave 30A Bit 3 Bit 2 Bit 1 Bit 0 Slave 31 or slave 31A Bit 3 Bit 2 Bit 1 Bit 0 m start address of the CP analog module in the input direction Assignment of the AS i Output Data of the Standard or A Slaves Bank 0 in the Analog Output Area of the CP Bank Byte no Bit 7 4 Bit 3 0 0 n 0 reserved Slave 1 or slave 1A Bit 3 Bit 2 Bit 1 Bit 0 0 n 1 Slave 2 or slave 2A Slave 3 or slave 3A 0 n 2 Slave ...

Страница 52: ... Slave 29B 31 m 15 Slave 30B Bit 3 Bit 2 Bit 1 Bit 0 Slave 31B Bit 3 Bit 2 Bit 1 Bit 0 m start address of the CP analog module in the input direction Assignment of the AS i Output Data of the B Slaves Bank 31 in the Analog Output Area of the CP Bank Byte No Bit 7 4 Bit 3 0 31 n 0 reserved Slave 1B Bit 3 Bit 2 Bit 1 Bit 0 31 n 1 Slave 2B Slave 3B 31 n 2 Slave 4B Slave 5B 31 n 3 Slave 6B Slave 7B 31...

Страница 53: ...ea to 0 automatically As a result the CP 243 2 outputs 0 data to all binary slaves Special Feature of Analog Slaves If you use analog slaves complying with profile 7 3 or 7 4 the following points apply In the input direction the CP 243 2 sets the nibbles assigned to the slaves to 0 In the output direction the CP 243 2 ignores the nibbles assigned to these slaves Access to the analog data is descri...

Страница 54: ...ave 30 Slave 31 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 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 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 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 Bit 3 Bit 3 Bit 3 Bit 1 Bit 0 Bit 1 Bit 0 ...

Страница 55: ...CPU 222 with a CP 243 2 plugged in directly beside it OB1 STL NETWORK 1 LD SM0 1 If bit First Scan SI Q1 7 1 PLC_RUN 1 LD I1 1 If CP243 2_READY CALL 1 Then AS i I O processing standard or A slaves SBR 1 STL NETWORK 1 LD SM0 0 Always 1 RI Q1 0 6 Select bank 0 BMW AIW0 VW100 8 Transfer standard slaves SI Q1 0 5 Select bank 31 BMW AIW0 VW116 8 Transfer B slaves Below several examples of access to AS ...

Страница 56: ...ly to analog slaves complying with profile 7 1 or 7 2 Analog value transfer for these slaves is not supported by the CP 243 2 Access to the Analog Values The CP 243 2 assigns four words in the input area and four words in the output area for each AS i slave The PLC can write these values analog outputs or read these values analog inputs Assignment of the AS i Analog Data Bank Byte no Meaning 32 0 ...

Страница 57: ... low byte 34 4 Slave 5 channel 3 high byte 34 5 Slave 5 channel 3 low byte 34 6 Slave 5 channel 4 high byte 34 7 Slave 5 channel 4 low byte 34 8 Slave 6 channel 1 high byte 34 9 Slave 6 channel 1 low byte 34 10 Slave 6 channel 2 high byte 34 11 Slave 6 channel 2 low byte 34 12 Slave 6 channel 3 high byte 34 13 Slave 6 channel 3 low byte 34 14 Slave 6 channel 4 high byte 34 15 Slave 6 channel 4 low...

Страница 58: ...te 37 5 Slave 11 channel 3 low byte 37 6 Slave 11 channel 4 high byte 37 7 Slave 11 channel 4 low byte 37 8 Slave 12 channel 1 high byte 37 9 Slave 12 channel 1 low byte 37 10 Slave 12 channel 2 high byte 37 11 Slave 12 channel 2 low byte 37 12 Slave 12 channel 3 high byte 37 13 Slave 12 channel 3 low byte 37 14 Slave 12 channel 4 high byte 37 15 Slave 12 channel 4 low byte 38 0 Slave 13 channel 1...

Страница 59: ... byte 40 6 Slave 17 channel 4 high byte 40 7 Slave 17 channel 4 low byte 40 8 Slave 18 channel 1 high byte 40 9 Slave 18 channel 1 low byte 40 10 Slave 18 channel 2 high byte 40 11 Slave 18 channel 2 low byte 40 12 Slave 18 channel 3 high byte 40 13 Slave 18 channel 3 low byte 40 14 Slave 18 channel 4 high byte 40 15 Slave 18 channel 4 low byte 41 0 Slave 19 channel 1 high byte 41 1 Slave 19 chann...

Страница 60: ...h byte 43 7 Slave 23 channel 4 low byte 43 8 Slave 24 channel 1 high byte 43 9 Slave 24 channel 1 low byte 43 10 Slave 24 channel 2 high byte 43 11 Slave 24 channel 2 low byte 43 12 Slave 24 channel 3 high byte 43 13 Slave 24 channel 3 low byte 43 14 Slave 24 channel 4 high byte 43 15 Slave 24 channel 4 low byte 44 0 Slave 25 channel 1 high byte 44 1 Slave 25 channel 1 low byte 44 2 Slave 25 chann...

Страница 61: ...nel 3 high byte 46 5 Slave 29 channel 3 low byte 46 6 Slave 29 channel 4 high byte 46 7 Slave 29 channel 4 low byte 46 8 Slave 30 channel 1 high byte 46 9 Slave 30 channel 1 low byte 46 10 Slave 30 channel 2 high byte 46 11 Slave 30 channel 2 low byte 46 12 Slave 30 channel 3 high byte 46 13 Slave 30 channel 3 low byte 46 14 Slave 30 channel 4 high byte 46 15 Slave 30 channel 4 low byte 47 0 Slave...

Страница 62: ...input direction the CP 243 2 supplies the value 0000H when the AS i slave supplies transparent data complying with profile 7 3 extended ID2 code bit 2 1 and when this slave has failed this slave signals Value Invalid In the output direction the CP 243 2 behaves as follows In the STOP mode of the PLC more exactly bit PLC_RUN 0 the CP 243 2 stops transfer of the analog values The reaction of the ana...

Страница 63: ...ugged in directly beside it The program reads the analog input value of slave 3 channel 2 cyclically and sends it to the analog output slave 16 channel 1 OB1 STL NETWORK 1 LD SM0 1 If bit First Scan SI Q1 7 1 PLC_RUN 1 LD I1 1 If CP243 2_READY CALL 4 Then process AS i analog values SBR 4 STL NETWORK 1 LD SM0 0 Always 1 RI Q1 0 6 Select bank 33 SI Q1 5 1 Select bank 33 SI Q1 0 1 Select bank 33 MOVW...

Страница 64: ...Access to the Data of the AS i Slaves 3 16 SIMATIC NET CP 243 2 AS i Master C79000 G8976 C142 02 ...

Страница 65: ...IMATIC NET CP 243 2 AS i Master C79000 G8976 C142 02 Signaling Errors and Diagnostics in the User Program This chapter explains which errors of the CP 243 2 are signaled and how to read out the Delta list 4 ...

Страница 66: ...error register in the SM area Special Memory The SM byte addresses depend on the slot of the CP 243 2 Caution Note that the operating system of the S7 200 CPU does not always update the error register in the SM area before a program cycle For this reason it is possible that the input data of a binary AS i slave are set to 0 although no error is signaled in the error register If you require a consi...

Страница 67: ...rmation AS i configuration errors To obtain more detailed information which slave has failed you can read in the delta list via bank 1 of the analog input area see Section 2 5 1 Table 4 1 OB1 STL NETWORK 1 LD SM0 1 If bit First Scan SI Q1 7 1 PLC_RUN 1 RI Q1 0 6 Select bank 0 LD I1 1 If CP_READY CALL 2 Then AS i diagnostics SBR 2 STL NETWORK 1 Read delta list LD SM0 0 Always 1 I Q1 0 Select bank 1...

Страница 68: ...Signaling Errors and Diagnostics in the User Program 4 4 SIMATIC NET CP 243 2 AS i Master C79000 G8976 C142 02 ...

Страница 69: ...mpletely from within your user program This chapter introduces you to the AS i command interface and the AS i commands You require the AS i command interface when you want to use functions over and above pure I O data exchange with the AS i slaves for example assigning parameters to slaves from within the S7 200 program modifying slave addresses etc 5 ...

Страница 70: ...f the CP 243 2 On completion of the job the job status and any response data are made available in a response buffer The response buffer is in the analog input area of the CP 243 2 for example starting at AIW0 if the CP 243 2 is plugged in directly beside an S7 200 CPU Depending on the command that was executed the response data occupy banks 2 to 15 in the analog input area of the CP 243 2 Require...

Страница 71: ...t for response ASI_RESP bit Response data valid ASI_RESP bit 1 detected Evaluate response data After evaluation set ASI_COM 0 Ready to send command detected ASI_RESP bit 0 detected AS i master user program CP 243 2 reaction to command Receives command Detects that response data were evaluated Signals command executed Sets ASI_RESP 1 Ready for new command Sets ASI_RESP 0 Set command parameter in th...

Страница 72: ...224 bytes are always transferred to the CP 243 2 in these examples When the response is read in from the CP 243 2 224 bytes are also transferred This allows each command to be processed regardless of its length Table 5 1 OB1 STL NETWORK 1 LD SM0 1 If bit First Scan SI Q1 7 1 PLC_RUN 1 RI Q 0 6 select bank 0 LD I1 1 If CP_READY MOVW 16 3000 VW700 Entercode Read_extended_lists CALL 3 Then SBR 3 Tabl...

Страница 73: ...12 BMW VW860 AQW0 8 V memory bank SI Q1 0 1 Select bank 13 BMW VW876 AQW0 8 V memory bank RI Q1 0 1 Select bank 14 SI Q1 1 1 Select bank 14 BMW VW892 AQW0 8 V memory bank SI Q1 0 1 Select bank 15 BMW VW908 AQW0 8 V memory bank RI Q1 0 6 Select bank 0 SI Q1 6 1 ASI_COM Fetch response from CP LD Q1 6 ASI_COM A I1 6 ASI_RESP RI Q1 0 6 Select bank 2 SI Q1 1 1 Select bank 2 BMW AIW0 VW400 8 Bank V memo...

Страница 74: ...BMW AIW0 VW528 8 Bank V memory SI Q1 0 1 Select bank 11 BMW AIW0 VW544 8 Bank V memory RI Q1 0 2 Select bank 12 SI Q1 2 1 Select bank 12 BMW AIW0 VW560 8 Bank V memory SI Q1 0 1 Select bank 13 BMW AIW0 VW576 8 Bank V memory RI Q1 0 1 Select bank 14 SI Q1 1 1 Select bank 14 BMW AIW0 VW592 8 Bank V memory SI Q1 0 1 Select bank 15 BMW AIW0 VW608 8 Bank V memory RI Q1 0 6 Select bank 0 RI Q1 6 1 ASI_C...

Страница 75: ...ermanent_Parameter described in Section 5 2 2 Slave address Parameter 0 1 H Write_Parameter described in Section 5 2 3 Slave address parameter Parameter echo optional 0 2 H Read_Parameter described in Section 5 2 4 Slave address Parameter value 0 3 H Store_Actual_Parameters described in Section 5 2 5 0 4 H Set_Extended_Permanent_Configuration described in Section 5 2 6 Slave address configuration ...

Страница 76: ...S i_Slave_ID described in Section 5 2 22 Slave address ID code 1 7 H Read_AS i_Slave_Extended_ID1 described in Section 5 2 23 Slave address Extended ID1 code 3 7 H Write_AS i_Slave_Extended_ID1 described in Section 5 2 24 Extended ID1 code 3 F H Read_AS i_Slave_Extended_ID2 described in Section 5 2 25 Slave address Extended ID2 code 3 8 H Read_AS i_Slave_I O described in Section 5 2 26 Slave addre...

Страница 77: ...e start address 0 is assumed for the analog input module of the CP to simplify byte numbering Table 5 4 Bank Byte Meaning Content 2 0 Command number 1 Parameters for job 2 Parameters for job 3 Parameters for job 4 Parameters for job 5 Parameters for job 6 Parameters for job 7 Parameters for job 8 Parameters for job 9 Parameters for job 10 Parameters for job 11 Parameters for job 12 Parameters for ...

Страница 78: ... description of the command interface the start address 0 is assumed for the analog output module of the CP to simplify byte numbering Table 5 5 Bank Byte Meaning Content 2 0 Command number echo 1 Command status 2 Response data 3 Response data 4 Response data 5 Response data 6 Response data 7 Response data 8 Response data 9 Response data 10 Response data 11 Response data 12 Response data 13 Respon...

Страница 79: ... data I O or ID codes A1 H The addressed AS i slave was not found on the AS Interface A2 H An AS i slave with address 0 exists A3 H An AS i slave with the new address already exists on the AS Interface A4 H The AS i slave address cannot be deleted A5 H The AS i slave address cannot be set A6 H The AS i slave address cannot be stored permanently A7 H Error reading the extended ID1 code A8 H The tar...

Страница 80: ...d in a command or in a reply the address is structured as shown below Bit 7 Bit 5 Bit 4 Bit 3 Bit 0 S bit Slave address Where the S elect bit for selecting the slave type is specified as follows 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: ...en the AS i slave is activated after turning on the power supply on the CP 243 2 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 F H Structure of the Job Data in the Send Buffer Bank Byte Meaning Bit 7 Bit ...

Страница 82: ...fic parameter value stored on the EEPROM of the CP 243 2 is read Structure of the Job Data in the Send Buffer Bank Byte Meaning 2 0 Command number 01 H 2 1 AS i slave address Structure of the Job Data in the Receive Buffer Bank Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 2 0 Echo of the command number 01 H 2 1 Command status 2 2 irrelevant Parameter ...

Страница 83: ...at has just been written according to the AS i master specification 2 The AS i slave response is supplied as a parameter echo in the receive buffer 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 Data in the Send Buffer Bank Byte Meaning Bit 7 Bit...

Страница 84: ...st not be confused with the parameter echo that is supplied by the AS i slave as a reply to the write_parameter job Structure of the Job Data in the Send Buffer Bank Byte Meaning 2 0 Command number 03 H 2 1 AS i slave address Structure of the Job Data in the Receive Buffer Bank Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 2 0 Echo of the command number 03 H 2 1 Command status 2 2 irrelevant Parameter ...

Страница 85: ...rs are reconfigured 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 F H Structure of the Job Data in the Send Buffer Bank Byte Meaning 2 0 Command number 04 H Structure of the Job Data in the Receive Buffer Bank Byte Meaning 2 0 Echo of the c...

Страница 86: ... 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 F H must be specified When executing this command the AS i master changes to the offline phase and then changes back to normal operation restart on the AS i master This call is not executed in the protected mode Structure of the Job Data in the Send Buffer B...

Страница 87: ...1 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 Structure of the Job Data in the Send Buffer Bank Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 2 0 Command number 26 H 2 1 Slave address Structure of the Job Data in the Receive Buffer Bank Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 2 0 Echo of the command n...

Страница 88: ...ed configuration data The list of activated AS i slaves LAS is adopted 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 Structure of the Job Data in the Send Buffer Bank Byte Meaning 2 0 Command number 07 H Struct...

Страница 89: ...ded 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 Structure of the Job Data in the Send Buffer Bank Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 2 0 Command number 28 H 2 1 Slave address Structure of the Job Data in the Receive Buffer Bank Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 2 0 Echo of the com...

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

Страница 91: ...or 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 In the offline mode the CP 243 2 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...

Страница 92: ... 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 Bank Byte Meaning Bit 7 Bit 1 Bit 0 2 0 Command number 0B H 2 1 reserved Value for AUTO_ADDR_ENABLE 1 Automatic address programming enabled 0 Automatic address programming disabled Structure of the Job Data in the Receive Buffer Bank Byte Meaning 2 0 Echo of th...

Страница 93: ...applies to AS i slaves in which there are differences between the expected and actual configuration The OPERATION MODE bit is saved permanently in the EEPROM i e it is retained following a startup restart When changing from the configuration mode to the protected mode the CP 243 2 is restarted transition to the offline phase followed by switchover to the online mode Note If an AS i slave with the ...

Страница 94: ...e old slave address exists 2 If the old slave address is not equal to 0 then a 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 slave address new must not exist Note When the slave address is changed the AS i slave is not reset in other words the output data of the AS i slave are retained until new data are received...

Страница 95: ...when the AS i internal slave address comparison recognizes 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 t...

Страница 96: ... NET CP 243 2 AS i Master C79000 G8976 C142 02 Structure of the Job Data in the Receive Buffer Bank Byte Meaning Bit 7 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 2 0 Echo of the command number 0F H 2 1 Command status 2 2 reserved S 3 S 2 S 1 S 0 ...

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

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

Страница 99: ...AS i cable LDS_0 This flag is set when a slave exists with address 0 CONFIG_OK This flag is set when the desired configured and actual configuration match OFFLINE This flag is set when the CP is to change to the OFFLINE mode or is already in this mode EEPROM_OK This flag is set when the test of the internal EEPROM did not detect any errors AUTO_ADDR_ENABLE This flag indicates whether the automatic...

Страница 100: ...ended_Total_Configuration see Section 5 2 18 Structure of the Job Data in the Send Buffer Bank Byte Meaning 2 0 Command number 39 H Structure of the Job Data in the Receive Buffer Bank Byte Meaning Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 2 0 39H 2 1 Command status 2 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 2 3 LAS slave 8 LAS slave 9...

Страница 101: ...e 8 I O configuration slave 8 3 11 Ext ID1 slave 8 Ext ID2 slave 8 3 12 ID_CODE slave 9 I O configuration slave 9 3 13 Ext ID1 slave 9 Ext ID2 slave 9 3 14 ID_CODE slave 10 I O configuration slave 10 3 15 Ext ID1 slave 10 Ext ID2 slave 10 4 0 ID_CODE slave 11 I O configuration slave 11 4 1 Ext ID1 slave 11 Ext ID2 slave 11 4 2 ID_CODE slave 12 I O configuration slave 12 4 3 Ext ID1 slave 12 Ext ID...

Страница 102: ... I O configuration slave 1B 6 13 Ext ID1 slave 1B Ext ID2 slave 1B 6 14 ID_CODE slave 2B I O configuration slave 2B 6 15 Ext ID1 slave 2B Ext ID2 slave 2B 7 0 ID_CODE slave 3B I O configuration slave 3B 7 1 Ext ID1 slave 3B Ext ID2 slave 3B 7 2 ID_CODE slave 4B I O configuration slave 4B 7 3 Ext ID1 slave 4B Ext ID2 slave 4B 7 4 ID_CODE slave 5B I O configuration slave 5B 7 5 Ext ID1 slave 5B Ext ...

Страница 103: ...ave 25B Ext ID2 slave 25B 9 14 ID_CODE slave 26B I O configuration slave 26B 9 15 Ext ID1 slave 26B Ext ID2 slave 26B 10 0 ID_CODE slave 27B I O configuration slave 27B 10 1 Ext ID1 slave 27B Ext ID2 slave 27B 10 2 ID_CODE slave 28B I O configuration slave 28B 10 3 Ext ID1 slave 28B Ext ID2 slave 28B 10 4 ID_CODE slave 29B I O configuration slave 29B 10 5 Ext ID1 slave 29B Ext ID2 slave 29B 10 6 I...

Страница 104: ...lave 12B Parameter slave 13B 12 1 Parameter slave 14B Parameter slave 15B 12 2 Parameter slave 16B Parameter slave 17B 12 3 Parameter slave 18B Parameter slave 19B 12 4 Parameter slave 20B Parameter slave 21B 12 5 Parameter slave 22B Parameter slave 23B 12 6 Parameter slave 24B Parameter slave 25B 12 7 Parameter slave 26B Parameter slave 27B 12 8 Parameter slave 28B Parameter slave 29B 12 9 Parame...

Страница 105: ...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 Structure of the Job Data in the Send Buffer Bank Byte Meaning Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 2 0 Command number 3A H 2 1 00 H 2 2 LPS slave 0 LPS slave 1 LPS slave 2 LPS slave 3 LPS slave 4 LPS slave 5 LPS slave 6 LPS sla...

Страница 106: ...CODE slave 11 I O configuration slave 11 4 1 Ext ID1 Slave 11 Ext ID2 slave 11 4 2 ID_CODE slave 12 I O configuration slave 12 4 3 Ext ID1 Slave 12 Ext ID2 slave 12 4 4 ID_CODE slave 13 I O configuration slave 13 4 5 Ext ID1 Slave 13 Ext ID2 slave 13 4 6 ID_CODE slave 14 I O configuration slave 14 4 7 Ext ID1 Slave 14 Ext ID2 slave 14 4 8 ID_CODE slave 15 I O configuration slave 15 4 9 Ext ID1 Sla...

Страница 107: ...uration slave 4B 7 3 Ext ID1 Slave 4B Ext ID2 slave 4B 7 4 ID_CODE slave 5B I O configuration slave 5B 7 5 Ext ID1 Slave 5B Ext ID2 slave 5B 7 6 ID_CODE slave 6B I O configuration slave 6B 7 7 Ext ID1 Slave 6B Ext ID2 slave 6B 7 8 ID_CODE slave 7B I O configuration slave 7B 7 9 Ext ID1 Slave 7B Ext ID2 slave 7B 7 10 ID_CODE slave 8B I O configuration slave 8B 7 11 Ext ID1 Slave 8B Ext ID2 slave 8B...

Страница 108: ...xt ID1 Slave 28B Ext ID2 slave 28B 10 4 ID_CODE slave 29B I O configuration slave 29B 10 5 Ext ID1 Slave 29B Ext ID2 slave 29B 10 6 ID_CODE slave 30B I O configuration slave 30B 10 7 Ext ID1 Slave 30B Ext ID2 slave 30B 10 8 ID_CODE slave 31B I O configuration slave 31B 10 9 Ext ID1 Slave 31B Ext ID2 slave 31B 10 10 irrelevant Parameter slave 1 10 11 Parameter slave 2 Parameter slave 3 10 12 Parame...

Страница 109: ...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 on a gray background 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 Only the gray shaded flags can be modified CONFIG_MODE The ent...

Страница 110: ...Command Interface 5 42 SIMATIC NET CP 243 2 AS i Master C79000 G8976 C142 02 Structure of the Job Data in the Receive Buffer Bank Byte Meaning 2 0 Echo of the command number 3A H 2 1 Command status ...

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

Страница 112: ...Command Interface 5 44 SIMATIC NET CP 243 2 AS i Master C79000 G8976 C142 02 Structure of the Job Data in the Receive Buffer Bank Byte Meaning 1 1 Echo of the command number 3C H 2 2 Command status ...

Страница 113: ...ve 2 Par echo slave 3 2 4 Par echo slave 4 Par echo slave 5 2 5 Par echo slave 6 Parameters slave 7 2 6 Par echo slave 8 Par echo slave 9 2 7 Par echo slave 10 Par echo slave 11 2 8 Par echo slave 12 Par echo slave 13 2 9 Par echo slave 14 Par echo slave 15 2 10 Par echo slave 16 Par echo slave 17 2 11 Par echo slave 18 Par echo slave 19 2 12 Par echo slave 20 Par echo slave 21 2 13 Par echo slave...

Страница 114: ...ho slave 16B Par echo slave 17B 3 11 Par echo slave 18B Par echo slave 19B 3 12 Par echo slave 20B Par echo slave 21B 3 13 Par echo slave 22B Parameters slave 23B 3 14 Par echo slave 24B Par echo slave 25B 3 15 Par echo slave 26B Par echo slave 27B 4 0 Par echo slave 28B Par echo slave 29B 4 1 Par echo slave 30B Parameters slave 31B ...

Страница 115: ...te Meaning 2 0 Command number 14 H The reply of the CP 243 2 contains the name and the firmware version number of the CP 243 2 in the form shown below Structure of the Job Data in the Receive Buffer Bank Byte Meaning 2 0 Echo of the command number 14 H 2 1 Command status 2 2 C 2 3 P 2 4 2 5 2 2 6 4 2 7 3 2 8 2 9 2 2 10 2 11 V 2 12 x 2 13 2 14 y 2 15 y x yy stands for the current version number of ...

Страница 116: ...er 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 Bank Byte Meaning 2 0 Command number 17 H 2 1 AS i slave address Structure of the Job Data in the Receive Buffer Bank Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 2 0 Echo of the command number 17 H 2 1 Command status 2 2 reserved ID code ...

Страница 117: ...he 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 Bank Byte Meaning 2 0 Command number 37 H 2 1 AS i slave address Structure of the Job Data in the Receive Buffer Bank Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 2 0 Echo of the command number 37 H 2 1 Command status 2 2 reserved Extended ID1 code ...

Страница 118: ...d 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 Bank Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 2 0 Command number 3FH 2 1 irrelevant Extended ID1 code Structure of the Job Data in the Receive Buffer Bank Byte Meaning Bit 7 Bit 4 Bit 3 Bit ...

Страница 119: ...er 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 Bank Byte Meaning 2 0 Command number 38 H 2 1 AS i slave address Structure of the Job Data in the Receive Buffer Bank Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 2 0 Echo of the command number 38 H 2 1 Command status 2 2 reserved Slave ID2 ...

Страница 120: ...er 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 Bank Byte Meaning 2 0 Command number 18 H 2 1 AS i slave address Structure of the Job Data in the Receive Buffer Bank Byte Meaning Bit 7 Bit 4 Bit 3 Bit 0 2 0 Echo of the command number 18 H 2 1 Command status 2 2 reserved I O configuration ...

Страница 121: ... 2 Bit 1 Bit 0 2 0 Echo of the command number 3E H 2 1 Command status 2 2 slave 0 slave 1 slave 2 slave 3 slave 4 slave 5 slave 6 slave 7 2 3 slave 8 slave 9 slave 10 slave 11 slave 12 slave 13 slave 14 slave 15 2 4 slave 16 slave 17 slave 18 slave 19 slave 20 slave 21 slave 22 slave 23 2 5 slave 24 slave 25 slave 26 slave 27 slave 28 slave 29 slave 30 slave 31 2 6 reserv slave 1B slave 2B slave 3...

Страница 122: ... AS i slave is calculated by the AS i master from byte 2 of the send buffer number of parameter bytes The 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 Structure of the Job Data in the Send Buffer Bank Byte Meaning 2 0 40 H 2 ...

Страница 123: ...f 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 in the Send Buffer Bank Byte Meaning 2 0 Comma...

Страница 124: ...ytes 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 In contrast to other jobs in this job the bytes containing the bits Follow and Valid are also transferred see slave profile 7 4 Structu...

Страница 125: ...er 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 Data in the Send Buffer Bank Byte Meaning 2 0 ...

Страница 126: ...ve 5 2 5 Data slave 6 Data slave 7 2 6 Data slave 8 Data slave 9 2 7 Data slave 10 Data slave 11 2 8 Data slave 12 Data slave 13 2 9 Data slave 14 Data slave 15 2 10 Data slave 16 Data slave 17 2 11 Data slave 18 Data slave 19 2 12 Data slave 20 Data slave 21 2 13 Data slave 22 Data slave 13 2 14 Data slave 24 Data slave 25 2 15 Data slave 26 Data slave 27 3 0 Data slave 28 Data slave 29 3 1 Data ...

Страница 127: ...lave 20 Delta slave 19 Delta slave 18 Delta slave 17 Delta slave 16 4 6 Delta slave 31 Delta slave 30 Delta slave 29 Delta slave 28 Delta slave 27 Delta slave 26 Delta slave 25 Delta slave 24 4 7 Delta slave 7B Delta slave 6B Delta slave 5B Delta slave 4B Delta slave 3B Delta slave 2B Delta slave 1B reserv 4 8 Delta slave 15B Delta slave 14B Delta slave 13B Delta slave 12B Delta slave 11B Delta sl...

Страница 128: ...Command Interface 5 60 SIMATIC NET CP 243 2 AS i Master C79000 G8976 C142 02 ...

Страница 129: ...6 1 SIMATIC NET CP 243 2 AS i Master C79000 G8976 C142 02 Dealing with Problems Error Displays This chapter contains information about special operating states and explains how to deal with errors 6 ...

Страница 130: ...c address programming function Detecting Defective AS Interface Slaves If the AUP LED is lit only in the protected mode this indicates the following Exactly one slave has failed Automatic address programming by the CP 243 2 is possible You can recognize the failed AS Interface slave simply because the LED assigned to the slave flashes on the front panel To do this you must switch the CP 243 2 to t...

Страница 131: ... pressed An AS Interface slave with ad dress 0 exists when there is a change to the protected mode Remove the slave with address 0 from the AS Interface cable CER is lit permanently The CP 243 2 has not yet been configured Configure the CP 243 2 using the mode button on the front panel A configured AS Interface slave has failed evaluate the slave dis play Replace the defective AS Inter face slave ...

Страница 132: ...the S7 200 CPU to STOP This sets the PLC_RUN bit to 0 Button not pressed long enough Press the button for at least 0 5 seconds After failure of an AS Interface slave the AUP display remains off The CP 243 2 is in the configura tion mode Automatic programming is not possible in the configuration mode Program the address of the new AS Interface slave with the ad dressing unit More than one AS Interf...

Страница 133: ...nfiguration data If you want to replace the original AS Interface slave with a different type assign the address with the addressing unit and reconfigure the CP 243 2 for example by pressing the SET button The replaced AS Interface slave does not have the address 0 0 Set the address of the replaced AS Interface slave with the ad dressing unit Replaced AS Interface slave is not correctly connected ...

Страница 134: ...Dealing with Problems Error Displays 6 6 SIMATIC NET CP 243 2 AS i Master C79000 G8976 C142 02 ...

Страница 135: ... By access to the I O data of the CP 243 2 module by the DP master 2 Status Write_ODI Image X By access to the I O data of the CP 243 2 module by the DP master 3 Status Set_Permanent_Parameter Addr Param X see Section 5 2 1 4 Param Status Get_Permanent_Parameter Addr X see Section 5 2 2 5 Status GParam Write_Parameter Addr Param X see Section 5 2 3 6 Status Param Read_Parameter Addr X see Section ...

Страница 136: ...ee Section 5 2 16 16 1 Status Flag Get_Flag_Config_OK X Get_LPS Get_LAS Get_LDS Get_Flags see Section 5 2 16 16 2 Status Flag Get_Flag_LDS 0 X Get_LPS Get_LAS Get_LDS Get_Flags see Section 5 2 16 16 3 Status Flag Get_Flag_Auto_Address_Assign X Get_LPS Get_LAS Get_LDS Get_Flags see Section 5 2 16 16 4 Status Flag Get_Flag_Auto_Prog_Available X Get_LPS Get_LAS Get_LDS Get_Flags see Section 5 2 16 16...

Страница 137: ...s Get_Auto_Address_Enable X Get_LPS Get_LAS Get_LDS Get_Flags see Section 5 2 16 23 1 Status Resp Cmd_Reset_ASI_Slave Addr RESET not implemented 23 2 Status Resp Cmd_Read_IO_Configuration Addr CONF X Read_AS i_Slave_I O see Section 5 2 26 23 3 Status Resp Cmd_Read_Identification_Code Addr IDCOD X Read_AS i_Slave_ID see Section 5 2 22 23 4 Status Resp Cmd_Read_Status Addr STAT X see Section 5 2 15 ...

Страница 138: ...tivated slaves Tcycl 1 number of activated slaves 156µs If a pair of slaves using the extended addressing mode A B slaves occupies an address this pair is counted as a single slave in the formula Pairs of A and B slaves are addressed in every second AS Interface cycle in other words the calculated cycle time is doubled for these slaves The calculated cycle time applies assuming that no frames are ...

Страница 139: ...onal Association e V Geschäftsführung 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...

Страница 140: ...or 6 SIMATIC STEP 7 Micro DOS Manual Siemens AG 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 o...

Страница 141: ...tion 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 the documentation listed below This manual SIMATIC S7 200 Programmable Controller System Manual...

Страница 142: ...Notes on the CE Mark C 2 SIMATIC NET CP 243 2 AS i Master C79000 G8976 C142 02 ...

Страница 143: ...iemens de training E mail AD Training nbgm siemens de SIMATIC Customer Support Hotline Open round the clock worldwide Johnson City Nuremberg Singapore SIMATIC Basic Hotline Nuremberg SIMATIC BASIC Hotline Johnson City SIMATIC BASIC Hotline Singapore SIMATIC BASIC Hotline Localtime Mo Fr 8 00 to 18 00 Phone 49 911 895 7000 Fax 49 911 895 7002 E mail simatic support nbgm siemens de Localtime Mo Fr 8...

Страница 144: ...Using fax polling no 08765 93 02 77 95 00 S Current Product Information leaflets and downloads which you may find useful for your product are available On the Internet at http www ad siemens de csi net Via the Bulletin Board System BBS in Nuremberg SIMATIC Customer Support Mailbox under the number 49 911 895 7100 To access the mailbox use a modem with V 34 28 8 Kbps capability with the following s...

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

Страница 146: ...e addressed by an AS i master are known as AS i slaves AS i slaves are distinguished by their design 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...

Страница 147: ...AS i Master C79000 G8976 C142 02 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 ...

Страница 148: ...Glossary Glossary 4 SIMATIC NET CP 243 2 AS i Master C79000 G8976 C142 02 ...

Страница 149: ... Get_AS i_Slave_Status 5 27 Get_Extended_Total_Configuration 5 32 Get_LPF 5 53 Get_LPS Get_LAS Get_LDS Get_Flags 5 29 master 5 1 Read_AS i_Slave_Diagnostic_String 5 57 Read_AS i_Slave_I O 5 52 Read_AS i_Slave_ID 5 48 Read_AS i_Slave_ID_String 5 56 Read_AS i_Slave_ID1 5 49 Read_AS i_Slave_ID2 5 51 Read_AS i_Slave_Parameter_String 5 55 Read_Data_and_Delta_List 5 58 Read_Extended_Actual_Configuration...

Страница 150: ...odule 2 8 Input register 2 7 2 11 Installation 1 6 L LED 1 11 1 12 row 1 7 N Noise immunity grounding 1 2 O Output register 2 7 2 12 P PICS A 1 Power supply 1 5 1 8 1 10 Power supply unit 1 2 Problems 6 1 PROFIBUS DP master available master functions A 1 Protected mode 1 14 1 16 S Slave display 1 14 example of 1 15 Standard rail 1 6 Status byte 2 11 Status display 1 12 STEP 7 Micro 3 7 3 15 T Tech...

Отзывы: