Summary of Contents for SIMATIC SM 335

Page 1: ... and Outputs of the SM 335 2 Data Exchange with the SM 335 3 Interval Counter Input 4 Special SM 335 Operating Modes 5 Detecting and Correcting Faults 6 List of Abbreviations A Index 08 2004 Edition 6ES7 335 7HG00 8BA1 SM 335 High Speed Analog Input Output Module for the SIMATIC S7 300 Manual SIMATIC ...

Page 2: ... The product will function correctly and safely only if it is transported stored set up and installed as intended and operated and maintained with care Registered Trademarks SIMATIC SIMATIC HMI and SIMATIC NET are registered trademarks of SIEMENS AG Other designations used in this document may be registered trademarks the owner s rights may be viola ted if they are used by third parties for their ...

Page 3: ...formation contained in this manual will enable you to Use a SM 335 in a SIMATIC S7 300 See operator inputs function descriptions and technical specifications in con nection with the SM 335 Scope of this manual The manual is valid for the following modules Module Order Number From Revision Level SM 335 6ES7 335 7HG01 0AB0 02 This manual contains the descriptions of these modules that are valid at t...

Page 4: ...tion Manual The installation guidelines described in this document also relate to the SM 335 Required basic knowledge This manual assumes general knowledge of automation engineering Knowledge of the SIMATIC S7 programmable controller and the STEP 7 Engineer ing System is also required Approbations The S7 300 programmable controller has obtained the following approvals Underwriters Laboratories Inc...

Page 5: ...terference suppres sion Installation Manual S7 300 Programmable Controller Hardware and Installation CPU 312 IFM 318 2 DP Configuration installation wiring ad dressing commissioning maintenance diagnostics and interference suppres sion System Manual PROFINET system description Basic information about PROFINET Network components data exchange and communication PROFINET IO component based automation...

Page 6: ... SM 335 Reference Manual System software for the S7 300 400 system and standard functions Description of system functions SFC system function blocks SFB and orga nization blocks OB This manual is part of the STEP 7 docu mentation package The description can also be found in the STEP 7 online help Manual SIMATIC NET Twisted Pair and Fiber Op tic Networks Description of industrial Ethernet net works...

Page 7: ... 24 hours a day 365 days a year Phone 49 180 5050 222 Fax 49 180 5050 223 E mail adsupport siemens com GMT 1 00 Europe Africa Nuremberg Authorization Local time Mon Fri 8 00 AM to 5 00 PM Phone 49 180 5050 222 Fax 49 180 5050 223 E mail adsupport siemens com GMT 1 00 United States Johnson City Technical Support and Authorization Local time Mon Fri 8 00 AM to 5 00 PM Phone 1 423 262 2522 Fax 1 423 ...

Page 8: ...d via our Search function in Service Support A forum where users and experts from all over the world exchange their experi ences Your local representative for Automation Drives via our database of repre sentatives Information about field service repairs and spare parts Much more can be found under Services Queries If you have any queries about the S7 300 programmable controller please contact your...

Page 9: ...information about connecting the SM 335 2 2 2 2 Connecting the analog inputs 2 3 2 3 Connecting the analog outputs 2 5 2 4 Connecting the interval counter input 2 6 2 5 Connecting the sensor power supply 2 7 2 5 1 Correcting the sensor power supply 2 9 2 6 Interference suppression filter for 24 V supply voltage 2 10 3 Data Exchange with the SM 335 3 1 3 1 Access via the I O addresses 3 3 3 1 1 Out...

Page 10: ...with the interval counter 4 3 4 3 Wiring the interval counter input 4 5 4 4 Initializing the SM 335 s interval counter input 4 7 4 5 Interval counter values 4 8 4 6 Example for determining the speed by means of the interval counter 4 9 5 Special SM 335 Operating Modes 5 1 5 1 Switching to the special operating modes 5 2 5 2 Comparator mode 5 3 5 2 1 How comparator mode works 5 4 5 2 2 SM 335 param...

Page 11: ...al specifications as all signal modules of the SIMATIC S7 300 Order number Order the SM 335 under the following order number 6ES7 335 7HG01 0AB0 In this chapter We deal with the following topics in this chapter Topic Section Characteristics of the SM 335 1 1 Terminal connection diagram for the SM 335 1 2 Block diagram of the SM 335 1 3 Setting the measuring range with the measuring range module 1 ...

Page 12: ...ar 14 bits Selectable measured value Two voltage inputs Two inputs which can be used as either current or voltage inputs Analog outputs Four isolated analog outputs Selectable range for each analog output For the analog outputs you can connect loads over a two wire connection only Analog value resolution Bipolar 11 bits sign Unipolar 12 bits Operating modes 2 standard operating modes Free cycle Co...

Page 13: ...odule Terminal Connection Diagram Fault LEDs red Analog inputs Voltage current measurement L M0 M0 M1 M1 M2 M2 M3 M3 M 24 V CH0 CH1 CH2 M Analog outputs Voltage output L QV0 QV1 QV3 QV2 MANA M 24 V CH0 CH1 CH2 CH3 M CH3 Interval counter IZ IZ MIZ QVRef MANA 10 V SF Sensor power supply Revision level Reserved Fig 1 1 Terminal connection diagram of the SM 335 Wiring See Chapter 2 and to the SIMATIC ...

Page 14: ...ATIC S7 300 6ES7 335 7HG00 8BA1 Revision Level Products with the same number can be distinguished by the revision level The revision level is incremented by upwardly compatible function expansions or fault corrections The revision level of the module is identified by X see Figure 1 1 in this case the revision level is 1 ...

