Preface Contents SIMATIC NET CP 243-2 AS-Interface Master Technical Description and Installation Instructions 1 Interface to the User Program in the S7-200 CPU 2 Access to the Data of the AS-i Slaves 3 Signaling Errors and Diagnostics in the User Program 4 Command Interface Manual Eliminating Problems / Error Displays 5 6 Appendix AS-Interface AS-Interface Protocol Implementation Conformance Statements A References B Note on the CE Mark C Support and Training D Industrial Ethernet G
Safety Guidelines This manual contains notices which you should observe to ensure your own personal safety, as well as to protect the product and connected equipment. These notices are highlighted in the manual by a warning triangle and are marked as follows according to the level of danger: ! ! ! Danger indicates that death, severe personal injury or substantial property damage will result if proper precautions are not taken.
Preface Purpose of the Manual This manual supports you when using the CP 243-2 module. It explains how to access AS-Interface actuators and AS-Interface sensors from an S7-22x CPU via this module. We recommend the following procedure when... ...You want an overall picture of the AS-Interface. – First read the ‘AS-Interface Introduction and Basic Information’ manual (not part of this documentation package).
Preface ii SIMATIC NET CP 243-2 AS-i Master C79000-G8976-C142/02
Contents 1 2 3 Technical Description and Installation Instructions . . . . . . . . . . . . . . . . . . . . . . . 1-1 1.1 General Notes on Operation – Safety Warnings . . . . . . . . . . . . . . . . . . . . . 1-2 1.2 Uses of the Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 1.3 Technical Specifications of the Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5 1.4 Installing the Module . . . . . . . . . . . . . . . . . .
Contents 4 5 6 iv Signaling Errors and Diagnostics in the User Program . . . . . . . . . . . . . . . . . . . . 4-1 4.1 Signaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 4.2 Example: Reading the Delta List . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3 Command Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1 5.
Contents 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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Contents vi SIMATIC NET CP 243-2 AS-i Master C79000-G8976-C142/02
Technical Description and Installation Instructions 1 This chapter outlines the basic functions of the CP 243-2 and explains how the module is installed and started up.
Technical Description and Installation Instructions 1.1 ! ! ! General Notes on Operation – Safety Warnings Caution When handling and installing the CP 243-2, make sure that you keep to the ESD guidelines. The CP 243-2 must only be connected when the AS-i power supply unit is turned off. Caution Noise immunity/grounding To ensure the noise immunity of the CP 243-2, the CP 243-2 and the AS-i power supply unit must be correctly grounded.
Technical Description and Installation Instructions 1.2 Uses of the Module DP Slave and AS-i Master The CP 243-2 module can be operated in the S7-200 programmable controller. It allows the attachment of an S7-200 to the AS-Interface (as AS-i master). Both interfaces can be used independent of each other.
Technical Description and Installation Instructions Components Supplied The CP 243-2 product includes the following components: CP 243-2 Product information bulletin on the CP 243-2 1-4 SIMATIC NET CP 243-2 AS-i Master C79000-G8976-C142/02
Technical Description and Installation Instructions 1.
Technical Description and Installation Instructions 1.4 Installing the Module Slots in the S7-200 The CP 243-2 can be inserted in all slots for expansion modules in the S7-200 programmable controller (CPUs 22x).
Technical Description and Installation Instructions 1.5 Front Panel – Access to all Functions Connection, Display and Control Elements On the front panel, you have 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.
Technical Description and Installation Instructions 1.6 Terminal Block Connections The CP 243-2 has the following connections: Two connections to the AS-i cable (bridged internally) One connection for functional ground The terminals are located under the cover of the front panel of the CP 243-2. AS-i cables Figure 1-3 Functional ground 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.
Technical Description and Installation Instructions Note Functional ground (terminal ) 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.
Technical Description and Installation Instructions 1.7 Modes of the CP 243-2 Standard Operation In this type of operation, the user program accesses the user data of the AS-i slaves and the diagnostic data of the CP 243-2. Programming is simple and this type of operation is adequate for the majority of automation 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.
Technical Description and Installation Instructions 1.8 Displays and Operator Controls Changing the Display Status – DISPLAY Button You can change between the status display (basic status), 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. In the slave display, the slaves on the AS-Interface are displayed in groups of 5 slaves.
Technical Description and Installation Instructions 1.8.1 Status Display Interpreting the Status Display The status display is active when no group LEDs are lit. The status display is the default display in the basic status of the CP 243-2. Meaning of the LEDs The LEDs have the following meaning: Table 1-2 LED (color) CM (yellow) Status Configuration Mode Meaning This displays the operating mode of the CP 243-2.
Technical Description and Installation Instructions Table 1-2 , continued LED (color) SF (red) Status System error Meaning 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.
Technical Description and Installation Instructions 1.8.2 Slave Display Interpreting the Slave Display Status You can switch over to the slave display mode used by pressing the DISPLAY button. You switch from group to group by pressing the DISPLAY button again: The slave display is active when at least one group LED is lit. Characteristics of the Slave Display If the CP 243-2 is in the configuration mode, all detected AS-i slaves are displayed.
Technical Description and Installation Instructions Example of a Slave Display From the display shown below, you can obtain the following information: The 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.
Technical Description and Installation Instructions 1.9 Configuring the AS-Interface with the SET Button Interpreting the Display Status The CP 243-2 distinguishes between two operating modes on the AS-Interface: Configuration mode Protected mode Pressing the SET button changes the operating mode. Note The SET button is only effective when the bit PLC_RUN = 0 is set in the control byte of the CP 243-2. This is always the case when the S7-22x CPU is in the STOP mode.
Technical Description and Installation Instructions Note Changing from the configuration mode to the protected mode is only possible when there is no 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. Preparing to Configure Make sure that the following situation applies: The S7-22x CPU must be set to STOP (PLC_RUN=0).
Technical Description and Installation Instructions 1-18 SIMATIC NET CP 243-2 AS-i Master C79000-G8976-C142/02
Interface to the User Program in the S7-200 CPU 2 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.
Interface to the User Program in the S7-200 CPU 2.
Interface to the User Program in the S7-200 CPU Analog Module The analog module occupies 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.
Interface to the User Program in the S7-200 CPU 2.2 Addressing the CP 243-2 in the S7-200 CPU Address Areas The start addresses of the address areas are determined by the following: The type of S7-200 CPU being used The slot of the CP 243-2 in the 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.
Interface to the User Program in the S7-200 CPU Example of a CPU 224 and a CP 243-2 Inserted Directly Beside the CPU CPU 224 CP 243-2 14 DI 10 DO 8DI 8 DO 8AI 8AO I0.0 I0.1 I0.2 I0.3 I0.4 I0.5 I0.6 I0.7 Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 Q0.6 Q0.7 I2.0 I2.1 I2.2 I2.3 I2.4 I2.5 I2.6 I2.7 Q2.0 Q2.1 Q2.2 Q2.3 Q2.4 Q2.5 Q2.6 Q2.7 AIW0 AIW2 AIW4 AIW6 AIW8 AIW10 AIW12 AIW14 AQW0 AQW2 AQW4 AQW6 AQW8 AQW10 AQW12 AQW14 I1.0 I1.1 I1.2 I1.3 I1.4 I1.5 Q1.0 Q1.
Interface to the User Program in the S7-200 CPU Example of a CPU 224, an 8DI Module, a 3AI/1AO Module and a CP 243-2 CPU 224 2-6 Module Module CP 243-2 14DI 10 DO 8DI 3AI 1AO 8DI 8 DO 8AI 8AO I0.0 I0.1 I0.2 I0.3 I0.4 I0.5 I0.6 I0.7 Q0.0 Q0.1 Q0.2 Q0.3 Q0.4 Q0.5 Q0.6 Q0.7 I2.0 I2.1 I2.2 I2.3 I2.4 I2.5 I2.6 I2.7 AIW0 AIW2 AIW4 AQW0 I3.0 I3.1 I3.2 I3.3 I3.4 I3.5 I3.6 I3.7 Q2.0 Q2.1 Q2.2 Q2.3 Q2.4 Q2.5 Q2.6 Q2.
Interface to the User Program in the S7-200 CPU 2.
Interface to the User Program in the S7-200 CPU 2.3.1 Identification Register in the Digital Module Meaning The identification register signals the I/O module identifier to indicate the existence of an 8DI/8DO digital module with the value specified 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/.
Interface to the User Program in the S7-200 CPU 2.3.2 Error Register 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”.
Interface to the User Program in the S7-200 CPU 2.3.3 Status Byte (Input Register 8DI) Meaning for the User Program This register shows the status of the CP 243-2 relative to the AS-i master interface. Structure of the Status Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 0 ASI_RESP 0 0 0 0 Bit 1 Bit 0 CP_READY ASI_MODE Description of the Bits Table 2-1 Bit Value ASI_MODE 0 The CP 243-2 is in the protected mode. 1 The CP 243-2 is in the configuration mode.
Interface to the User Program in the S7-200 CPU 2.3.4 Control Byte (Output Register 8DO) Meaning for the User Program The user program controls the data exchange with the CP 243-2 using this register. Structure of the Control Byte Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 PLC_RUN ASI_COM BS5 BS4 BS3 BS2 BS1 BS0 Description of the Bits Table 2-2 Bit Value BS0..BS5 0 ... 63 dec.
Interface to the User Program in the S7-200 CPU 2.
Interface to the User Program in the S7-200 CPU 2.4.1 Identification Register in the Analog Module Meaning The identification register signals the I/O module identifier to indicate the existence of an 8AI/8AO analog module with the value specified 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/.
Interface to the User Program in the S7-200 CPU 2.4.2 Error Register in the Analog Module Meaning for the User Program With this register, the CP 243-2 signals errors to the user program.
Interface to the User Program in the S7-200 CPU Example 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.
Interface to the User Program in the S7-200 CPU 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.
Interface to the User Program in the S7-200 CPU BS5 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ! BS4 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 BS3 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 BS2 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 BS1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 BS0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
Interface to the User Program in the S7-200 CPU 2.5.1 Analog Input Area Assignment of the Input Areas The input area of the analog module of the CP 243-2 is mapped to the analog inputs of the user program using bank selection as shown below: S7-200 CPU Analog inputs CP 243-2 Bank select bits BS5...BS0 8 AIW e.g. AIW0..
Interface to the User Program in the S7-200 CPU Bank 1: Diagnostics on the AS-Interface The delta list of the AS-i slaves is indicated in this bank. The delta list contains deviations of the existing AS-i slaves from the configuration on the CP 243-2. A set bit can indicate the following: Missing slaves Extra slaves (not in the configuration) Slaves with incorrect I0/ID coding The delta list is updated both in the configuration and in the protected mode.
Interface to the User Program in the S7-200 CPU 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.
Interface to the User Program in the S7-200 CPU 2.5.2 Analog Output Area Assignment of the Output Areas The output area of the analog module of the CP 243-2 is mapped to the analog outputs of the user program using bank selection as shown below: S7-200 CPU Analog outputs CP 243-2 Bank select bits BS5...BS0 8 AIW e.g. AIW0..
Interface to the User Program in the S7-200 CPU Banks 2–15: Command data on the AS-Interface Via this area, you can store command calls on the CP 243-2. The data structures and codes used are described in Section 5.2. The number of banks used depends on the particular command. Banks 16–30: Reserved area These areas are reserved for later expansions and cannot be used.
Access to the Data of the AS-i Slaves 3 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.
Access to the Data of the AS-i Slaves 3.1 Access to the Binary Data of the AS-i Slaves 3.1.1 Addressing the AS-i Slaves in the User Program Requirements Before you can access the I/O data of the AS-i slaves, the following requirements must be met: Deactivate the filtering of the analog 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 Data of the AS-i Slaves Assignment of the AS-i Input Data of the Standard or A Slaves (Bank 0 in the Analog Input Area of the CP) Bank Byte no.
Access to the Data of the AS-i Slaves Assignment of the AS-i Input Data of the B Slaves (Bank 31 in the Analog Input Direction of the CP) Bank Byte no.
Access to the Data of the AS-i Slaves Data Exchange in the STOP Mode of the S7-22x CPU In the STOP mode, the S7-22x CPU sets bit PLC_RUN in the digital control area 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”.
Access to the Data of the AS-i Slaves Example Figure 3-1 shows an example of the CP 243-2 addressing four AS-i slaves. In the example, m = 0 is the start address for the input data and n = 0 is the start address for the output data. The bits relevant for the user program (existing AS-i slaves) are shown on a gray background. The bits on a white background are irrelevant for the user program. CP 243-2 16 output bytes 16 input bytes Slave 1 0 Slave 2 1 Bit 3 Bit 2 . . .
Access to the Data of the AS-i Slaves 3.1.2 Access to the AS-i User Data Data Access with STEP 7 Micro To access the binary data of the slaves, you use the analog transfer commands of the STEP 7 Micro/WIN32 programming language. Example If you want to access individual bits of the slave data, you can use the method shown in the following sample program. The example created with STEP 7 Micro/WIN32 is valid for a CPU 222 with a CP 243-2 plugged in directly beside it: OB1 (STL) NETWORK 1 LD SM0.1 SI Q1.
Access to the Data of the AS-i Slaves 3.2 Access to the Analog Data of the AS-i Slaves (Slaves complying with Profile 7.3 or 7.4) 3.2.1 Addressing the Analog AS-i Slaves in the User Program Requirements Before you can access the I/O data of the AS-i slaves, the following requirements must be met: Deactivate the filtering of the analog inputs for the CP 243–2 in the system data block of the S7–200 CPU.
Access to the Data of the AS-i Slaves Bank 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 33 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 35 36 Byte no.
Access to the Data of the AS-i Slaves Bank 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 37 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 38 39 39 3-10 Byte no.
Access to the Data of the AS-i Slaves Bank 39 39 39 39 39 39 39 39 39 39 39 39 39 39 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 42 42 42 Byte no.
Access to the Data of the AS-i Slaves Bank 42 42 42 42 42 42 42 42 42 42 42 42 42 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 44 45 45 45 45 3-12 Byte no.
Access to the Data of the AS-i Slaves Bank 45 45 45 45 45 45 45 45 45 45 45 45 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 Byte no.
Access to the Data of the AS-i Slaves Representation of the Analog Values The analog values must be interpreted complying with slave profile 7.3 or 7.4 as 16-bit values in two’s complement. For further information about the range of values, measuring range, accuracy etc., refer to the relevant documentation of the analog slaves.
Access to the Data of the AS-i Slaves 3.2.2 Access to the AS-i Analog Data Data Access with STEP 7 Micro You access the analog data of the AS-i slaves using the analog commands of the “STEP 7 Micro/WIN32” programming language. Example The following example shown in STL is valid for a CPU 222 with a CP 243-2 plugged 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 SI Q1.
Access to the Data of the AS-i Slaves 3-16 SIMATIC NET CP 243-2 AS-i Master C79000-G8976-C142/02
Signaling Errors and Diagnostics in the User Program 4 This chapter explains which errors of the CP 243-2 are signaled and how to read out the Delta list.
Signaling Errors and Diagnostics in the User Program 4.1 Signaling Error Signaling If the CP 243-2 recognizes errors on the AS-Interface (AS-i slave failure, AS-i Power Failure) during operation, it signals these errors by resetting the input data of the affected slave and by setting the corresponding bit in the error register in the SM area (Special Memory). The SM byte addresses depend on the slot of the CP 243-2.
Signaling Errors and Diagnostics in the User Program 4.2 Example: Reading the Delta List STL Example The following example in STL applies to a CPU 222 with a CP 243-2 plugged in directly beside it: If an AS-i configuration error occurs in the protected mode, the CP 243-2 sets bits SM 9.0 and SM 11.0 (both bits provide the user with the same information: AS-i configuration errors).
Signaling Errors and Diagnostics in the User Program 4-4 SIMATIC NET CP 243-2 AS-i Master C79000-G8976-C142/02
Command Interface 5 Via the command interface, you can control the response of the AS-i master completely 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.).
Command Interface 5.1 Command interface of the CP 243-2 Command Buffer and Response Buffer Command calls are made to the CP 243-2 from within the user program. You specify the command call in a command buffer and start the job. The command buffer is in the analog output area of the CP 243-2 (for example starting at AQW0 if the CP 243-2 is plugged in directly beside an S7-200 CPU). Depending on the command to be executed (see Section 5.
Command Interface Command Sequence The diagram below shows the following: How to execute commands in the user program How the CP 243-2 reacts to a command AS-i master (user program) CP 243-2 (reaction to command) Set command parameter in the analog output area Initial status Initial status ASI_COM bit = 0 ASI_RESP bit = 0 ASI_COM bit = 0 ASI_RESP bit = 0 Start command Set ASI_COM bit = 1 Wait for response Receives command Executes command ASI_RESP bit = ? Response data valid Signals command ex
Command Interface A command started by the CP 243-2 is executed completely regardless of the state of the ASI_COM bit. The ASI_RESP bit is only reset by the CP 243-2 when the user program has set the ASI_COM bit to “0”. Example The following example in STL applies to a CPU 222 with a CP 243-2 plugged in directly beside it: The example shows the sequence of the Read_Lists_and_Flags command. Command execution is triggered by the positive edge at input 0.0.
Command Interface Table 5-2 , continued SI Q1.0, 1 BMW VW748, AQW0, 8 RI Q1.0, 1 SI Q1.1, 1 BMW VW764, AQW0, 8 SI Q1.0, 1 BMW VW780, AQW0, 8 RI Q1.0, 3 SI Q1.3, 1 BMW VW796, AQW0, 8 SI Q1.0, 1 BMW VW812, AQW0, 8 RI Q1.0, 1 SI Q1.1, 1 BMW VW828, AQW0, 8 SI Q1.0, 1 BMW VW844, AQW0, 8 RI Q1.0, 2 SI Q1.2, 1 BMW VW860, AQW0, 8 SI Q1.0, 1 BMW VW876, AQW0, 8 RI Q1.0, 1 SI Q1.1, 1 BMW VW892, AQW0, 8 SI Q1.0, 1 BMW VW908, AQW0, 8 RI Q1.0,6 SI Q1.
Command Interface Table 5-2 , continued SI Q1.0, 1 BMW AIW0, VW512, 8 RI Q1.0, 1 SI Q1.1, 1 BMW AIW0, VW528, 8 SI Q1.0, 1 BMW AIW0, VW544, 8 RI Q1.0, 2 SI Q1.2, 1 BMW AIW0, VW560, 8 SI Q1.0, 1 BMW AIW0, VW576, 8 RI Q1.0, 1 SI Q1.1, 1 BMW AIW0, VW592, 8 SI Q1.0, 1 BMW AIW0, VW608, 8 RI Q1.0, 6 RI Q1.
Command Interface 5.2 Description of the AS-i Commands Overview The following sections describe the AS-i command calls that can be sent by the S7-200 system to the CP 243-2. With these command calls, the CP 243-2 provides the complete functionality of the M1 master profile of the AS-i master specification. In addition to this, the CP 243-2 can be configured completely using command calls by the S7-200 system.
Command Interface Table 5-3 , continued Name Return Coding Error record of the AS-i slave 0FH Get_LPS, Get_LAS, Get_LDS, Get_Flags –> described in Section 5.2.16 LDS, LAS, LPS, flags 30H Get_Extended_Total_Configuration –> described in Section 5.2.17 Actual configuration data actual parameters LAS, flags 39H Get_AS-i_Slave_Status –> described in Section 5.2.15 Parameter Slave address Store_Extended_Total_Configuration –> described in Section 5.2.
Command Interface General Structure of the Command Buffer Depending on the command, the command buffer can extend over a maximum of 14 banks (bank 2–15 in the analog module) with a maximum of 224 bytes. In the following description of the command interface, the start address 0 is assumed for the analog input module of the CP to simplify byte numbering.
Command Interface General Structure of the Response Buffer Depending on the command, the response buffer can extend over a maximum of 14 banks (bank 2–15 in the analog module) and a maximum of 224 bytes. In the following description of the command interface, the start address 0 is assumed for the analog output module of the CP to simplify byte numbering.
Command Interface Command Status Whether or not the job was executed correctly or errors occurred is signaled in the command status of the response buffer in byte 1. Table 5-6 Meaning Value 00 H Job completed without error 81 H The AS-i slave address is incorrect 82 H The AS-i slave is not activated (not in LAS). 83 H Error on AS-Interface. 84 H Command not permitted in the current status of the AS-i master. 85 H An AS-i slave with address 0 exists.
Command Interface General Structure of the AS-i Slave Address If an AS-i slave is addressed in a command or in a reply, the address is structured as shown below: Bit 7 Bit 5 Bit 4 S bit Bit 3 Bit 0 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 5-12 SIMATIC NET CP 243-2 AS-i Master C79000-G8976-C1
Command Interface 5.2.1 Set_Permanent_Parameter Purpose With this call, a parameter value for the specified AS-i slave is transferred to the CP 243-2 . The value is saved permanently as a configured value. The configured parameter is not transferred immediately to the AS-i slave by the CP 243-2. The configured parameter value is only transferred when the AS-i slave is activated after turning on the power supply on the CP 243-2.
Command Interface 5.2.2 Get_Permanent_Parameter Purpose With this call, a slave-specific parameter value stored on the EEPROM of the CP 243-2 is read.
Command Interface 5.2.3 Write_Parameter Purpose of the Command The AS-i parameter value transferred with the command is passed on to the addressed AS-i slave. The parameter is stored on the CP 243-2 only temporarily and is not entered as a configured parameter in the EEPROM! The AS-i slave transfers its current parameter value in the reply (parameter echo). This can deviate from the value that has just been written according to the AS-i master specification (/2/).
Command Interface 5.2.4 Read_Parameter Purpose This call returns the current parameter value (actual parameter) of a slave. This value must not be confused with the parameter echo that is supplied by the AS-i slave as a reply to the write_parameter job.
Command Interface 5.2.5 Store_Actual_Parameters Purpose This call overwrites the permanently stored configured parameters with the actual parameters, in other words the parameters 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.
Command Interface 5.2.6 Set_Extended_Permanent_Configuration Purpose This call sets the following configuration data for the addressed AS-i slave. I/O configuration ID code Extended ID1 code Extended ID2 code The configuration data are stored permanently on the EEPROM of the CP 243-2 and are used as the expected configuration by the AS-i master in the protected mode. The configuration data are specified by the manufacturer of the AS-i slave. The meaning of the configuration data is described in /2/.
Command Interface 5.2.7 Get_Extended_Permanent_Configuration Purpose This call reads the following configuration data (configured data) of an addressed AS-i slave stored on the EEPROM of the AS-i master. I/O configuration ID code Extended ID1 code Extended ID2 code The configuration data are specified by the manufacturer of the AS-i slave. The meaning of the configuration data is described in /2/.
Command Interface 5.2.8 Store_Actual_Configuration Purpose of the Command With this call, the (actual) configuration data (I/O configuration, ID code, extended ID1 code and extended ID2 code) of all AS-i slaves are stored permanently in the EEPROM as the (expected) configuration data. The list of activated AS-i slaves (LAS) is adopted in the list of permanent AS-i slaves (LPS).
Command Interface 5.2.9 Get_Extended_Actual_Configuration Purpose of the Command With this call, the following configuration data of an addressed AS-i slave obtained by the AS-i master on the AS-Interface are read. I/O configuration ID code Extended ID1 code Extended ID2 code The configuration data are specified by the manufacturer of the AS-i slave. The meaning of the configuration data is described in /2/.
Command Interface 5.2.10 Set_Extended_LPS Purpose With this call, the list of configured AS-i slaves is transferred for permanent storage in the EEPROM. 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.
Command Interface 5.2.11 Set_Offline_Mode Purpose This call switches between the online and offline mode. The online mode is the normal situation for the CP 243-2. Here, the following jobs are processed cyclically: During the data exchange phase, the fields of the output data are transferred to the slave outputs for all slaves in the LAS. The addressed slaves transfer the values of the slave inputs to the master when the transfer was free of errors.
Command Interface 5.2.12 Select_Autoprogramming Purpose This call can enable or disable the “automatic address programming” function (see also Section 6.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.
Command Interface 5.2.13 Set_Operation_Mode Purpose of the Command With this call, you can select between the configuration mode and the protected mode. In the protected mode, only AS-i slaves are activated that are entered in the LPS and whose expected and actual configurations match, in other words when the I/O configuration and ID codes of the detected AS-i slaves are identical to the configured values. In the configuration mode, all detected AS-i slaves (except for slave address “0”) are activated.
Command Interface 5.2.14 Change_AS-i_Slave_Address Purpose of the Command With this call, the address of an AS-i slave can be modified. This call is mainly used to add a new AS-i slave with the default address 0 to the AS-Interface. In this case, the address is changed from the old slave address (0) to the new slave address. This change can only be made when the following conditions are fulfilled: 1. A slave with the “old slave address” exists. 2.
Command Interface 5.2.15 Get_AS-i_Slave_Status Purpose With this call, the status register of the addressed AS-i slave can be read out. Depending on the type of AS-i slave, the flags of the status register have the following meaning: Status Bit AS-i slave complying with standard 2.0 S0 Address volatile S1 This flag is set when the internal AS-i slave routine for permanent storage of the AS-i slave address is active. This can take up to 15 ms and must not be interrupted by a further addressing call.
Command Interface Structure of the Job Data in the Receive Buffer Bank Byte Meaning Bit 7 5-28 2 0 2 1 2 2 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Echo of the command number: 0F H Command status reserved S3 S2 S1 S0 SIMATIC NET CP 243-2 AS-i Master C79000-G8976-C142/02
Command Interface 5.2.
Command Interface 2 11 LDS slave 8 LDS slave 16 LDS slave 9 LDS slave 17 LDS slave 10 LDS slave 18 LDS slave 11 LDS slave 19 LDS slave 12 LDS slave 20 LDS slave 13 LDS slave 21 LDS slave 14 LDS slave 22 LDS slave 15 LDS slave 23 2 12 2 13 LDS slave 24 reserv.
Command Interface Meaning of the Flags OFFLINE_READY The flag is set when the offline phase is active. APF This flag is set when the voltage on the AS-i cable is too low. NORMAL_MODE This flag is set when the CP 243-2 is in the normal mode. CONFIG_MODE The flag is set in the configuration mode and reset in the protected mode. AUTO_ADDR_AVAIL This flag is set when the automatic address programming can be executed (in other words exactly one slave is currently out of operation).
Command Interface 5.2.17 Get_Extended_Total_Configuration Purpose With this command, the following data are read from the CP 243-2: The list of active slaves (LAS). This indicates which of the connected slaves are activated. The current configuration data of the connected slaves (I/O configuration and ID code). The current parameters of the slaves (actual parameters). The current flags.
Command Interface 2 8 2 9 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 LAS slave 16B LAS slave 24B SIMATIC NET CP 243-2 AS-i Master C79000-G8976-C142/02 LAS LAS slave slave 17B 18B LAS LAS slave slave 25B 26B ID_CODE slave 0 Ext ID1 slave 0 ID_CODE slave 1 Ext ID1 slave 1 ID_CODE slave 2 Ext ID1 slave 2 ID_CODE slave 3 Ext ID1 slave 3 ID_CODE slave 4 E
Command Interface 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 5-34 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 ID_CODE slave 22 Ext ID1 slave 22 ID_CODE slave 23 Ext ID1 slave 23 ID_CODE slave 24 Ext ID1 slave 24 ID_CODE slave 25 Ext ID1 slave 25 ID_CODE slave 26 Ext ID1 slave 26 ID_CODE slave 27 Ext ID1 slave 27 ID_CODE slave 28 Ext ID1 slave 28 ID_CODE slave 29 Ext ID1 slav
Command Interface 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 11 11 11 11 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 ID_CODE slave 15B Ext ID1 slave 15B ID_CODE slave 16B Ext ID1 slave 16B ID_CODE slave 17B Ext ID1 slave 17B ID_CODE slave 18B Ext ID1 slave 18B ID_CODE slave 19B Ext ID1 slave 19B ID_CODE slave 20B Ext ID1 slave 20B ID_CODE slave 21B Ext ID1 slave
Command Interface 11 11 11 11 11 11 12 12 12 12 12 12 12 12 12 12 12 12 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 reserved Parameter slave 2B Parameter slave 4B Parameter slave 6B Parameter slave 8B Parameter slave 10B Parameter slave 12B Parameter slave 14B Parameter slave 16B Parameter slave 18B Parameter slave 20B Parameter slave 22B Parameter slave 24B Parameter slave 26B Parameter slave 28B Parameter slave 30B Parameter slave 1B Parameter slave 3B Parameter slave 5B Parameter slave 7B Parameter s
Command Interface 5.2.18 Store_Extended_Total_Configuration Purpose With this call, the required total configuration of the AS interface is transferred to the AS-i master and stored permanently in the EEPROM as the expected configuration. This configures the CP 243-2. The following data are transferred: The list of configured slaves specifying the slaves that can be activated by the CP 243-2 in the protected mode.
Command Interface 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5-38 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 ID_CODE slave 0 Ext ID1 Slave 0 ID_CODE slave 1 Ext ID1 Slave 1 ID_CODE slave 2 Ext ID1 Slave 2 ID_CODE slave 3 Ext ID1 Slave 3 ID_CODE slave 4 Ext ID1 Slave 4 ID_CODE slave 5 Ext ID1 Slave 5 ID_CODE slave 6 Ext ID1 Slave 6 ID_CODE slave 7 Ext ID1 Slave 7 ID_CODE s
Command Interface 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 ID_CODE slave 25 Ext ID1 Slave 25 ID_CODE slave 26 Ext ID1 Slave 26 ID_CODE slave 27 Ext ID1 Slave 27 ID_CODE slave 28 Ext ID1 Slave 28 ID_CODE slave 29 Ext ID1 Slave 29 ID_CODE slave 30 Ext ID1 Slave 30 ID_CODE slave 31 Ext ID1 Slave 31 reserved reserved ID_CODE slave 1
Command Interface 8 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 11 5-40 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ID_CODE slave 18B Ext ID1 Slave 18B ID_CODE slave 19B Ext ID1 Slave 19B ID_CODE slave 20B Ext ID1 Slave 20B ID_CODE slave 21B Ext ID1 Slave 21B ID_CODE slave 22B Ext ID1 Slave 22B ID_CODE slave 23B Ext ID1 Slave 23B ID_CODE slave 24B
Command Interface 12 12 12 12 12 12 12 12 12 12 12 12 0 1 2 3 4 5 6 7 8 9 10 11 Parameter slave 12B Parameter slave 14B Parameter slave 16B Parameter slave 18B Parameter slave 20B Parameter slave 22B Parameter slave 24B Parameter slave 26B Parameter slave 28B Parameter slave 30B Parameter slave 13B Parameter slave 15B Parameter slave 17B Parameter slave 19B Parameter slave 21B Parameter slave 23B Parameter slave 25B Parameter slave 27B Parameter slave 29B Parameter slave 31B Flag 1 Flag 2 Flag 1 Flag
Command Interface Structure of the Job Data in the Receive Buffer 5-42 Bank Byte Meaning 2 0 Echo of the command number: 3A H 2 1 Command status SIMATIC NET CP 243-2 AS-i Master C79000-G8976-C142/02
Command Interface 5.2.19 Write_Extended_Parameter_List Purpose With this command, the parameters for all slaves are transferred to the CP 243-2. The CP 243-2 transfers only the parameters that have changed, in other words that deviate from the current actual parameters to the AS-i slaves.
Command Interface Structure of the Job Data in the Receive Buffer 5-44 Bank Byte Meaning 1 1 Echo of the command number: 3C H 2 2 Command status SIMATIC NET CP 243-2 AS-i Master C79000-G8976-C142/02
Command Interface 5.2.20 Read_Extended_Parameter_Echo_List Purpose When the parameters are transferred to the AS-i slaves, they return “echo values” as the response. The read parameter echo list call reads out the echo values of all AS-i slaves.
Command Interface 3 3 3 3 3 3 3 4 4 5-46 9 10 11 12 13 14 15 0 1 Par echo slave 14B Par echo slave 16B Par echo slave 18B Par echo slave 20B Par echo slave 22B Par echo slave 24B Par echo slave 26B Par echo slave 28B Par echo slave 30B Parameters slave 15B Par echo slave 17B Par echo slave 19B Par echo slave 21B Parameters slave 23B Par echo slave 25B Par echo slave 27B Par echo slave 29B Parameters slave 31B SIMATIC NET CP 243-2 AS-i Master C79000-G8976-C142/02
Command Interface 5.2.21 Read_Version_ID Purpose With this call, the version ID of the CP 243-2 firmware is read out.
Command Interface 5.2.22 Read_AS-i_Slave_ID Purpose With this call, the ID code of an AS-i slave can be read out directly over the AS-i cable. The call is intended for diagnostic purposes and is not required in the normal master mode.
Command Interface 5.2.23 Read_AS-i_Slave_ID1 Purpose With this call, the ID1 code of an AS-i slave can be read out directly over the AS-i cable. The call is intended for diagnostic purposes and is not required in the normal master mode.
Command Interface 5.2.24 Write_AS-i_Slave_Extended_ID1 Purpose With this call, the extended ID1 code of an AS-i slave with address “0” can be written directly over the AS-i cable. The call is intended for diagnostic purposes and is not required in the normal master mode. The AS-i master passes on the extended ID1 code to the AS-i slave without any plausibility check.
Command Interface 5.2.25 Read_AS-i_Slave_ID2 Purpose With this call, the ID2 code of an AS-i slave can be read out directly over the AS-i cable. The call is intended for diagnostic purposes and is not required in the normal master mode.
Command Interface 5.2.26 Read_AS-i_Slave_I/O Purpose With this call, the I/O configuration of an AS-i slave can be read out directly over the AS-i cable. The call is intended for diagnostic purposes and is not required in the normal master mode.
Command Interface 5.2.27 Get_LPF Purpose With this call, the list of peripheral faults (LPF) signaled by the AS-i slaves is read out from the AS-i master. The LPF is updated cyclically by the AS-i master. Whether and when as AS-i slave signals faults of the attached peripherals (for example wire break) can be found in the description of the AS-i slave..
Command Interface 5.2.28 Write_AS-i_Slave_Parameter_String Purpose With this call, a parameter string complying with AS-i slave profile 7.4 can be sent to the AS-i master that passes on the string to the AS-i slave address specified in the send buffer. With this call, a send buffer with a maximum of 223 bytes is transferred to the AS-i master. The actual number of parameter bytes to be sent to the AS-i slave is calculated by the AS-i master from byte 2 of the send buffer (number of parameter bytes).
Command Interface 5.2.29 Read_AS-i_Slave_Parameter_String Purpose With this call, a parameter string complying with AS-i slave profile 7.4 can be read from the AS-i slave with the AS-i slave address specified in the send buffer. The AS-i master supplies up to 223 bytes of reply data. The actual number of parameter bytes sent by the AS-i slave is signaled by the AS-i master in byte 2 of the receive buffer (number of parameter bytes).
Command Interface 5.2.30 Read_AS-i_Slave_ID_String Purpose With this call, an identification string complying with the AS-i slave profile 7.4 can be read from the AS-i slave with the AS-i slave address specified in the send buffer. The AS-i master always supplies 223 bytes of reply data. The actual number of ID bytes sent by the AS-i slave is signaled by the AS-i master in byte 2 of the receive buffer (number of ID bytes).
Command Interface 5.2.31 Read_AS-i_Slave_Diagnostic_String Purpose With this call, an diagnostic string complying with the AS-i slave profile 7.4 can be read from the AS-i slave with the AS-i slave address specified in the send buffer. The AS-i master supplies up to 223 bytes of reply data. The number of diagnostic bytes actually sent by the AS-i slave is signaled by the AS-i master in byte 2 of the receive buffer (number of diagnostic bytes).
Command Interface 5.2.32 Read_Data_and_Delta_List Purpose With this call, the AS-i error bits, the input data of the AS-i slaves and the delta list can be read out consistently.
Command Interface 3 3 3 3 4 4 4 12 13 14 15 1 2 3 4 4 4 5 4 6 4 7 4 8 4 9 4 10 Delta slave 7 Delta slave 15 Delta slave 23 Delta slave 31 Delta slave 7B Delta slave 15B Delta slave 23B Delta slave 31B Data slave 20B Data slave 22B Data slave 24B Data slave 26B Data slave 28B Data slave 30B Delta Delta slave 6 slave 5 Delta Delta slave 14 slave 13 Delta Delta slave 22 slave 21 Delta Delta slave 30 slave 29 Delta Delta slave 6B slave 5B Delta Delta slave slave 14B 13B Delta Delta slave slave
Command Interface 5-60 SIMATIC NET CP 243-2 AS-i Master C79000-G8976-C142/02
Dealing with Problems / Error Displays 6 This chapter contains information about special operating states and explains how to deal with errors.
Dealing with Problems / Error Displays 6.1 Replacing a Defective AS-Interface Slave/Automatic Address Programming Simple Replacement of AS-Interface Slaves Using the automatic address programming function, you can replace failed AS-Interface slaves extremely simply. Note Remember that “automatic address programming” is only possible in the following situations: – The CP 243-2 is in the protected mode. – The AUTO_ADDR_ENABLE flag is set to 1. and – Only one AS-Interface slave has failed.
Dealing with Problems / Error Displays 6.2 Error Displays of the CP 243-2 / Remedying Errors The following table lists the possible causes of errors that can occur when operating the CP 243-2 and how to remedy the problem. Table 6-1 Error Displays of the CP 243-2 / Remedying Errors Error APF LED lit SF lights up without pressing the SET button. SF is lit when the SET button is pressed. CER is lit permanently.
Dealing with Problems / Error Displays Table 6-1 Error Displays of the CP 243-2 / Remedying Errors Error Possible Cause The CP 243-2 does not switch The S7-200 CPU is in the “RUN” from the configuration mode to the mode. protected mode. The CP 243-2 does not switch from the protected mode to the configuration mode. Remedy Switch the S7-200 CPU to “STOP”. This sets the PLC_RUN bit to 0. The SET button was not pressed long enough. Press the button for at least 0.5 seconds.
Dealing with Problems / Error Displays Table 6-1 Error Displays of the CP 243-2 / Remedying Errors Error Possible Cause Remedy Automatic address programming is unsuccessful although the “AUP” display is lit. The configuration data (I/O configuration, ID codes) of the replaced AS-Interface slave do not match the values of the original AS-Interface slave. Check whether the correct “replacement slave” was used. Compare the information from the manufacturer about configuration data.
Dealing with Problems / Error Displays 6-6 SIMATIC NET CP 243-2 AS-i Master C79000-G8976-C142/02
AS-Interface Protocol Implementation Conformance Statement (PICS) A PICS for the CP 243-2 Table A-1 Vendor SIEMENS AG Product Name CP 243-2 – AS-Interface Master Order Number 6GK7243-2AX00-0XA0 Version 1 Master Profile M1e Date 31.01.2000 List of Master Functions Available Table A-2 No.
AS-Interface Protocol Implementation Table A-2 , continued No. Function or Call on the Host Interface (symbolic representation) M1 Comment / Function implemented by / Section 10 Status = Store_Actual_Configuration() X By pressing the SET button; or with the command Store_actual_configuration see Section 5.2.4 11 Status, Config = Read_Actual_Configuration(Addr) X Get_Extended_Actual_Configuration / see Section 5.2.9 12 Status = Set_LPS(List31) X Set_LPS / see Section 5.2.
AS-Interface Protocol Implementation Table A-2 , continued No. Function or Call on the Host Interface (symbolic representation) M1 20 Status = Change_Slave_Address(Addr1, Addr2) X Status = Set_Auto_Address_Enable X 21 Comment / Function implemented by / Section see Section 5.2.14 see Section5.2.12 22 Status = 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.
AS-Interface Protocol Implementation How the AS-Interface cycle time depends on the number of connected slaves The following formula is used to calculate the AS-Interface cycle time depending on the number of activated 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.
B References /1/ AS-Interface:The Actuator-Sensor-Interface for Automation Werner Kriesel, O.W. Madelung, Carl Hanser Verlag München Wien 1994 /2/ AS-Interface Complete Specification can be ordered from the ASI Association e.V. Address: AS-International 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.
References /5/ Profibus & AS-Interface Components on the Field Bus Catalog ST PI The catalog can be ordered from your local SIEMENS branch office or distributor. /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”.
C Notes on the CE Mark Product Name CP 243-2 Order no.: 6GK7243-2AX00-0XA0 EU Directive EMC 89/336/EEC The product listed above meets the requirements of the EU directive 89/336/EEC “Electromagnetic Compatibility”.
Notes on the CE Mark C-2 SIMATIC NET CP 243-2 AS-i Master C79000-G8976-C142/02
D SIMATIC NET – Support and Training SIMATIC Training Center To help you to become familiar with the SIMATIC S7 automation system, we offer a range of courses. Please contact your regional training center or the central training center in D 90327 Nuremberg, Germany. Infoline: Tel. 0180 523 5611 (48 Pfg./min), Fax. 0180 523 5612 Internet: http://www.ad.siemens.de/training E-mail: AD-Training@nbgm.siemens.
SIMATIC NET – Support and Training SIMATIC Premium Hotline (Calls charged, only with SIMATIC Card) Time:Mo.-Fr. 0:00 to 24:00 Phone: +49 (911) 895-7777 Fax: +49 (911) 895-7001 SIMATIC Customer Support Online Services The SIMATIC customer support team provides you with comprehensive additional information on SIMATIC products in its online services: S You can obtain general current information: – On the Internet at http://www.ad.siemens.de/net – Using fax polling no.
Glossary APF AS-i Power Fail. Flag or LED display that indicates that the power supply on the AS-i cable is too low or has failed (for example failure of the AS-i power supply unit). AS-i (AS-Interface) Actuator-sensor interface. A network system for the lowest field area of the automation range. It is suitable for networking sensors and actuators with control devices. (previously: SINEC S1) AS-i A/B slave AS-i A/B slaves use the extended addressing mode.
Glossary AS-i module For the AS-Interface, a module concept has been defined that allows the blocklike linking of AS-i slaves – sensors and actuators – via AS-i modules. The following types of module exist: The active AS-i module with an integrated AS-i chip; using this, up to four conventional sensors and actuators can be connected. The passive AS-i module; this functions as a distributor and provides a connection for up to four sensors and actuators with an integrated AS-i chip.
Glossary 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.
Glossary Glossary-4 SIMATIC NET CP 243-2 AS-i Master C79000-G8976-C142/02
Index Index Command interface, 5-2 Change_AS-i_Slave_Address, 5-26 Addressing command sequence, 5-3 AS-i slaves, 3-2 description of the AS-i commands, 5-7 example, 3-6 functions, 5-2 examples, 2-4 Get_AS-i_Slave_Status, 5-27 the CP 243-2 in the S7-200 CPU, 2-4 Get_Extended_Total_Configuration, 5-32 Analog input and output words, access to, 2-16 Get_LPF, 5-53 Analog input area, 2-18 Get_LPS, Get_LAS, Get_LDS, Get_Flags, Analog module, 2-2, 2-13 5-29 Analog output area, 2-21 master, 5-1 AS–Interface, cycle t
Index E O Error displays, 6-1 Error register, 2-7, 2-13 in the analog module, 2-15 in the digital module, 2-9 Error signaling, 4-2 master, 4-1 ESD guidelines, 1-2 Expansion module, 2-2 Extended mode, 1-10 Output register, 2-7, 2-12 F 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 Front panel, 1-7 S I Identification register, 2-7, 2-13 in the analog module, 2-14 in the digital module, 2-8 In