Page 3
Preface Preface Counting of high-speed processes is an essential task in automation. For this reason, SIEMENS offers a submodule with the standard function counter, MLFB 6ES5 840-4SH01. The submodule with the standard function counter can be used together with an IP 265 in the S5- 90U, S5-95U and S5-100U programmable controllers and additionally in the ET 200 system (from version Z02 of the IM 318-B).
Standard Function Counter Contents Contents Page Construction of the IP 265 Module ....... 1 - 1 Hardware design of the module .
Page 5
Contents Standard Function Counter Page The Counter Functions 4 - 1 Selecting the Counter Function Mode ......4 - 2 Transferring the Set Function Mode Using the IP 265 .
Standard Function Counter Construction of the IP 265 Module Construction of the IP 265 Module Hardware design of the module The standard function counter is carried by the IP 265, a single-width module of the S5-100 PLC. The IP 265 is equipped with several hardware interfaces for communication with the system environment.
Page 7
Construction of the IP 265 Module Standard Function Counter 1.1.2 Digital 24 V Inputs/Digital 24 V Outputs Two 9-pin sub D interfaces are located on the frontplate of the IP 265 Connect the signal lines of the sensors to the 9-pin sub D connector marked "INPUT". You can connect up to 8 24 V digital inputs.
Standard Function Counter Construction of the IP 265 Module 1.1.3 Symmetrical 5 V Differential Inputs The differential inputs are located on the 15-pin sub D socket of the module. The differential inputs interface conforms to the RS422A standard. You can connect 5 V sensors with differential signals to the differential inputs.
Construction of the IP 265 Module Standard Function Counter 1.1.4 Submodule Receptacle The submodule with the standard function counter is plugged into the submodule receptacle on the IP 265. Warning The memory submodule can only be plugged in or removed when the module is in the POWER OFF state.
Standard Function Counter Installation Guidelines Installation Guidelines This section describes how to establish the connections with the programmable controller and the process I/O. 24 V DC Supply The IP 265 is a non-floating module. The 24 V DC load current circuits share the same ground with the control circuit of the PLC.
Installation Guidelines Standard Function Counter Establishing the Connection to the I/O The following electrical connection must be made depending on your application: • Connection between 24 V digital inputs of the module and plant sensors • Connection between 24 V digital outputs of the module and plant actuators •...
Page 12
Standard Function Counter Installation Guidelines Cable connection conditions To ensure the correct functioning of the IP 265, there are important rules to be observed concerning wiring and shielding. Since the IP 265 can only be used in conjunction with the S5-100U, S5- 90/95U or ET 200, it is assumed that you possess one of the relevant manuals.
Installation Guidelines Standard Function Counter Further Notes on Configuring and Installing the Module As the module is usually used as a component in larger systems or plants, the following notes are intended to help you safely integrate the module into its environment. Notes to be observed for the installation and startup of the module, depending on individual applications: Warning...
Standard Function Counter Input and Output Signals Input and Output Signals You control the functionality of the counter via the digital inputs of the IP 265 and via data that is transferred to the IP 265 from the CPU via the process image of the outputs (PIQ) Counter Pulses at the CU1 and CU2 Input This input is a direct link with your process.
Input and Output Signals Standard Function Counter Signals that have an Influence on Counting Counting is influenced by additional signals over hardware inputs or paramters in the PIQ. 3.2.1 Resetting an Output (RSQ) There is an RSQ signal for every counter channel. The assigned ouptut A can be reset with the RSQ signal.
Standard Function Counter Input and Output Signals Location of the Signals in the Process I/O Images The location of the inputs and outputs on the module is described in Section 2. The locations in the process I/O image are as follows: Location of the control signals in the signal byte: Byte No.
Standard Function Counter The Counter Functions The Counter Functions The program offers you three different function modes for your applications. You can change these modes according to your needs via the STEP 5 program. The functions are called: • Normal counter function •...
The Counter Functions Standard Function Counter Selecting the Counter Function Mode There are three bits available in the process image of the outputs (PIQ) for selecting the mode. You use these bits to set the relevant mode. Both channels can be switched to the "normal counter function"...
Standard Function Counter The Counter Functions Transferring the Set Function Mode Using the IP 265 Switching from one function mode to another can be divided into the following steps: 1. Specification of the function mode using the CASC, CF1 and CF2 control bits. 2.
The Counter Functions Standard Function Counter Counter Statuses and Signal Flow in the Three Function Modes The interplay of the individual signals and the sequence of a count process are essential to an understanding of the functions. For this reason the signal sequence is described briefly in the following two subsections.
Standard Function Counter The Counter Functions 4.3.2 The Periodic Counter Function The periodic counter function is a 16-bit wide down counter. The counter in Section 4.3.1 is to be switched to the "periodic counter function". For this purpose, control bit CF1 receives a new assignment during the current count . 19 20 3 100 100 99...
The Counter Functions Standard Function Counter 4.3.3 The Cascade Function The cascade function is a 32--bit wide down counter. Its functionality is no different to the periodic counter function. In the following timing diagram, the periodic counter function has been selected as the starting configuration for both channels.
Standard Function Counter The Counter Functions Value Range for Setpoints and Counter Values The value range depends on the selected function mode. The following table gives you an overview of the formats used: Function Mode Data Width Counter Range Normal counter function (NCF) 2 byte 6 16 bit Start value 0 End value max.
Page 24
The Counter Functions Standard Function Counter 4.5.1 Specifying and Implementing a Setpoint For the purpose of specifying a setpoint, you must assign the parameter area in the PIQ of the CPU according to the counter function. The location of the setpoint values and the counter values in the process I/O area depends on the function modes set.
Page 25
Standard Function Counter The Counter Functions Cascade function Byte number Meaning PIQ Meaning PII High byte Setpoint High byte Counter value Low byte High word Low byte High word High byte Setpoint High byte Counter value Low byte Low word Low byte Low word New setpoints can be specified at any time via the relevant PIQ area of the counter.
Standard Function Counter Addressing Addressing Addressing the IP 265 The IP 265 can be used in slots 0 to 7 of the S5-100U. For each slot, there are eight bytes reserved in the process image of the outputs (PIQ) and eight bytes in the process image of the inputs (PII). Data is interchanged between the CPU and the IP 265 via all eight bytes of the PII and the PIQ.
Page 27
Addressing Standard Function Counter Meaning of the bytes of a slot (example: slot 1) The following table gives you an overview of the assignment of the process I/O images. The IP 265 has been inserted into slot 1 in the example. The start address of the address area is therefore 72. In addition, the table contains cross-references to the sections in which the individual bytes are described.
Standardf Function Counter Loading and Starting the Standard Function Loading and Starting the Standard Function The IP 265 must be set to POWER OFF when the submodule is being inserted. • Switch off the programmable controller • Slide the submodule into the receptacle until it engages. Then switch the programmable controller on again.
Standard Function Counter Diagnostics and Error Messages Diagnostics and Error Messages The actual operating state can be diagnosed and the error messages can be monitored over the status word. Status Word (Byte 0, Byte 1) Status flag Bit 1 Bit 0 IP 265 STOP Byte 0...
Standard Function Counter Technical Specifications of the IP 265 Technical Specifications Module Permissible ambient temperature horizantal configuration 0 ... +60 °C vertical configuration 0 ... +40 °C Current consumption from + 9 V (CPU) <175 mA Insulation rating to VDE 0160 Signal status display Only for 24 V inputs and 24 V outputs (green LEDs)
Page 31
Technical Specifications of the IP 265 Standard Function Counter Digital 24-V Outputs 9-pin sub D socket Number of outputs 8; in the standard function counter 2 Galvanic isolation Status indicator on 5-V side Short-circuit protection yes, electronically clocked Load voltage L + - nominal value 24 V DC - permissible range...
Page 32
IP 265 (RS 422A): • 706 connecting cable for SIEMENS position encoders 6FC9320... Length 5m/16.4 ft ....... . .
Page 33
Standard Function Counter Index Index End value Error messages Address area Addressing the IP 265 Frontplate Address offset Function mode bits Assembling the module - CF1, CF2, CASC Assignment of the process I/O images Function modes - transferring Function mode byte Cable connection conditions Functions Cascade function (CAF)
Page 34
Index Standard Function Counter Standard function Mark/space ratio - loading Memory submodule receptacle - starting Starting the standard function Start value Non-floating Status word Normal counter function STOP RUN transition Structure of the control word Submodule receptacle Offset of address Symmetrical differential inputs Ordering numbers ORing the signal...
Page 35
Siemens AG Sender (Please fill out) AUT E1114B Name Postfach 1963 Werner-von-Siemens-Str. 50 Company/Department D-92209 Amberg Fed. Rep. of Germany Address Suggestions: Corrections: Telephone Standard Function Counter Edition 2 Have you found any typographical errors while reading this manual? Please use this form to tell us about them.