Page 15: ...SIMATIC S7 300 backplane bus IZ Analog outputs Sensor power supply Analog inputs Interval Counter Input Fig 1 2 Block Diagram of the SM 335 Galvanic isolation As you can see from Figure 1 2 the SM 335 contains different analog parts The analog outputs are isolated from the backplane bus of the SIMATIC S7 300 The outputs are on the same potential MANA The output for sensor supply has the same poten...

Page 16: ...hows the allocation of measuring range module settings to possible connections of the analog inputs The measuring range is set using HW Config You can select from different current or voltage ranges see Section 3 2 The required measuring range module setting is also displayed in HW Config Table 1 1 Measuring range module settings and measuring range defaults on the SM 335 Setting of the measuring ...

Page 17: ...tages currents potentials Rated load voltage L Polarized Galvanic isolation 24 V DC Yes Yes Permissible potential difference Between inputs UCM Between input M terminal and central grounding point Isolation tested with 500 V DC 3 V 1 5 V 10 V ranges 75 V DC 60 V AC Power consumption From SIMATIC S7 300 backplane bus From L Module power loss Max 75 mA Max 150 mA Max 3 6 W Status interrupts diagnost...

Page 18: ...tional limit for current measuring over entire temperature range based on input range 0 25 Basic error operational limit at 25 C based on input range 0 1 for 14 bit resolution Temperature drift based on input range 0 13 Linearity error based on input range 0 015 Repeatability in steady state at 25 C based on input range 0 05 Sensor selection data Input ranges rated values input resistance Voltage ...

Page 19: ...formation for the outputs Measuring principle Successive approximation Conversion time per channel in ms Basic conversion time for 4 channels in ms Max 200 Max 1 Resolution Bipolar Unipolar 13 bits sign 14 bits Data of output to sensor supply Rated voltage 10 V Max output current 25 mA Short circuit proof Yes Operational limit over entire temperature range 0 2 Temperature drift 0 002 K Basic error...

Page 20: ...rror limits for the outputs Crosstalk between outputs 40 dB Operational limit over entire temperature range based on output range 0 5 Basic error operational limit at 25_C based on output range 0 2 Temperature drift based on output range 0 02 K Linearity error based on output range 0 05 Repeatability in steady state at 25 _C based on output range 0 05 Output ripple based on output range 0 05 Actua...

Page 21: ...put MIZ terminal and central grounding point 75 V DC 60 V AC 75 V DC 60 V AC Analog value formation for the interval counter input Measuring principle Detection of a rising edge and measuring the amount of time between two edges Resolution of the time difference 0 5 ms Max frequency Programmable Interference suppression for interference frequency f1 in dB 400 Hz NO 0 Noise suppression and error li...

Page 22: ...ons for the interval counter Sensor selection data Permissible input voltage destruction limit 30 V Permissible input current for interval input destruction limit 5 mA Minimum permissible pulse widths at the counter input Low High 1 ms 1 ms Permissible voltage range between IZ and MIZ termi nals For Low pulse For High pulse 30 V to 5 V 4 4 mA to 0 7 mA 18 V to 30 V 2 5 mA to 4 4 mA ...

Page 23: ...described in Chapter 5 where there is also a de scription of how to switch to the special operating modes 1 6 1 Free Cycle mode Cycle In conjunction with the SM 335 the word cycle is used to mean the measuring of the analog value at all analog inputs in succession Once the measuring cycle is complete and all inputs have been read the cycle starts again from the beginning This cycle has nothing to ...

Page 24: ...nalog input channel CH0 Conversion time for analog input channel CH1 Conversion time for analog output channel CH2 Conversion time for analog output channel CH3 Conversion time for analog output channel CH0 Conversion time for analog output channel CH1 Cycle time Fig 1 3 Cycle time for the SM 335 free cycle The execution times in Free Cycle mode are comprised as follows Base load of a cycle approx...

Page 25: ...ith the re quired output which is dependent on constantly changing values yields a cycle time of 1200 µs 200 µs 4 x 200 µs 4 x 50 µs Four activated input channels and four activated output channels with un changed or rarely changing output values yields a cycle time of 1000 µs 200 µs 4 x 200 µs 4 x 0 µs One activated input channel and four activated output channels with unchanged or rarely changin...

Page 26: ...xpired The end of cycle interrupt can be used to synchronize a user program via OB 40 Furthermore the interrupt enables high speed processing of the user program e g for closed loop control routines Conditional Cycle mode is activated when a cycle time of 1 to 16 ms is set for the SM 335 in HW Config Figure 1 4 shows the various components of the cycle time for a conditional cycle Conversion time ...

Page 27: ...ual SIMATIC S7 300 When connecting the SM 335 please note the installation guidelines in the SIMATIC S7 300 Hardware and Installation Manual In the SM 335 Manual we describe special features that only apply to the SM 335 In this chapter We deal with the following topics in this chapter Topic Section Basic information about connecting the SM 335 2 1 Connecting the analog inputs 2 2 Connecting the a...

Page 28: ... 300 Module Data Reference Ma nual Rules The following applies The cables must be twisted pair cables protected against interference and shielded The accuracy of your measurements depends on the following Load Cable between the SM 335 and the load Reference voltage Power supply The SM 335 must be supplied with 24 V DC The 24 V must be connected to L PIN 1 the 24 V s zero potential to M PIN 20 Grou...

Page 29: ...below is in general the configuration which is least susceptible to interference The SM 335 s analog inputs and the associated zero potential should be con nected to a terminal block and the zero potential for the analog inputs distrib uted over the block Configuration The result is the following basic configuration Sensor 0 Sensor 1 Sensor 2 Sensor 3 Terminal block SM 335 CH0 CH1 CH2 CH3 9 M0 11 ...

Page 30: ...cur bet ween the measuring lines M of the input channels and the reference point of the measuring circuit MANA In order to prevent the permissible value being exceeded you must take various action described below depending on the potential connection of the sensors For details please see the SIMATIC Programmable Logic Controller S7 300 Mod ule Data Reference Manual If you use the SM 335 isolated t...

