Siemens SIMATIC S5 IP 281 Equipment Manual
Siemens SIMATIC S5 IP 281 Equipment Manual

Siemens SIMATIC S5 IP 281 Equipment Manual

Hide thumbs Also See for SIMATIC S5 IP 281:
Table of Contents

Advertisement

Quick Links

Equipment Manual
Release
Order No: 6ES5998–0KP21
Table of Contents
ESD Guidelines
Notes on Safety
Warning
Table of Contents
Introduction
General
Function Description
Hardware Settings
Software Settings
Interrupt Processing
Commissioning
the
Counter Module
Operating Modes
and Functions
Programming Example
Technical Specifications
Definition of Terms
Index
2
3
4
5
6
7
9
10

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC S5 IP 281

  • Page 1 Table of Contents ESD Guidelines Notes on Safety Warning Table of Contents Introduction General Function Description Hardware Settings Software Settings Interrupt Processing Equipment Manual Commissioning Counter Module Operating Modes and Functions Programming Example Technical Specifications Release Definition of Terms Order No: 6ES5998–0KP21 Index...
  • Page 2 Subject to change without prior notice. Siemens Aktiengesellschaft Although the contents of this publication have been checked for agreement with the hardware and software described, we do not accept liability for total agreement since differences cannot be completely excluded. The information in this publication is checked at regular intervals and necessary corrections included in the next release.
  • Page 3 A few examples are listed below.” Temperature changes Impact Jarring Changes in stress Only through rigorous use of protective measures and careful adherence to the handling guide- lines can malfunctions and downtime of ESD modules be effectively prevented. E – 1 Siemens AG...
  • Page 4 When Does a Static Charge Occur? You can never be absolutely certain that you yourself or the materials and tools you are using are not electrostatically charged. Small charges of up to 100 V are common but these can increase to 35,000 V in a very short time! Examples: –...
  • Page 5 Required ESD protective measures are shown in the figure below. a Conductive floor b ESD table c ESD shoes d ESD shop coat e ESD bracelet f Grounding connection of the — — cabinets Measuring and Modifying ESD Modules Measurements may not be performed on the modules unless –...
  • Page 6 All obligations on the part of Siemens are based on the respective purchase order which also con- tains the complete and solely valid warranty provisions. The information in this manual neither wi–...
  • Page 7 Notes Concerning Danger The following warnings are provided for your personal safety and for the prevention of damage to the described product or connected devices. Notes on safety and warnings to avoid endangering the life and health of users or maintanence personnel and to prevent prope~ damage are indicated as shown below.
  • Page 8 The device/system and/or the system components may only be used for the applications con- tained in the catalog and technical specifications, and only in combination with devices or com- ponents of other manufacturers which have been recommended and/or approved by Siemens. The described rxoduct has been develo~ed, manufactured, tested and documented in com-...
  • Page 9 Notes on Notes on installation and maintenance of the product – based on the application – are listed be- low. , W a r n i n g The safety and accident prevention regulations applicable to the specific appli- cation must be adhered to. Built–in devices for housings or cabinets may only be used and operated when completely installed in the housing or cabinet;...
  • Page 10 The manual contains information which is protected by copyright. Repro- duction or translation into other languages is prohibited without prior written permission from Siemens. s – v...
  • Page 11 ENVIRONMENTAL PROTECTION IN ACTION Information Concerning Packaging Material/Notes on Disposal Dear Customer ! Our high–quality products cannot reach you safely without effective protective packaging. The size of the packaging is kept to an absolute minimum. All our packaging materials are harmless to the environment and can be disposed over without danger. Wood is not chemically treated.
  • Page 12 These so–called SIMATIC– compatible modules are not marketed in agreement with Siemens; we have never recommended the use of so–called SIMATIC–compatible modules of other manufacture. The advertising of these other manufacturers for so–called periodicals, catalogues or at exhibitions had been agreed to by us.
  • Page 13: Table Of Contents

    Table of Contents R 11/92 Table of Contents General Function Description ......... 1 - 1 Short Description .
  • Page 14 R 11/92 Contents Operating Modes and Functions ........6 - 1 Introduction .
  • Page 15 E- I Guidelines for Handling Electrostatic Sensitive E – I Devices (ESD) ..........S - I s –...
  • Page 16 Introduction Setup of the Manual This equipment manual is intended as an aid to installing and operating the 1P 281 module. Before starting to work with the module, take thetimeto Iookthrough this equipment manual. You can start by looking up passages which are of particular interest to you. The goal is to obtain an overview of the information provided.
  • Page 17 Principle of Operation of a Counter Module Counting is primarily the acquisition and summation of events. In the world of electronics, this is the summation of pulses. Two directions of counting are available. Counting up Binary (Decimal =4) When counting up, the pulses are added (to a start value in some cases). This can be used, for example, for simple acquisition of a piece count.
  • Page 18 Counting with starting at a defined point in time, and then use this group information to software start start or stop the counter. (or software stop) Input pulses counter software start (Decimal =2) This can be used, for example, if you know that the characteristics (differ- ences in shape, color, material or other differences) of the first products will be different from the serial product.
  • Page 19 Application Areas of the 1P 281 The 1P 281 counter module permits the acquisition and conditioning of counting pulses up to a counting frequency of 250 kHz. Why is such a conditioning module required when STEP5 programmable counters are already available for all programmable controllers? These software counters have limits.
  • Page 20 The 1P 281 offers additional advantages which speak for the use of this module. Depending on the degree of expansion, the module is equipped with one or two counters. The counters can be used together or separately. The external addressing of counting gate inputs offers additional ways to start and stop the counters.
  • Page 21 Analysis of the Counting Task There are many ways to adapt the 1P 281 to the counting task. The following questions must be answered by the analysis of the counting task. Which encoder is to be used? What counting range is required? What counting frequency is required? Is this a one–time counting procedure or is the counting procedure repeated continuously? Is the counting procedure to be controlled by a hardware or software gate?
  • Page 22 Hardware Settings The 1P 281 counter module is equipped with one or two counters. Each counter can be set sepa- rately. The hardware settings described in section 2 are used to adapt the counter module to specific counting applications. Plug connectors on the front of the module are used to connect the encoder inputs, the digital in- puts and the digital outputs.
  • Page 23: General Function Description

    General Function Description General Function Description Short Description ........... . . 1 – 1 ApplicationArea .
  • Page 24: Short Description

    General Function Description R 11192 General Function Description Short Description The 1P 281 is a counter module for use in SIMATIC S5 controllers. It is modular in design. The and an optional plug–in submodule containing a second counter with the same specifications. Use of the second counter increases the range of applications.
  • Page 25: Application Area

    R 11/92 General Function Description Application Area The 1P 281 module is designed for use in SIMATIC S5 systems, and can be used in the following programmable controllers. Ordering notes The 1P 281 counter module is available under the following order numbers. encoder supply: 1 –...
  • Page 26: Hardwaredescription

    General Function Description R 11/92 Hardware Description 1.3.1 Mechanical Setup Front plate Cover from Cover from soldered side component side Figure 1.1: Setup of the 1P 281 The 1P 281 consists of a basic module and a plug–in submodule available as an optional expan- sion.
  • Page 27 R 11192 General Function Description Make the required hardware settings on the plug– in submodule prior to Mounting the plug–in submodule installation (-t section 2.3). The plastic covering must be removed (four screws) before the plug–in The plug–in submodule is equipped with four plastic distance pins. When inserting the submodule, all pins must snap into place in the receptacle holes.
  • Page 28: Diagnosticleds

    General Function Description R 11/92 1.3.2 Diagnostic LEDs Eight (8) LEDs are installed on the front plate. Readiness indication for the module Error indication for the module Counter running indication Direction indication Status indication for digital output Indications for counter 1 Indications for counter 2 Encoder interface Counter 2...
  • Page 29 R 11/92 General Function Description Description of the Diagnostic LEDs RUN LED(Running) These two LEDs indicate that the module is ready for operation or that ERR LED (Error) malfunctions have occurred. Indication Meaning Voltage supply error (of S5) RESET is active. Module is operating correctly.
  • Page 30: Plug Connectorallocation

    General Function Description R 11/92 1.3.3 Plug Connector Allocation S5 interface, basic The basic plug connector (48–way, multi–pointterminal strip, DIN41612, model F) is located on the back of the module. Its allocation is shown plug connector below. Signal Signal Signal PESP RESET BASP...
  • Page 31 R 11/92 General Function Description Type of plug connector: 15–way, sub D socket with screw lock The pin Encoder inputs, plug connectors allocations of plug connectors X5 (for counter 1) and X7 (for counter 2) X5 and X7 are identical. 5 V Encoder Signals in Accordance with RS 422 Meaning Designation...
  • Page 32 General Function Description R 11/92 Type of plug connector: 8–way, pin plug connector with screw connection Digital inputs and for the individual leads. outputs, plug con- The pin allocations of plug connectors X4 (for counter 1 ) and X6 (for counter nectors X4 and X6 2) are identical.
  • Page 33: Functional Setupofthe Module

    R 11/92 General Function Description Functional Setup of the Module 1.3.4 out a separate processor and represents only a slight load for the SIMATIC S5. The necessaty implemented in a gate array (AW. logic and the two, 16/32–bit counters are Encoder input RS 422...
  • Page 34 R 11/92 General Function Description The following flowchart shows the principle of operation of a counter. It indicates the most impor- tant hardware components and how the registers affect the counter, See section 6.8 for a detailed diagram. S5 bus Control digital output...
  • Page 35: Process Interfaces

    R 11192 General Function DescriLXion Process Interfaces Each counter is equipped with the following inputs and outputs as the interface to the process. Encoder interface The encoder interface can be set to 24 V connection or to 5 V connection (RS 422).
  • Page 36: Encoderinterface

    General Function Description R 11192 Encoder Interface 1.4.1 X35 (counter 1 ) and X 45 (counter 2) are used to make the switch–over. RS 422 input Multiplexer 24 V X35/x45 input Reference potential Allocation Selected Interface Counter 1 Counter 2 1–2 For 24 V encoder 2–3...
  • Page 37 R 11/92 General Function Description 1.4.1.1 24 V Encoder Interface The 24 V encoder interface includes the inputs for the three counting signals A*, B* and N*, a con- nection for load resistances and the encoder supply. Signal inputs The inputs are potentially isolated from the bus and the digital inputs via other.
  • Page 38 R 11/92 General Function Description Encoder with P switching outputs E n c o d e r A* (24 V,Jrack A B* (24 V.Jra k B J -L P switch * (24 V~er mark. pulse) Encoder supply Pin 7 and pin 9 must be jumpered. Encoder with M switching outputs Encoder...
  • Page 39 General Function Description When only one counting input is used, this must be applied to input A*. Counting with one counting input The direction of counting is set on counting input B*. There are two ways to do this. – Connect a directional encoder to counting input B* (low level -+ up, high level -t down).
  • Page 40: Digital Lnputs(Dl)

    General Function Description R 11192 1.4.1.2 5 V Encoder Interface in Accordance with RS 422 The 5 V encoder interface contains the inputs for the three, differential counting signals AJ~, B/E and N~. A 5.2 V encoder supply is available on the module as an option. The signal inputs are provided with potential connected to the S5 bus.
  • Page 41 R 11192 General Function Descridion When the wire break recognition is active and an error occurs, the error is entered in status register 3 and the ERROR LED goes on. There is one wire break recognition for each counter. The message is retained for the duration of the error. When the wire break recognition is active and counting inputs are open, this causes a wire break message.
  • Page 42 R 11192 General Function DescriMion 1.4.2 Digital Inputs (Dl) Each counter is equipped with three digital inputs. SET = External set input (preliminary contact) (e.g., proximity switch) The inputs for counter 1 are located on plug connector X4; the inputs for counter 2 are located on plug connector X6 (+ section 1.3.3).
  • Page 43: Digital Output (Dq)

    R 11192 General Function Description 1.4.3 Digital Output (DQ) Each counter is equipped with one, two-way, digital output with a nominal voltage of 24 V. The digital output for counter 1 is available on plug connector X4; the digital output for counter 2 is available on plug connector X6 (+ section 1.3.3).
  • Page 44: Voltage Supply Forlncremental Encoders

    General Function Description R 11192 1.4.4 Voltage Supply for Incremental Encoders The module is available in the two configurations. – With voltage supply for 24 V encoder – With voltage supplies for 24 V encoder and 5.2 V encoder Fuse —...
  • Page 45: Communicationwiththesimatic S5

    R 11/92 General Function L3escriDtion Communication with the SIMATIC S5 The 1P 281 is an intelligent 1/0 module. It can be addressed in the following areas. – Analog 1/0 area (P area), addresses F080H to FOFFH 2128 to 255 – Expanded 1/0 area (Q area), addresses F1OOH to F1 FFH 20 to 255 The module occupies 8 bytes of input/output address area.
  • Page 46: Hardware Settings

    Hardware Settings R 11/92 Hardware Settings Location of the Setting Elements ........2 – 1 Setting the DILSwitches .
  • Page 47: Location Ofthe Setting Elements

    Hardware Settings Hardware Settings Location of the Setting Elements Slot for plug-in submodule (see next page and section 1.3. 1) Selection of the reference potential Pulse duration on Plug–in the digital output jumpers to x55 “ must be open (used for internal testing .
  • Page 48 R 11192 Hardware Settings Plug–in connectors setting, Wire braakrecognition 24 V inputs Filter setting, Selection of the digital encoder interface inputs 1 2 3 Pin allocation of the p l u g - i n Figure 2.2: Setting elements on the plug-in submodule Before the plug–in jumpers can be set, the cover must be removed by unscrewing four screws from ~he basic module by hand.
  • Page 49: Settingthe Dilswitches

    Hardware Settings R 11/92 Setting the DIL Switches Address decoding and basic address decoding. The register address for read and write accesses of the individual registers is generated from the set basic address and the offset (-t section 3). The module occupies the address area from basic address +0 to basic ad- dress +7 in both the input and output area.
  • Page 50 R 11192 Hardware Settings Setting the basic PLCSS5–11 5U andS5–115H evaluate only address bits ABO to AB7. address for Set DIL switch S1 as shown below. Switch Meaning Setting Basic address S1 .1 to S1.5 Disregard S1 .6 to S1 .9 12/8-bit decoding Since the 1P 281 is always addressed in the analog 1/0 area when used with PLCS5–115U and PLCS5–115H, possible basic addresses are 80H (128)
  • Page 51 Hardware Settings R 11/92 Setting the basic PLCS S5–135U, S5–155U and S5–155H evaluate address bitsAB11 to address for ABO. Set DIL switch S1 as shown below. PLCS5-135U, Switch Meaning Setting Basic address S1 .1 to S1 .5 Areas S1 .6 Selection of area OFF = P area ON = Q area...
  • Page 52 R 11192 Hardware Settings DIL switch S2 is used to select the S5 interrupt line which triggers the Selecting the interrupt on the PLC (+ section 4). interrupt line Only one switch may be set to ON. S5 interrupt lines IRA to IRD OFF: No interrupt ON: Interrupt v”iathe applicable line Status on delivery: all switches OFF...
  • Page 53: Settingthe Plug-Lnjumpers

    R 11192 Hardware Settinas Setting the Plug-In Jumpers Location of the The design of both counters is identical (i.e., the location of the components plug–in jumpers on the module and the plug–in submodule are geometrically identical). This makes it easier to set the plug –in jumpers. The settings are made with plug–in jumpers X20, X30 to X39 (basic module) and X40 to X49 (plug–in submodule).
  • Page 54 R 11/92 Hardware Settings Setting the The 24 V counting inputs and the digital inputs are equipped with RC filter input filter for the suppression of interferences. These filters can be set individually to various limit frequencies. Input signals and interferences whose frequencies are above the limit fre- quency are filtered out.
  • Page 55 Hardware Settings R 11192 Plug–in jumpers X36 to X38/X46 to X48 are used to set the maximum V encoder inputs counting frequencies for the 24 V encoder inputs. Function Counter 1 Counter 2 Track A Track B Zero marking pulse Setting the Limit Frequencies Jumpers X36 to X38 Maximum counting frequency...
  • Page 56 Hardware Settinas R 11192 Wire break Plug–in jumpers X34/X44 are used to switch the wire break recognition on recognition or off for the individual counters (+ section 1.4.1.2). Allocation of the Plug–In Jumpers Wire break recognition for counter 1 Wire break recognition for counter 2 X341X44 Meaning Not permitted...
  • Page 57 Hardware Settings R 11192 Plug– in jumpers X35M45 are used to select the encoder interface (24 V Selecting the encoder interface encoder or 5 V encoder in accordance with RS 422) for the respective (RS 422/24 V) counter. Allocation of the Plug-In Jumpera Interface selection, counter 1 Interface selection, counter 2 Interface Selection...
  • Page 58 Hardware Settings R 11/92 Selecting the Plug– in jumpers X39/X49 are used to set the reference potential for the reference potential encoders. for the encoder The encoder interfaces can be operated as either 24 V interfaces or 5 V (RS422). If the interface is adjusted, the corresponding reference potential must beset to prevent the potential isolation between the 24 V area and the being 5 V area from...
  • Page 59: Softwaresettings

    Software Settings R 11/92 Software Settings General ............. . 3–1 Definition ofthe Registers .
  • Page 60: General

    Settings Software Settings General 3.1.1 Definition of the Registers Select register Used as an addressing aid for the selection of a register set Global registers Registers containing information for both counters. Global registers are control register 3, status register 3 and the interrupt information register. The general module functions are set here.
  • Page 61: Selectingthe Registers

    R 11/92 Software Settings 3.1.2 Selecting the Registers Principle of The registers of the 1P 281 are divided into sets of registers for read and selection write accesses. Before a register can be accessed, the corresponding register set must be set with the select register (@ section 3.2). The desired register can then be read or written via the register address.
  • Page 62: Reading And Writing The Registers

    R 11192 Software Se ftings Reading and Writing the Registers 3.1.3 The registers are read or written via the programmable controller using S5 commands. The permissible commands are found in section 3.10. Writing the The use of word commands is recommended for registers which are longer registers than one byte (load, interrupt and parameter registers) .
  • Page 63: Select Register

    R 11/92 Software Setfinw Select Register A register set is selected to address the registers for the 1P 281. The allocation of the registers to the ;ets is shown in the following figure. Reg. Set O Reg. Set 1 Reg. Set 2 Reg.
  • Page 64: Load Register

    Software Settings R 11192 Load Register Each counter is equipped with a load register. A defined value (load value), which is used to load the counter for certain events, can be stored in this register. The load register can be written atall times (except with operating mode TCLR). It cannot be read back.
  • Page 65 R 11192 Example: Writing load register 1 (32 bits) – Load value is in DB 20. Prerequisites: DW 10 (high word, bits 31 to 16) DW 11 (low word, bits 15to O) – Counting mode 2 or 4 is selected (i.e., offset= 4). –...
  • Page 66: Interrupt Register

    R 11/92 Software Settings Interrupt Register Each counter is equipped with an interrupt register. A defined value (interrupt value) can be stored in this register and continually compared to the current counting value (hardware comparator). A digital output can be activated (+ section 6.7) or an interrupt generated (+ section 4.4) when the counting value reaches the interrupt value.
  • Page 67 R 11192 Software Settings Example: Writing interrupt register 1 (32 bits) Prerequisites: – Interrupt value is in DB 20. DW 10 (high word, bits 31 to 16) DW 11 (low word, bits 15 to O) – Counting mode 2 or 4 is selected (i.e., offset= 4). –...
  • Page 68: Countervalueregister(Cvr)

    Software Settings R 11192 Counter Value Register (CVR) The counter value register (CVR) is used to read out the counter status. It contains either 16 bits (modes 1 and 3) or 32 bits (modes 2 and 4) depending on the counting mode set. The CVRcan be read by the S5 at all times.
  • Page 69 R 11/92 Software Settings Reading CVR 1 (32 bits) Example: Prerequisites: – Memory for counter is in DB 20. DW 20 (high word, bits 31 to 16) – Counting mode 2 or 4 is selected (i.e., offset= O). – Basic address of the module: 136 With word commands: Set register set 1 for access to the counter value register...
  • Page 70 Software Settings R 11192 Interrupt Enable Register (IFR) Each counter is equipped with an interrupt enable register with which the interrupt sources can be enabled or disabled (-t section 4.4). Interrupt value reached, counting up Interrupt value reached, counting down the interrupt is enabled The interrupt is disabled when a “O”...
  • Page 71 R 11192 Software Settings Interrupt Information Register (IIR) The interrupt information register is a 2–byte register in which the causes of an interrupt are en- tered. There is one common IIR for both counters. Allocation of the IIR Disregard Disregard Gate stop Gate stop Gate start...
  • Page 72 Software Settings R 11/92 Reading the IIR Example: Prerequisites: – Memory for IIR value is DW 30 of DB 20. – Basic address of the module: 136 With word commands: Set register set O for the access to the IIR register T PY 136 C DB 20 Call data block 20...
  • Page 73: Status Register

    R 11/92 So ffware Settings Status Register There are three status registers containing information about the current status of the respective counter (status register 1 or 2) or the module (status register 3) (+ section 5.4). Each status register contains 1 byte and can only be read. The static entries are reset when the status register is read.
  • Page 74 R 11192 Software Settinm Contents of Ststus Register 3 s = Static entry, remains set until the register is read d = Dynamic entry, indicates the current status O: O~eratinq mode setting is correct. 1: Operatin~mode setting is incorrect. Counter 2 aubmodule Ineerted O: No 1: Yes Module parameterlzed...
  • Page 75: Parameter Registersand Control Registers

    Software Settings R 11/92 Parameter Registers and Control Registers The method of operation of the counters is set in the parameter registers and the control registers. Each counter is equipped with one parameter register (1 or 2) and one control register (1 or 2). Settings affecting both counters are made in global control register 3.
  • Page 76 R 11192 Software Settings Allocation of Control Registers 1 and 2 I I IL I 1 1 O: Gate is closing. 1: Gate is openingl. Gate enable, GEN O: Gate function is switched off. 1: Gate function is enabledl Gate stop per software, GST O: No effect 1: Stops the counterl Enable counting up synchronization, EUS...
  • Page 77: 3.10 Overview Of The Register Addresses

    R 11/92 3.10 Overview of the Register Addresses Select Offset Read Selected S5 Command Register Length in Bytes Write Register Address Register Select register Control register 1 Control register 2 Control register 3 Parameter register 1 Byte 1 Byte O Parameter register 2 Byte 1 Byte O...
  • Page 78: Interrupt Processing

    Interrupt Processing R 11192 Interrupt Processing 4 – 1 What Is Interrupt Processing? ... . . 4 – 2 Interrupt Processing ..... 4 –...
  • Page 79 R 11/92 Interrupt Processing Interrupt Processing What Is Interrupt Processing? Interrupt processing takes place when a signal external to the processor (CPU, central processing unit of the PLC) interrupts the running program and triggers a separate program (the interrupt pro- gram).
  • Page 80 R 11192 Interrupt Processing Interrupt Processing This type of interrupt acquisition uses special interrupt lines on the S5 backplane bus to feed the interrupt signal to the central processing unit. When selecting the slots, remember that interrupt lines are not available on Slot selection all slots (+ section 8.5 and equipment manual of the PLC).
  • Page 81 R 11/92 Interrupt Processing Interrupt Interrupts are evaluated at different locations on different programmable evaluation controllers. S5–115H Instruction boundaries S5–115U Block boundaries (standard setting) or instruction boundaries (can be set in data block DX O) Remember the following when setting the interrupt points on the S5– 135L.L The advantage of fast acquisition after each instruction (in practical terms, reaction to an interrupt is immediate) must be weighed against the disadvantage that programming the interrupt–controlled program...
  • Page 82: Reaction Times During Interrupt Processing

    R 11192 Interrupt Processing Reaction Times During Interrupt Processing The reaction time to an interrupt consists of the following partial times. – Acquisition time of the module – Acquisition time in the programmable controller – Processing time of the interrupt program Acquisition time (An enabled interrupt source) The time between the triggering event and the triggering of the interrupt line...
  • Page 83 Interrupt Processing R 11192 When are Interrupts can be processed when the supply voltage of the module is within the tolerance range, and the RESET signal is inactive (“0”). interrupts acquired? Incoming interrupts are not processed as long as the BASP signal is active (“l”), When an interrupt is queued and the BASP signal becomes active, the inter- rupt is removed by the 1P 281 from the S5 bus.
  • Page 84: Interruptsources

    R 11/92 Interrupt Processing Interrupt Sources The 1P 281 can trigger the interrupt processing on the S5 CPU when various events occur. There are 6 interrupt sources for each counter. These sources can be enabled bythe respective interrupt enable register. Interrupt disabled 1 = Interrupt enabled Interrupt when interrupt value is reached while counting up...
  • Page 85 R 11/92 Explanation of the Interrupts Interrupt when the interrupt value is reached while counting up The counter must be counting up. An interrupt is triggered when the counter value reaches the interrupt value. A hysteresis of & 1 is provided when the interrupt value is reached Interrupt when the interrupt value is reached while counting down The counter must be counting down.
  • Page 86: Guidelinesforlnterruptprocessing

    Interrupt Processing R 11192 Guidelines for Interrupt Processing The use of one or more counter modules with interrurX wocessina reauires some me~aration. Use the following overview as an aid. Decide how many interrupt–generating modules you want to use, ..section 8.5 and the equipment manual of your PLC).
  • Page 87: Hysteresisofthe Lnterruptvalue

    R 11/92 Interrupt Processing Hysteresis of the Interrupt Value Each counter is equipped with an interrupt register in which an interrupt can be stored. Accep- tance of the interrupt value can be triggered by the S5 (+ section 3.4) or by operating mode TCAR (-t section 6.4.2).
  • Page 88: Commissioningthecounter Module

    Commissioning the Counter Modu/e R 11192 Commissioning the Counter Module Commissioning Guidelines ..........5 – 1 Startup Behavior of the Counter Module .
  • Page 89: Commissioning Guidelines

    Commissioning the Counter Module Commissioning the Counter Module Commissioning Guidelines Hardware settings (items 1 to 5) and software settings (items 6 to 9) must be performed during the commissioning of the counter module. Check the following after unpacking the module. Release status of the module Release status of the plug–...
  • Page 90 R 11192 Commissioning the Counter Modu/e 5. Switch off the programmable controller and insert the module in the slot provided. (Only certain slots are provided for interrupt processing via interrupt lines.) 6. Setup the registers and write your startup program in 06s 20 to 22 Section 3.2 to section 3.9 of your programmable controller.
  • Page 91 R 11/92 Commissioning the Counter Modu/e Startup of the Counter Module After switching on the supply voltage and an inactive RESET of the S5, the module is readv for operation and-the green ‘%U-N” LED goes on. Indication Meaning RUN LED ERR LED Voltage supply missing (from S5) RESET is active.
  • Page 92: Reset Behavior

    R 11/92 Commissioning the Counter Module RESET Behavior RESET Causes 5.3.1 There are two conditions which can cause a RESET of the 1P 281. – RESET due to the S5 RES~ signal - RESET due to power failure or power too low (hardware RESET) The module is reset as soon as one of the two causes occurs.
  • Page 93: Evaluation Ofthe Status Registers

    Commissioning the Counter Module R 11/92 Evaluation of the Status Registers 5 . 4 Status registers 1 to 3 contain information on the current status of the counters and the module. There are static entries and dynamic entries. The applicable bit is set when the triggering event occurs. Reading the status Static: register causes the static bits to be reset.
  • Page 94 R 11/92 Commissioning the Counter Module Gate status Indicates the current status of the internal gate (-t section 6.6) Counter running The CRS (counter, bit O) of the applicable counter is entered in the status register. This bit indicates the current direction of counting. When stopped, the di- Counting direction rection of counting last indicated is retained.
  • Page 95 R 11/92 Commissioning the Counter Module Contents of Status Register 3 s = Static d = Dynamic O: Operating mode setting is legal. 1: Operating mode setting is incorrect. Counter 2 submodule inserted O: No 1: Yes Module psrsmeterized O: No 1: Yes Wire bresk, counter 1 1: Yes...
  • Page 96: Changing The Direction Ofcounting

    R 11192 Commissioning the Counter Modu/e Changing the Direction of Counting The direction of counting is determined by two different methods depending on the type of pulse evaluation. When encoders with two pulse trains displaced by 90” (counting pulse evaluation and B (+ section 6,2,2).
  • Page 97: Overviewofthe Operating Modes

    Commissioning the Counter Module R 11192 Overview of the Operating Modes Counting Mode Operating Mode Gate Control Counters 1 and 2 Counter 1 I Counter 2 Counter 1 I Counter 2 Hardware Gate Software Gate Start stop start 1 2 3 41 The autonomous operat- Ccss + + + +...
  • Page 98 Operating Modes and Functions R 11/92 Introduction ............6–1 CounterSettings .
  • Page 99: Operating Modes And Functions

    R 11/92 Operating Modes and Functions ............
  • Page 100: Countersettings

    Operating Modes and Functions R 11/92 Counter Settings Counting Mode 6.2.1 The counting mode for each counter separately. specifies the counting width and range The basic setting for both counters after power–on is counting mode 1. The counting mode for munter 1 is set in parameter register 1; the counting mode for counter 2.
  • Page 101 R 11/92 Operating Modes and Functions Counting mode 4 The counter has a counting width of 32 bits and operates in the positive and negative counting range listed below. (hexadecimal) 80000000 to 7FFF FFFF –2,1 47,483,648 to +2,147,483,647 (decimal) Parameter register 1/2 15 14 13 12 11 down in the ranges set.
  • Page 102: Counting Pulse Evaluation

    R 11192 Operating Modes and Functions 6.2.2 Counting Pulse Evaluation The counters can operate with one–time, two-time or four–time pulse evaluation, or with direc- tion evaluation. The type of counting pulse evaluation is set for each counter individually in the parameter register. One-time Upward counting pulses are generated with arising edge of A and low level on B.
  • Page 103 R 11/92 Operating Modes and Functions Four-time A counting pulse is generated for every rising and falling edge of A and B. The direction of counting depends on the level at inputs A and B. evaluation (EVFT) Input A Input B Parameter register 1/2 Direction When counting with one counting input, the acquisition of counting pulses...
  • Page 104 R 11/92 Operating Modes and Functions When the 24 V encoder interface is used, the direction of counting can be specified via the “inversion at counting input B“ bit in parameter register 1 /2, without using input B*, Parameter register 1/2 15 14 13 12 11 Inversion at counting input B EVDI...
  • Page 105: Autonomous Operating Modes

    Operating Modes and Functions R 11192 Autonomous Operating Modes Overview 6.3.1 The method of operation of a counter is specified by setting the autonomous operating mode. There are five autonomous operating modes. Continuous counting, CONC One–time counting with soflware gate start, OCSS One–time counting with hardware gate start, OCHG Cyclic counting with software gate start, CCSS Cyclic munting with hardware gate start, CCHG...
  • Page 106: Continuouscounting (Conc)

    Operating Modes and Functions R 11/92 Continuous Counting (CONC) 6.3.2 Method of The counter starts to count at the current counting value and counts operation continuously. After RES= the current counting value is O. Example: Counting mode 1 Down — - - - Gate control Hardware gate via pulse (+ section 6.6.2) Hardware gate via level (+ section 6.6.3)
  • Page 107: One-Time Counting With Software Start (Ocss)

    Operating Modes and Functions R 11/92 One-Time Counting with Software Start (OCSS) 6.3.3 When the software gate opens, the counter is loaded with the value Method of stored in the load register, and begins to count starting with this value. operation It is stopped by the following.
  • Page 108 R 11/92 Operating Modes and Functions Control Control register 1/2 is used for the following purposes. register – Disable/enable the gate function with the GEN bit – Software gate control with the GSS bit – EMERGENCY OFF gate stop with the GST bit Close gate Parameter The OCSS operating mode is set in parameter register 1/2.
  • Page 109: One-Time Counting With Hardware Gate Start (Ochg)

    R 11/92 Operating Modes and Functions 6.3.4 One-Time Counting with Hardware Gate Start (OCHG) Method of The counter operates as an up/down munter. When the hardware gate operation opens, the counter is loaded with the value stored in the load register, and begins to count starting with this value.
  • Page 110 Operating Modes and Functions R 11/92 Control The control register is used to enable/disable the gate function with the register 1/2 Parameter The operating mode and the type of gate control are set in parameter register 1/2 register 1/2. OCHG 6 –...
  • Page 111: Cyclic Counting With Software Start (Ccss)

    R 11/92 Operating Modes and Functions Cyclic Counting with Software Starl (CCSS) 6.3.5 Method of When the software gate opens, the counter is loaded with the load value, operation and begins to count starting with this value. If a counting range limit is exceeded (overflow or underflow), the counter is loaded again with the load value, and resumes counting starting with this value.
  • Page 112 R 11192 Operating Modes and Functions Control Control register 1/2 is used for the following purposes. register – Disable/enable the gate function with the GEN bit – Software gate control with the GSS bit – EMERGENCY OFF gate stop with the GST bit G&...
  • Page 113: Cyclic Counting With Hardwaregate Start (Cchg)

    Operating Modes and Functions Cyclic Counting with Hardware Gate Start (CCHG) 6.3.6 Method of When the hardware gate opens, the counter is loaded with the load value, operation and begins to count starting with this value. If a counting range limit is exceeded (overflow or underflow), the counter is loaded again with the load value, and resumes counting starting with this value.
  • Page 114 R 11192 Operating Modes and Functions The control register is used for the following purposes. Control register 1/2 – Disable/enable the gate function the the GEN bit – EMERGENCY OFF gate stop with the GST bit Parameter The operating mode and the type of gate control are set in parameter register 1/2.
  • Page 115: Combinationoperating Modes

    R 11/92 Operating Modes and Functions Combination Operating Modes Overview 6.4.1 Both munters are required for the combination operating modes. The ERROR LED goes on and the IOM bit is set in status register 3 when the plug–in submodule is not installed. The combination operating modes couple the functions of the counters.
  • Page 116: Transferringthecountingvalue Tothelnterruptregister(Tcar)

    R 11/92 Transferring the Counting Value to the Interrupt Register (TCAR) 6.4.2 Method of The counting value of counter 1 is entered in the interrupt register of operation counter 2 when internal gate 1 closes (+ section 6.6). Gate control The gate functions available are specified by setting the autonomous oper- ating mode (+ section 6.3) for the individual counters.
  • Page 117: Transferringthecountingvalue Tothe Load Register(Tclr)

    Operating Modes and Functions Transferring the Counting Value to the Load Register (TCLR) 6.4.3 Method of The value of counter 1 is entered in the load register of counter 2 when internal gate 1 closes (+ section 6.6). operation Gate control The gate functions available are specified by oper- setting...
  • Page 118: Connectingthezeromarking Pulse To Counter2(Zmpc)

    Operating Modes and Functions R 11/92 Connecting the Zero Marking Pulse to Counter 2 (ZMPC) 6.4.4 Method of The zero marking pulse of encoder 1 is the counting signal for counter 2 operation (zero marking pulse counter). The direction of counting for counter 2 is derived from counting signals A and B of counter 1.
  • Page 119 Operating Modes and Functions 6.4.5 Starting Counter2 When the Interrupt Value of Counter 1 Is Reached (SC2A) Method of Counter 2 is started when both of the conditions below are met. operation – Counter 1 reaches the interrupt value. – The gate of counter 2 (gate 2) is open. When counter 1 reaches the interrupt value, the gate function appropriate to the autonomous operating mode set takes effect for counter 2.
  • Page 120 Operating Modes and Functions R 11/92 Control register Control register 2 The SC2A operating mode is set in parameter register 1. Parameter register Parameter register 1 6 – 22...
  • Page 121: Handling Thecounters

    Operating Modes and Functions R 11/92 Handling the Counters Loading the Counters 6.5.1 The 1P 281 offers several ways to load the counters with a value stored in the load register. – Loading by the S5 – Loading by zero pulse and SET input (synchronization) –...
  • Page 122: Loading With Thezero Pulseand S~Lnput (Synchronization)

    R 11/92 Operating Modes and Functions 6.5.1.2 Loading with the Zero Pulse and SET Input (Synchronization) Method of The respective counter is loaded with the value stored the load register operation when the zero pulse occurs. The synchronization can be performed either at the 1st zero pulse or at every zero pulse.
  • Page 123 R 11/92 Operating Modes and Functions Multiple, counting upward, synchronization ‘ EUS J Counter & loaded. Multiple, counting downward, synchronization UP/DOWN J b“’” Counter is loaded. Parameter The selection of one–time or multiple synchronization is made in parameter register 1/2 for the respective counter. register Parameter register 1/2 O: One–time synchronization...
  • Page 124 Operating Modes and Functions R 11/92 Control register The EUS bit must be set in control register 1 /2 for upward munting synchro- nization and the EDS bit for downward counting synchronization. Control register 1/2 One–time: The applicable bit must beset (O --+1 edge required) before the zero pulse occurs.
  • Page 125: External Resetofacounter

    R 11192 6.5.1.3 External Reset of Counter* * Under development 6 – 27 AG 1992, Order No: 6ES5 888-0KP21...
  • Page 126: Controlling Both Counters Synchronously

    R 11192 Operating Modes and Functions 6.5.2 Controlling Both Counters Synchronously The 1P 281 offers the capability of using the software gate to start and stop Method of both counters per software simultaneously. Both software gates are con- operation trolled by control register 1. Requirements Synchronous mntrol of the counters requires that the two conditions listed below be met.
  • Page 127 R 11/92 Operating Modes and Functions 6.5.3 Raeding the Counters Counter 1 is read by reading counter value register 1 (CVR 1) and counter 2 by reading CVR 2 (synchronously). The basic setting is asynchronous. Reading counters The counters are read separately. The counter value in the respective asynchronously counter value register is retained during the first read access while the read–out takes place.
  • Page 128: Gate Control

    R 11192 Operating Modes and Functions Gate Control The counters are equipped with a gate control offering the following capabilities. – Hardware gate control by level – Hardware gate control by pulse – Software gate control The gate mntrol is activated in control register 1/2 for the respective counter. The internal gate can be closed with an EMERGENCY OFF gate stop for all types of gate control.
  • Page 129: Activatingthe Gatecontrol

    R 11/92 Operating Modes and Functions 6.6.1 Activating the Gate Control After the startup of the module, the gate control is switched off (i.e., the gate is open and the count- ing pulses are fotwarded to the counter). The gate control is switched on/off in control register 1 for counter 1 and in control register 2 for for counter 2.
  • Page 130: Hardwaregatecontrolwith Level (Gale)

    R 11/92 Operating Modes and Functions 6.6.3 Hardware Gate Control with Level (GALE) Method of The gate control is performed via level on the STA digital input. operation Gate start: – High level on the STA digital input – Low level on the STA digital input Gate stop: The STO digital input must be applied to 0.
  • Page 131: Software Gatecontrol

    R 11/92 Operating Modes and Functions 6.6.4 Software Gate Control Software gate control must be used when there are no hardware signals from the external system to start and stop the counters, or when this information must first be obtained from the user pro- gram in the S5.
  • Page 132: Method Ofoperation Of The Digital Outputs

    R 11/92 Operating Modes and Functions Method of Operation of the Digital Outputs 6.7.1 Overview Each counter is equipped with a digital output which can be used to directly trigger processes external to the 1P 281 (+ section 1.4.3). The method of o~eration (i.e., the conditions under which it is activated) of this diaital outtwt can be set separately for eachmunter in parameter register 1/2.
  • Page 133: Digital Output Switched Off(Dqnu)

    R 11/92 Operating Modes and Functions Basic setting After the startup of the module, both digital outputs are switched off. This means that the following conditions exist. – DQNU is selected. – Bit EDQ1 and bit EDQ2 in control register 3 are “0”. Status The status of a digital output (external digital output) is evaluated via the indication...
  • Page 134: Digital Outputactive Inthe Range Between The Lnterruptvalue And Underflow

    R 11/92 6.7.3 Digital Output Active in the Range Between the Interrupt Value and Underflow Method of operation Interrupt vslue Overflow Underflow The digital output is switched active when the counting value is in the range from interrupt value to underflow. The output remains active at Ieastforthe duration of the pulse set with a plug–in jumper (+ section 1.4.3 and sec- tion 2.3).
  • Page 135: (Dqao)

    R 11/92 Operating Modes and Functions Digital Output Active 6.7.4 in the Range Between the Interrupt Value and Overflow Method of operation Underflow Interrupt value Overflow The digital output is switched active when the counting value is in the range from interrupt value to overflow.
  • Page 136: Counting Up(Dqiu)

    R 11192 Pulse on the Digital Output When the Interrupt Value Is Reached While 6.7.5 Counting Up (DQIU) Method of When the counting value reaches the interrupt value while counting up, the operation digital output is activated for a minimum pulse duration which can be set (10 msec, 100 msec, 500 msec + section 2.3).
  • Page 137: Counting Down(Dqid)

    R 11192 Pulse on the Digital Output When the Interrupt Value Is Reached While 6.7.6 Counting Down (DQID) Method of When the counting value reaches the interrupt value while counting down, the digital output is activated for a minimum pulse duration (10 msec, operation 100 msec, 500 msec -+ section 2.3), The interrupt value is provided with a hysteresis of+l (+ section 4.6).
  • Page 138: Block Circuit Diagram

    Operating Modes and Functions R 11/92 Block Circuit Diagram Figure 6.1: Block circuit diagnm of the 1P 281 6 – 40...
  • Page 139: Programming Example

    Programming Example R 11/92 Programming Example 7 – 1 General ..7 – 4 Startup ..7 – 5 Cyclic Program ,, , 7 – 6 InterruptProcessing .
  • Page 140: General

    Programming Example General As an introduction working with the 1P 281, this section contains a program- ming example which can be run on PLC S5–1 15U/S5– 115H. (OB 20 and DX O must be added to the program when PLC S5–135U or S5–155U/S5–l 55H is used.) You can use this program as the basis for your own program.
  • Page 141 Programming Example R 11/92 Device – of the programmable controllers listed (+section 1.2) configuration – Programmer (e,g, PG 685, PG 750) – 1P 281 counter module – Encoder with two pulse trainsl displaced by 90° – Digital input module (e.g.,6ES5420–4UA11) –...
  • Page 142 R 11192 Programming Example Hardware Set basic address 128 and select interrupt line IRA on the 1P 281 counter module (+ section 2.2). settings When a 5.2 V encoder in accordance with RS 422 is used, the interface se- lection and the reference potential must also be changed (+ section 2.3). Parameterization The module operates in ZMPC combination mode (zero marking pulse counter).
  • Page 143: Startup

    R 11/92 Programming Example Startup The module must be parameterized during startup, The module is not equipped with a buffer. Since the parameterization is lost when a power failure occurs or the module is switched off, the formed. OB 21 OB 21 is processed during a manual new start (PG selection and operating mode switch STOP+ RUN).
  • Page 144: Cyclic Program

    R 11/92 Programming Example Cyclic Program Function blocks FB 21 and FB 10, and working data block DB 20 are called by OB 1 in the cyclic program. FB 21 contains the main cyclic program for the 1P 281. FB 21 The structure of the segments makes it easy to handle the individual pro- gram parts (e.g., when setting up your program).
  • Page 145: Interruptprocessing

    R 11/92 Programming Example Interrupt Processing OB 2 is called when an interrupt is triggered via IRA. OB 2 calls funotion block FB 22 and working data block DB 20. The interrupt information register is read in the interrupt program, and at the FB 22 end of interrupt processing, the register set present before the interrupt arri- ved is restored again, (The register set address is stored in DW 31 of...
  • Page 146: Program

    R 11192 Programming Example Program B: PROBEIST.S5D SEGMENT 1 0000 CYCLIC PROGRAM Call FB with cyclic program 0002 NAME :CYCLIC 0 0 0 4 DBNR : Working data block 0006 Interface to inputs/outputs 0008 B: STS5D LEN=9 INTERRUPT OB FOR IRA SEGMENT 1 0000 Call FB with interrupt program...
  • Page 147 Programming Example R 11192 B: PROBEISTS5D LEN=77 SEGMENT 1 STARTUP FB FOR 1P 281 NAME :START–UP I/Q/D/B/T/C: D KM/KH/lCY/KS/KF/KT/KC/KG: =DBNR Open working DB K H 0 0 0 0 Calculate addreasas and store in working DB =ADR 0010 0011 0012 0013 0014 0015...
  • Page 148 Programming Example FB 21 B: PROBEIST.S5D LEN=208 Sheet 1 SEGMENT 1 MAIN CYCLIC PROGRAM OF THE 1P 281 Name :CYCLIC 0008 READ COUNTER VALUE REGISTER 0009 =DBNR Open working DB Disable interrupts 0001 Select register sat 1 Basic address (byte +0) Read counter value register 1 0010 0011...
  • Page 149 Programming Exernple R 11/92 FB 21 B: PROBEISTS5D 26.2 Module still parameterizad? If yes: continue. If no: :STS Stop! New atart required 0 0 5 0 CONT Set “parameterization” bit KM 0000000000000100 in control raaister 3 0051 0053 Write control register 3 0054 Address byte +3 0055...
  • Page 150 R 11/92 Programming Example LEN=206 FB 21 B: PROBEIST.S5D Sheet 3 0086 Write intern@ register 0097 Address byte +4 (reg. byte 3) 0098 0089 Address byte +5 (reg. byte 2) 008A Address byte +6 (reg. byte 1) Address byte +7 (reg. byte O) .*** WRITE INTERRUPT ENABLE REGISTER SEGMENT 7...
  • Page 151 Programming Example R 11/92 FB 22 LEN=33 B: PROBEISTS5D SEGMENT 1 INTERRUPT PROCESSING NAME :INTERUPT I/Q/D/B/T/C: B INTERRUPT INFORMATION REGISTER SEGMENT2 =DBNR Open working DB Disable interrupts Select register set O Basic addreea (byte +0) Read IR information register 0010 Address byte +0 (counter 2) 0011 0012...
  • Page 152: Technical Specifications

    Technical Specifications Technical Specifications Counter Inputs ............8–1 8.1.1 IncrementalEncoderInputs .
  • Page 153: Counterinputs

    Technical Specifications Technical Specifications Counter Inputs and 2 per counter Number of incremental encoder inputa par counter Number of STA digital inputs par counter Number of STO digital inputs par counter Number of S13 digital inputs Potential isolation – Satwaan encoder inputa and digital inputs –...
  • Page 154: Counting Frequencies

    R 11192 Technical Specifications Digital Inputs 8.1.2 24 V Nominal input voltage –3 Vto 4.5 v Input voltage for signal “O” input voltage for signal “1” Signal status for unconnected inputs Input resistance 1.8 K~ (average) Input current for signal “1” (nominal voltage 24 Vl 12 mA (average) Input current (13 V to 30 V) 2.5 MA to 15 mA...
  • Page 155: Powersupply

    Technical Specifications R 11/92 Power Supply 5 V Supply Voltage vfa Basic Plug Connector Xl Nominal value 4.65 v Lower limit 5.25 V Upper limit 600 mA Maximum current consumption 24 V Supply Voltage via Front Plug Connector X3 Static limits (including ripple) –...
  • Page 156: Environmental Requirements

    Technical Specifications R 11/92 Environmental Requirements Climatic Requirement Temperature o“ c to 55” c – Operation Temperature change 10 K/h Condensation not permitted –40” c to 70” c – Storage and transportation (in originai packaging) Temperature change 20 K/h Air pressure –...
  • Page 157 Technical Specifications R 11192 In Which Slots Can the Counter Module Be Operated? The CPUS which can be used are listed in section 1.2. Programmable Controller in Slot Designation Module Subrack Central controller S5-115U CR 700-OIA ........
  • Page 158: Connection Cablesfor Incremental Encoders

    Technical Specifications R 11/92 Connection Cables for Incremental Encoders 8.6.1 Connection Cable for Siemens Incremental Encoder 6FC9320 (RS 422 with 5.2 V Supply Via 1P 281) Order no: O Cable exit: bottom 1 Cable exit: top BFO: 5 m CBO: 10 m...
  • Page 159 Technical Specifications R 11/92 Connection Cable for Incremental Encoder in Accordance with RS 422 8.6.2 (5 V Signals; 5.2 V Supply Via 1P 281) Order no: 0 Cable exit: bottom BFO: 5 CBO: 10 CC5: 25 CD2: 32 Shaft encoder Shield on housing Line 4 x 2 x 0.25 + 2 x 1 mm...
  • Page 160 Technical Specifications R 11/92 8.6.3 Connection Cable for Incremental Encoder in Accordance with RS 422 (5 V Signals; 24 V Supply Via 1P 281) 6ES5703–31XIIZU (See ST52.3/54.l catalog.), max. length 32 m Order no: O Cable exit: bottom 1 Cable exit: top BFO: 5 m CCO: 20 m CC5: 25 m...
  • Page 161 Technical Specifications R 11/92 Connection Cable for 24 V Incremental Encoder 8.6.4 Signals; Supply Via IP281) Order no: O Cable exit: bottom 1 Cable exit: top CBO: 10 m CC5: 25 m Shaft encoder Shield on housing Line 4 x 2 x 0.5 mm 24 V Cable end open Sub D plug connector...
  • Page 162: Requirements Onthelnputsignals

    R 11/92 Technical Specifications Requirements on the Input Signals Precise functioning of the module requires that the input signals on the encoder inputs and digital inputs meet definite specifications with regard to puke width and time in relation to one another. Pulse Widths of the Encoder Inputs 8.7.1 The input signals on the encoder inputs must have the following minimum...
  • Page 163 R 11/92 Technical Specifications Time Relationships Between Counting Signals A and B/A* and B* 8.7.2 The input signals on encoder inputs A and B must meet the following requirements. Times for T2min Max. Counting Frequency T3min encoder inputs 250 kHz 4 p-sac 1.6 ~ec 0.8 ~ec...
  • Page 164 R 11192 Technical Specifications 8.7.4 Time Relationships for HW Gate Control Counting edge = rising edge ..Gate control via pulse Gate control via level Counting edge = rising and falling edge ..Gate control via pulse Gate control via level...
  • Page 165 R 11/92 Technical Specifications Time Relationships for Load Procedures 8.7.5 Loading the Operating modes OCHG and CCHG counter via STA Loed counter (internal signal) Tlmin = Dlmin + 0.7 ~sec Tlmax = Dlmax + 0.7 ~ec The time table for DI in section 8.7.3 applies. Loading in upward direction Loading the counter via...
  • Page 166: Definition Ofterms

    Definition of Terms R 11/92 Disables command output. This signal is sent when the central module goes into BASP stop status. The signal disables the digital outputs. Cyclic counting procedure with hardware gate start, an autonomous operating mode CCHG Cyclic counting procedure with software gate start, an autonomous operating mode CONC Continuous counting, an autonomous operating mode Central processing unit...
  • Page 167 R 11/92 Definition of Terms EVOT One–time evaluation Two–time evaluation Function Mock Level gating (i.e., hardware gate control with level) GALE GAPU Pulse gating (i.e., hardware gate control with pulse) Gate enable Gate function selection (i.e., select type of gate control) Gate–start-stop Gate stop (i.e., EMERGENCY OFF gate stop) Interrupt enable register...
  • Page 168 R 11192 Definition of Terms Digital stop input Synchronous control Synchronous read Underflow. Lower counting range limit has been passed below. TCAR Transfer counting value to alarm register (i.e., interrupt register), a combination operating mode TCLR Transfer counting value of counter 1 to load register of counter 2, a combination operating mode ZMPC Zero marking pulse of encoder 1 to counter 2, a combination operating mode...
  • Page 169 R 11/92 Index Cyclic program, 7–5 Address area, 2–3 Address bits, 2–3 Diagnostic LEDs, 1–5 Address decoding, 2–3 Digital inputs, 1–19 Application area, 1–2 Digital output, 1–20, 6–34 Basic setting, 6–35 Enable, 6–34 Methods of operation Interrupt value pulse, counting down, Basic address, 2–3, 3–2 6–39 Basic module, 1–3...
  • Page 170 R 11/92 Index Interrupt line, 2–6 EVFT, 6–5 Interrupt line selection, 4–2 Interrupt processing, 4–1, 4–2, 7–6 Interrupt program, 4–1, 7–6 Interrupt value, 3–7, 4–9 Inverting the input signals, 6–6 Front plate, 1–5 Functional setup, 1–10 Fuse, 1–21 Limit frequency, 1 –14, 1 –19 Load resistance, 1–1 4 GALE, 6–32 Loading by S5, 6–23...
  • Page 171 Index R 11/92 Plug connector allocation, 1–7 24 V Basic plug connector, 1–7 Setting elements Digital inputs and outputs, 1–9 Basic module, 2–1 Encoder inputs, 1–8 Plug–in submodule, 2–2 Plug–in jumpers, 2–7 BASP function, 2–7 SPE, 6–23 Input filter, 2–8 STA, 6–31 , 6–32 Minimum pulse duration DQ, 2–9 Startup, 7–4...
  • Page 172 Suggestions Siemens AG Corrections Bereich Automatisierungstechnik Kombinationstechnik (B1 .2–TI) For equipment manual D–90713 Furth/Bay. Order no. From: If you find typographical errors while reading this document, please use this form to Name let us know. We would also be grateful for your suggestions, Com~anv/department remarks or ideas.

Table of Contents