Siemens SIMATIC ET 200SP Manual

Siemens SIMATIC ET 200SP Manual

Technology module, tm count 1x24v
Hide thumbs Also See for SIMATIC ET 200SP:

Advertisement

TM Count 1x24V (6ES7138-6AA01-0BA0) technology module

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC ET 200SP

  • Page 1 TM Count 1x24V (6ES7138-6AA01-0BA0) technology module...
  • Page 2 Preface Documentation guide SIMATIC Product overview Wiring ET 200SP TM Count 1x24V Configuring/address space (6ES7138‑6AA01‑0BA0) technology module Interrupts/diagnostic messages Manual Technical specifications Parameter data record 07/2019 A5E33002339-AD...
  • Page 3 Note the following: WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems.
  • Page 4: Preface

    In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept. Siemens’ products and solutions only form one element of such a concept. Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks.
  • Page 5 Siemens accepts no liability for the use of the open source software over and above the intended program sequence, or for any faults caused by modifications to the software.
  • Page 6: Table Of Contents

    Table of contents Preface ..............................3 Documentation guide ..........................7 Product overview ............................. 12 Properties ..........................12 Functions ..........................17 2.2.1 Detection of counting signals ....................17 2.2.2 Measured value determination ....................18 2.2.3 Switching the outputs at comparison values ................18 2.2.4 Position input for Motion Control .....................
  • Page 7 Table of contents Fast Mode ..........................54 4.4.1 Configuring ..........................54 4.4.2 Reaction to CPU STOP ......................57 4.4.3 Parameter setting ........................58 4.4.4 Explanation of parameters ..................... 62 4.4.5 Address space ........................71 4.4.6 Assignment of the feedback interface ..................71 4.4.7 Isochronous mode .........................
  • Page 8: Documentation Guide

    Documentation guide The documentation for the SIMATIC ET 200SP distributed I/O system is arranged into three areas. This arrangement enables you to access the specific content you require. Basic information The system manual describes in detail the configuration, installation, wiring and commissioning of the SIMATIC ET 200SP.
  • Page 9 You can download the product information free of charge from the Internet (https://support.industry.siemens.com/cs/us/en/view/73021864). Manual Collection ET 200SP The Manual Collection contains the complete documentation on the SIMATIC ET 200SP distributed I/O system gathered together in one file. You can find the Manual Collection on the Internet (https://support.industry.siemens.com/cs/ww/en/view/84133942).
  • Page 10 ● Manuals, characteristics, operating manuals, certificates ● Product master data You can find "mySupport" - CAx Data in the Internet (http://support.industry.siemens.com/my/ww/en/CAxOnline). Application examples The application examples support you with various tools and examples for solving your automation tasks. Solutions are shown in interplay with multiple components in the system - separated from the focus in individual products.
  • Page 11 You can find the SIMATIC Automation Tool on the Internet (https://support.industry.siemens.com/cs/ww/en/view/98161300). PRONETA With SIEMENS PRONETA (PROFINET network analysis), you analyze the plant network during commissioning. PRONETA features two core functions: ● The topology overview independently scans PROFINET and all connected components.
  • Page 12 Documentation guide SINETPLAN SINETPLAN, the Siemens Network Planner, supports you in planning automation systems and networks based on PROFINET. The tool facilitates professional and predictive dimensioning of your PROFINET installation as early as in the planning stage. In addition, SINETPLAN supports you during network optimization and helps you to exploit network resources optimally and to plan reserves.
  • Page 13: Product Overview

    Product overview Properties Article number 6ES7138-6AA01-0BA0 (packing unit: pack of 1) 6ES7138-6AA01-2BA0 (packing unit: pack of 10) The TM Count 1x24V technology module with article number 6ES7138-6AA01-0BA0 and firmware version V2.0 is a compatible replacement for the TM Count 1x24V with article number 6ES7138-6AA00-0BA0.
  • Page 14 Product overview 2.1 Properties View of the module ① ⑦ Module type and designa- LED for supply voltage tion ② ⑧ LED for diagnostics Function class ③ ⑨ 2D matrix code Module type color coding ④ ⑩ Wiring diagram Function and firmware version ⑤...
  • Page 15 Product overview 2.1 Properties Properties The TM Count 1x24V technology module has the following properties: ● Technical properties – One channel – Interfaces: 24 V encoder signals A, B and N from sourcing, sinking or push-pull encoders and sensors 24 V encoder supply, short-circuit-proof DI0, DI1 and DI2 digital input signals DQ0 and DQ1 digital output signals Supply voltage L+...
  • Page 16 Product overview 2.1 Properties The module supports the following functions: Table 2- 1 Version dependencies of the functions Function Firmware Configurable as of version of STEP 7 STEP 7 GSD file module (TIA Portal) PROFINET PROFIBUS Firmware update V1.0 or V5.5 SP4 —...
  • Page 17 BaseUnits that you can use with the technology module in the product information for the documentation of the ET 200SP distributed I/O system (http://support.automation.siemens.com/WW/view/en/73021864). For detailed information on the installation procedure, refer to the ET 200SP Distributed I/O System (http://support.automation.siemens.com/WW/view/en/58649293) system manual. TM Count 1x24V (6ES7138‑6AA01‑0BA0) technology module Manual, 07/2019, A5E33002339-AD...
  • Page 18: Functions

    Product overview 2.2 Functions Functions 2.2.1 Detection of counting signals Counting is the detecting and adding up of events. The counters of the technology module detect encoder signals and pulses and evaluate them accordingly. The count direction can be specified using encoder or pulse signals or through the user program. You can control the counting processes with the digital inputs.
  • Page 19: Measured Value Determination

    Product overview 2.2 Functions 2.2.2 Measured value determination The following high-accuracy measurement functions are available (accuracy up to 100 ppm): ● Frequency measurement with the unit of hertz ● Period measurement with the unit of seconds ● Velocity measurement with a flexibly adaptable unit Update time You can configure the interval at which the technology module updates the measured values cyclically as the update time.
  • Page 20: Position Input For Motion Control

    You can find a detailed description of the use of Motion Control and its configuration in the following: ● Function manual S7-1500 Motion Control available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59381279) ● Function manual S7-1500T Motion Control available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/109481326) 2.2.5...
  • Page 21: Additional Functions

    Product overview 2.2 Functions 2.2.6 Additional functions Synchronization You can configure the edge of an external reference signal that loads the counter with the specified start value. The following external signals can trigger a synchronization: ● Rising or falling edge of a digital input ●...
  • Page 22: Wiring

    ET 200SP distributed I/O system (http://support.automation.siemens.com/WW/view/en/73021864). You can find information about selecting a suitable BaseUnit in the ET 200SP Distributed I/O System (http://support.automation.siemens.com/WW/view/en/58649293) system manual and ET 200SP BaseUnits (http://support.automation.siemens.com/WW/view/en/58532597/133300) manual. You can find information on wiring the BaseUnit, connecting cable shields, etc. in the Connecting section of the ET 200SP Distributed I/O System (http://support.automation.siemens.com/WW/view/en/58649293) system manual.
  • Page 23 Wiring 3.1 Pin assignment and block diagram Digital inputs DI0, DI1 and DI2 The digital inputs are used for gate control, synchronization and the Capture function. The digital inputs are not isolated from each other. Input delay for digital inputs In order to suppress noise you can configure an input delay for the digital inputs.
  • Page 24 Wiring 3.1 Pin assignment and block diagram ● Pulse encoder with direction signal: The counting signal is connected to the A terminal. The direction signal is connected to the B terminal. Counting down takes place at a high level of the direction signal. The N terminal remains unconnected.
  • Page 25 Wiring 3.1 Pin assignment and block diagram Pin assignment of BaseUnit The table below shows the pin assignment, using the BaseUnit BU15-P16+A0+2B as an example. Table 3- 1 Pin assignment of BaseUnit BU15-P16+A0+2B Designation Signal name View Signal Designation name 24 V incremen- 24 V pulse encoder encoder...
  • Page 26 Wiring 3.1 Pin assignment and block diagram Block diagram The figure below shows the block diagram of the technology module. You must ground the shields of the cables between encoder and technology module both through the shield terminal on the BaseUnit (shield bracket and terminal) and also on the encoder.
  • Page 27: Configuring/Address Space

    ● Function manual Counting, Measurement and Position Detection available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820) ● Information system of STEP 7 (TIA Portal) under "Using technology functions > Counting, measurement and position input > Counting, measurement and position input (S7-1500)"...
  • Page 28: Reaction To Cpu Stop

    "Technology objects > Add new object > Counting and measurement". You can find information on configuring with a technology object in function manual Counting, measurement and position detection (http://support.automation.siemens.com/WW/view/en/59709820). 4. Open the configuration of the High_Speed_Counter technology object, e.g. using the Configuration button in the instruction for the technology object.
  • Page 29 Configuring/address space 4.1 Operating with "Counting and measurement" technology object Parameters of the TM Count 1x24V The following parameter settings are possible in the hardware configuration. The default settings of the parameters are shown in bold in the "Value range" column. Table 4- 2 Configurable parameters and their default setting Parameter...
  • Page 30 Configuring/address space 4.1 Operating with "Counting and measurement" technology object The following parameter settings are possible in the technology object: Table 4- 3 Configurable parameters and their default setting Parameter Value range Scope Signal type Channel Pulse (A) • Pulse (A) and direction (B) •...
  • Page 31 Configuring/address space 4.1 Operating with "Counting and measurement" technology object Parameter Value range Scope Reaction to violation of a count- Channel Stop counting • ing limit Continue counting • Reset when counting limit is Channel To opposite counting limit • violated To start value •...
  • Page 32 You can find a detailed description of the parameters in function manual Counting, Measurement and Position Detection in sections Basic parameters and Configuring the High_Speed_Counter available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820). TM Count 1x24V (6ES7138‑6AA01‑0BA0) technology module Manual, 07/2019, A5E33002339-AD...
  • Page 33: Address Space

    You can find a detailed description of isochronous mode in the following: ● In the isochronous mode function manual as a download from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109755401). ● Function manual PROFINET with STEP 7 available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/49948856) TM Count 1x24V (6ES7138‑6AA01‑0BA0) technology module...
  • Page 34: Position Input For ""Motion Control"" Technology Object

    ● Function manual Counting, Measurement and Position Detection available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820) ● Information system of STEP 7 (TIA Portal) under "Using technology functions > Counting, measurement and position input > Counting, measurement and position input (S7-1500)"...
  • Page 35: Parameter Setting

    "Technology objects > Add new object > Motion Control". You can find information on configuring with axis technology objects in function manual S7-1500T Motion Control (https://support.industry.siemens.com/cs/ww/en/view/109481326). 4. Open the configuration of the axis technology object, e.g. using the Configuration button in the respective instruction for the technology object.
  • Page 36 You can find a detailed description of the parameters in function manual Counting, Measurement and Position Detection, section Module parameters (position input for Motion Control) available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820). TM Count 1x24V (6ES7138‑6AA01‑0BA0) technology module Manual, 07/2019, A5E33002339-AD...
  • Page 37: Address Space

    Configuring/address space 4.2 Position input for ""Motion Control"" technology object 4.2.3 Address space Address space of the technology module Table 4- 6 Size of input and output addresses of the TM Count 1x24V with position input for "Motion Control" technology object Inputs Outputs Range...
  • Page 38 You can find a detailed description of isochronous mode in the following: ● In the isochronous mode function manual as a download from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109755401). ● Function manual PROFINET with STEP 7 available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/49948856) TM Count 1x24V (6ES7138‑6AA01‑0BA0) technology module...
  • Page 39: Configuring

    Configuring/address space 4.3 Manual operation (without technology object) Manual operation (without technology object) 4.3.1 Configuring Introduction You configure the technology module and assign its parameters with the configuration software. The functions of the technology module are controlled and checked by the user program via the control and feedback interface.
  • Page 40 ● Function manual Counting, Measurement and Position Detection available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820) ● Information system of STEP 7 (TIA Portal) under "Using technology functions > Counting, measurement and position input > Counting, measurement and position input (S7-1500)"...
  • Page 41: Reaction To Cpu Stop

    Configuring/address space 4.3 Manual operation (without technology object) 4.3.2 Reaction to CPU STOP You set the response of the technology module to CPU STOP for each channel in the basic parameters of the device configuration. Table 4- 7 Response of technology module to CPU STOP Option Meaning Continue opera-...
  • Page 42: Parameter Setting

    2. Set the parameters in the hardware configuration. You can find information on the respective dependencies of the parameters in function manual Counting, Measurement and Position Detection (http://support.automation.siemens.com/WW/view/en/59709820). The parameters marked with in the following tables are not configurable in the PROFIBUS GSD file.
  • Page 43 Configuring/address space 4.3 Manual operation (without technology object) Parameters of the TM Count 1x24V The following parameter settings are possible. The default settings of the parameters are shown in bold in the "Value range" column. Table 4- 8 Configurable parameters Parameter Value range Scope...
  • Page 44 Configuring/address space 4.3 Manual operation (without technology object) Parameter Value range Scope Hardware interrupt: Compari- Channel Deactivated • son event for DQ0 occurred Activated • Hardware interrupt: Compari- Channel Deactivated • son event for DQ1 occurred Activated • Signal type Channel Pulse (A) •...
  • Page 45 Configuring/address space 4.3 Manual operation (without technology object) Parameter Value range Scope Reaction to violation of a count- Channel Stop counting • ing limit Continue counting • Reset when counting limit is Channel To opposite counting limit • violated To start value •...
  • Page 46: Explanation Of Parameters

    Explanation of parameters You can find a detailed description of the parameters in function manual Counting, Measurement and Position Detection, sections Basic parameters and Manual operation available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820). TM Count 1x24V (6ES7138‑6AA01‑0BA0) technology module Manual, 07/2019, A5E33002339-AD...
  • Page 47: Address Space

    Configuring/address space 4.3 Manual operation (without technology object) 4.3.4 Address space Address space of the technology module Table 4- 9 Size of input and output addresses of the TM Count 1x24V with manual operation Inputs Outputs Range 16 bytes 12 bytes 4.3.5 Control and feedback interface Note...
  • Page 48 Configuring/address space 4.3 Manual operation (without technology object) Explanations Control bit/value Explanations SLOT_m You specify the load value with this value. You specify the meaning of the value in LD_SLOT_m. If you want to load a comparison value in the "Measuring" operating mode, specify the load value as floating-point number (REAL).
  • Page 49 Configuring/address space 4.3 Manual operation (without technology object) Control bit/value Explanations SW_GATE Use this bit to open and close the software gate when using an incremental encoder or pulse encoder. Together, the software gate and the hardware gate form the internal gate. The tech- nology module only counts when the internal gate is open.
  • Page 50: Assignment Of The Feedback Interface

    Configuring/address space 4.3 Manual operation (without technology object) 4.3.5.2 Assignment of the feedback interface The user program receives current values and status information from the technology module by means of the feedback interface. Feedback interface The following table shows the assignment of the feedback interface: Byte offset Bit 7...
  • Page 51 Configuring/address space 4.3 Manual operation (without technology object) Explanations Feedback bit/value Explanations COUNT_VALUE This DINT value displays the current counter value. CAPTURED_VALUE This DINT value indicates the last acquired Capture value. The following external signals can trigger the Capture function: Rising or falling edge of a digital input •...
  • Page 52 Configuring/address space 4.3 Manual operation (without technology object) Feedback bit/value Explanations STS_SW_GATE This bit indicates the status of the software gate. 0 means: Gate closed • 1 means: Gate open • STS_READY This bit indicates that the technology module supplies valid user data. The technology module has been started up and configured.
  • Page 53 Configuring/address space 4.3 Manual operation (without technology object) Feedback bit/value Explanations EVENT_ZERO This bit indicates the saved state that the counter value or position value experienced a zero cross- ing. You reset the state by acknowledgment with RES_EVENT. If the "Zero crossing" hardware interrupt is enabled, it can also be triggered by the system if "0" is outside the configured value range.
  • Page 54: Isochronous Mode

    You can find a detailed description of isochronous mode in the following: ● In the isochronous mode function manual as a download from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109755401). ● Function manual PROFINET with STEP 7 available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/49948856) TM Count 1x24V (6ES7138‑6AA01‑0BA0) technology module...
  • Page 55 Configuring/address space 4.4 Fast Mode Fast Mode You can use the technology module in Fast Mode for very fast acquisition of the counter value with compressed functionality. A reduced feedback interface but no control interface is available in Fast Mode. This allows you to use a shorter send clock for the CPU. The scope of functions of the technology module has the following additional restrictions in Fast Mode: ●...
  • Page 56 ● Function manual Counting, Measurement and Position Detection available for download on the Internet (http://support.automation.siemens.com/WW/view/en/59709820) ● Information system of STEP 7 (TIA Portal) under "Using technology functions > Counting, measurement and position input > Counting, measurement and position input (S7-1500)"...
  • Page 57 HSP0300. You can find the Hardware Support Packages (HSP) for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/72341852). You can also access this download from the menu bar of STEP 7 (TIA Portal): "Options >...
  • Page 58 Configuring/address space 4.4 Fast Mode 4.4.2 Reaction to CPU STOP You set the response of the technology module to CPU STOP for each channel in the basic parameters of the device configuration. Table 4- 10 Response of technology module to CPU STOP Option Meaning Continue opera-...
  • Page 59 Configuring/address space 4.4 Fast Mode 4.4.3 Parameter setting You specify the properties of the technology module using various parameters. Depending on the settings, not all parameters are available. When parameters are assigned in the user program, the parameters are transferred to the module with the "WRREC" instruction and data record 128 (Page 92).
  • Page 60 Configuring/address space 4.4 Fast Mode Parameters of the TM Count 1x24V The following parameter settings are possible. The default settings of the parameters are shown in bold in the "Value range" column. Table 4- 11 Configurable parameters Parameter Value range Scope Potential group Module...
  • Page 61 Configuring/address space 4.4 Fast Mode Parameter Value range Scope Filter frequency Channel 100 Hz • for counter inputs 200 Hz • 500 Hz • 1 kHz • 2 kHz • 5 kHz • 10 kHz • 20 kHz • 50 kHz •...
  • Page 62 Configuring/address space 4.4 Fast Mode Parameter Value range Scope Input delay for digital inputs Channel None • 0.05 ms • 0.1 ms • 0.4 ms • 0.8 ms • 1.6 ms • 3.2 ms • 12.8 ms • 20 ms •...
  • Page 63 Configuring/address space 4.4 Fast Mode 4.4.4 Explanation of parameters Potential group A potential group consists of a group of directly adjacent I/O modules within an ET 200SP station that are supplied from a common supply voltage. A potential group begins with a light BaseUnit, which feeds the required supply voltage for all modules of the potential group.
  • Page 64 Configuring/address space 4.4 Fast Mode Signal evaluation With the parameter assignment of the signal evaluation, you specify which edges of the signals are counted. You can select from the following options: Signal evaluation Meaning Single The edges of signal A are evaluated during a low level of signal B. Double Each edge of signal A is evaluated.
  • Page 65 Configuring/address space 4.4 Fast Mode Reaction to signal N You use this parameter to specify which reaction to signal N is triggered. You can select from the following options: Option Meaning No reaction to signal N The counter is not affected by signal N. Synchronization at signal N The counter is set to the start value at signal N.
  • Page 66 Configuring/address space 4.4 Fast Mode Count direction of the synchronization You use this parameter to specify the count direction for which the following functions are enabled: ● Synchronization at signal N ● Synchronization as function of a digital input You can select from the following options: Option Meaning In both directions...
  • Page 67 Configuring/address space 4.4 Fast Mode High counting limit With the parameter assignment of the counting high limit, you limit the counting range. You can enter a value up to 33554431 (2 -1). You must enter a value above the counting low limit.
  • Page 68 Configuring/address space 4.4 Fast Mode Reaction to gate start You can configure the following reaction to gate start: Reaction Meaning Set to start value When the gate is opened, the counter value is set to the start value. Continue with current value When the gate is opened, counting is continued with the last counter value.
  • Page 69 Configuring/address space 4.4 Fast Mode Input delay You use this parameter to suppress signal noise at the digital inputs. Changes to the signal are only detected if they remain stable for longer than the configured input delay time. Note If you select the "None" or "0.05 ms" option, you must use shielded cables for connection of the digital inputs.
  • Page 70 Configuring/address space 4.4 Fast Mode Set output With the parameter assignment of a digital output, you specify the condition upon which the digital output switches. You can select from the following options: Function of a digital output Meaning Between comparison value and high The respective digital output is active if: limit Comparison value <= counter value <= counting high limit...
  • Page 71 Configuring/address space 4.4 Fast Mode Count direction You use this parameter to specify the count direction for which the selected functions is valid: You can select from the following options: Count direction Meaning In both directions The comparison and switching of the respective digital output takes places regardless of the count direction.
  • Page 72 Configuring/address space 4.4 Fast Mode 4.4.5 Address space Address space of the technology module Table 4- 12 Size of input and output addresses of the TM Count 1x24V with Fast Mode Inputs Outputs Range 4 bytes 0 bytes 4.4.6 Assignment of the feedback interface The user program receives current values and status information from the technology module by means of the feedback interface.
  • Page 73 Configuring/address space 4.4 Fast Mode Explanation of feedback bits Feedback bit Explanations As a sign of life, this bit indicates through a state change (toggling) that isochronous mode is functioning and that the module has updated the feedback interface in the respective bus cycle. This bit is set to 0 in non-isochronous mode.
  • Page 74 You can find a detailed description of isochronous mode in the following: ● In the isochronous mode function manual as a download from the Internet (https://support.industry.siemens.com/cs/ww/en/view/109755401). ● Function manual PROFINET with STEP 7 available for download on the Internet (https://support.industry.siemens.com/cs/ww/en/view/49948856) TM Count 1x24V (6ES7138‑6AA01‑0BA0) technology module...
  • Page 75: Interrupts/Diagnostic Messages

    Interrupts/diagnostic messages Status and error display LEDs The following figure shows you the LED displays (status and error displays) of TM Count 1x24V. ① ⑧ DIAG (green/red) Status DI1 (green) ② ⑨ Status A (green) Status of DI2 (green) ③ ⑩...
  • Page 76 Interrupts/diagnostic messages 5.1 Status and error display Meaning of the LED displays The following tables explain the meaning of the status and error displays. Remedial measures for diagnostic alarms can be found in section Diagnostic messages (Page 77). Table 5- 1 Status and error displays DIAG LED DIAG Meaning...
  • Page 77 Interrupts/diagnostic messages 5.1 Status and error display Channel LEDs The A, B, N and DIm LEDs indicate the current level of the associated signals. The LEDs of the DQm digital outputs indicate the desired state. The UP and DN LEDs indicate the logical counting direction. The flashing frequency of the channel LEDs is limited to approximately 12 Hz.
  • Page 78: Diagnostic Messages

    Interrupts/diagnostic messages 5.2 Diagnostic messages Diagnostic messages Enabling of diagnostic interrupts You enable the diagnostic interrupts in the device configuration with the basic parameters. The technology module can trigger the following diagnostic interrupts: Table 5- 5 Possible diagnostic interrupts Diagnostic interrupt Monitoring Monitoring is always active.
  • Page 79 "RALRM" (Read additional alarm information), in the information system of STEP 7 and in function manual Diagnostics (https://support.industry.siemens.com/cs/ww/en/view/59192926), section "System diagnostics in user program". If the module is being operated as a distributed module in an ET 200SP system with PROFIBUS DP, you have the option of reading out diagnostic data with the RDREC or RD_REC instruction using data record 0 and 1.
  • Page 80 Interrupts/diagnostic messages 5.2 Diagnostic messages Diagnostic alarms The display of diagnostics is in plain text in STEP 7 (TIA Portal) in the online and diagnostics view. You can evaluate the error codes with the user program. The following diagnostics can be signaled: Table 5- 6 Diagnostic alarms, their meaning and remedies Diagnostic alarm...
  • Page 81 Interrupts/diagnostic messages 5.2 Diagnostic messages Diagnostic alarm Error Meaning Remedy code Error at digital Error at the digital outputs Check wiring at the digital outputs • • outputs Possible causes: Check consumers connected to the • • digital outputs – Short circuit –...
  • Page 82: Hardware Interrupts

    Interrupts/diagnostic messages 5.3 Hardware interrupts Hardware interrupts Introduction For the technology module, you can configure which events are to trigger a hardware interrupt during operation. What is a hardware interrupt? The technology module will trigger a hardware interrupt as configured in response to specific events/states.
  • Page 83 Interrupts/diagnostic messages 5.3 Hardware interrupts You can activate any combination of events to trigger hardware interrupts. You can obtain detailed information on the event in the hardware interrupt organization block with instruction "RALRM" (Read additional alarm information) and in the information system of STEP 7.
  • Page 84: Technical Specifications

    Technical specifications Article number 6ES7138-6AA01-0BA0 General information Product type designation TM Count 1x24V Firmware version V2.0 FW update possible • usable BaseUnits BU type A0 Color code for module-specific color identifica- CC00 tion plate Product function Yes; I&M0 to I&M3 I&M data •...
  • Page 85 Technical specifications Article number 6ES7138-6AA01-0BA0 Power loss Power loss, typ. Address area Address space per module 16 byte; 4 bytes in Fast mode Inputs • 12 byte; 4 bytes for Motion Control, 0 bytes for Outputs • Fast mode Digital inputs Number of digital inputs Digital inputs, parameterizable Input characteristic curve in accordance with...
  • Page 86 Technical specifications Article number 6ES7138-6AA01-0BA0 Digital outputs Type of digital output Transistor Number of digital outputs Short-circuit protection Yes; electronic/thermal Response threshold, typ. • Limitation of inductive shutdown voltage to L+ (-53 V) Controlling a digital input Digital output functions, parameterizable Switching tripped by comparison values •...
  • Page 87 Technical specifications Article number 6ES7138-6AA01-0BA0 Encoder Connectable encoders 2-wire sensor • 1.5 mA – permissible quiescent current (2-wire sensor), max. Encoder signals, incremental encoder (asymmet- rical) 24 V Input voltage • 200 kHz Input frequency, max. • 800 kHz; with quadruple evaluation Counting frequency, max.
  • Page 88 Technical specifications Article number 6ES7138-6AA01-0BA0 Interrupts/diagnostics/status information Substitute values connectable Yes; Parameterizable Alarms Diagnostic alarm • Hardware interrupt • Diagnostic messages Monitoring the supply voltage • Wire-break • Short-circuit • A/B transition error at incremental encoder • Group error • Diagnostics indication LED Yes;...
  • Page 89 Technical specifications Article number 6ES7138-6AA01-0BA0 Position detection Incremental acquisition • Suitable for S7-1500 Motion Control • Measuring functions Measuring time, parameterizable • Dynamic measurement period adjustment • Number of thresholds, parameterizable • Measuring range 0.04 Hz – Frequency measurement, min. 800 kHz –...
  • Page 90 Technical specifications Article number 6ES7138-6AA01-0BA0 Decentralized operation to SIMATIC S7-300 to SIMATIC S7-400 to SIMATIC S7-1200 to SIMATIC S7-1500 to standard PROFIBUS master to standard PROFINET controller Dimensions Width 15 mm Height 73 mm Depth 58 mm Weights Weight, approx. 45 g TM Count 1x24V (6ES7138‑6AA01‑0BA0) technology module Manual, 07/2019, A5E33002339-AD...
  • Page 91 Technical specifications Derating information for total current of outputs If the digital outputs of the TM Count 1x24V are operated with resistive or inductive loads, you should derate the total current of the loads at the digital outputs of the technology module.
  • Page 92 If the switching frequency is greater than 0.5 Hz or there is greater inductance at the digital outputs, the total current must be reduced further. Dimension drawing See ET 200SP BaseUnits (http://support.automation.siemens.com/WW/view/en/58532597/133300) manual TM Count 1x24V (6ES7138‑6AA01‑0BA0) technology module Manual, 07/2019, A5E33002339-AD...
  • Page 93: Parameter Data Record

    Parameter data record Parameter assignment and structure of parameter data record You have the option of reassigning module parameters with the user program while the CPU is in RUN. The parameters are transferred to the module using data record 128, e.g. with the WRREC instruction.
  • Page 94: A.1 Parameter Assignment And Structure Of Parameter Data Record

    Parameter data record A.1 Parameter assignment and structure of parameter data record Bit → Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte ↓ 4...51 Counting channel Operating mode Reserved Operating mode: 0000 : Not permitted 0001...
  • Page 95 Parameter data record A.1 Parameter assignment and structure of parameter data record Bit → Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte ↓ 8...9 Hardware interrupts Reserved Change of Underflow Overflow Gate stop Gate start direction...
  • Page 96 Parameter data record A.1 Parameter assignment and structure of parameter data record Bit → Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte ↓ Behavior of DI0 Behavior of Edge selection (DI0): Select level Reserved Set function of DI (DI0):...
  • Page 97 Parameter data record A.1 Parameter assignment and structure of parameter data record Bit → Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte ↓ Counter behavior at limits and gate start Reaction to gate start: Reaction to violation of a counting limit: Reset when counting limit is violated: : Set to start value...
  • Page 98 Parameter data record A.1 Parameter assignment and structure of parameter data record Structure of the data record 128 in Fast Mode The following table shows you the structure of data record 128 for TM Count 1x24V for Fast Mode. The values in byte 0 to byte 3 are fixed and must not be changed. Table A- 2 Parameter data record 128: "Fast Mode"...
  • Page 99 Parameter data record A.1 Parameter assignment and structure of parameter data record Bit → Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte ↓ 6...7 Counter inputs (parameters for incremental and pulse encoders) Sensor type: Signal evaluation: Signal type:...
  • Page 100 Parameter data record A.1 Parameter assignment and structure of parameter data record Bit → Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte ↓ 10...15 Behavior of a DQ Set output (DQ1): Set output (DQ0): 0000 : Digital output without function...
  • Page 101 Parameter data record A.1 Parameter assignment and structure of parameter data record Bit → Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte ↓ Behavior of DI1: See Byte 16 Behavior of DI2: See Byte 16 Frequency Count direction for syn-...
  • Page 102 Parameter data record A.1 Parameter assignment and structure of parameter data record Bit → Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte ↓ Counter behavior at limits and gate start Reaction to gate start: Reaction to violation of a counting limit: Reset when counting limit is violated: : Set to start value...
  • Page 103: Parameter Validation Error

    Parameter data record A.2 Parameter validation error Parameter validation error If you make the parameter settings in STEP 7 (TIA Portal) or in STEP 7 , the parameter values are checked before they are transferred to the technology module. This process prevents parameter errors.
  • Page 104 Parameter data record A.2 Parameter validation error Error codes The following table shows the module-specific error codes and their meaning for parameter data record 128. Table A- 3 Error codes for parameter validation Error code in STATUS parame- Meaning Remedy ter (hexadecimal) Byte 0 Byte 1 Byte 2 Byte 3 Data record number unknown...
  • Page 105 Parameter data record A.2 Parameter validation error Error code in STATUS parame- Meaning Remedy ter (hexadecimal) Byte 0 Byte 1 Byte 2 Byte 3 Low counting limit > comparison value 0 Low counting limit < comparison value 0 • • Low counting limit >...
  • Page 106 Parameter data record A.2 Parameter validation error Error code in STATUS parame- Meaning Remedy ter (hexadecimal) Byte 0 Byte 1 Byte 2 Byte 3 "Count direction for synchronization" parameter Enter valid parameter value. invalid Reserved bit is not set to 0. Set reserved bit to 0.

This manual is also suitable for:

6es7138-6aa01-0ba0

Table of Contents