Page 31: ...ero potential should be connected to a terminal block from where you can tap the zero potential for the analog outputs Configuration The result is the following basic configuration Twisted pair shielded Actuator 0 Actuator 1 Actuator 2 Actuator 3 SM 335 MANA 6 CH3 5 CH0 2 CH1 3 CH2 4 Fig 2 2 Connecting Actuators to the SM 335 Non Isolated Actuators which are shielded and whose shields are grounded...

Page 32: ...nalog output is deactivated with HW Config 2 4 Connecting the interval counter input Non Isolated If you wire the interval counter input as a non isolated input connect pin 19 MIZ and pin 20 24 V power supply s zero potential Isolated If you wire the interval counter input as an isolated input you may not connect pin 19 MIZ to pin 20 24 V power supply s zero potential Additional information See Se...

Page 33: ... the sensor power supply Sensor power supply Measuring signal ÉÉ ÉÉ ÉÉ ÉÉ ÉÉ ÉÉ 10 V 0 V URef 10 V U SM 335 9 M0 7 10 V 10 M0 8 6 MANA Fig 2 3 Example of How to Supply the Sensors with Power via the SM 335 Non isolated configuration Internally the SM 335 s analog zero potential pin 6 is connected with the 10 V sensor power supply s zero potential If you use the four wire measuring method shown in ...

Page 34: ...this can play a role in the measuring of the analog signal You can compute the voltage drop on an electric cable as fol lows U r0 I L A U Voltage drop along the cable r0 Resistivity of the cable used for Cu 0 0172 W mm2 m I Current flowing through the cable in amperes L Length of the cable in meters A Cross section of the cable in mm2 Because of this we would recommend keeping the cables as short ...

Page 35: ... very high accuracy Sensor voltage ModAdd 10 11 The analog value of the sensor voltage UG is factory set and stored in the mod ule The SM 335 supplies the analog value of the sensor voltage UG in input bytes ModAdd 10 and ModAdd 11 see Table 3 1 in Subsection 3 1 1 Correction factor The correction factor K is computed from the sensor voltage UG and the desired voltage K 27648 6C00H UG UG lies betw...

Page 36: ...oltage Caution The SM 335 module must always be used with an interference suppression filter to obtain interference immunity for SIMATIC Interference Interference may reach the SM 335 via the 24 V voltage supply One cause of such interference is the switching of loads connected to the 24 V circuit The inter ference has a high frequency content which can impair proper functioning of the SM 335 ...

Page 37: ...rence 20 M 1 2 2 1 24 V power supply M L Interference Suppression Filter Fig 2 4 Interference Suppression Filter for the 24 V Power Supply of the SM 335 The interference suppression filter can be used for a maximum of 4 SM 335 mod ules and should be located as close as possible to the SM 335 The interference suppression filter is brought into the 24 V supply circuit even if it can be used with a h...

Page 38: ...Connecting the Inputs and Outputs of the SM 335 2 12 SM 335 High Speed Analog Input Output Module for the SIMATIC S7 300 6ES7 335 7HG00 8BA1 ...

Page 39: ...s via the I O addresses e g with L PIW T PQW Setting parameters via HW Config Writing parameters with the help of system function 55 Reading diagnostics data via system function 59 Other methods see Reference Manual System Software for S7 300 400 System and Standard Functions Measuring range module Before you plug in the SM 335 you must insert the measuring range module into the SM 335 The SIMATIC...

Page 40: ... SIMATIC S7 300 6ES7 335 7HG00 8BA1 In this chapter We deal with the following topics in this chapter Topic Section Access via the I O addresses 3 1 Setting parameters via HW Config 3 2 Modifying SM 335 parameters with the help of system func tion 55 3 3 Evaluating SM 335 diagnostics 3 4 ...

Page 41: ...peration As an alter native read access is possible within the process image via L IB or L IW or L ID see Table 3 1 Subsection 3 1 1 Output values Output values are values you write to the SM 335 via T PQB or T PQW or T PQD operation As an alternative write access is possible within the process image via T IB or T IW or T ID You can transfer analog values to the SM 335 via output values The output...

Page 42: ... from measuring channel CH2 FFH or ModAdd 6 High order byte of the measuring value from measuring channel CH3 7FH or ModAdd 7 Low order byte of the measuring value from measuring channel CH3 FFH or ModAdd 8 Number of end of cycle interrupts only for Comparator and Measuring Only modes Default 1 If end of cycle interrupts have been suppressed 1 number of suppressed end of cycle interrupts 00H or Mo...

Page 43: ... 8 when the Comparator mode is exited Example Content of byte 8 5 i e for 5 end of cycle interrupts OB 40 is called only once The value is also stored in the local data of OB 40 see Subsection 3 4 1 Hard ware interrupt Evaluation via OB 40 has the advantage of ensuring the consis tency of the measured value and the number end of cycle interrupts Return code ModAdd 9 When the Comparator or Measurin...

Page 44: ... inputs is not current for Comparator mode only with Comparator 2 see Subsection 5 2 1 Principle of special Comparator mode 2 1 0 Error code see Table 3 3 1 Only bit 5 or 6 can be set but not both Table 3 3 Description of Bits 0 1 2 in the Return Code of the SM 335 Bit2 Bit1 Bit0 Description 0 0 0 No error 0 0 1 Parameter for operating mode Comparator faulty no analog input designated as comparato...

Page 45: ...s Table 3 4 SM 335 Output Values Byte Content ModAdd 0 High order byte of the output value for analog output channel CH0 ModAdd 1 Low order byte of the output value for analog output channel CH0 ModAdd 2 High order byte of the output value for analog output channel CH1 ModAdd 3 Low order byte of the output value for analog output channel CH1 ModAdd 4 High order byte of the output value for analog ...

