Home
AS-Interface Master Module CP 342-2
Contents
1. iii 4 2 1 2 Get Permanent_Parameter iii A213 Wite Paraimetet ie ae 4 2 1 4 Read Parameter iii 4 2 1 5 Store A tual Parameters u ssh oinline 4 2 1 6 Set Permanent_Configuration mnn nanna rna nn Ann EA AAAAAAAAAAAAAAAAMAKREEAEEEEEtEzzEznna 4 2 1 7 Get Permanent Configuration anna anna nn A A AAAAAAAAAAAAAAAAKEEEEAEEEEtEEzznzzzznznna 4 2 1 8 Store Actual Configuration n ANAN ANAN ANANN RANKAR KR KEEKEKE 4 2 1 9 Read Actual Configuration Data nanna 4 20 Set IEP Si Contents B8976101 01 4 2 1 11 Set Offlime Mode ainsi 4 2 1 12 Select Autoprogramming iii 4 2 113 Set Operation Mode ai 4 2 1 14 Change Slave AQQFESS ika rik ek 4 2 1 15 Read Slave Stat s a ae 4 2 1 16 Read Lists and Flags Get LPS Get LAS Get LDS Get Flags 4 2 1 17 Read Total Configuration nanna nnm nanna nanna 4 2 1 18 Configuring the Total System 4 2 1 19 Write Parameter LISt iii 4 2 1 20 Read Parameter Echo LISt iii 4 2 1 21 Read Version ID POP 4 2 1 22 Read Slave Status and Delete i 4 2 1 23 Read Slave ID le ai 4 2124 Read Slave lO lola aLaaa 5 Replacing a Defective Slave Automatic Address Programming 6 Error Indicators on the CP 342 2 Dealing withErrors 1 Introduction
2. 81814 000 81814 816 818144 8381 0000 4 0000 Block Data The block length length of the MC7 code and the current number of local bytes used depend on the version of the function The current data can be found in the Block Properties in the STEP 7 program editor Sample Programs The diskette supplied with this manual contains sample programs illustrating the use of FC ASI 3422 4 5 AS i Master Module CP 342 2 B8976101 01 4 2 Interface for AS i Commands The following sections describe the AS i command calls that can be sent by the S7 PLC to the CP 342 2 Using these command calls the CP 342 2 makes available the entire functions of the master profile M1 of the AS i master specification Using command calls the CP 342 2 can also be configured completely by the S7 PLC 4 2 1 Commands Supported by the CP 342 2 For more detailed information about using the jobs refer to the descriptions of the individual jobs in the AS interface Introduction and Basic Information manual the PICS appendix and the detailed descriptions in 1 and 2 The following table contains and overview of the commands available Name Section Parameter Data Returned Code Set Permanent Parameter 4 2 1 1 Slave address parameter Get Permanent Parameter 4 2 1 2 Slave address y parameter optional i i oa Set_Permanent_Configuration 4 2 1 6 Slave address x configuration Get_P
3. 0B82_SUB_NDL_ERR BOOL Sub Module is missing or has error OB82 COMM FAULT BOOL Communication fault OB82 MDL STOP BOOL Module is stopped OB82 WTCH DOG FLT BOOL Watch dog timer stopped module OB82 INT PS FLT BOOL Internal power supplv fault OB82 PRIM BATT FLT BOOL Primarv batterv fault OB82 BCKUP BATT FLT BOOL Backup battery fault 0B82_RESERVED_2 BOOL Reserved for system 0B82_RACK_FLT BOOL Rack fault only for bus interface module 0B82_PROC_FLT BOOL Processor fault 0B82_EPROM_FLT BOOL EPROM fault 0B82_RAM_FLT BOOL RAM fault 0B82_ADU_FLT BOOL ADU fault OB82 FUSE FLT BOOL Fuse fault OB82 HW INTR FLT BOOL Hardware interrupt input fault 0B82_RESERVED_3 BOOL Reserved for system 0B82_DATE_TIME DATE AND TIME Date and time 0B82 started t_request BOOL Trigger for RD_REC t_busy BOOL Busy from RD_REC t return INT Return value from RD REC t laddr WORD Module address END VAR 3 12 B8976101 01 BEGI NETWORK TITLE L 0B82_MDL_ADDR E t_laddr SET ft request loop OP 0 CALL RD REC RE sit request IOID B 16 54 LADDR fit laddr RECNUM B 16 1 RET VAL ft return BUSY t_busy RECORD P M 100 0 BYTI CALL RE_TRIGR A t_busy R t_request JC loop END ORGANIZATION BLOCK 3 13 ro AS i Master Module CP 342 2 The modu
4. 1 CP 342 2 is in the off line status BOOL Hardware fault on the CP internal watchdog BOOL on the CP 342 2 always 0 BOOL on the CP 342 2 always 0 BOOL on the CP 342 2 always 0 BOOL on the CP 342 2 always 0 BOOL on the CP 342 2 always 0 BOOL on the CP 342 2 always 0 BOOL EEPROM of the CP342 2 defective BOOL on the CP 342 2 always 0 BOOL on the CP 342 2 always 0 BOOL on the CP 342 2 always 0 BOOL on the CP 342 2 always 0 3 9 AS i Master Module CP 342 2 B8976101 01 Byte Bit Variable Name Data Type Meaning 11 2 B82 RESERVED 3 BOOL on the CP 342 2 always 0 ts The four bytes described above are entered in the system diagnostic buffer by the PLC operating system if an interrupt occurs 3 4 6 Reading the Diagnostic Data Record DS 1 The CP 342 2 continuously updates a so called delta list in which all the slaves that differ from the configuration in other words missing wrong or not configured but nevertheless existing slaves are indicated Each slave is assigned a bit in the delta list 0 no error 1 error This delta list is part of the diagnostic data record DS1 that can be read out by calling the standard function SFC 59 RD_REC both in the interrupt OB OB82 or at any time in the cyclic program OB1 With the CP 342 2 DS1 always has a length of 11 bytes and is structured as follows Byte 0 to 3 These four bytes contain the so called DSO and correspond to local data bytes 8 to 11 in OB82 see Sectio
5. 2 1 19 Write Parameter List Meaning With this command the parameters for all slaves are transferred to the CP 342 2 The CP 342 2 transfers only the parameters that have changed to the slaves in other words that deviate from the current actual parameters Structure of the job data in the send buffer Bit 7 Bit4 Bit3 Bit 0 Byte 0 Byte 1 NNMI Bye2 Parameter slave 1 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Byte 8 Byte 9 Byte 10 Byte 11 Byte 12 Byte 13 Byte 14 Byte 15 Byte 16 Byte 17 4 23 AS i Master Module CP 342 2 B8976101 01 4 2 1 20 Read Parameter Echo List Meaning When the parameters are transferred to the slave thev return echo values as the response The read parameter echo list call reads out the echo values of all slaves The echo values of a slave originate from the last parameter call sent to this slave Structure of the job data in the send buffer Bit 7 Bit4 Bit 3 Bit O Byte 0 Structure of the returned data in the receive buffer Bit 7 Bit4 Bit3 Bit 0 Byte 0 Par echo slave 1 Byte 1 Par echo slave 2 Par echo slave 3 Byte 2 Par echo slave 4 Par echo slave 5 Byte 3 Par echo slave 6 Par echo slave 7 Byte 4 Par echo slave 8 Par echo slave 9 Byte 5 Par echo slave 10 Par echo slave 11 Byte 6 Par echo slave 12 Par echo slave 13 Byte 7 Par echo slave 14 Par echo slave 15 Byte 8 Byte 9 Byte 10 Byte 11 Byte 12 Byte 13 Byte 14 Byte 15 4 24 B8976101 01 AS i M
6. 20 pin Current load capability from connection 17 to 19 or from connection 18 to 20 maximum 4 A 16 input bvtes and 16 output bvtes in the analog area of the S7 300 DC5V Max 100 mA According to the AS i specification Max 200 mA 0 to 60 C 40 C to 70 C Max 95 at 25 C S7 300U design single width 40 x 125 x 115 Approx 200 g 2 4 B8976101 01 2 1 3 Displays and Operator Controls on the CP 342 2 AS i Master Module CP 342 2 The following diagram shows the front panel of the CP 342 2 with displays and operator controls The front connector for connecting the AS i cable is below the cover on the front of the CP 342 2 AS i brown AS i blue 12 ae N TEN FAN Ne OO A Di 4 JOO EAR OOOO l OO SFP SE ee YC XY Connections 17 19 and 18 20 are jumpered internally in the CP 17 18 19 20 CP 342 2 e RUN APF e CER e AUP ej CM e 30 O SET gt N WG Ff 0 Y woo Q o Figure 2 3 Front Connector and Labeling of the CP 342 2 The CP has internal connections for two AS i cables that are jumpered internally in the CP This makes it possible to loop the CP 342 2 into the AS i cable t The maximum load of the connection contacts i
7. AUTO ADDRESS ENABLE AUTO PROG LES O CONFIG OK RESERVED RESERVED RESERVED C AUTO_PROG_AVAIL RESERVED je The meaning of the flags is the same as for the read lists and flags job Get_LPS Get_LAS Get LDS Get Flags see Section 4 2 1 16 4 19 AS i Master Module CP 342 2 B8976101 01 4 2 1 18 Configuring the Total Svstem Meaning With this call the desired total configuration is transferred to the CP 342 2 and saved on the CP 342 2 as the desired configuration This configures the CP 342 2 The following data are transferred gt The list of configured slaves specifying the slaves that can be activated by the CP 342 2 in the protected mode gt The list of configuration data specifying the ID codes and I O configurations the slaves must have The list of parameters saved in non volatile memory on the CP This is transferred to the slaves during the start up of the CP 342 2 The flags that determine the mode of the CP 342 2 after start up t Note This call is not executed in the protected mode Structure of the job data in the send buffer Bit 7 Bit4 Bit3 Bit 0 Byte 0 Byte NI as Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Byte 8 Byte 9 Byte 10 Byte 11 Byte 12 Byte 13 Byte 14 Byte 15 Byte 16 Byte 17 Byte 18 Byte 19 Byte 20 Byte 21 Byte 22 Byte 23 Byte 24 Byte 25 4 20 B8976101 01 AS i Master Module CP 342 2 Bvte 29 I O conf slave 23 Bvte 30 VO conf slave 24 Bvte 31 I O con
8. Byte 4 to 6 Fixed value 60 20 20 Byte 7 to 10 Delta list Bit 2 in byte 6 corresponds to slave 0 Bit 2 in byte 10 corresponds to slave 31 Following the programming example in Sectio you will also find an example that evaluates the delta list 3 10 B8976101 01 AS i Master Module CP 342 2 3 4 7 Programming Example The following example illustrates how you can react to a diagnostic interrupt from the CP 342 2 by reading data record DS1 in OB82 How the Program Functions It is assumed that slaves 1 and 12 were configured manually on the CP 342 2 and that the CP 342 2 is in the protected mode If slave 7 now fails the CP 342 2 generates a diagnostic interrupt The PLC operating system then enters the message module fault in the system diagnostic buffer and starts OB82 the program above On completion of OB82 the delta list contains the following information MB 107 80 MB 108 00 MB 109 00 MB 110 00 If the unconfigured slave 15 is then connected to the AS interface the CP 342 2 once again generates a diagnostic interrupt The message module fault once again appears in the svstem diagnostic buffer The delta list however changes to the following value MB 107 80 MB 108 80 MB 109 00 MB 110 00 After reconnecting slave 7 to the AS interface there is still an error slave 15 The message module fault appears in the svstem diagnostic buffer and the delta list has the following value MB 107 00
9. CP 342 2 in the SIMATIC AS 300 and in the ET 200M 2 1 5 Types of Operation with the CP 342 2 nanna 3 Standard Operation of the CP 342 2 1111rrrrrrreseeee azz zii 3 1 Configuring the CP 342 2 for Standard Operation riiii 3 2 Addressing the CP 342 2 in the PLC iii 3 3 How the PLC Addresses the Slaves on the AS i Cable rrrrire eine 3 4 How the CP 342 2 Reacts to Diagnostic and Interrupt Events x gt gt BAST OVOrvIEW ici iba l 3 4 2 Interrupt Events 3 4 3 Sequence of Diagnostic Interrupt Processing nanna 3 4 4 Reaction to Interrupts in Different CP Modes nnnnnnznnnnnnrnanzennnenzzznnnnnnnnanannannnza 3 4 5 Local Data of the Diagnostic Organization Block OB82 na 3 4 6 Reading the Diagnostic Data Record DS 1 nanna 3 4 7 Programming Example sisa alee teenie ane 4 Extended Operation of the CP 342 2 with FC ASI _3422 4 1 Overview of the FUNCTIONS 000 cccseccsssseccnsscenssescnnesennesenensecensesenssesenaesenaesensassccesssanesess 4 1 1 Gallin the FUNGUO iss dad tt alia 4 2 Interface for AS i COMMANGAG cccceeeeeeeeeeeeeeeeneeeeeeeeeeeseeaaaasaaaaaaeeeeeseoesenaaanaeeeeneeeeesanes 4 2 1 Commands Supported by the CP 342 2 00 nanna 4 2 1 1 Set Permanent Parameter
10. MB 108 80 MB 109 00 MB 110 00 After disconnecting slave 15 there is no longer an error The CP 342 2 indicates this in a diagnostic interrupt The message module OK appears in the svstem diagnostic buffer and the delta list is emptv as shown below MB 107 00 MB 108 00 MB 109 00 MB 110 00 3 11 AS i Master Module CP 342 2 B8976101 01 ORGANIZATION BLOCK I O FLTI TITLE VERSIO 1 000 VAR_TEMP OB82 EV CLASS BYTE 16 39 Event class 3 Entering event state Internal fault event OB82_FLT_ID BYTE 16 XX Fault identification code OB82_PRIORITY BYTE 26 28 Priority of 1 is lowest OB82 OB NUMBR BYTE 82 Organization block 82 OB82 OB82_RESERVED_1 BYTE Reserved for system OB82_IO_FLAG BYTE Input 01010100 Output 01010101 OB82_MDL_ADDR INT Base address of module with fault OB82 MDL DEFECT BOOL Module defective OB82 INT FAULT BOOL Internal fault 0B82_EXT_FAULT BOOL External fault OB82 PNT INFO BOOL Point information OB82 EXT VOLTAGE BOOL External voltage low OB82 FLD CONNCTR BOOL Field wiring connector missing OB82 NO CONFIG BOOL Module has no configuration data OB82 CONFIG ERR BOOL Module has configuration error OB82 MDL TVPE BYTE Type of module
11. and then switches to the normal mode cold restart on the CP t This call is not executed in the protected mode Structure of the job data in the send buffer Bit 7 Bit 0 Byte 0 4 10 B8976101 01 AS i Master Module CP 342 2 4 2 1 9 Read Actual Configuration Data With this call the actual I O configuration data and actual ID codes of an addressed slave detected on the AS i are returned Structure of the job data in the send buffer Bit 7 Bit 0 Byte 0 Byte 1 Slave address Structure of the returned data in the receive buffer Bit 7 Bit 0 Byte 0 I O configuration 4 2 1 10 Set LPS Meaning With this call the list of configured slaves is transferred for permanent storage in the EEPROM t When executing this command the CP changes to the off line phase and then switches to the normal mode cold restart on the CP t This call is not executed in the protected mode Structure of the job data in the send buffer Bit 7 Bit 0 Byte 0 Byte 1 Byte 2 LPS slave 0 3 se ni ni Byte 3 i ni 11 slave 12 15 Byte 4 slave 16 19 LPS slave 20 23 24 25 26 27 28 29 30 31 In the LPS data 0 means slave not configured and 1 means slave configured AS i Master Module CP 342 2 B8976101 01 4 2 1 11 Set Offline Mode Meaning This call switches between the on line and off line mode The OFFLINE bit is not permanentiv stored i e during the startup restart the bit is set to ONLINE again In the off line
12. connected at the same time 3 The new slave address must have a valid value 4 No slave with the new slave address must alreadv exist t Note When changing the slave address the slave is not reset in other words the output data of the slave are retained until new data arrive for the new address Structure of the job data in the send buffer Byte 1 Slave address old Byte 2 Slave address new 4 14 B8976101 01 AS i Master Module CP 342 2 4 2 1 15 Read Slave Status Meaning With this call the status register of the addressed slave can be read out The flags of the status register have the following significance SO Address volatile This flag is set when the internal slave routine for permanent storage of the slave address is active This can take up to 15 ms and must not be interrupted by a further addressing call when the internal slave address comparison recognizes that the stored address is not the same as the entry in the address register S1 Parity error detected This flag is set when the slave has recognized a parity error in a received frame since the last read and delete status job S2 End bit error detected This flag is set when the slave has recognized an end bit error in a received frame since the last read and delete status job S3 Read error non volatile memorv This flag is set when a read error has occurred when reading the non volatile memory Structure of the
13. iii 1 1 General Informationi iii iii venite 1 1 1 Overview of the Chapters ii 1 1 2 Symbols and Conventions Used in the Text near 1 1 3 Requirements for Understanding the Manual ern nnnnnnann mann n nanna 1 1 4 Sample Programs Readme File nanna nanna nanna nanna 1 1 5 Further Support and Hotline nanna nanna tnnnn nanna 2 Technical Description and Guidelines for Installing the CP 342 2 2 1 Overview of the Module uuciiai area iaia 21 L INTFOAUCHON cri A a a A ali 2 1 2 Technical Data of the Module ena arr Ant nn na nnnntnrnnntEntnznnzznzz tana 2 1 3 Displays and Operator Controls on the CP 342 2 nn 2 1 4 Slots Permitted for the CP 342 2 in the SIMATIC AS 300 and in the ET 200M 2 1 5 Types of Operation with the CP 342 2 nn 3 Standard Operation of the CP 342 2 ssseesennnnzannnnnnnnnnnnnnnnnznnnnnenznzzzzzznz 3 1 Configuring the CP 342 2 for Standard Operation rriiiii 3 2 Addressing the CP 342 2 in the PLC 3 3 How the PLC Addresses the Slaves on the AS i Cable s ss ssemmnennnnznnenzznntnzenninzen 3 4 How the CP 342 2 Reacts to Diagnostic and Interrupt Events n gt 3 41 OVOrVIEW ii 3 4 2 Interrupt Events i iiis i i tata fi eli 3 4 3 Sequence of Diagnostic Interrupt Processing nanna 3 4 4 Reaction to Interrupts in Different
14. in the protected mode CP internal interrupt events EEPROM error t CP internal interrupt events are always events entering the state After a CP internal interrupt event the group error bit remains set to TRUE This is only reset after a complete restart on the S7 300 3 7 AS i Master Module CP 342 2 B8976101 01 3 4 3 Sequence of Diagnostic Interrupt Processing If the CP 342 2 detects an interrupt event it triggers a diagnostic interrupt The PLC CPU finds the source of the interrupt and reads data record 0 on the CP Following this it interrupts the cyclic user program and reacts as follows gt If OB82 is not programmed the PLC CPU changes to STOP as default gt If organization block OB82 is programmed it is started In the local data area of OB82 local data bytes 8 to 11 contain data record 0 It is possible to read data record 1 that contains the so called delta list in OB82 using an SFC call SFC 59 RD REG however this is not mandatory gt On completion of OB82 the PLC CPU acknowledges the diagnostic interrupt in the CP 342 2 If interrupt events occur in a status in which the event cannot be signaled by triggering a diagnostic interrupt for example when the PLC is in the STOP mode or when an older diagnostic interrupt has not yet been acknowledged the CP 342 2 reacts as follows gt Once a diagnostic interrupt can be triggered again and if the current total CP configuration in other words the AS i
15. job data in the send buffer Bit 7 Bit 0 Byte 0 Byte 1 Structure of the returned data in the receive buffer Bit 7 Bit 0 Byte 0 Slave status S3 S2 S1 SO AS i Master Module CP 342 2 B8976101 01 4 2 1 16 Read Lists and Flags Get LPS Get LAS Get LDS Get Flags Meaning With this call the following entries are read out of the AS i master CP e The list of configured slaves e The list of active slaves LAS e The list of detected slaves LDS e The flags according to the AS i specification Structure of the job data in the send buffer Bit 7 Bit 0 Byte 0 Structure of the returned data in the receive buffer Bit 7 Bit4 Bit3 Bit 0 LAS slave 0 3 LAS slave 4 7 LAS slave 8 11 LAS slave 12 15 LAS slave 16 19 LAS slave 20 23 LAS slave 24 27 LAS slave 28 31 LDS Slave 0 3 LDS Slave 4 7 LDS Slave 8 11 LDS Slave 12 15 LDS Slave 16 19 LDS Slave 20 23 LDS Slave 24 27 LDS Slave 28 31 LPS slave 0 3 LPS slave 4 7 LPS slave 8 11 LPS slave 12 15 LPS slave 16 19 LPS slave 20 23 LPS slave 24 27 LPS slave 28 31 Flag 1 Flag 2 4 16 B8976101 01 Flag 1 Name Bit number OFFLINE READY 18 00 Meaning of the flags OFFLINE_READY APF NORMAL_MODE CONFIG_MODE AUTO_ADDR_AVAIL AUTO_ADDR_ASSIGN LES_0 CONFIG_OK OFFLINE EEPROM_OK AUTO_ADDR_ENABLE AS i Master Module CP 342 2 Flag 2 Name Bit number OFFLINE RESERVED EEPROM OK RESERVED JB The flag is set when the of
16. mode the CP only processes jobs from the user There is no cyclic data exchange The on line mode is the normal situation with the AS i master 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 gt This is followed by the inclusion phase in which there is a search for the slaves connected to the AS i and newly added slaves are entered in the LDS or LAS In the management phase jobs from the user such as writing parameters are executed Structure of the job data in the send buffer Bit 7 Bit 0 Byte 0 H Byte 1 OH Mode 0 on line 1 off line 4 12 B8976101 01 AS i Master Module CP 342 2 4 2 1 12 Select Autoprogramming Meaning With this call the automatic address programming function can be enabled or disabled The AUTO ADDR ENABLE bit is stored permanently on the master Structure of the job data in the send buffer 1 Autoprog allowed 0 Autoprog disabled t Changing the AUTOADDRESS ENABLE bit from 1 to 0 is effective immediately changing the bit from 0 to 1 is only effective after the CP 342 2 has changed to OFFLINE 4 2 1 13 Set Operation Mode With this call vou can select between the configuration mode and the protected mode In the protected mode oniv slave
17. slave configuration and CP internal interrupt relevant state is not identical to the configuration signaled previously by the diagnostic interrupt a diagnostic interrupt is generated with the current configuration information gt When it is possible to trigger a diagnostic interrupt again and if at this time the current total CP configuration is the same as the configuration signaled earlier by the diagnostic interrupt no diagnostic interrupt is generated Brief slave failures for example a bad contact may therefore not be signaled 3 4 4 Reaction to Interrupts in Different CP Modes The CP 342 2 generates diagnostic interrupts triggered by external interrupt events only in the protected mode and not in the configuration mode When the PLC CPU changes to STOP the external and internal interrupt history is reset in other words bit 0OB82_MDL_DEFECT and all other error bits in data record 0 are reset When the CP changes from the protected mode to the configuration mode the external interrupt history is reset When the CP changes from the configuration mode to the protected mode and there is a configuration error pending this is signaled by a diagnostic interrupt If it is temporarily not possible to generate the diagnostic interrupt for example when the PLC is in the STOP mode a diagnostic interrupt is generated at the next possible time if there is still an error 3 8 B8976101 01 3 4 5 AS i Master Module CP 342 2 Local D
18. the module no FC is required 3 1 Configuring the CP 342 2 for Standard Operation The CP 342 2 is capable of two operating modes the configuration mode and the protected mode When supplied the CP 342 2 is set for the configuration mode indicated bv the CM LED being lit gt Configuration Mode The configuration mode is used to install and start up an AS i installation In the configuration mode the CP 342 2 can exchange data with every slave connected to the AS i cable Newly added slaves are detected immediately by the master and included in the cyclic data exchange After testing the PLC program the CP 342 2 can be switched to the protected mode when the PLC CPU is in the STOP mode by pressing the SET button gt Protected Mode If the CP 342 2 is in the protected mode it only exchanges data with the slaves that are configured Configured in this sense means that the slave address saved on the CP and the configuration data stored on the CP match the values of a slave Configuration of the CP 342 2 during installation and start up of the AS i network The following situation is assumed gt The connected AS i slaves are supplied with addresses address programming device gt The AS i bus is complete i e with the AS i power supply unit in operation and the slaves are connected to the AS i cable To configure the CP 342 2 in standard operation while installing the AS i network follow the steps outlined belo
19. AS i cable Make sure the PLC is correctly grounded and check along the AS i cable Check whether the shield of the As i power supply unit is connected correctly The PLC is in the RUN mode Switch the PLC to STOP Selector not activated long enough Make sure the selector is activated for 0 5 s A slave with the address 0 is Remove the slave with address 0 connected to the AS i cable The CP 342 2 cannot switch over to the protected mode as long as this slave exists The PLC is in the RUN mode Switch the PL to STOP 6 1 AS i Masterbaugruppe CP 342 2 Error B89101 01 Possible Cause Remedy oe a Button not activated long enough Make sure the selector is activated for 0 5s After a slave fails the AUP indicator remains off Automatic address programming not done although the AUP is lit The CP is in the configuration Automatic programming is not possible mode in the configuration mode The address of the new slave must be programmed with the address programming unit More than one slave has failed Check AS i cable If APF is indicated at the same time check the power supply to the AS i cable If more than one slave is defective the addresses of the replacement slaves must be programmed with the address programming unit The CP has detected unconfigured Remove unconfigured slaves from the slaves AS i cable The flag Set the bit with the app
20. CP Modes nanna ann nn nn 3 4 5 Local Data of the Diagnostic Organization Block OB82 na 3 4 6 Reading the Diagnostic Data Record DS 1 anna 3 4 7 Programming Example i 4 Extended Operation of the CP 342 2 with FC ASI _3422 l 2 B8976101 01 Contents 4 1 Overview of the FunctionS sssnnnnnnneii A AAAKNNNNHHNHHNKNNEAMAAAnAnAnnnnH a 4 1 4 1 1 Calling the Function mnn ann At AAAAA nanna nnntnnnnnnn ti 4 1 4 2 Interface for AS i CommandS seseseeenznznnnznzznnnnznnznnzznznzznzznzznzznzenzznzzznnanzanzannanzzzznzzzza 4 6 4 2 1 Commands Supported by the CP 342 2 mnn nanna 4 6 5 Replacing a Defective Slave Automatic Address Programming 5 1 6 Error Indicators on the CP 342 2 Dealing withErrors B8976101 01 AS i Master Module CP 342 2 1 Introduction This manual describes the functions of the CP 342 2 and how to program the module To understand this manual it is assumed that vou have read the section of the manual entitled AS Interface Introduction and Basic Information We recommend the following procedure when You want an overall picture of the AS First read the manual AS Interface interface Introduction and Basic Information This contains general information about the AS interface abbreviated to AS i in the remainder of this manual You want to kno
21. End bit error detected This flag is set when the slave has recognized an end bit error in a received frame since the last fread and delete status job S3 Read error non volatile memorv This flag is set when a read error has occurred when reading the non volatile memory Structure of the job data in the send buffer Bit 7 Bit4 Bit3 Bit 0 Byte 0 Structure of the returned data in the receive buffer Bit 7 Bit4 Bit 3 Bit O Byte 0 Slave status B8976101 01 AS i Master Module CP 342 2 4 2 1 23 Read Slave ID Meaning With this call the ID code of a slave can be read out directly over the AS i cable The call is intended for diagnostic purposes and is not required in the normal master mode Structure of the job data in the send buffer Byte 0 H H Slave address Structure of the returned data in the receive buffer Bit 7 Bit4 Bit3 Bit O Byte 0 Slave ID 4 2 1 24 Read Slave I O Meaning With this call the I O configuration of a slave can be read out directly over the AS i cable The call is intended for diagnostic purposes and is not required in the normal master mode Structure of the job data in the send buffer Bit 7 Bit4 Bit3 Bit 0 Byte 0 8H Slave address Structure of the returned data in the receive buffer Bit 7 Bit4 Bit3 Bit O Byte 0 Slave VO 4 27 B8976101 01 AS i Master Module CP 342 2 5 Replacing a Defective Slave Automatic Address Programming If the AUP indicator is lit only in the prot
22. PU 312 Version 4 CPU 313 Version 2 CPU 314 Version 5 CPU 315 Version 2 CPU 315 2 DP Version 2 t When installing the module please adhere to the guidelines for handling electrostatically sensitive devices and the instructions in the corresponding S7 300 manual 2 1 AS i Master Module CP 342 2 B8976101 01 2 1 Overview of the Module 2 1 1 Introduction The CP 342 2 module can be operated in the programmable logic controllers PLCs of the S7 300 range It allows the connection of one AS i chain to the programmable logic controllers mentioned above S7 300 Passive AS i user module Active without slave ASIC AS i user module 3 AS i cable A with slave ASIC AS i power supply unit fm fawl fam jum 4 x slave a a a Binarv sensor and actuator Binarv sensors and actuators without slave ASIC with slave ASIC Active or passive co AS I module E Actuator or sensor Slave ASIC Branch of the with direct connection AS i cable Figure 2 1 Using the Master Module CP 342 2 in the S7 300 2 2 B8976101 01 AS i Master Module CP 342 2 amp CP3422 ASS ET 200M IM 153 Passive AS interface mofiule Active without slave ASIC AS interface module ge d AS i cable Bo with slave ASIC PROFIBUS AS i hA A power unit a H ti fi 4 x Slave Binarv sensors and actuators Binary sensors and actuators i without slave ASIC with slave ASIC Active or passive AS interface module E fo l Actu
23. SIEMENS SIMATIC NET AS Interface Master Module CP 342 2 Volume 1 de 1 1 Introduction C79000 B8977 C101 01 2 Technical Description and Guidelines for Installing the CP 342 2 3 Standard Operation of the CP 342 2 4 Extended Operation of theCP 342 2 with FC ASI 3422 5 Replacing a Defective Slave Automatic Address Programming 6 Error Indicators of the CP 342 2 Dealing with Errors Appendix A AS Interface Protocol Implementation Conformance Statement PICS References B C Abreviations Terminology D Notes on the CE Approval C79000 G8976 C090 Release 01 SIMATIC NET is a trademark from Siemens Siemens Aktiengesellschaft B8976101 01 Contents CONTENTS 1 Introduction iii 1 1 General Information ionici 1 1 1 Overview of the Chapters iii 1 1 2 Symbols and Conventions Used in the Text 1 1 3 Requirements for Understanding the Manual nn n nn nanna rna ntn nn 1 1 4 Sample Programs Readme File nn nanna nanna nanna 1 1 5 Further Support and Hotline nanna nanna mnn nn nanna 2 Technical Description and Guidelines for Installing the CP 342 2 2 1 Overview of the Module anandia dante asi sessanta 211 INTTOAUCIHION aaa iatale ga 2 1 2 Technical Data of the Module nee rn nn tn nn tana nn tnnnnnttntnzznnzznzz tana 2 1 3 Displays and Operator Controls on the CP 342 2 nanna 2 1 4 Slots Permitted for the
24. SSS 1 eoan negative acknowiedgment writing to module Specified data record length is wrong Too many jobs pending y OO 80C2 Too many jobs pending mb ok 80C3x Resources memory occupied 80C44 Communication error Slave is not activated not in LAS Error on the PLC interface Command not permitted in CP status 4 3 o h AS i Master Module CP 342 2 B8976101 01 pone l erron starus Meaning ooo o 1 lean slave adaress cannotbe deleted o fesas stave adress cannotbe st o fesas stave address cannot ve savea permanenty o f feara tb mumborurknown eoh pr EEPROM error Area length error reading a parameter Area length error writing a parameter This error code indicates that a parameter is completely or partly outside the address area or that the length of a bit field of an ANY parameter cannot be divided by 8 Area length error reading a parameter Area length error writing a parameter This error code indicates that a parameter is located in an area that is not permitted for a system function Alignment error reading a parameter Alignment error writing a parameter This error code indicates that the reference to a parameter is an address with a bit address other than 0 The parameter is located in the write protected shared DB The parameter is located in the write protected instance DB This error code indicates that a parameter is located in a write protected data b
25. are indicated by LEDs 0 to 9 and the LEDs 10 20 and 30 The display of the activated slaves is in groups of 10 These are switched over at regular intervals The LEDs labeled 10 20 30 indicate which of the groups of 10 slaves are currently indicated by the LEDs 0 9 Failed or existing but unconfigured slaves are indicated in the protected mode by the LED flashing 30 O Example 1 30 O 20 O l 20 Indicates that the slaves with 10 O addresses 1 2 and 5 are 10 O activated 9 O 9 O 8 O 8 O 70 70 6 O 6 O 5 5 C 4 O 4 O 3 0 3 C 2 Example 2 2 1 0 Indicates that the slaves with 1 0 addresses 20 21 and 22 are oo activated o e Figure 2 4 Display of the Active AS i Slaves on the Front Panel of the CP 2 7 AS i Master Module CP 342 2 B8976101 01 2 1 4 Slots Permitted for the CP 342 2 in the SIMATIC AS 300 and in the ET 200M In principle the CP can be inserted in all the slots for I O modules in the S7 300 and ET 200M racks There are however restrictions involving the CPU and the power supply in terms of the following gt The extendibility with several racks multi tier configuration of the PLC only with the CPU 314 and higher gt The electrical design in other words the entire current consumption from the S7 backplane bus For more detailed information on these topics please refer to the corresponding system manuals 2 1 5 Types of Operation
26. aster Module CP 342 2 4 2 1 21 Read Version ID Meaning With this call the version ID of the AS i master software is read out Structure of the job data in the send buffer Bit 7 Bit4 Bit 3 Bit O Byte 0 The reply of the CP contains the name and the firmware version number of the CP in the form shown below Structure of the returned data in the receive buffer Bit 7 Bit 4 Bit 3 Bit O Jai pet __ see A e pes fe ane on ser OS e i seo fl wget ye Byte 13 mem C P ses f Byte 16 Byte 17 Byte 18 ses f Byte 20 yea see see f Byte 24 syes fl Byte 26 swear f Byte 28 Byte 29 x yy stands for the current version number 4 25 AS i Master Module CP 342 2 B8976101 01 4 2 1 22 Read Slave Status and Delete Meaning With this call the status of a slave is read out and at the same time the status register of the slave is deleted The flags of the status register have the following meaning SO Address volatile This flag is set when the internal slave routine for permanent storage of the slave address is active This can take up to 15 ms and must not be interrupted by a further addressing call when the internal slave address comparison recognizes that the stored address is not the same as the entry in the address register S1 Parity error detected This flag is set when the slave has recognized a parity error in a received frame since the last read and delete status job S2
27. ata of the Diagnostic Organization Block OB82 The following table contains a list of the data record 0 available in the local data of OB82 local byte 8 to local bvte 11 For the meaning of the other OB82 local data refer to the descriptions of STEP 7 Bvte Bit 8 2 8 2 8 a 8 2 8 gt 8 2 8 2 8 2 9 10 2 10 2 10 9 16 32 10 2 10 2 10 2 10 2 ii 2 11 2 1 Se 1 i 11 2 11 2 11 2 Variable Name OB82_MDL_DEFECT OB82_INT_FAULT OB82_EXT_FAULT OB82_PNT_INFO OB82_EXT_VOLTAGE OB82_FLD_CONNCTR OB82_NO_CONFIG OB82_CONFIG_ERR OB82_MDL_TYPE OB82_SUB_NDL_ERR OB82_COMM_FAULT OB82_MDL_STOP OB82_WTCH_DOG_FLT OB82_INT_PS_FLT OB82_PRIM_BATT_FLT OB82_BCKUP_BATT_FLT OB82_RESERVED_2 OB82_RACK_FLT OB82_PROC_FLT OB82_EPROM_FLT OB82_RAM_FLT OB82_ADU_FLT OB82_FUSE_FLT OB82_HW_INTR_FLT Data Type Meaning BOOL Group error bit 0 interrupt leaving state 1 interrupt entering state BOOL Internal CP fault e g EEPROM defective BOOL External CP fault e g slave failed or APF BOOL At least one slave deviates from the desired configuration BOOL Voltage on the AS interface too low APF BOOL on the CP 342 2 always 0 BOOL on the CP 342 2 always 0 BOOL on the CP 342 2 always 0 BYTE Module class for the CP 342 2 1C hex BOOL At least one slave deviates from the desired configuration BOOL on the CP 342 2 always 0 BOOL 0 CP 342 2 is in the normal status
28. ator or sensor Branch of the with direct connection EE Slave ASIC AS i cable Figure 2 2 Distributed Use of the Master Module CP 342 2 in the ET 200M Components Supplied The product CP 342 2 includes the following components 1 The CP 342 2 module 2 Bus connector 3 Labeling material 4 Product information The STEP 7 block FC ASI_3422 required for extended operation with the CP 342 2 is supplied with this manual t The 20 pin front connector for connecting the AS i cable is not supplied with the CP 342 2 For the order number and other information refer to the SIMATIC S7 catalog ST 70 2 3 AS i Master Module CP 342 2 B8976101 01 2 1 2 Technical Data of the Module The table below outlines the most important technical data of the CP 342 2 module Bus cvcle time Configuration AS i profile supported Connection to the AS i cable Address range Power supplv SIMATIC back plane bus Current consumption from the AS i cable Power supplv from the AS i cable Power consumption from DC 5 V Permitted environmental conditions Operating temperature e Transport and storage temperature Relative humidity Design Module format Dimensions W x H x D in mm Weight Table 2 1 Technical Data 5 ms with 31 slaves By switches on the front panel or with FC ASI 3422 Without FC ASI 3422 MO With FC ASI 3422 M1 Via the S7 300 front connector with screw contact
29. e Explanation Slave 2 corresponds in this case to the AS i module with address 2 Slave 3 corresponds to the AS i module with address 3 Example of the PLC Addressing a Slave Just as with standard modules of the analog I Os the S7 300 can access the inputs and outputs of the AS i slaves The following example illustrates this procedure Example CP 342 2 with start address n 256 Start address 256 Slave 1 Bit3 Bit2 Bit Bito 256 Slave 2 Slave 3 Bit3 Bit 2 Bito Bit3 Bit2 Bit1 Bito 257 Slav Slave 5 258 fBt3 Bitz Bito Bits Bit2 Bit Bito Slave 31 Slave 31 Bit 3 Bitz bBitl Bro 271 Bit3 l Bit2 Bito 7 6 4 3 2 1 I O byte no VO bit no AS i slaves Slave no 3 Slave no 4 Slave no 31 VO code EH VO code 8H AS I module 1 0 code 0H Bit3 Bit2 Bit1 Bito Bit3 Bit2 Bit1 Bito Bit3 Bit2 JBitt Bito Bits Bit2 JBitt JBItO H U l aor Connection 1 AS i module Used aa l used as SERI pi output Used as i i 1 i output oi o Connection 3 AS i module Figure 3 1 Mapping the Slave Addresses on the I O Addresses Slave no 2 1 0 code 9H Connection 2 AS i module 3 5 AS i Master Module CP 342 2 B8976101 01 Access to the AS i User Data The bits of the AS i slaves are accessed using the following S7 load and transfer instructions L PIW X EPID X T POW X T POD X X stands for the bvte address in the CP 342 2 t For system inter
30. e gt If you have questions about using the software and cannot find the answers to your problem in the manuals or in the on line help please contact your local representative or distributor You can obtain the addresses as follows in the catalog IK10 in CompuServe go autforum library area SINEC and on the Internet http Awww aut siemens de Our hotline is also available for questions Tel 49 911 895 7000 Fax 7001 gt Our custom support on the Internet provides answers to common questions Under FAQ Frequently Asked Questions you will find information about our range of products The AUT home page is the worldwide web under the following address http www aut siemens de 1 3 AS i Master Module CP 342 2 B8976101 01 1 4 B8976101 01 AS i Master Module CP 342 2 2 Technical Description and Guidelines for Installing the CP 342 2 This chapter outlines the basic functions of the CP 342 2 master module and explains how the module is installed and started up You will learn the following gt Which PLC systems can be operated using the CP 342 2 on the AS interface gt Howto install the CP 342 2 gt Which modes are supported by the CP 342 2 t Make sure that the S7 300 CPUs you are using are the latest versions or upgrade them to the latest version otherwise correct operation in conjunction with the CP 342 2 cannot be guaranteed The versions of the S7 300 CPUs must be the following or higher C
31. e Slaves on the AS i Cable Each station slave on the AS i cable is assigned 4 bits a nibble by the CP 342 2 The PLC can write slave output data and read slave input data this nibble This allows bi directional slaves to be addressed i The first four input bytes first nibble are reserved for the use of FC ASI_3422 If no FC is used the first four input bits change approximately every 2 5 seconds between the values 8 and E The first four output bits first nibble have no significance for the CP 342 2 Assignment YO byte number ji 9747 Bit 3 0 n 0 reserved Slave 1 Bit3 Bit2 JBitt Bito mi n2 ne of n47 a ja ib net n12 ae n14 n 15 Slave 30 Slave 31 Bit3 Bit2 Bit1 BitO Bit3 Bit2 Bit1 Bito n Start address The table illustrates the assignment of the CP 342 2 interface n is the start address of the I O address area occupied by the CP 342 2 The table shows the assignment of the slave I O bit to the I O byte of the PLC 3 4 B8976101 01 AS i Master Module CP 342 2 Example of the assignment of connections If AS i modules are used as slaves on the AS i cable each of the connections to the AS i module corresponds to exactly 1 bit in the PLC The following example illustrates the assignment of two AS i modules with addresses 2 and 3 Slave 2 Slave 3 7 6 5 la 4 fs le li lo PLC I O bits Connection to AS i 2 module Table 3 2 Assignment of the Connections to the AS i Modul
32. e configuration of the stations connected to the AS interface cable after installation The configuration data that are read in can if necessary be modified and saved as the desired configuration on the CP 342 2 using the command configure total system see Section 4 2 1 18 Structure of the job data in the send buffer Bit 7 Bit 0 Byte 0 Structure of the returned data in the receive buffer Bit 7 Bit4 Bit3 Bit O i EC Byte 24 ID code slave 18 VO conf slave 18 4 18 B8976101 01 AS i Master Module CP 342 2 Bit 7 Bit4 Bits Bit 0 Byte 25 O conf slave 19 Byte 26 I O conf slave 20 Byte 27 O conf slave 21 Byte 28 I O conf slave 22 Byte 29 O conf slave 23 Byte 30 VO conf slave 24 Byte 31 I O conf slave 25 Byte 32 O conf slave 26 Byte 33 I O conf slave 27 Byte 34 I O conf slave 28 Byte 35 I O conf slave 29 Byte 36 I O conf slave 30 Byte 37 I O conf slave 31 Byte 38 E Parameter slave 1 Byte 39 Parameter slave 3 Byte 40 Parameter slave 5 Byte 41 Parameter slave 7 Byte 42 Parameter slave 9 Byte 43 Parameter slave 11 Byte 44 Parameter slave 13 Byte 45 Parameter slave 15 Byte 46 Parameter slave 17 Byte 47 Parameter slave 19 Byte 48 Parameter slave 21 Byte 49 Parameter slave 23 Byte 50 Parameter slave 25 Byte 51 Parameter slave 27 Byte 52 Parameter slave 29 Byte 53 Parameter slave 31 Byte 54 Byte 55 Flag 1 Flag 2 Name Bit Number Name Bit Number APF RESERVED NORMAL MODE EEPROM OK CONFIG MODE
33. ected mode it indicates the following gt Exactly one slave has failed Automatic address programming by the CP 342 2 is possible You can now replace the defective slave as follows W Remove the failed slave from the AS i cable You can identify the failed slave by the flashing LED assigned to the slave on the front panel Replace the defective slave with an identical slave with address 0 as supplied The CP 342 2 then programs this slave with the address of the original station that had failed The AUP indicator then goes off The CP 342 2 indicates the new slave in the LED display Note that automatic address programming is only possible when gt The flag AUTO_ADDRESS_ENABLE 1 is set see Sections 4 2 1 12 and 4 2 1 18 gt The CP 342 2 is in the protected mode gt Only one slave has failed 5 1 AS i Master Module CP 342 2 B8976101 01 5 2 B89101 01 AS i Masterbaugruppe CP 342 2 6 Error Indicators on the CP 342 2 Dealing withErrors The following table lists the possible causes of errors that can occur during operation of the CP 342 2 and ways to correct the errors APF indicator lit SF is lit without pressing the button SF lights up when the mode selector is pressed CER indicator lights up permanentiv CER indicator flickers meaning that a configured slave drops out sporadically CP does not switch from the configuration mode to the protected mode CP does
34. ection 3 2 SEND I Q M D L Send buffer The parameter indicates a memory area in which the command must be specified by the user For example P DB20 DBX 20 0 Byte 10 RECV I 0 M D L Receive buffer This buffer is only relevant for commands that result in reply data The parameter refers to a memory area in which the reply to a command is entered The length of the data area specified here is irrelevant For example P DB30 DBX 20 0 Byte 1 DONE pone je foa BOOL P M D L DONE 1 signals job completed without error EBR a e MT M D L ERROR 1 signals job completed with error STATUS YO DWORD M D 1st word job status error code see following table If the job was completed with an error an error code is generated to identify the error in more detail 2nd word used by the FC for internal purposes and must not be modified 4 2 B8976101 01 AS i Master Module CP 342 2 If an error occurs while the function is being executed then in addition to the information mentioned above in ERROR and STATUS the BR bit has the value 0 The BR bit is queried in different ways STL programs and LAD programs LAD queried using the output parameter ENO STL the BR bit is queried directly Status and Error Information The following table shows you the possible codes in the first word of STATUS dependent on DONE and ERROR pone erron status meaning o fo fares jeene o y o 0000 sob complete winoureror
35. ed parameters in permanent storage are overwritten bv the actual parameters in other words the parameters are reconfigured Structure of the job data in the send buffer Bit 7 Bit 0 Byte 0 4 2 1 6 Set_Permanent_Configuration Meaning With this call the I O configuration data and the ID code for the addressed AS i slave are configured The data are stored permanently on the AS i master module t When executing this command the CP changes to the off line phase and then switches to the normal mode complete restart on the CP This call is not executed in the protected mode Structure of the job data in the send buffer Bit 7 Bit 0 Byte 0 Byte 1 Byte 2 4 9 AS i Master Module CP 342 2 B8976101 01 4 2 1 7 Get Permanent Configuration Meaning With this call the desired configuration data stored in the EEPROM I O configuration data and the ID codes of an addressed slave are returned Structure of the job data in the send buffer Bit 7 Bit 0 Byte 0 Byte 1 Slave address Structure of the returned data in the receive buffer Bit 7 Bit 0 Byte 0 I O configuration 4 2 1 8 Store Actual Configuration Meaning With this call the actual I O configuration data and actual ID codes of all slaves are saved permanently in the EEPROM as the desired configuration data The list of active slaves LAS is also entered in the list of configured slaves LPS t When executing this command the CP changes to the off line phase
36. ermanent_Configuration 4 2 1 7 Slave address Desired configuration data 06 Store_Actual_Configuration 4 2 1 8 nones o Read Actual Configuration Data 4 2 1 9 Slave address Actual configuration data 08 4 2 1 10 LPS ojo o o o AJ Nj o o o o o N ol o gt Set Offine Mode 4 21 11 Mode Select Atoproramming 4 2113 Mede H H H ojo oO D OF Read_Total_Configuration 4 2 1 17 Actual configuration data current parameters LAS flags Configuring the Total System 4 2 1 18 Total configuration H H o o o J x ED 1A Write Parameter List List of 1C parameters Read Parameter Echo List i Read Version ID 424 21 nons Versionssring N14 16 Read Slave ID 4 2 123 Slave address IDcode_ __ t7 Read Slave I O 4 2 1 24 Po I Slave address I O configuration Table 4 3 Overview of the Command Jobs 414 A 4 6 B8976101 01 AS i Master Module CP 342 2 4 2 1 1 Set Permanent Parameter Meaning With this call a parameter value for the specified slave is transferred to the CP 342 2 The value is saved as a configured value in non volatile memorv The parameter is not transferred to the slave bv the CP 342 2 immediatelv The parameter value is only transferred after a power up on the PLC when the slave is activated Structure of the job data in the send buffer Bit 7 Bit 0 Byte 0 Byte 1 Byez o Parameter 4 2 1 2 Get Permanent Parameter Meaning With
37. f slave 25 Bvte 32 I O conf slave 26 Bvte 33 I O conf slave 27 Bvte 34 I O conf slave 28 Bvte 35 I O conf slave 29 Bvte 36 I O conf slave 30 Bvte 37 VO conf slave 31 Byte 38 Parameter slave 1 Byte 39 Parameter slave 2 Parameter slave 3 Byte 40 Parameter slave 5 Byte 41 Parameter slave 7 Byte 42 Parameter slave 9 Byte 43 Parameter slave 11 Byte 44 Parameter slave 13 Byte 45 Parameter slave 15 Byte 46 Parameter slave 17 Byte 47 Parameter slave 19 Byte 48 Parameter slave 21 Byte 49 Parameter slave 23 Byte 50 Parameter slave 25 Byte 51 Parameter slave 27 Byte 52 Parameter slave 29 Byte 53 Parameter slave 31 Byte 54 Byte 55 Bit 7 Bit4 Bit3 Bit 0 Byte 26 I O conf slave 20 Byte 27 VO conf slave 21 Byte 28 I O conf slave 22 I Flag 1 Flag 2 Name Bit Number Name Bit Number NORMAL MODE CONFIG_MODE AUTO_PROG LES_0 CONFIG_OK RESERVED RESERVED RESERVED 0 AUTO_PROG_AVAIL RESERVED 6 The value of the gray shaded flags can change the mode of the CP 342 2 0 CP 342 2 starts up in the protected mode after synchronization 1 CP 342 2 starts up in the configuration mode 4 21 AS i Master Module CP 342 2 B8976101 01 AUTO ADDRESS ENABLE 0 automatic address programming is disabled 1 automatic address programming is enabled The values of the other flags are irrelevant for the configure total system command and cannot be modified 4 22 B8976101 01 AS i Master Module CP 342 2 4
38. f line phase is active This flag is set when the voltage on the AS i cable is too low This flag is set when the CP is in the normal mode The flag is set in the configuration mode and reset in the protected mode This flag is set when the automatic address programming can be executed in other words exactiv one slave is currentiv out of operation This flag is set when the automatic address programming is possible in other words AUTO ADDR ENABLE 1 and there is or was no incorrect slave connected to the AS i cable This flag is set when a slave exists with address 0 This flag is set when the desired configured and actual configuration match This flag is set when the CP is to change to the OFFLINE mode or is already in this mode This flag is set when the test of the internal EEPROM did not detect any errors This flag indicates whether the automatic address programming is enabled or disabled by the user can be set with an HDB call 4 17 AS i Master Module CP 342 2 B8976101 01 4 2 1 17 Read Total Configuration Meaning With this command the following data are read from the CP gt The list of active slaves LAS This indicates which of the connected slaves are activated gt The current configuration data of the connected slaves I O configuration and ID code gt The current parameters of the slaves actual parameters gt The current flags This command can for example be used to find out th
39. ic Comment Function implemented by representation Section Image Status Read IDI By the controller accessing the I O interface of the CP 342 2 2 Status Write_ODI Image By the controller accessing the I O interface i TTI the CP 342 2 4 Param Status Get Permanent Parameter Addr Lf faints not implemented 5 status Param Write Parameter Param not implemented Status Set_Permanent_Configuration Addr not implemented Config Status Config not implemented Get_Permanent_Configuration Addr 11 Status Contig Read Actual ContiguratonjAsar notimplemented Status Set_LPS List31 ai not implemented ts state uistso co tosy notimpiomentes 160 staus cet Flags notimplemented jeb pan a ct ps n not implemented le i 168 status Fiag Get Flag ottine Ready notimpemenei Status Set Operation Mode Mode notimplemented o Status Set Offline Mode Mode not implemented Status Activate Data Exchange Mode Li not implemented Status Change_Slave_Address Addr1 Addr2 wi not implemented Status Set Auto Address Enable jii Select autoprogramming Status Get Auto Address Enable tel not implemented A 3 AS i Master Module CP 342 2 B8976101 01 23 1 Status Resp Cmd_Reset_ASI_Slave Addr not implemented RESET Status Resp Cmd_Read_IO_Configuration Addr Fl not implemented CONF Function or Call on the Host Interface svmbolic Comment Funct
40. ion implemented by representation Section 23 3 Status Resp not implemented Cmd_Read_ldentification_Code Addr IDCOD Status Resp Cmd Read Status Addr STAT Pie i not implemented 23 5 Status Resp Cmd_Read_Reset_Status Addr not implemented STATRES Legend for column 3 i Function available ea Function not available AS i Cycle Time Related to the Number of Connected Slaves The following table shows the relationship between the As i cycle time and the number of slaves connected pica worstcase _ SI N pa The typical time apply assuming that no frame repetitions occur there are no management calls and that the slaves are synchronized If frames are repeated the cycle time is increased by 0 156 ms per repetition If a management call occurs in the cycle this also extends the cycle time by 0 156 ms If the AS i network is correctly installed it can be assumed that a maximum of one frame is repeated per cycle If it is also assumed that one management call occurs during the cycle then the worst case cycle time is typical cycle time 0 312 ms A 4 B8976101 01 AS i Master Module CP 342 2 B References 1 AS Interface Das Aktuator Sensor Interface f r die 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 Ott
41. le address supplied by 0B82 Save temporarily Trigger bit for RD_REC 1 I 1 Trigger reading Always for the CP 342 2 Module address Data record number 1 Return for error or status information Read job active 11 read bytes are transferred starting at memory byte 100 The reuturn value is not evaluated here to keep th xample simpler The following statements are only necessary if the CP 342 2 and ET 200M are being used When using an s7 300 the read job is processed with the first SFC jump Retrigger PLC watchdog AS i Master Module CP 342 2 B8976101 01 3 14 B8976101 01 AS i Master Module CP 342 2 4 Extended Operation of the CP 342 2 with FC ASI 34227 To use the extended operation mode FC ASI 3422 is required in the S7 programmable logic controller This section explains which extra functions are available compared with the standard mode when operating the CP 342 2 with FC ASI 3422 Extended operation allows the complete control of the master bv the user program Access to the inputs and outputs remains the same as in the standard operation of the CP 342 2 In extended operation a special FC is used for communication with the AS i master CP in the user program 4 1 Overview of the Functions Command calls to the CP 342 2 are made in the user program using FC ASI 3422 The user specifies a command call in a send buffe
42. lock si The parameter contains a DB number that is too high SES The parameter contains the number of a DB that is not loaded 8F444 8F45x An access error occurred while the system attempted to read a parameter out of the peripheral input area An access error occurred while the system attempted to write a parameter to the peripheral output area This error code indicates that read access to a parameter was denied This error code indicates that write access to a parameter was denied 4 4 B8976101 01 AS i Master Module CP 342 2 Signal States of the Formal Parameters A command call is started by ACT 1 While a job is being processed the 1st word of STATUS has the value 8181 This indicates that a job is active On completion of the job the user is informed of the result in the parameters DONE and ERROR If no error occurred DONE is set With jobs that involve reply data from the CP342 2 the reply data are available in the receive buffer specified by RECV In this case the 1st word of STATUS contains the value 0000 If an error occurred ERROR is set In this case with jobs involving reply data from the CP342 2 no receive data are available An error code is entered in the 1st word of STATUS to identify the error in more detail The parameters DONE ERROR and STATUS remain unchanged until the next job is processed STATUS 8181 0000
43. nal reasons only word or double word access to even byte addresses is possible The byte transfer instructions L PIB X or T PQB X are not permitted in conjunction with the CP 342 2 Example Correct L PIW 260 Wrong T POB 260 Wrong L PIW 257 If you require bit access to slave data you can follow the procedure shown in the sample program below for a CP with start address 256 OPEN DB 20 Open a data block 1 At program start Read in pseudo PII of the inputs copy the input data of the CP 342 2 to a data block L PID 256 T DBD O L PID 260 T DBD 4 L PID 264 T DBD 8 L PID 268 T DBD 12 2 In the program evaluate single input bits Set reset single output bits A DBX 5 4 S DBX 22 3 R DBX 28 0 E 3 At program end Output pseudo PIQ of the outputs fy copy data words to the output data of the CP342 2 L DBD 16 T POD 256 L DBD 20 T POD 260 L DBD 24 T POD 264 L DBD 28 T POD 268 3 6 B8976101 01 AS i Master Module CP 342 2 3 4 How the CP 342 2 Reacts to Diagnostic and Interrupt Events 3 4 1 Overview If the CP 342 2 recognizes an external or internal fault during operation AS i slave failure EEPROM fault on the CP it signals this by triggering a diagnostic interrupt on the S7 peripheral bus The S7 CPU then interrupts the cyclic user program OB1 enters the event as module fault in the s
44. not switch from the protected mode to the configuration mode Possible Cause The AS i power supply unit is not Check the connection of the AS i power connected or is defective supply unit if necessary replace the power supply unit Power requirements of the AS i Check the power requirements of the AS slave too high i station If necessary supply the slaves with power externally The CP 342 2 is in the protected Eliminate the configuration error mode and there is an AS i configuration error for example slave failure The CP is defective Internal Replace the CP EEPROM error gt see Signaliing S7 300 system diagnostics buffer You want to change to the Remove the slave with address 0 from protected mode but a slave with the AS i cable address 0 exists The CP 342 2 is not yet configured Configure the CP with the mode selector on the front panel A configured slave has failed Replace the defective slave or if the evaluate the ACTIVE SLAVES slave is not required re configure the CP indicator 342 2 An unconfigured slave was Remove the slave or re configure the connected to the AS i cable CP 342 2 A slave has been connected whose Check whether an incorrect slave has configuration data I O been connected If necessary re configuration ID code do not configure the CP 342 2 match the value of the configured slave Bad contact Check the connections of the AS i slave Interference on the
45. o W Madelung Auf den Broich 4A D 51519 Odenthal Germanv Tel 49 2174 40756 Fax 49 2174 41571 The AS i technology is promoted by the ASI Association e V 3 SINEC Industrial Communications Networks Catalog IK 10 The catalog can be ordered from all SIEMENS branches and from your national head office B 1 AS i Master Module CP 342 2 B8976101 01 B 2 B8976101 01 AS i Master Module CP 342 2 Abbreviations Terminology APF AS i Power Fail Flag or LED displav indicating that the power supplv on the AS I cable is too low or has failed e g AS I power unit defective AS i Actuator Sensor Interface ASI_3422 Name of a communication function FC AS i driver Driver that makes the functions of the CP 342 2 accessible to application programs AS i Library Library with which application programs can communicate with the AS i driver CP Communications Processor module for installation in computers and programmable logic controllers CP 342 2 Communications Processor for SIMATIC S7 300 ET 200M on the SIMATIC NET AS interface CP 2433 Communications Processor for SIMATIC S5 and ET 200 on the AS Interface CP 2430 Communications Processor for SIMATIC S5 115U S5 135U and S5 155U on the AS Interface CP 1413 Communications Processor for PCs and PGs on Industrial Ethernet CP 2413 Communications Processor for PCs and PGs on the AS Interface CP 5412 Communications Processor for PCs and PGs on PROFIBUS FC F
46. onfiguration and switches to the protected mode In the protected mode the CM LED is switched off w Switch the PLC to RUN The CP is then started up 3 2 B8976101 01 AS i Master Module CP 342 2 3 2 Addressing the CP 342 2 in the PLC The CP 342 2 occupies 16 input bytes and 16 output bytes in the I O address area of the S7 programmable logic controller analog area of the PLC The start address of this address area is decided by the slot of the CP 342 2 Of the 16 byte address area of the CP 342 2 31 x 4 bits are occupied by the AS i slave data The remaining 4 bits are reserved for later applications The start address n of this address area is decided by the slot of the CP 342 2 as follows Rack 0 Slotnumber 1234 5 fe 7 Ja Jo ho n Rack 1 Module im cp ce ce cp cp ce cp cp Slotnumber h la 5 le 7 8 l hofu Start address 1384 1400 1416 432 1448 1464 1480 496 Rack 2 Module m cp ce ce cp cp ce cp cP Slotnumber h Ja 5 le 7 Ja l hofu Start address 1512 528 544 1560 1576 1592 608 624 Rack 3 Module im cp cp cp cp cp cp cp cP Slotnumber dls Ja 5 fe 7 Ja Jo ho jn Start address eso ese 1672 1688 1704 1720 1736 752 t In the CPU 315 2 DP the slot oriented addressing can be changed using STEP 7 configuration 3 3 AS i Master Module CP 342 2 B8976101 01 3 3 How the PLC Addresses th
47. proval must be obtained from the authorities responsible In Germany special approval must be obtained from the Post and Telecommunication authority Installation The product meets these requirements providing you adhere to the installation Guidelines instructions described in the following documentation Description of the AS Interface Master Module CP 342 2 System Manual SIMATIC S7 300 or ET200M Manual Special Note for In the sense of the EU guideline the product is not a machine There is Manufacturers of therefore no conformity certificate within the framework of EU guideline Machines Machines 89 392 EEC If the product is an electrical component of a machine the manufacturer of the machine must include it in the application for CE approval D 1 AS i Master Module CP 342 2 B8976101 01 D 2
48. r and then starts the job FC ASI 3422 transfers the command call to the CP 342 2 On completion of the job the job status is transferred back to the user program and anv replv data are made available in a receive buffer 4 1 1 Calling the Function The function must be called cyclically by the program for every CP 342 2 Per CP 342 2 only one job can be processed at any one time A currently active job cannot be interrupted by the user and the time is not monitored by the function STL representation CALL ASI 3422 ACT STARTUP LADDR SEND RECV DONE ERROR STATUS k LAD representation ASI_3422 EN ENO F ACT DONE F STARTUP ERROR F LADDR SEND RECV STATUS 4 1 AS i Master Module CP 342 2 B8976101 01 Formal Parameters The following table explains the formal parameters of the function Parameter v0 meno ma Area ACT BOOL IQ M D L The command execution by the function is level Constant triggered in other words as long as ACT 1 is set command execution is started if there is no job already being executed STARTUP BOOL I Q M D L A CPU startup is indicated to the function by STARTUP Constant 1 Once the function has been executed once STARTUP must be reset by the user LADDR I Q M D L Module start address Constant The module start address must be obtained according to the rules for slot oriented address assignment for more detailed information see S
49. rface of the CP 342 2 Tatari e Teme ca fe Status Set Permanent Configuration Addr X Config Status Config Get Permanent Configuration Addr 0 Status Store Actual Configuration 4 2 1 8 This command also triggers a complete restart on the CP zi DE zi FE li A 1 AS i Master Module CP 342 2 B8976101 01 Function or Call on the Host Interface Comment Function implemented by symbolic representation Section Status Flag Get Flag Config OK CP error bit LED 4 2 1 16 2118 16 7 Status Flag Get Flag APF X CP error bit LED 4 2 1 16 Status Flag Get Flag Offline Readv Este 4 2 1 16 16 Status Set_Operation_Mode Mode 4 2 1 13 Status Set Offline Mode Mode X 742 111 18 PE Status Activate Data Exchange Mode mm not implemented pa Status Change Slave Address Addri Addr2 x 14 2 1 14 Status Set Auto Address Enable 4 2 1 12 Status Get_Auto_Address_Enable ka 4 2 1 16 Status Resp Cmd_Reset_ASI_Slave Addr not implemented RESET B Status Resp Cmd Read IO Configuration Addr 4 2 1 24 CONF Status Resp X 4 2 1 23 Cmd Read Identification Code Addr IDCOD Status Resp Cmd Read Status Addr STAT 4 2 1 15 23 5 Status Resp Cmd Read Reset Status Addr X 4 2 1 22 STATRES A 2 B8976101 01 AS i Master Module CP 342 2 List of Master Functions Available Without FC ASI_3422 Function or Call on the Host Interface symbol
50. ropriate FC calls AUTO ADDRESS ENABLE is not set The configuration data I O Check whether the correct replacement configuration ID code of the slave was used replacement slave do not match the Compare the vendor s information with values of the original slaves the configuration data If you want to replace the original slave with a different type the address must be assigned with the address programming unit and the CP 342 2 re configured using the switches Replacement slave does not have Set the address of the replacement slave the address zero with the address programming unit Replacement slave not correctly Check the connections of the slave if connected or defective necessary replace the slave Table 6 1 Error Indicators of the CP 342 2 B8976101 01 AS i Master Module CP 342 2 A AS Interface Protocol Implementation Conformance Statement PICS A 1 PICS for the CP 342 2 Product Name CP 342 2 AS i master module CP 342 2 for SIMATIC S7 300 and ET 200M Order Number 6GK7342 2AH00 0XA0 Version 2 Master Profile M1 with FC ASI 3422 MO without FC ASI 3422 Date 29 2 1996 List of Master Functions Available with FC ASI_3422 Function or Call on the Host Interface Comment Function implemented by symbolic representation Section Image Status Read IDI By the controller accessing the I O interface of the CP 342 2 Status Write_ODI Image By the controller accessing the I O inte
51. s 4 A If this value is exceeded on the AS i cable the CP 342 2 must not be looped into the AS i cable but must be connected by a tap line Only one connection of the CP 342 2 used 2 5 AS i Master Module CP 342 2 B8976101 01 Meaning of the displavs and control elements SF System fault The LED is lit in the following situations When the CP 342 2 is in the protected mode and there is an AS i configuration error for example slave failure The CP has detected an internal fault for example EEPROM defective When the CP cannot make the mode change requested by the switch setting for example a slave with address 0 exists RUN Indicates that the CP has started up correctly APF AS i Power Fail Indicates that the voltage supplied by the AS i power unit on the AS i cable is too low or has failed CER Configuration Error This LED indicates whether the slave configuration detected on the AS i cable matches the configuration stored on the CP LPS If they do not match the CER display is lit The CER display is lit in the following situations gt When a configured AS I slave does not exist on the AS I cable e g fault on the slave gt When a slave exists on the AS I cable but has not been configured When a connected slave has different configuration data I O configuration ID code from those configured on the CP When the CP is in the off line phase AUP Autoprog available This indicates
52. s marked in the LPS and whose desired and actual configuration match are activated in other words if the I O configuration and the identification codes of the slaves in the LDS are identical to those of the configured values In the configuration mode all detected slaves except slave address 0 are activated This also applies to slaves for which there is a difference between the desired and actual configuration The OPERATION MODE bit is saved permanently in the EEPROM i e it is retained following a start up restart When changing from the configuration mode to the protected mode the CP is restarted transition to the off line phase followed by switchover to the on line mode If the address 0 is entered in the LDS for a slave the CP cannot switch from the configuration mode to the protected mode Structure of the job data in the send buffer O protected mode 1 configuration mode 4 13 AS i Master Module CP 342 2 B8976101 01 4 2 1 14 Change Slave Address Meaning With this call the slave address can be changed This call is mainlv used to add a new AS i slave with the default address 0 to the AS interface svstem In this case the address is changed from the old slave address 0 to the new slave address x This change can only be made when the following conditions are fulfilled 1 A slave with the old slave address exists 2 If the old slave address is not equal to 0 then a slave with address 0 cannot be
53. that the address of a slave can be programmed automatically Automatic address programming makes the replacement of a defective slave on the AS I cable much easier see Chapter 5 CM Configuration Mode The mode is displayed here Display on Configuration mode Display off Protected mode The configuration mode is only required when installing the CP 342 2 In the configuration mode the CP 342 2 activates all connected slaves and exchanges data with them For more information about the configuration mode protected mode refer to Section 3 1 SET Button The SET button is required for configuring the CP 342 2 in the standard mode The button is only activated when the PLC is in the STOP mode gt If the CP is in the configuration mode CM lamp lit the CP is automaticallv configured if vou press the button The configuration takes place in the following steps 1 The existing slave configuration signaled bv the displav of active slaves is stored permanentiv bv the CP as the desired configuration 2 The CP then changes to the protected mode 2 6 B8976101 01 AS i Master Module CP 342 2 gt If the CP is in the protected mode CM lamp not lit pressing the button changes the CP to the configuration mode For more detailed information about configuring the CP 342 2 refer to Section 3 1 t The button must be pressed for at least 0 5 seconds to allow the mode to be changed Displav of the Active Slaves The active slaves
54. this call a slave specific parameter value in the EEPROM of the CP 342 2 is read Structure of the job data in the send buffer Bit 7 Bit 0 Byte 0 Byte 1 Slave address Structure of the returned data in the receive buffer Bit 7 Bit 0 Byte 0 4 7 AS i Master Module CP 342 2 B8976101 01 4 2 1 3 Write Parameter Meaning With this call a parameter value is transferred and is sent directly via the AS i bus to the addressed slave The parameter is saved in temporary storage In the response the slave returns the current parameter value This can deviate from the values just written according to the AS i master specification 2 The slave response is entered in the parameter echo field The RECEIVE job for fetching the parameter echo is optional Normally the parameter echo is not evaluated in the S7 program Structure of the job data in the send buffer Bit 7 Bit 0 Byte 0 Byte 1 Byez o Parameter Structure of the returned data in the receive buffer Bit 7 Bit 0 Byteo Parameter echo 4 2 1 4 Read Parameter Meaning With this call the current parameter value actual parameter of a slave is returned Structure of the job data in the send buffer Bit 7 Bit 0 Byte 0 Byte 1 Slave address Structure of the returned data in the receive buffer Bit 7 Bit 0 Byteo 0 Parameterecho 4 8 B8976101 01 AS i Master Module CP 342 2 4 2 1 5 Store Actual Parameters Meaning With this call the configur
55. unction logic block in the SIMATIC S7 system IM Interface module module allowing expansion of the S7 300 system LAS List of activated slaves LDS List of detected slaves LPS List of configured permanent slaves PG Programming device PLC Programmable logic controller e g SIMATIC S7 300 or SIMATIC S5 PLC SIMATIC NET Previously SINEC Range of Siemens products for industrial communication C 1 AS i Master Module CP 342 2 B8976101 01 C 2 B8976101 01 AS i Master Module CP 342 2 D Notes on the CE Approval Product name CP 342 2 6GK7342 2AH00 0XA0 EU Guideline EMC The product listed above meets the requirements of the EU guideline 89 336 EEC 89 336 EEC Electromagnetic Compatibility CE The EU conformity certificates are available for the relevant authorities according to the EU guideline and are kept at the following address Siemens Aktiengesellschaft Bereich Automatisierungstechnik Industrielle Kommunikation AUT93 Postfach 4848 D 90327 N rnberg Germany Area of Application The product meets the following requirements Area of Application Requirements in terms of Noise emission Noise immunity Industry EN 50081 2 1993 EN 50082 2 1995 The product can also be used in a domestic environment household commercial premises workshop with special approval Area of Application Requirements in terms of Noise emission Noise immunity Domestic Special approval EN 50082 1 1992 A special ap
56. w v Switch the PLC to the STOP mode v Change the CP 342 2 to the configuration mode press the button on the CP 342 2 while the PLC is in the STOP mode the CM lamp lights up If the CP is already in the configuration mode as supplied this step can be omitted wv Switch the PLC to RUN and test your program Note In the configuration mode you can also add or remove slaves from the AS i cable Newly added slaves are activated immediately by the CP 342 2 vw On completion of the installation of the AS i slave switch the PLC to the STOP mode v Now press the SET button of the CP 342 2 The CP adopts the configuration indicated by the active slaves as the desired configuration and switches to the protected mode In the protected mode the CM LED is switched off v Switch the PLC to RUN The installation of the CP is then completed 3 1 AS i Master Module CP 342 2 B8976101 01 Simplified Configuration Once vou are certain that all the slaves on the AS i cable are functioning correctiv e g when a CP 342 2 is replaced the CP 342 2 can be started up as follows vw Switch the PLC to the STOP mode vw Change the CP 342 2 to the configuration mode press the SET button the CM indicator lights up If the CP is already in the configuration mode as supplied this step can be omitted v Now press the SET button again on the CP 342 2 The CP then adopts the configuration indicated by the active slaves as the desired c
57. w how to program the CP Read Chapter 1 Section 1 5 Master 342 2 Mode in the manual Introduction and Basic Information In addition to this vou should also read Chapters 3 and 4 in this manual You want to start up the PLC master Chapter 2 Section 2 1 Overview of the module CP 342 2 Module and Chapter Standard Operation of the CP 342 2 contain the information vou require You want to create a PLC program for Chapter 3 contains all the information standard applications you require for standard operation You require additional information about Refer to Chapter 4 for the required extended operation information 1 1 AS i Master Module CP 342 2 B8976101 01 1 1 General Information 1 1 1 Overview of the Chapters Chapter 1 Introduction This chapter contains general information about the layout and use of the manual Chapter 2 Technical Description and Guidelines for Installing the CP 342 2 This chapter provides an overview of the modes installation and startup and the display and operating elements of the CP 342 2 Chapter 3 Standard Operation of the CP 342 2 Chapter 3 describes standard operation of the module which is particularly straightforward and easy to use This mode allows direct access to the inputs and outputs of the AS i slaves just like digital I O modules of the SIMATIC PLC Chapter 4 Extended Operation of the CP 342 2 with FC ASI_3422 Chapte 4 describes the e
58. with the CP 342 2 With the CP 342 2 module 2 types of operation are possible e Standard operation e Extended operation with FC ASI 3422 The difference between the 2 types of operation is as follows Standard Operation In this type of operation the CP 342 2 operates as a conventional analog input output module For each slave on the AS I cable four input and four output bits are reserved on the controller In standard operation no commands or special parameters can be transferred to the slaves on the AS I cable This tvpe of operation corresponds to the profile MO of the AS I master specification Extended Operation with FC ASI_3422 In extended operation the PLC programmer has the complete range of functions available in the AS i system In particular the AS i master calls for example to assign parameters to slaves are available This type of operation corresponds to the profile M1 of the AS i master specification For extended operation in addition to the CP 342 2 the function ASI 3422 is also required and is supplied with this manual 2 8 B8976101 01 AS i Master Module CP 342 2 3 Standard Operation of the CP 342 2 Standard operation represents the most common and at the same time simplest use of the CP 342 2 It allows direct access to the inputs and outputs of the slave e g bus modules just as with analog I O modules of the SIMATIC PLC This type of operation is available immediately after plugging in
59. xtended mode of the CP 342 2 that requires FC ASI 3422 in the control program When using this mode it is for example possible to assign parameters to the AS i slaves or modify the slave addresses by programming the changes in an S7 program Chapter 5 Replacing a Defective Slave Automatic Address Programming Chapter 5 explains how vou can replace a defective AS i slave simplv and easilv Chapter 6 Error Indicators on the CP 342 2 Dealing With Problems This chapter lists and explains the possible error and fault indications on the CP 342 2 and describes ways to eliminate problems 1 1 2 Symbols and Conventions Used in the Text General symbols in the text Vv This symbol indicates an action for you to perform IS This svmbol highlights special features or dangers 1 1 3 Requirements for Understanding the Manual To fullv understand the manual vou should alreadv be familiar with the following gt Programming in STEP 7 gt The AS Interface Introduction and Basic Information manual 1 2 B8976101 01 AS i Master Module CP 342 2 1 1 4 Sample Programs Readme File The floppv disk accompanving this manual contains sample programs in the directorv ICP3422 English that provide you with instructions and help when programming the CP 342 2 These sample programs are explained The readme txt file contains up to date information and explains any restrictions that apply to the use of the CP 342 2 1 1 5 Further Support and Hotlin
60. ystem diagnostic buffer and then reacts as follows gt If the user has not programmed a corresponding interrupt OB 0B82 the PLC CPU changes to the STOP mode gt If the user has programmed OB82 this is started by the PLC operating system The local data of OB82 already contain certain diagnostic information for the user which module triggered the interrupt What type of error has occurred The application program can provide more detailed diagnostic information which slave has failed by reading the diagnostic data record DS 1 using system function SFC 59 RD_REC On completion of OB82 the PLC resumes the cyclic program OB1 at the point at which it was interrupted t It is not possible to program OB82 on the CPU 312 in other words if a diagnostic interrupt occurs the CPU changes to the STOP mode 3 4 2 Interrupt Events The CP 342 2 distinguishes between interrupt events entering and leaving the state If the occurrence of an interrupt event leads to an error free status AS i CONFIG OK TRUE and no CP internal error a diagnostic interrupt leaving state is triggered in OB82 bit 0B82_MDL_DEFECT 0 All other interrupt events result in a diagnostic interrupt entering state bit OB82_MDL_DEFECT 1 The events that can cause the CP 342 2 to trigger a diagnostic interrupt are listed below CP external interrupt events gt All changes to the AS i slave configuration in the protected mode AS i power fail
Download Pdf Manuals
Related Search
Related Contents
DC Standard 12 1..2 12083 Sharp Aries Brochure.indd BaByliss G910E light depilation Solid Clear Dry Clean.indd Copyright © All rights reserved.
Failed to retrieve file