Page 46: ... 1 V 10 V 2 5 V 10 mA decimal hexa decimal 1 185 V 11 851 V 2 963 V 11 85 mA 32767 32512 7FFFH 7F00H Overflow 1 1758 V 11 758 V 2 938 V 11 758 mA 32508 27652 7EFCH 6C04H Over range 1 V 0 75 V 144 68 µV 0 V 144 68 µV 0 75 1 V 10 V 7 5 V 1446 8 µV 0 V 1446 8 µV 7 5 V 10 V 2 5 V 1 875 V 361 69 µV 0 V 361 69 µV 1 875 V 2 5 V 10 mA 7 5 mA 1446 8 nA 0 mA 1446 8 nA 7 5 mA 10 mA 27648 20736 4 0 4 20736 27...

Page 47: ...exa decimal 2 370 V 11 852 V 23 70 mA 22 96 mA 32767 32512 7FFFH 7F00H Overflow 2 35 V 11 75 V 23 5 mA 22 8 mA 32510 27650 7EFEH 6C02H Overrange 2 V 1 5 V 144 68 µV 0 V 10 V 7 5 V 723 4µV 0 V 20 mA 15 mA 1446 8 nA 0 mA 20 mA 15 mA 4 mA 1157 4 nA 4 mA 27648 20736 2 0 6C00H 5100H 2H 0 Rated range 144 68 µV 18 446 mV 723 4 µV 92 223 mV 1446 8 nA 18 448 µA 4 mA Open wire 7FFFH 2 255 FFFEH FF00H Underr...

Page 48: ...epresentation in the Output Ranges from 0 to 10 V and 10 V Output Value Range Output Voltage decimal hexa decimal 0 10 V 10 V 32767 32512 7FFFH 7F00H Overflow off circuit and de ener gized 0 V 0 V 0 V 0 V 32504 32496 27664 27656 7EF8H 7EF0H 6C10H 6C08H Overrange 11 756 V 11 753 V 10 006 V 10 003 V 11 753 V 11 753 V 10 006 V 10 V 27648 20736 16 8 0 8 16 20736 27648 6C00H 5100H 10H 8H 0H FFF8H FFF0H...

Page 49: ...into the side of the SM 335 You can learn how to do this in Reference Manual SIMATIC Programmable Logic Controller S7 300 Module Data Section 1 4 describes the measuring ranges to be set HW Config Certain features of the SM 335 e g cycle time A D conversion are explained in HW Config Parameter Assignment of STEP 7 The measuring range modules in the module must also be set to the necessary settings...

Page 50: ...ult Settings Parameters Default Setting for Analog Inputs Default Setting for Analog Outputs Cycle time Free Cycle equivalent to 0 5 ms SM 335 cycle time setting Measuring method U or I 4 DMU as per measuring range module setting see Table 1 1 U Measuring Range with U 10 V with I 4 DMU 4 20 mA 10 V Diagnostic interrupt no no Hardware interrupt on end of cycle no no Group diagnostics short circuit ...

Page 51: ...stic interrupt enable yes no yes no no no Diagnostics for inputs Enable includes Measuring range underrange Measuring range overrange Overrange of permitted common mode voltage yes no no Open wire test yes no no Measurement Method Deactivated Voltage Current 4 wire trans ducer Voltage Range Voltage 1 V 2 5 V 0 to 10 V 0 V to 2 V channel CH0 to CH3 default 10 V Current 10 mA 0 mA to 20 mA 4 mA to 2...

Page 52: ...the cycle time for the A D conversion The SM 335 can generate the end of cycle interrupt starting from a cycle time for A D conversion of 1 ms see Subsection 3 4 1 Hardware Interrupt Diagnostic interrupt enable When diagnostic interrupts are enabled the SM 335 generates a diagnostic inter rupt as soon as an error is found Enable diagnostics If the diagnostics for inputs are enabled the SM 335 chec...

Page 53: ...the CPU is at STOP or executing the startup routine the SM 335 outputs the substitute value to the relevant analog output until a new value is specified The SM 335 uses the following as a substitute value 0 V if Outputs off circuit and de energized has been set in HW Config or the analog value last output if Retain last value has been set in HW Config ...

Page 54: ...e stored in a data area on the CPU e g in a bit memory or data block System function 55 WR_PARAM is used to transfer the parameters to the SM 335 Note You must always initialize the SM 335 parameters with HW Config before transferring them with system function 55 Reason The system function accesses SDB 1XX which is generated with HW Config Data Records The SM 335 parameters are stored in two data ...

Page 55: ...specify in HW Config which analog inputs and outputs are to trigger a diagnostic interrupt in the event of an error 7 6 5 4 3 2 1 0 Analog input CH0 Analog input CH1 Analog input CH2 Analog input CH3 Analog output CH3 Analog output CH2 Analog output CH1 Analog output CH0 1 Diagnostic interrupt enabled 0 Diagnostic interrupt disabled 1 Diagnostic interrupt enabled 0 Diagnostic interrupt disabled Fi...

Page 56: ...terrupt and substitute value output 00H 1 Reserved 00H 2 Measuring range for analog input channel CH0 19H 3 Measuring range for analog input channel CH1 19H 4 Measuring range for analog input channel CH2 depends on measuring range mod l tti 5 Measuring range for analog input channel CH3 ule setting see Table 3 12 6 Output range for analog output channel CH0 19H 7 Output range for analog output cha...

Page 57: ...stics interrupt is to be generated Whether the last valid analog value or 0 V is to be output as a substitute value The hardware and diagnostic interrupt settings are effective on all module chan nels 7 6 5 4 3 2 1 0 Analog output CH0 Analog output CH1 Analog output CH2 Analog output CH3 1 Substitute value Last analog value 0 Substitute value 0 V is output Enable hardware interrupt with end of cyc...

Page 58: ...Current For measuring voltage 14 1 V 1 V B This measuring range module setting is not allowed Byte 2 CH0 00H Byte 3 CH1 00H Byte 4 CH2 00H Byte 5 CH3 00H 14H 1 V to 1 V 15H 2 5 V to 2 5 V 18H 0 V to 10 V 19H 10 V to 10 V 1C 0 V to 2 V C Byte 2 CH0 19H Voltage Byte 3 CH1 19H Voltage Byte 4 CH2 23H Current Byte 5 CH3 23H Current 1CH 0 V to 2 V For measuring current 21H 10 to 10 mA 22H 0 mA to 20 mA ...

Page 59: ...ms Note Measuring cycle time of 1 ms The output values are modified before the first measurement channel CH3 The measurements are then made To ensure that all input and output channels are serviced within 1 ms there are no short circuit or measuring range violation diagnostics for a measuring cycle time of 1 ms The Comparator function is not executed in a 1 ms cycle The lack of time means that Com...

Page 60: ...DR1 Byte 12 You use the open wire test parameter byte 12 in data record 1 to determine whe ther an open wire test is to be executed for the relevant analog input 7 6 5 4 3 2 1 0 Analog input CH0 Analog input CH1 Analog input CH2 Analog input CH3 1 Test channel for open wire 0 No test Fig 3 5 Meaning of the bits in the open wire test byte ...

Page 61: ...must always be transferred completely bytes 0 to 13 Data Record 1 The parameters that can be switched dynamically are stored in data record 1 of the SM 335 see Table 3 13 Table 3 13 SM 335 data record 1 for Comparator special mode Byte Content 0 High order byte of analog output value 1 1 Low order byte of analog output value 1 2 High order byte of analog output value 2 3 Low order byte of analog o...

Page 62: ...e comparator is active and the comparator time has expired the SM 335 switches back autonomously to Conditional Cycle or Free Cycle mode The comparator time is specified in milliseconds 1 1 ms 2 2 ms to 0 256 ms Dynamic measuring cycle control DR1 byte 11 The dynamic measuring cycle control byte has the following assignments in Comparator Mode 1 7 6 5 4 3 2 1 0 0 Switch mode off 1 Switch mode on M...

Page 63: ...comparator mode 0 the bit assignment in Figure 3 6 changes Bit 3 to Bit 0 as follows 0001 Analog input CH0 0010 Analog input CH1 0100 Analog input CH2 1000 Analog input CH3 Comparator check byte DR1 byte 12 You can additionally check the comparator in the comparator check byte The comparator check byte has the following structure 7 6 5 4 3 2 1 0 Analog output CH0 Analog output CH1 Analog output CH...

Page 64: ...arator 2 Reversing Point Comparator 1 is monitored in the Free and Conditional Cycles If the measuring value has reached or exceeded the Comparator 1 value and a Comparator 2 has been defined only the Comparator 2 channel is cyclically measured approximately every 40 µs from the reversing point If the measuring value has reached or exceeded the Comparator 2 value or the parameterized monitoring ti...

Page 65: ... for Measuring Only mode with system function 55 WR_PARA The data record must always be trans ferred completely Note The parameters in data record 1 that you transfer to switch to Measuring Only mode must be identical with the parameters that you transferred for Free Cycle or Conditional Cycle modes with the exception of byte 11 Table 3 15 SM 335 Data record 1 for Measuring Only special mode Byte ...

Page 66: ... Comparator mode Fig 3 8 Dynamic measuring cycle control for Measuring Only mode Dynamic disabling of analog inputs DR1 Byte 11 You disable the associated analog input with bits 0 to 3 The default for bits 0 to 3 is 0 Setting a bit to 1 disables the associated analog input If you disable three analog inputs it is possible to attain a measuring cycle time of 0 5 ms 7 6 5 4 3 2 1 0 Analog input CH0 ...

Page 67: ...nd Standard Functions Diagnostics interrupt If you have enabled the diagnostics interrupt for the SM 335 and the SM 335 gen erates a diagnostics interrupt the CPU processes OB 82 The local data of OB 82 contain some of the diagnostics data of the SM 335 see Subsection 3 4 2 Hardware interrupt If the SM 335 generates a hardware interrupt this hardware interrupt can have two causes Interrupt trigger...

Page 68: ...sons for the SM 335 hardware interrupt are entered in byte 8 of the local data see Figure 3 10 7 6 5 4 3 2 1 0 End of cycle interrupt Interrupt triggered by comparator Fig 3 10 Byte 8 in local data in the event of a hardware interrupt generated by the SM 335 Table 3 16 End of cycle interrupt Byte Content 8 Cause of hardware interrupt see Figure 3 10 2 0000 0001 9 Number of measuring cycles 1 10 no...

Page 69: ...arator Byte Content 8 Cause of hardware interrupt see Figure 3 10 2 0000 0010 9 1 Comparator time ms The comparator time is set in byte 10 of the parameter assignment data re cord DR1 see Subsection 5 2 2 10 1 Low order byte measuring value of Comparator 2 11 1 High order byte measuring value of Comparator 2 1 In comparator mode 0 bytes 9 to 11 are not assigned ...

Page 70: ...tic byte 4 see Subsection 3 4 6 00H 4 Channel specific diagnostic byte see Subsection 3 4 7 Channel type 00H general error 71H input 73H output 00H 5 Number of diagnostic bits per channel Fixed 08H 6 Number of inputs outputs Fixed 08H 7 Change in diagnostic byte for input output set bit corresponds to changes in bytes 8 to 15 00H 8 Channel specific diagnostic byte for analog input CH0 00H 9 Channe...

Page 71: ...own in Figure 3 11 Group fault Internal fault External fault Channel fault No 24 V load voltage SM 335 not initialized Invalid parameters 7 6 5 4 3 2 1 0 Fig 3 11 Module diagnostic byte 1 Group fault Bit 0 in module diagnostic byte 1 is set when the SM 335 flags an error fault the only exception being SM 335 not initialized Internal fault Bit 1 is set in module diagnostic byte 1 when the SM 335 de...

Page 72: ...short Channel error If bit 3 in the module diagnostic byte has been set the SM 335 has detected a channel specific error in one of the channels You will find more detailed informa tion in the channel specific diagnostics bytes bytes 8 to 15 No 24 V load voltage Bit 4 in module diagnostic byte 1 is set when the 24 V load voltage has dropped below 10 V SM 335 not initialized Bit 6 in module diagnost...

Page 73: ...ardware fault Operating mode Fig 3 12 Module diagnostic byte 3 Measuring range module not connected not connected correctly Bit 0 is set in module diagnostic byte 3 when the SM 335 recognizes that no mea suring range module has been inserted or when the measuring range module has not been properly inserted Operating mode Bit 2 in module diagnostic byte 3 is set when the SM 335 parameter assignment...

Page 74: ... 3 13 ADC DAC fault 7 6 5 4 3 2 1 0 EEPROM Fig 3 13 Module diagnostic byte 4 EEPROM fault Bit 2 is set in module diagnostic byte 4 when the SM 335 detects an internal error in the EEPROM ADC DAC fault Bit 4 is set in module diagnostic byte 4 when the SM 335 detects an analog digital or digital analog conversion fault Such an error might occur for one of three reasons No 24 V load voltage or below ...

Page 75: ...el input CH0 Channel input CH1 Channel input CH2 Channel input CH3 Channel output CH3 Channel output CH2 Channel output CH1 Channel output CH0 Fig 3 14 Modification indicator bits for channel specific diagnostic bytes Analog input bytes 8 11 The SM 335 sets bits in the channel specific diagnostic bytes for inputs when an error fault is detected at one of the inputs The channel specific diagnostic ...

Page 76: ... wire bytes 8 11 bit 4 Bit 4 is set in the channel specific diagnostic byte for an analog input when a open wire is detected at that input Underrange and overrange byte 8 11 bit 6 7 The measured value at the input is checked for violation overrange bit 6 under range bit 7 Depending on the direction of the range violation the SM 335 sets either the overrange or the underrange bit Analog output byte...

Page 77: ...peed from the interval duration Alternatively you can use the number of intervals to measure positions or the num ber of intervals per time unit to measure speeds Principle You can acquire the following with the interval counter input Number of intervals Duration of an interval In this chapter We deal with the following topics in this chapter Topic Section Principle of an interval counter 4 1 Prin...

Page 78: ...nal Time t 0 1 Interval counter t1 Interval duration ti 0 1 2 3 4 5 6 7 t2 t3 t4 Fig 4 1 Simple Sensor e g With a Slotted Disc on a Shaft Interval counter The interval counter counts the number of intervals The first interval begins on the first transition from 0 to 1 positive edge and ends with the next positive edge which is also the start of the next interval Interval duration counter The inter...

Page 79: ...solution of 0 5 ms The num ber of intervals measured is also tallied If you know the number of pulses the sensor generates for each revolution of the barrel extruder you can compute the speed at which the barrel extruder rotates Example N 16 pulses are generated per barrel extruder revolution N is also referred to as the sensor s number of pulses per revolution The interval between two pulses is 5...

Page 80: ...olutions per minute At least 1 ms must be available for the high levels and the low level These limiting values apply for sensors which generate one pulse per revolution When sensors generating several pulses per revolution are used you must re assess the critical frequencies A number of examples are listed in Table 4 1 Table 4 1 Limiting Values for Different Numbers of Pulses N N Lower limit Uppe...

Page 81: ...ecting a Sensor to the Interval Counter Input Voltage supply A 24 V voltage is required for the interval counter input Utilization of the load volt age 24 V is recommended Current In the 1 state 24 V present a current of no less than 2 5 mA and no more than 4 4 mA must flow through the signal line The minimum current must be observed for example when an electronic switch such as an initiator with ...

Page 82: ... log cables Switch The switch and the cam must be such that the former remains closed for at least 1 ms and open for at least 1 ms at the highest attainable speed Grounding The interval counter input is isolated from the other connections and can thus form no ground loops with them The input is sufficiently grounded when the 24 V load voltage is used to power it and the frame of the 24 V load volt...

Page 83: ...e input therefore does not have to be parameterized The external counter can be retrospectively parameterized with a timeout Monitoring time After the monitoring time has expired the interval duration FFFFFFH is initialized This means that a failure can be detected early not only after 8 3 seconds The monitoring time is calculated as follows Monitoring time 8 388 256 Byte 13 of DS1 unit seconds Sp...

Page 84: ...ress 12 This data byte is 0 as long as no interval has been detec ted Each time an interval is detected the counter is incremented by 1 Interval duration module address 13 to 15 During an interval the SM 335 counts the time until the interval ends in incre ments or time slices of 0 5 ms The SM 335 enters the duration of the interval in three bytes beginning with the byte at module start address 13...

Page 85: ... to be able to consistently access data from the pulse input the interval counter and interval duration must be read out with double word access address module address byte 12 13 14 15 You must subsequently delete byte 12 in order to retain the value for the interval duration in double word format Example Interval duration 00 00 A7 F8H which corresponds to 43000 in decimal The interval number can ...

Page 86: ...Interval Counter Input 4 10 SM 335 High Speed Analog Input Output Module for the SIMATIC S7 300 6ES7 335 7HG00 8BA1 ...

Page 87: ...og inputs The SM 335 behaves like a comparator in this mode In this way particularly short response times are possible when parameterized lim its are crossed Measuring Only In Measuring Only mode the SM 335 constantly measures without updating the analog outputs In this way particularly short cycle times are possible when acquiring analog in puts In this chapter We deal with the following topics i...

Page 88: ...activated if a previously called special operating mode has been exited If this is not observed diagnostics signal an internal error Comparator DS1 byte 11 To switch on Comparator mode you must transfer all the SM 335 parameters and set bits 5 and 7 in byte 11 1 0 1 0 0 0 0 0 Switch mode on Comparator special mode Fig 5 1 Dynamic measuring cycle control for Comparator mode Measuring Only DS1 byte ...

Page 89: ...rator initiates a specific response A comparison value can be specified for every two comparators Two comparators Comparator mode uses two comparators with different characteristic features Table 5 1 Characteristics of the two comparators Comparator Measures End of cycle interrupts When the comparison value is reached 1 Analog input of Comparator 1 Will continue to be generated The SM 335 outputs ...

Page 90: ...parison value when a comparison value is reached a hardware interrupt is generated and the spe cified analog values are output With Comparator 1 the analog inputs can be accessed using peripheral input words Comparator 2 Measuring only at the comparator input When the comparison value is reached a process interrupt is generated and specified analog values are output With Comparator 2 the comparato...

Page 91: ...d on only comparator 1 the SM 335 compares the analog value at the specified analog input with the comparison value The analog inputs continue to be updated and can be read using peripheral input words During this special operating mode analog outputs are frozen When the specified analog value is reached the SM 335 exits Comparator mode After exiting Comparator mode the SM 335 outputs the analog v...

Page 92: ...son value reached As soon as the measured analog value has reached the comparison value The SM 335 generates a hardware interrupt It outputs the specified analog values to the specified analog outputs It writes the number of suppressed end of cycle interrupts to the input value area module address byte 8 and It exits Comparator mode After exiting Comparator mode the SM 335 outputs the analog value...

Page 93: ...the SM 335 operates as follows It measures only at one analog input as fast as possible It suppresses and counts the end of cycle interrupts It compares the measured analog value with the comparison value Hint If you want to output the same analog value that was output in Comparator mode change the least significant bit in the analog value s binary code This has no effect on the analog value since...

Page 94: ...tem function Comparator 2 Comparator 1 Comparison value K2 Time Not active Active Not active Active Comparison value K1 Time Execution time of the system function Fig 5 5 Comparators 1 and 2 in series Operation of Comparator 2 While Comparator 2 is being executed the analog inputs on the control side are not updated The module operates as a stand alone module Message via SM 335 return code see Tab...

Page 95: ...switched in series While the mold is being closed Comparator 1 compares the measured analog va lue with the comparison value for Comparator 1 The analog value is reached when the form has assumed a certain position The SM 335 now activates Compara tor 2 and measures only the values at this analog input Shortly before the mold is closed the measured analog value reaches the comparison value for Com...

Page 96: ...on the SM 335 for Comparator mode Byte Content 0 Analog output value 1 high order byte 1 Analog output value 1 low order byte 2 Analog output value 2 high order byte 3 Analog output value 2 low order byte 4 Analog output value 3 high order byte 5 Analog output value 3 low order byte 6 Comparison value for Comparator 1 high order byte 7 Comparison value for Comparator 1 low order byte 8 Comparison ...

Page 97: ...56 ms The set comparator time is acknowledged in the local data of the OB 40 as long as a corresponding hardware interrupt has been generated by the SM 335 see also Subsection 3 4 1 Table 3 17 Dynamic Measuring Cycle Control DS1 byte 11 The Dynamic Measuring Cycle Control byte has the following format in Compara tor Mode 1 7 6 5 4 3 2 1 0 0 Deactivate mode 1 Activate mode Measuring Only mode Compa...

Page 98: ... mode 0 the bit allocation bit 3 to bit 0 shown in Figure 5 7 chan ges as follows 0001 Analog input CH0 0010 Analog input CH1 0100 Analog input CH2 1000 Analog input CH3 Comparator check byte DS1 byte 12 The Comparator check byte provides an additional means of checking the comparator The Comparator check byte has the following format 7 6 5 4 3 2 1 0 Analog output CH0 Analog output CH1 Analog outp...

Page 99: ...d Bit i 1 Specified value is output Bit i 0 Old analog value is retained You may set as many as three bits The analog values are output until a new value is forwarded to the output Comparator 1 and Comparator 2 DS1 Bit 12 6 to 12 5 Comparator bits 1 and 2 are used to activated Comparators 1 and 2 see Table 5 3 Table 5 3 Controlling the comparator via check bits 1 and 2 Bit 6 Bit 5 Comparator perfo...

Page 100: ...at one analog input 60 ms When measuring at 2 to 4 analog inputs 40 ms Note While the SM 335 is measuring the watchdog is not active This makes it impossible to detect any internal module fault Interrupts are not generated in this mode no diagnostics or hardware interrupts A new analog value is output after the time expires Purpose You can use Measuring Only mode to read values from an analog inpu...

Page 101: ...ta neously Data Record 1 The SM 335 s dynamic parameters for Measuring Only mode are forwarded in data record 1 Note The parameters which you transfer in data record 1 in order to switch to Measuring Only mode must be identical with the parameters you transferred for Free Cycle or Conditional Cycle mode with the exception of byte 11 Table 5 4 SM 335 data record 1 for Measuring Only mode Byte Conte...

Page 102: ...alog input CH3 1 Analog input disabled 0 Analog input read in Measuring Only mode 0 Switch mode off 1 Switch mode on Comparator mode Fig 5 9 Meaning of the bits in the dynamic measuring cycle control byte Measuring Only Activating the mode In order to activate Measuring Only mode set bit 7 and 6 to 1 Bits 5 and 4 must be set to 0 Dynamic disabling of analog inputs Bits 0 to 3 are used to disable t...

Page 103: ...an detect faults at inputs and outputs You can respond to the faults according to the methods of the SIMATIC S7 300 In this chapter We deal with the following topics in this chapter Topic Section Principle of diagnostics 6 1 Setting diagnostics with HW Config 6 2 Evaluating diagnostics data in OB 82 6 3 SM 335 error tree 6 4 Troubleshooting 6 5 6 ...

Page 104: ...Sub section 3 3 2 Diagnostic buffer The diagnostic buffer is a buffered memory area in the CPU which stores the diag nostic events in the order in which they occurred For troubleshooting the user can read out the exact error cause with STEP 7 tar get system module state from the diagnostic buffer Diagnostic OB 82 If you have enabled diagnostic interrupts the SM 335 generates one When a diagnostic ...

Page 105: ...BA1 Disadvantage of the diagnostic interrupt The program is interrupted when OB 82 is invoked If the program contains time critical sequences the scan time needed for OB 82 may increase the response time One way of preventing this is to save only the module start address in OB 82 and evaluate the diagnostic data in OB 1 ...

Page 106: ...e SM 335 generates a diagnostic message for the following events Table 6 1 SM 355 diagnostic messages Diagnostic messages for inputs Event flagged Parameter assignment error Always No external 24 V auxiliary voltage Always Common mode error Always Open wire Only when parameterized Measuring range violation underrange Only when parameterized Measuring range violation overrange Only when parameteriz...

Page 107: ...ce must not ex ceed 2 5 Kohms as otherwise an open wire might be reported erroneously This is ensured when e g a linear potentiometer with max 10 Kohms is con nected When the grinder is located at an intermediate point the partial resistances must be 5 Kohms and the cable connected in parallel resulting in a resistance of 2 5 Kohms Diagnostic interrupt enable If the Diagnostic interrupt box is che...

Page 108: ... items of diagnostic data from the SM 335 3 The CPU calls OB 82 diagnostic interrupt The OB 82 local data contain information about the problem at hand In addition the local data provide the module address of the module which is the subject of the diagnostics 4 Using the information provided in the OB 82 local data call system function 59 5 You can read out data record DR1 using system function 59...

Page 109: ...sociated with each bit Module diagnostic byte 1 bit 0 Module diagnostic byte 1 bit 17 Module diagnostic byte 1 bit 7 Module diagnostic byte 1 bit 2 Module diagnostic byte 1 bit 3 Module diagnostic byte 3 bit 3 Module diagnostic byte 4 bit 2 Module diagnostic byte 4 bit 4 Module diagnostic byte 1 bit 4 Module diagnostic byte 3 bit 0 Module diagnostic byte 1 bit 6 Channel specific diagnostic byte fo...

Page 110: ... 1 Check the load voltage 2 Check the input signal for high frequency inter ference You might have an EMC problem 3 Have the module chek ked and repaired if ne cessary Module diagnostic byte 1 bit 2 AND Module diagnostic byte 1 bit 4 No 24 V load voltage or load voltage less than 10 V input values are set to 7FFFH Check load voltage Module diagnostic byte 1 bit 2 AND Module diagnostic byte 1 bit 3...

Page 111: ...he measuring range module setting con forms with the parameters Module diagnostic byte 1 bit 7 AND Module diagnostic byte 1 bit 6 Module diagnostic byte 1 bit 0 0 Module is not initialized The SM 335 is using default parame ters no hardware interrupts no diag nostic interrupts Initialize the SM 335 cor rectly Module diagnostic byte 1 bit 2 AND channel specific diagnostic byte for analog output x b...

Page 112: ...Detecting and Correcting Faults 6 10 SM 335 High Speed Analog Input Output Module for the SIMATIC S7 300 6ES7 335 7HG00 8BA1 ...

Page 113: ...ut AO Analog output CPU Central processing unit DAC Digital analog converter DB Data block DC Direct current EMC Electromagnetic compatibility EPROM Erasable programmable read only memory KLV Keep last value L Terminal for 24 V DC supply voltage M Ground terminal M Measuring lead positive M Measuring lead negative MANA Reference potential of the analog measuring cir cuit OB Organization block OCV ...

Page 114: ...A 2 SM 335 High Speed Analog Input Output Module for the SIMATIC S7 300 6ES7 335 7HG00 8BA1 ...

Page 115: ... time for A D conversion 3 13 D Default settings 3 12 Diagnostic data Format 3 32 Diagnostic interrupt enable 3 13 Diagnostics 3 17 Diagnostics for inputs Parameter block 3 13 Diagnostics for outputs Parameter block 3 13 E EEPROM fault 3 36 F Faults Troubleshooting 6 8 Free Cycle See also Free Cycle mode Parameters for 3 18 H Hardware interrupt for end of cycle 3 13 I Interference suppression filt...

Page 116: ...easurement 3 13 Output 3 14 Substitute value 3 13 S Sensor power supply Connect 2 7 SM 335 Block Diagram 1 5 Operating Modes 1 13 Order number iii Technical specifications 1 7 Terminal Connection Diagram 1 3 SM 335 Diagnostic data 3 32 Evaluate 6 6 Diagnostics 6 4 Error tree 6 7 Input values 3 3 Output values 3 7 Parameters 3 16 Assignable in S7 Configuration 3 13 Data record 0 3 17 Data record 1 ...

Page 117: ... _ _ _ _ _ _ _ _ _ _ _ _ _ Company _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Address _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Phone _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Please check the field that represents your industry sector Automotive industry Chemical industry Elect...

Page 118: ... _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _...

Reviews: