hit counter script
Siemens S5-100U User Manual

Siemens S5-100U User Manual

Simatic s5 programmable controller
Hide thumbs Also See for S5-100U:
Table of Contents

Advertisement

Quick Links

SIMATIC S5
S5-100U
Programmable Controller
System Manual
CPU 100/102/103
EWA 4NEB 812 6120-02a

Advertisement

Table of Contents
loading

Summary of Contents for Siemens S5-100U

  • Page 1 SIMATIC S5 S5-100U Programmable Controller System Manual CPU 100/102/103 EWA 4NEB 812 6120-02a...
  • Page 2 STEP ® SINEC ® and SIMATIC ® are registered trademarks of Siemens AG. LINESTRA® is a registered trademark of the OSRAM Company. IBM® is a registered trademark of the International Business Machines Corporation. Copyright© Siemens AG 1992 Subject to change without prior notice.
  • Page 3 Integrated Blocks and Their Functions Interrupt Processing, for CPU 103 Version 8MA02 and Higher Analog Value Processing The Integral Real-Time Clock, for CPU 103 Version 8MA02 and Higher Connecting the S5-100U to SINEC L1, for CPU 102 and Higher Module Spectrum Function Modules A/B/C...
  • Page 4: Table Of Contents

    ......... 3 - 1 Installing S5-100U Components ......3 - 1 3.1.1...
  • Page 5 Contents S5-100U Page Start-Up and Program Tests ........
  • Page 6 S5-100U Contents Page Addressing ..........
  • Page 7 Contents S5-100U Page 7.4.5 Interrupt-Driven Program Processing, for CPU 103 Version 8MA02 and Higher ....... . .
  • Page 8 S5-100U Contents Page Integrated Blocks and Their Functions ......9 - 1...
  • Page 9 Contents S5-100U Page 11.5 Analog Output Modules ........
  • Page 10 S5-100U Contents Page Connecting the S5-100U to SINEC L1, for CPU 102 and Higher ..13 - 1 13.1 Connecting the Programmable Controllers to the L1 Bus Cable ......... .
  • Page 11 E - 1 Siemens Addresses Worldwide ........
  • Page 12 How to Use This System Manual How to Use This System Manual The S5-100U is a programmable controller for lower and intermediate performance ranges. It meets all the requirements for a modern programmable controller. To use this controller optimally, you need detailed information.
  • Page 13 How to Use This System Manual S5-100U Conventions This system manual is organized in menu form to make it easier for you to find information. This means the following: • Each chapter is marked with printed tabs. • At the front of the system manual is an overview page that lists the title of each chapter.
  • Page 14 - Chapter 9 “Integrated Blocks and Their Functions” - Chapter 12 “Integral Real-Time Clock, for CPU 103 Version 8MA02 and Higher” - Chapter 13 “Connecting the S5-100U to SINEC L1, for CPU 102 and Higher” The S5-100U system has been expanded to include an additional module: •...
  • Page 15 Siemens. • The product will function correctly and safely only if it is transported, stored, set up, and installed as intended, and operated and maintained with care.
  • Page 16: The Simatic S5 System Family

    The SIMATIC S5 System Family EWA 4NEB 812 6120-02...
  • Page 17 Figures Members of the SIMATIC S5 System Family ..... . 1 - 1 EWA 4NEB 812 6120-02...
  • Page 18 The S/MATIC S5 System Family S5-1OOU The SIMATIC S5 System Family The programmable controllers (PLCS) in the SIMATIC S5 family offer economical solutions to simple control tasks and to complex computer functions. Figure 1-1. Members of the SIMATIC S5 System Family The S5-1 OOU programmable controller is one of the smallest and most economical of the program- mable controllers in the SIMATIC S5 family.
  • Page 19 • Modular Design Depending on the CPU you use, the S5-100U allows you to have a maximum of 256 digital inputs and outputs. It is suitable for machine control and for process automation and monitoring on a medium scale. The S5-100U allows a broad expansion capability with various types of modules to adapt optimally to a control task.
  • Page 20 Technical Description Programmable Controller Design ......2 - 1 Principle of Operation for the Programmable Controller .
  • Page 21 2 - 1 Functional Units of the S5-100U ....... 2 - 3 Example of an Arithmetic Logic Unit’s Mode of Operation...
  • Page 22: Technical Description

    Technical Description Technical Description This chapter describes the design and principle of operation for the S5-1OOU programmable controller and its accessories. Programmable Controller Design S5-1 OOU The S5-1OOU belongs to the SIMATIC S5 range of programmable controllers. The consists of various functional units (modules) that you can combine according to the task you want to perform.
  • Page 23 Use bus units to connect the CPU to input/output modules. You can plug two input/output modules into a single bus unit. Interface modules (IM) Use these modules to assemble your S5-100U in a multi-tier configuration. Standard mounting rail Mount your programmable controller on the standard mounting rail.
  • Page 24: Principle Of Operation For The Programmable Controller

    S5-100U Technical Description Principle of Operation for the Programmable Controller The remainder of this chapter explains how your S5-100U processes your program. 2.2.1 Functional Units Interrupt Process Program process System Timers Counters Flags I/O image memory I/O image data tables...
  • Page 25 Serial Interface You can connect programmers, operator panels, and monitors to the serial port (cable connector). You can use the serial port to connect your S5-100U as a slave to the SINEC L1 local area network. Timers, Counters, Flags The CPU has timers, counters, and flags available internally that the control program can use.
  • Page 26: Example Of An Arithmetic Logic Unit's Mode Of Operation

    External I/O Bus The I/O bus is the electrical connection for all signals that are exchanged between the CPU and the S5-100U modules in a programmable controller. EWA 4NEB 812 6120-02...
  • Page 27: Mode Of Operation For The External I/O Bus

    S5-100U 2.2.2 Mode of Operation for the External I/O Bus The S5-100U has a serial bus for the transfer of data between the CPU and the I/O modules. This serial bus has the following characteristics: • The modular design permits optimal adaptation to the particular control task.
  • Page 28: Data Cycle

    S5-100U Technical Description Data Cycle Prior to a program scan, the external I/O bus transfers current information from the input modules to the process image input table (PII). At the same time, information contained in the process image output table (PIQ) is transferred to the output modules.
  • Page 29: Number Of Bits Per Module In The Shift Register

    704 data bits, 512 (max.) of these from analog modules Note If the maximum expansion allowed is exceeded, the S5-100U goes into the STOP mode. The “PEU” bit (I/O not ready) is set in the ISTACK. EWA 4NEB 812 6120-02...
  • Page 30 S5-100U Technical Description Examples: a) CPU 100: This CPU lets you operate six digital modules (8-channel) and two analog modules (4-channel): [6 x 8+2 x (4 x 16)]=48+128<256 b) CPU 100: This CPU does not let you use three digital modules (8-channel) with three analog...
  • Page 31: Installation Guidelines

    Electrical Configuration ....... . 3 - 20 3.3.1 Electrical Configuration for the S5-100U ....3 - 20 3.3.2 Electrical Configuration with External I/Os .
  • Page 32 Programmable Controller, Sensors, and Actuators ....3 - 22 3-19 Configuration Possibility: S5-100U with 24 V DC Power Supply (with Safe Electrical Isolation According to DIN VDE 0160) for Programmable Controller, Sensors, and Actuators .
  • Page 33: Installing S5-100U Components

    Bus units with a SIGUT/screw-type, or crimp snap-in connection method have different heights. If you install, remove, or change any parts of your S5-100U system, your system must be in the state indicated in Table 3-1. Table 3-1. Installing, Removing, and Changing S5-100U Components...
  • Page 34 S5-1OOU Installation Guidelines Power Supply Module Mounting the The backplane design makes it easy to attach this module to the standard mounting rail. Hook the module onto the standard mounting rail. 2. Swing the module back until the slide snaps into place (see Figure 3-l). Figure 3-1.
  • Page 35 Installation Guidelines S5-1OOU Removing the CPU Remove the 1/0 module located at slot “0”. 2. Pull the connection (ribbon cable) between the CPU and the first bus unit. 3. Pull the connections between the CPU and the power supply module. 4.
  • Page 36 Installation Guidelines Plugging input and Output Modules into the Bus Units Before you plug in an input or output module, you must set the bus unit’s coding element to match the module type. Setting the Coding Element An identification number is printed on the front plate of every 1’0 module. Depending on the particular module type, the number is between two and eight.
  • Page 37: 3.1.2 Multi-Tier Expansion

    Installation Guidelines S5-1OOU 3.1.2 Multi-Tier Expansion If it is not possible to have all of the modules located on one tier, you can expand the configuration up to four tiers. You may use a maximum of 16 bus units. It does not matter how many bus units are mounted on a tier.
  • Page 38 Installation Guidelines S5-100U Installing an Interface Module 1. Hook the interface module to the standard mounting rail. 2. Swing the interface module back until the slide on the bottom snaps into place on the rail. 3. Use the ribbon cable to connect the module to the last bus unit.
  • Page 39: Cabinet Mounting

    3.1.3 Cabinet Mounting Make sure that the S5-100U, the power supply, and all modules are well grounded. Mount the S5-100U on a metal plate to help prevent noise. There should be electrical continuity between the grounded enclosure and the mounting rails. Make sure that the system is bonded to earth.
  • Page 40: Vertical Mounting

    Installation Guidelines S5-100U Wiring devices and/or cable duct At least 45 mm (1.77 in.) 210 mm+a (8.3 in.+a) Figure 3-6. Cabinet Mounting with a Series of Devices 3.1.4 Vertical Mounting You can also mount the standard mounting rails vertically and then attach the modules one over the other.
  • Page 41: Connection Methods: Screw-Type Terminals And Crimp Snap-In

    S5-100U Installation Guidelines Wiring 3.2.1 Connection Methods: Screw-Type Terminals and Crimp Snap-in SIGUT Screw-Type Terminal When using screw-type terminals, you can clamp two cables per terminal. It is best to use a 3.5-mm screwdriver to tighten the screws. Permissible cable cross-sections are: •...
  • Page 42 Installation Guidelines Crimp Snap-in Terminals Bus units using the crimp snap-in connection method have the same height as the CPU. You can connect stranded conductors with a cross-section of 0.5 to 1.5-mmL to these terminals. Connecting the Contact to the Terminal Block Refer to Figure 3-9 and perform the following steps to connect the contact to the terminal block.
  • Page 43 Installation Guidelines S5-1OOU Disconnecting a Terminal Position the terminal block as is shown in Figure 3-10. 2. Insert the extraction tool into the slot beside the terminal so that you can compress the barb. 3. Position the cable in the groove on the extraction tool and pull out both the tool and the cable. 4.
  • Page 44 Installation Guidelines 3.2.2 Connecting the Power Supply to the S5-1OOU Power Supply Module Set the voltage selector to the supply voltage you are using. 2. Swing up the protective cover. 3. Connect the supply cable to terminals Ll, N and+( see Figure 3-1 1), 4.
  • Page 45: Connecting Digital Modules

    S5-100U Installation Guidelines 3.2.3 Connecting Digital Modules All I/O modules are plugged into bus units. Connect the I/O modules to the terminal blocks of the bus units. The connections illustrated in this section are of the screw terminal type (SIGUT connection method).
  • Page 46 Installation Guidelines S5-100U Connecting Four-Channel Digital Modules All of these modules are designed for a two-wire connection. You can therefore wire directly to the sensor or output field device. An external distribution block is not required. The four channels of a module are numbered from .0 through .3. (Numbers .4 through .7 are only significant for the ET 100 distributed I/O system.)
  • Page 47 S5-100U Installation Guidelines Connecting Four-Channel Output Modules Example: Connecting a lamp to channel 3 (address Q 1.3) on the output module in slot 1 (see Figure 3-13) DIGITAL OUTPUT 4 x 24 V DC/2 A 6ES5 440-8MA21 Lamp Figure 3-13. Two-Wire Connection of a Lamp to Channel 3...
  • Page 48 Installation Guidelines S5-100U Connecting Eight-Channel Digital Modules These modules do not have a two-wire connection. You therefore need an external distribution block. The eight channels of a module are numbered from .0 through .7. One terminal on the terminal block is assigned to each channel. The terminal assignment and the connection diagram are printed on the front plate of the module.
  • Page 49 S5-100U Installation Guidelines Connecting Eight-Channel Output Modules The actuators must be connected to terminal 2 via the M (negative) terminal block. This does not apply to the digital output module 8× 5 to 24 V DC/0.1 A (see section 14.6.2).
  • Page 50: Connecting The Digital Input/Output Module

    Installation Guidelines S5-100U 3.2.4 Connecting the Digital Input/Output Module Use only slots 0 through 7 when you plug the module into the bus unit. Use a 40-pin cable connector with a screw-type connection or crimp snap-in connection for wiring. The module does not have a two-wire connection.
  • Page 51 S5-100U Installation Guidelines Example: The start address for the modules is 6.0. Inputs and outputs have the same address. A sensor is to be connected to input I 6.4 and a lamp to output Q 7.3. Figure 3-17 illustrates the wiring on the front connector.
  • Page 52 Electrical Configuration 3.3.1 Electrical Configuration for the S5-100U Power Supply The entire control for the S5-100U consists of the following separate electrical circuits: • Control circuit for the S5-100U (24 V DC) • Control circuit for the sensors (24 V DC) •...
  • Page 53 • You do not need an additional fuse (2) to connect your S5-100U and the load circuit to power if your radial lines are a maximum of 3 meters (9.84 feet) long and are inherently earth-fault proof and short-circuit proof.
  • Page 54 Installation Guidelines S5-100U (10) DO DO 230 V AC Figure 3-18. Configuration Possibility: S5-100U with 115/230 V AC Power Supply for Programmable Controller, Sensors, and Actuators 3-22 EWA 4NEB 812 6120-02...
  • Page 55 S5-100U Installation Guidelines DO DO (10) Figure 3.19 Configuration Possibility: S5-100U with 24 V DC Power Supply (with Safe Electrical Isolation According to DIN VDE 0160) for Programmable Controller, Sensors, and Actuators 3-23 EWA 4NEB 812 6120-02...
  • Page 56 Installation Guidelines S5-100U 1 µF/ Install the standard mounting 100 K 500 V AC rail electrically isolated DO DO Figure 3-20. Non-Grounded Operation; 24 V DC Power Supply (with Safe Electrical Isolation According to DIN VDE 0160) for Programmable Controller and I/Os Interference voltages are discharged to the ground conductor (PE) via a capacitor.
  • Page 57: Non-Floating And Floating Configurations

    The circuits can either be connected to the same grounding point (non-floating) or galvanically isolated (floating). Example of a Non-Floating Connection of Digital Modules A 24 V DC load circuit has the same chassis grounding as the control circuit of the S5-100U. Central grounding point...
  • Page 58 V Figure 3-22 shows a simplified connection of the S5-100U with a non-floating external I/O. +9 V Data 24 V DC supply Figure 3-22.
  • Page 59 If you have a floating configuration, the PLC's control circuit and the load circuit must be galvanically isolated. Figure 3-23 shows a simplified connection of galvanically isolated I/Os. Central grounding point Load power supply Figure 3-23. Simplified Representation of a Galvanically Isolated Connection of the I/Os to the S5-100U 3-27 EWA 4NEB 812 6120-02...
  • Page 60 S5-100U Installation Guidelines Figure 3-24 shows a simplified schematic for the connection of floating I/O modules. • +9 V • • Data • • • Figure 3-24. A Simplified Representation of a Floating I/O Connection 3-28 EWA 4NEB 812 6120-02...
  • Page 61: Wiring Arrangement

    Installation Guidelines S5-100U Wiring Arrangement, Shielding, and Measures to Guard against Electromagnetic Interference This section describes the wiring arrangements for bus cables, signal cables, and power supply cables that guarantee the ElectroMagnetic Compatibility (EMC) of your installation. 3.4.1 Wiring Arrangement...
  • Page 62 S5-100U Installation Guidelines Wiring Arrangement outside a Cabinet • Install cables on a metal cable bearer when cabinets are physically apart but within the same building. Galvanically connect the cable bearer joints. The joints should be grounded at intervals of about 20 to 30 meters (65 to 98 feet).
  • Page 63: Shielding Of Devices And Cables

    Installation Guidelines S5-100U 3.4.2 Shielding of Devices and Cables Shielding is a means of weakening or damping magnetic, electrical, or electromagnetic interference fields. Both devices and cables should be shielded. Shielding of Devices Use the following information if cabinets and housing are used in shielding the control system.
  • Page 64: Measures To Guard Against Electromagnetic Interference

    S5-100U Installation Guidelines Shielding Cables Both ends of shielded cables should have a good electrical connection to the cabinet's chassis ground. You can effectively suppress interference of all coupled frequencies only if the cables are shielded at both ends. The shield should reach the module, but it should not be connected to the module.
  • Page 65 Installation Guidelines S5-100U Chassis Grounding of Inactive Metal Components Correct chassis grounding is an important factor in ensuring that you won't experience interference problems. Chassis grounding refers to the conductive connection of all inactive metal components (VDE 0160). Always use surface-contact grounding. Chassis-ground all inactive metal components.
  • Page 66 S5-100U Installation Guidelines Using Special Interference Suppression Measures Protective Inductive Circuit Inductors located in the same cabinet and not directly controlled by SIMATIC outputs (e.g., contactor coils and relay coils) must be bridged by arc suppressing elements (e.g., RC elements).
  • Page 67 Installation Guidelines S5-100U Power Connection for Programmers Every group of cabinets should have a grounded socket for the power supply to the programmers. The sockets should receive their power supply from the distributor that is also connected to the cabinet's protective ground.
  • Page 68: Protective Devices And Insulation Monitoring Devices

    S5-100U Installation Guidelines Protective Devices and Insulation Monitoring Devices When you configure systems that have programmable controllers, follow the relevant VDE regulations (e.g., VDE 0100, VDE 0113 or VDE 0160). Pay special attention to the following points: • Prevent conditions that can endanger people or property.
  • Page 69 Install these protective elements where the cable enters the building, if possible. Each system must be looked at individually to determine measures that should be taken to protect it against lightning. Please address your questions to your local Siemens office.
  • Page 70: Start-Up And Program Tests

    Start-up and Program Tests Operating Instructions ....... . 4.1.1 CPU Operator Panel .
  • Page 71 Figures CPU Operator Panel ........4 - 1 Procedure for Loading the Program Automatically .
  • Page 72: Start-Up And Program Tests

    S5-100U Start-up and Program Tests Start-up and Program Tests Operating Instructions 4.1.1 CPU Operator Panel Operating mode display BATTERY Battery low OFF/ (green LED: RUN) (yellow LED lights: Operating mode display battery discharged or STOP (red LED: STOP) not installed)
  • Page 73: 4.1.3 Performing An Overall Reset On The Programmable Controller

    Start-up and Program Tests S5-100U START-UP Operating Mode • The operating system processes DB1 and accepts the parameters (see section 9.1). • Either the start-up organization block OB21 or OB22 is processed (see section 7.4.2). • The amount of time start-up requires is not limited since the scan time monitor is not activated.
  • Page 74: Starting Up A System

    S5-100U Start-up and Program Tests Starting Up a System The following section contains suggestions for configuring and starting up a system containing programmable controllers. 4.2.1 Suggestions for Configuring and Installing the Product A programmable controller is often used as a component in a larger system. The suggestions contained in the following warning are intended to help you safely install your programmable controller.
  • Page 75: Procedures For Starting Up The Programmable Controller

    Start-up and Program Tests S5-100U 4.2.2 Procedures for Starting Up the Programmable Controller Table 4-1. Starting Up the Programmable Controller Prerequisites Remarks Displays Procedures System and programmable Check the mechanical assembly controller are off-load. (VDE 0100 and VDE 0160). Ter minal “M”...
  • Page 76: Loading The Program Into The Programmable Controller

    CPU. You can only load valid blocks. See section 7.5.2. Figure 4-2 shows how a program can be loaded automatically. No battery is installed (yellow LED lights). PLC overall reset Switch the S5-100U off. Plug memory submodule into the CPU. Error Switch the S5-100U on.
  • Page 77 CPU. If a back-up battery is installed, any program in the memory is completely erased. You can only load valid blocks. See section 7.5.2. Figure 4-3 shows how a program can be loaded manually. Turn off the S5-100U. Plug memory sub- module into the CPU.
  • Page 78: Backing Up The Program

    Figure 4-4 illustrates how to back up a program on a memory submodule. Battery low LED (yellow) Insert / replace lights. battery. Turn off the S5-100U. Plug EEPROM sub- module into the CPU. Turn on the S5-100U. Error Press <COPY> key Red LED flashes.
  • Page 79: Function Of The Back-Up Battery

    Start-up and Program Tests S5-100U 4.4.2 Function of the Back-Up Battery If the power fails or the programmable controller is turned off, the contents of the internal (retentive) memory are stored only if a back-up battery is connected. When power is recovered or when the programmable controller is turned on, the following contents are available: •...
  • Page 80: Direct Signal Status Display "Status Var

    S5-100U Start-up and Program Tests Cycle trigger ontrol STATUS ogram = Q 2.0 1 1 Transfer data Figure 4-5. “STATUS" Test Function Refer to your programmer manual for information about the test function on your programmer. Direct Signal Status Display “STATUS VAR”...
  • Page 81: Forcing Outputs, "Force", For Cpu 103 And Higher

    Start-up and Program Tests S5-100U Forcing Outputs, “FORCE”, for CPU 103 and Higher Outputs can be set directly to a desired status even without the control program. This enables you to control the wiring and functionality of output modules. This does not change the process I/O image table, but the output disable condition is cancelled.
  • Page 82: Search Function

    S5-100U Start-up and Program Tests Search Function This function allows you to search for specific terms in the program and list them on the pro- grammer's display panel. You can perform program changes at this point. You can have search runs in the following programmer functions: •...
  • Page 83 Start-up and Program Tests S5-100U During the program check, you can execute the following additional test and programmable controller functions from the programmer: • Input and output (program modification possible) • Direct signal status display (STATUS VAR) • Forcing of outputs and variables (FORCE, FORCE VAR) •...
  • Page 84 Diagnostics and Troubleshooting Indication of Errors by LEDs ......5 - 1 CPU Malfunctions .
  • Page 85 Figures Example of an “ISTACK” Display on the PG 615, Software Version V 1.4 5 - 2 Structured Program with an Illegal Statement ..... . 5 - 9 Addresses in the CPU’s Program Memory .
  • Page 86: Diagnostics And Troubleshooting

    S5-100U Diagnostics and Troubleshooting Diagnostics and Troubleshooting Indication of Errors by LEDs The programmable controller's operator panel will show you if your device is not functioning correctly (see Table 5-1). Table 5-1. Error Indication and Error Analysis Error Indication Error Analysis...
  • Page 87 Diagnostics and Troubleshooting S5-100U ISTACK Display on the PG 615 Programmer *ISTACK Reason for STOP ILLEGAL OPERATION PB 7 REL. ERR. ADDR.:0002 0000 0000 ISTACK bytes 0000 0000 Representation Binary Byte number Figure 5-1. Example of an “ISTACK” Display on the PG 615, Software Version V 1.4...
  • Page 88 S5-100U Diagnostics and Troubleshooting The following table shows which positions in the bit pattern are relevant for error diagnosis (gray- shaded bits). Table 5-2. ISTACK Output (Bytes 1 to 16) Abso- Syst. Da- lute ta Word Byte Addr. (SD) EA0A...
  • Page 89 Diagnostics and Troubleshooting S5-100U Table 5-2. ISTACK Output (Bytes 17 to 32) [continued] Abso- Syst. Da- lute ta Word Byte Addr. (SD) 2nd nesting level EBA4 SD 210 3rd nesting level Nesting depth (0 to 6) EBA2 SD 209 1st nesting level...
  • Page 90: Interrupt Analysis

    S5-100U Diagnostics and Troubleshooting 5.2.2 Interrupt Analysis When there is an interrupt in program processing, you can use the following table to determine the cause of the error. The CPU always goes into the STOP mode. Table 5-3. Interrupt Analysis...
  • Page 91: Errors During Program Copying

    Diagnostics and Troubleshooting S5-100U Table 5-3. Interrupt Analysis (continued) ISTACK Byte Cause of Error Remedy Display SUF* Substitution error: Change actual Function block called with an incorrect actual parameter. parameter TRAF Transfer error Eliminate program error • Data block statement programmed with a...
  • Page 92: Explanation Of The Mnemonics Used In "Istack

    S5-100U Diagnostics and Troubleshooting 5.2.4 Explanation of the Mnemonics Used in “ISTACK” Table 5-5. Meaning of the Remaining ISTACK Bits ISTACK Byte Explanation Display BST SCH Shift block. SCH TAE Execute shift operation. ADR BAU Structure address list. STO ANZ...
  • Page 93 Diagnostics and Troubleshooting S5-100U Table 5-6. Mnemonics Used for the Interrupt Display Mnemonics Used Explanation for the Interrupt Display ANZ1/ANZ0 Condition codes for various operations (see section A.1.4) ASPFA Illegal memory submodule Battery failure ERAB First scan 0 : O( 1 : A( KE1...KE6...
  • Page 94: Program Errors

    S5-100U Diagnostics and Troubleshooting Program Errors 5.3.1 Locating the Error Address The SAZ (STEP address counter) in the ISTACK (bytes 25 and 26) contains the absolute address of the STEP 5 statement in the programmable controller before which the CPU went into the STOP mode.
  • Page 95 Diagnostics and Troubleshooting S5-100U EE00 Absolute addresses in the CPU’s internal RAM OB1 Header EE09 EE0A JU PB0 EE0B EE0C EE0D EE0E PB0 Header EE17 It is not possible to localize an error in EE18 the program on the basis of the physical EE19 address of the illegal statement.
  • Page 96 S5-100U Diagnostics and Troubleshooting Display (example): *DIR PC BLOCK ADDR. Block number NO DB Block type PB 0 EE18 PB 7 EE3C Start address NO FB OB 1 EE0A Figure 5-4. Example of a “DIR PC” Display on the PG 615...
  • Page 97: Tracing The Program With The "Bstack" Function

    Diagnostics and Troubleshooting S5-100U 5.3.2 Tracing the Program with the “BSTACK” Function Program trace with “BSTACK” is not possible on the 605U programmer. During program processing, the following information about jump operations is entered in the block stack (BSTACK): •...
  • Page 98 S5-100U Diagnostics and Troubleshooting Display *BSTACK BLOCK REL. ADDR. DB Block type and PB 4 0010 block number PB 2 0004 OB 1 0006 0505 Relative return Insignificant ID Number of the currently address numbers valid data block Figure 5-7. Example of a “BSTACK” Display on the PG 615 This display indicates that a block was called up via the path of OB1 PB2 PB4.
  • Page 99: 5.4 I/O Faults

    Diagnostics and Troubleshooting S5-100U 5.4 I/O Faults Fault Module with fault indication Check supply Power supply ok? (red LED) leads. Module addressable via - Check module the process input image Red LED lights. (exchange). (PII) and the process out- - Check program.
  • Page 100: The Last Resort

    1. Set the operating mode switch to STOP. 2. Remove the battery. 3. Set the ON/OFF switch to “0”. 4. Set the ON/OFF switch to “1”. 5. Install a battery. Contact your local Siemens representative if the above measures are ineffective. 5-15 EWA 4NEB 812 6120-02...
  • Page 101: Addressing

    Addressing Slot Numbering ........6 - 1 Digital Modules .
  • Page 102 Figures Address Assignment ........6 - 1 Consecutive Numbering of Slots in a Single-Tier Configuration .
  • Page 103: Addressing

    S5-100U Addressing Addressing The inputs and the outputs have different assigned addresses so that you can access them specifically. The I/O addresses are the same as the module slot addresses. When you mount a module in a slot on a bus unit, the module is assigned a slot number and consequently a fixed byte address in one or both process image I/O tables.
  • Page 104 Addressing S5-100U If the programmable controller consists of more than one tier, numbering of the expansion tiers is continued at the slot on the extreme left. Slot numbers 26 27 23 24 14 15 4 5 6 Figure 6-3. Slot Numbering in a Multi-Tier Configuration When expanding your system, always add the new bus units to the topmost tier on the right.
  • Page 105 S5-100U Addressing Example: Expanding from 14 to 18 slots Existing configuration New bus units 12 13 2 3 4 5 6 Correct expansion procedure 12 13 16 17 The new bus units are added at the right. The interface module is moved correspondingly to the right.
  • Page 106: Digital Modules

    Addressing S5-100U Digital Modules Digital modules can be plugged into all slots (0 through 31). Only two information states (“0” or “1”, OFF or ON) per channel can be transferred from or to a digital module. The memory requirement is one bit.
  • Page 107: Analog Modules

    S5-100U Addressing Analog Modules You can plug analog modules only into slots 0 through 7. Transfer of 65,536 different items of information is possible per channel from or to an analog module. The memory requirement is 16 bits=2 bytes=1 word. The modules are addressed byte-by-byte or word-by-word with load or transfer operations.
  • Page 108: Combined Input Modules And Output Modules

    Addressing S5-100U Combined Input Modules and Output Modules With these modules it is possible to write data from the control program to the module and to read in data from the module to the control program. The byte addresses in the process image input table (PII) and process image output table (PIQ) are identical.
  • Page 109: Digital Input/Output Module, 16 Inputs, 16 Outputs, 24 V Dc

    S5-100U Addressing 6.4.2 Digital Input/Output Module, 16 Inputs, 16 Outputs, 24 V DC for All CPUs Version 8MA02 and Higher and for CPU 102, Version 8MA01, Revision 5 and Higher Plug the module only into slots 0 through 7. This module occupies the same address space as an analog module. However, only the first two of the eight reserved bytes are used.
  • Page 110: The Structure Of Process Image Input And Output Tables

    Addressing S5-100U The Structure of Process Image Input and Output Tables Information about inputs is stored in the process image input table (PII). Information about outputs is stored in the process image output table (PIQ). The PII and the PIQ each have an area of 128 bytes in the RAM memory.
  • Page 111 S5-100U Addressing Figure 6-7 shows a possible programmable controller configuration and storage of information in the process I/O images. Slot ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °...
  • Page 112: Accessing The Process Image Input Table (Pii)

    Addressing S5-100U 6.5.1 Accessing the Process Image Input Table (PII) During a data cycle, data is read into the process image input table (PII) from input modules (see section 2.2.2 - Data Cycle). This data is available to the control program for evaluation in the next program processing cycle.
  • Page 113: Accessing The Process Image Output Table (Piq)

    S5-100U Addressing 6.5.2 Accessing the Process Image Output Table (PIQ) During a program cycle, data coming from the control program to the output modules is written into the process image output table (PIQ). The data is transferred to the output modules in the following data cycle.
  • Page 114: Accessing The Interrupt Pii

    Addressing S5-100U Interrupt Process Images and Time-Controlled Program Processing in OB13 for CPU 103, Version 8MA02 and Higher In the event of a time-controlled or process interrupt, the CPU does not access the I/O modules directly. The CPU stores its information in interrupt process images.
  • Page 115 S5-100U Addressing Time-Controlled Program Processing Access to the interrupt PII is expressed by the “PB” or “PW” operand identifiers in a statement in the time-controlled program. The letter “L” represents the “Load” operation (see chapter 8). Interrupt PII • Byte-by-byte reading “PB <byte address>”...
  • Page 116: Accessing The Interrupt Piq

    Addressing S5-100U 6.6.2 Accessing the Interrupt PIQ When accessing the interrupt PIQ, the following rules apply. • Data can be written to the interrupt PIQ only within time-controlled or interrupt-driven program processing. • Data from a time-controlled or interrupt-driven program to external outputs is written during time- controlled or interrupt-driven program processing both to the “normal”...
  • Page 117: Ram Address Assignments

    S5-100U Addressing RAM Address Assignments The following table gives an overview of the major addresses in the RAM of the three CPUs (in hexadecimal code). Table 6-5. Important Addresses in the RAM 102* Program memory EE00 to FFFF D000 to DFFF...
  • Page 118 Addressing S5-100U The following table gives an overview of the most important system data in the system data area. Table 6-6. System Data Area Assignment System data Chapter/ Contents word Section Reference 5 to 7 ISTACK (Interrupt STACK) 8 to 12...
  • Page 119: Introduction To Step

    Introduction to STEP 5 Writing a Program ........7 - 1 7.1.1 Methods of Representation .
  • Page 120 Figures Compatibility of STEP 5 Methods of Representation ....7 - 2 Nesting Depth of Programmed Organization Blocks ....7 - 6 Structure of a Block Header .
  • Page 121: Writing A Program

    Introduction to Step 5 Introduction to STEP 5 This chapter explains how to program the S5-100U. It describes how to write a program, how the program is structured, the types of blocks the program uses, and the number representation of the STEP 5 programming language.
  • Page 122: Methods Of Representation

    Introduction to STEP 5 S5-100U Each method of representation has its own special characteristics. A program block that has been programmed in STL cannot necessarily be output in CSF or LAD. The three methods of graphic re- presentation are not compatible. However, programs in CSF or LAD can always be converted to STL.
  • Page 123: Operand Areas

    S5-100U Introduction to Step 5 7.1.2 Operand Areas The STEP 5 programming language has the following operand areas: (inputs) Interfaces from the process to the programmable controller (outputs) Interfaces from the programmable controller to the process (flags) Memory for intermediate results of binary operations...
  • Page 124: Program Structure

    For the S5-100U, this is organization block 1 (see section 7.3.1). The S5-100U scans this block cyclically. After the S5-100U scans the last statement, it goes back to the first statement and begins scanning again. Please note the following rules: •...
  • Page 125: Structured Programming

    S5-100U Introduction to Step 5 7.2.2 Structured Programming To solve complex tasks, it is advisable to divide a program into individual, self-contained program parts (blocks). This procedure has the following advantages: • Simple and clear programming, even for large programs •...
  • Page 126 Introduction to STEP 5 S5-100U The program uses block calls to exit one block and jump to another. You can therefore nest pro- gram, function, and sequence blocks randomly up to 16 levels (see section 7.3). Nesting can be up to 32 levels for CPU 103 version 8MA03.
  • Page 127: Block Types

    S5-100U Introduction to STEP 5 Block Types The following table lists the most important characteristics of the individual block types: Table 7-2. Comparison of Block Types Number CPU 100 OB0 to OB63 PB0 to PB63 FB0 to FB63 DB2 to DB63...
  • Page 128 Introduction to STEP 5 S5-100U Block Structure Each block consists of the following parts: • The block header that specifies the block type, number, and length Generated by the programmer when it transforms the block • The block body that has the STEP 5 program or data...
  • Page 129: Organization Blocks

    S5-100U Introduction to STEP 5 7.3.1 Organization Blocks Organization blocks (OB) form the interface between the operating system and the control program. Organization blocks are handled in one of the following three ways: • Organization block OB1 is called cyclically by the operating system.
  • Page 130: Organization Blocks

    Introduction to STEP 5 S5-100U Figure 7-4 shows how to set up a structured control program. It also illustrates the significance of organization blocks. OB21/OB22 SB1* FB61 System program Control program For CPU 103 and higher Figure 7-4. Example of Organization Block Use...
  • Page 131: Program Blocks

    S5-100U Introduction to STEP 5 7.3.2 Program Blocks Self-contained program parts are programmed in program blocks (PB). Special feature: Control functions can be represented graphically in program blocks. Call Block calls JU and JC activate program blocks. You can program these operations in all block types except data blocks.
  • Page 132 Introduction to STEP 5 S5-100U Block Header Besides the block header, function blocks have organizational information that other blocks do not have. A function block's memory requirements consist of the following: • Block header (five words) as for other blocks •...
  • Page 133 S5-100U Introduction to STEP 5 hen assigning parameters, enter all block parameter specifications. Block header Name NAME: EXAMPLE DES: IN 1 Block parameter DES: IN 2 Name Block parameter DES: OUT 1 Q BI Data type Parameter type : A = IN 1...
  • Page 134 Introduction to STEP 5 S5-100U Table 7-4. Block Parameter Types and Data Types with Permissible Actual Parameters, for CPU 103 and Higher Parameter Data Type Permissible Actual Parameters Type I, Q for an operand with bit address x.y Inputs x.y Outputs x.y Flags...
  • Page 135 S5-100U Introduction to STEP 5 A function block call consists of the following parts: • Call statement unconditional call ( J ump U nconditional) - JU - JC call if RLO = 1 ( J ump C onditional) • Parameter list (only if block parameters were defined in the FB) Function blocks can be called only if they have been programmed.
  • Page 136: Data Blocks

    Introduction to STEP 5 S5-100U Executed PB 3 FB 5 program NAME : EXAMPLE DES: X1 I DES: X2 I DES: X3 Q BI : JU : A = X1 First call NAME : EXAMPLE : A = X2 : = = X3 : I 0.0...
  • Page 137 S5-100U Introduction to STEP 5 Programming Data Blocks Begin programming a data block by specifying a block number between 2 and 63 for CPU 100 or CPU 102, and between 2 and 255 for CPU 103. DB0 is reserved for the operating system, DB1 for setting parameters for internal functions (see section 9.1).
  • Page 138: Program Processing

    • OBs for (process) interrupt-driven program processing The S5-100U has additional OBs whose functions are similar to those of integral function blocks (e.g., PID control algorithm). These OBs are described in chapter 9. Section 7.3.1 summarizes all of the OBs.
  • Page 139 S5-100U Introduction to STEP 5 7.4.1 Program Processing with CPU 102 You can process the program in the following two modes: • Normal mode • Test mode Program processing is faster in the normal mode, but you can not use the STATUS test function.
  • Page 140 Introduction to STEP 5 S5-100U Special Features of the Normal Mode Significance of the Memory Submodule Normal mode is only possible if the memory submodule is plugged in. This submodule contains only the STEP 5 program. The CPU RAM contains the STEP 5 program and the compiled program to be processed.
  • Page 141 S5-100U Introduction to STEP 5 Mode Change Load program Load program Back up program (manual) (automatic) (without PG) 1. Turn off the PLC Battery required 1. Reset the PLC 2. Plug in memory sub- 1. Turn off the PLC 2. Turn off the PLC module 2.
  • Page 142 Introduction to STEP 5 S5-100U Determining the Processing Mode in the ISTACK Byte KEIN Figure 7-11. Display of the Processing Mode in the ISTACK You can use a programmer to check the current processing mode in the ISTACK. The ISTACK display, byte 6, is possible in RUN and STOP (see section 5.2).
  • Page 143 S5-100U Introduction to STEP 5 Further Reduction in the Execution Time in Normal Mode Logic operations executed in one input byte, output byte, or flag byte require only 2 µs per logic operation. Program your control according to example 2.
  • Page 144: Start-Up Program Processing

    Introduction to STEP 5 S5-100U 7.4.2 START-UP Program Processing In the START-UP mode, the operating system of the CPU automatically calls up a start-up OB if the OB has been programmed. • OB21 is called up for a manual cold restart.
  • Page 145 S5-100U Introduction to STEP 5 The following two examples show you how you can program a start-up OB. Example 1: Programming OB22 Explanation Example After power recovery, you A 5 s time value is loaded in want to be sure that the power ACCU 1.
  • Page 146: Cyclic Program Processing

    Introduction to STEP 5 S5-100U 7.4.3 Cyclic Program Processing The operating system calls OB1 cyclically. If you want to have structured programming, you should program only jump operations (block calls) in OB1. The blocks you call up, PBs, Cycle trigger FBs, and SBs, should contain completed functional units in order to provide a clearer overview.
  • Page 147 S5-100U Introduction to STEP 5 Response Time Response time t is defined as the time between a change in the input signal and the subsequent change in the output signal. Prerequisites for the following information: • No interrupts are running.
  • Page 148: Time-Controlled Program Processing, For Cpu 103 Version 8Ma02 And Higher

    Introduction to STEP 5 S5-100U 7.4.4 Time-Controlled Program Processing, for CPU 103 Version 8MA02 and Higher Time-controlled program processing can be defined as a (periodic) time signal causing the CPU to interrupt cyclic program processing to process a specific program. Once this program has been processed, the CPU returns to the interruption point in the cyclic program and resumes processing.
  • Page 149: Version 8Ma02 And Higher

    S5-100U Introduction to STEP 5 • Reading out the interrupt PII When OB13 is called, the signals of the input modules are read into the interrupt PII. The interrupt PII can be scanned in OB13 by means of the L PB 0 to 127 or L PW 0 to 126 load operations (load byte x or word x of the interrupt PII in ACCU 1).
  • Page 150: Processing Blocks

    Introduction to STEP 5 S5-100U Processing Blocks Earlier sections in this chapter described how to use blocks. Chapter 8 introduces all of the operations required to work with blocks. You can change any block that has been programmed. The following sections will deal only briefly with the different ways you can change blocks. Refer to the operator‘s guide for your programmer for more detailed information on changing blocks.
  • Page 151: Number Representation

    S5-100U Introduction to STEP 5 You can use the COMPRESS programmer function to clean up internal program memory. If there is a power failure during the compress operation when a block is being shifted and block shifting can not be completed, the CPU remains in the STOP mode. The “NINEU” error message appears.
  • Page 152 Introduction to STEP 5 S5-100U You can work with binary-coded decimals to program timers and counters in the decimal system. BCD tetrads are defined in the range of 0 to 9. Example: 12-bit timer or counter value in BCD and decimal formats Word No.
  • Page 153 S5-100U Introduction to STEP 5 You can use the “LC” operation to convert a binary number to a BCD number for timers and counters. Example: Comparing a count in counter 1 with decimal number 499 The comparison value must be stored in the accunulator by means of a load operation.
  • Page 154 STEP 5 Operations Basic Operations ........8.1.1 Boolean Logic Operations .
  • Page 155 Figures Accumulator Structure ........8 - 10 Execution of the Load Operation .
  • Page 156: Step 5 Operations

    S5-100U STEP 5 Operations STEP 5 Operations The STEP 5 programming language has the following three operation types: • Basic Operations include functions that can be executed in organization, program, sequence, and function blocks. Except for the addition (+F), subtraction (-F), and organizational ope- rations, the basic operations can be input and output in the statement list (STL), control system flowchart (CSF), or ladder diagram (LAD) methods of representation.
  • Page 157: Boolean Logic Operations

    STEP 5 Operations S5-100U 8.1.1 Boolean Logic Operations Table 8-1 provides an overview of Boolean logic operations. Examples follow the table. Table 8-1. Overview of Boolean Logic Operations Operation Operand Meaning Combine AND operations through logic OR Combine the result of the next AND logic operation (RLO) with the previous RLO through logic OR.
  • Page 158 S5-100U STEP 5 Operations AND Operation The AND operation scans to see if various conditions are satisfied simultaneously. Example Circuit Diagram Output Q 1.0 is “1” when all three inputs are “1”. I 0. 0 The output is “0” if at least one input is “0”.
  • Page 159 STEP 5 Operations S5-100U AND before OR Operation Example Circuit Diagram Output Q 1.0 is “1” when at least one AND condition has been satisfied. I 0.0 I 0.2 Output Q 1.0 is “0” when neither of the two AND conditions has been satisfied.
  • Page 160 S5-100U STEP 5 Operations OR before AND Operation Example Circuit Diagram Output Q 1.0 is “1” when one of the following conditions has been satisfied: I 0.0 I 0.2 I 0.3 • Input I 0.0 is “1”. • Input I 0.1 and either input I 0.2 or I 0.3 is “1”.
  • Page 161 STEP 5 Operations S5-100U OR before AND Operation Example Circuit Diagram Output Q 1.0 is “1” when both OR conditions have been satisfied. I 0.0 I 0.1 Output Q 1.0 is “0” when at least one OR condition has not been satisfied.
  • Page 162: Set/Reset Operations

    S5-100U STEP 5 Operations 8.1.2 Set/Reset Operations Set/reset operations store the result of logic operation (RLO) formed in the processor. The stored RLO represents the signal state of the addressed operand. Storage can be dynamic (assignment) or static (set and reset). Table 8-2 provides an overview of the set/reset operations. Examples follow the table.
  • Page 163 STEP 5 Operations S5-100U Flip-Flop for a Latching Signal Output (reset dominant) Example Circuit Diagram A “1” at input I 0.1 sets flip-flop Q 1.0 (signal state “1”). If the signal state at input I 0.1 changes to “0”, the state of output Q 1.0 is maintained, i.e., the signal is latched.
  • Page 164 S5-100U STEP 5 Operations RS Flip-Flop with Flags (set dominant) Example Circuit Diagram A “1” at input I 0.0 sets flip-flop F 1.7 (signal state “1”). If the signal state at input I 0.0 changes to “0”, the state of flag F 1.7 is maintained, i.e., the signal is latched.
  • Page 165: Load And Transfer Operations

    STEP 5 Operations S5-100U 8.1.3 Load and Transfer Operations Use load and transfer operations to do the following tasks. • Exchange information between various operand areas • Prepare time and count values for further processing • Load constants for program processing Information flows indirectly via accumulators (ACCU 1 and ACCU 2).
  • Page 166 S5-100U STEP 5 Operations Table 8-3. Overview of Load and Transfer Operations Opera- Operand Meaning tion Load The operand contents are copied into ACCU 1 regardless of the RLO. The RLO is not affected. Transfer The contents of ACCU 1 are assigned to an operand regardless of the RLO.
  • Page 167 STEP 5 Operations S5-100U Load Operation During loading, information is copied from a memory area, e.g., from the PII, into ACCU 1. The previous contents of ACCU 1 are shifted to ACCU 2. The original contents of ACCU 2 are lost.
  • Page 168 S5-100U STEP 5 Operations Loading and Transferring a Time (See also Timer and Counter Operations) Example Representation During graphic input, QW62 is assigned to output BI of a timer. The programmer automatically stores the corresponding load and transfer operation in the control program.
  • Page 169 STEP 5 Operations S5-100U Loading and Transferring a Time (Coded) Example Representation The contents of the memory location addressed with T 10 are loaded into the accumulator in BCD code. Then a transfer operation transfers the accumulator T 10 contents to the process image memory location Load addressed by QW50.
  • Page 170: Timer Operations

    S5-100U STEP 5 Operations 8.1.4 Timer Operations The program uses timer operations to implement and monitor chronological sequences. Table 8-4 provides an overview of timer operations. Examples follow the table. Table 8-4. Overview of Timer Operations Operation Operand Meaning Pulse Timer The timer is started on the leading edge of the RLO.
  • Page 171 STEP 5 Operations S5-100U Loading a Time Timer operations call internal timers. When a timer operation is started, the word in ACCU 1 is used as a time value. You must therefore first specify time values in the accumulator. You can load a timer with any of the following data types:...
  • Page 172 S5-100U STEP 5 Operations Example: KT 40.2 corresponds to 40 x 1 s. Tolerance: The time tolerance is equivalent to the time base. Examples Operand Time Interval KT 400.1 400 x 0.1 s - 0.1 s 39.9 s to 40 s...
  • Page 173 STEP 5 Operations S5-100U Output of the Current Time You can use a load operation to put the current time into ACCU 1 and process it further from there (see Figure 8-4). Use the “Load in BCD” operation for digital display output.
  • Page 174 S5-100U STEP 5 Operations Starting a timer In the programmable controller, timers run asynchronously to program scanning. The time that has been set can run out during a program scanning cycle. It is evaluated by the next time scan. In the worst case, an entire program scanning cycle can go by before this evaluation.
  • Page 175 STEP 5 Operations S5-100U Pulse Example: Output Q 1.0 is set when the signal state at input I 0.0 changes from “0” to “1”. However, the output should not remain set longer than 5 s. Timing Diagram Circuit Diagram Signal states I 0.0...
  • Page 176 S5-100U STEP 5 Operations Extended pulse Example: Output Q 1.0 is set for a specific time when the signal at input I 0.0 changes to “1”. The time is indicated in IW16. Timing Diagram Circuit Diagram Signal states I 0.0 I 0.0...
  • Page 177 STEP 5 Operations S5-100U On-Delay Example: Output Q 1.0 is set 9 s after input I 0.0 and remains set as long as the input carries signal “1”. Timing Diagram Circuit Diagram Signal states I 0.0 I 0.0 Q 1.0 Time in s Q 1.0...
  • Page 178 S5-100U STEP 5 Operations Stored On-Delay and Reset Example: Output Q 1.0 is set 5 s after I 0.0. Further changes in the signal state at input I 0.0 do not affect the output. Input I 0.1 resets timer T 4 to its initial value and sets output Q 1.0 to zero.
  • Page 179 STEP 5 Operations S5-100U Off-Delay Example: When input I 0.0 is reset, output Q 1.0 is set to zero after a certain delay (t). The value in FW14 specifies the delay time. Timing Diagram Circuit Diagram Signal states I 0.0 I 0.0...
  • Page 180: Counter Operations

    S5-100U STEP 5 Operations 8.1.5 Counter Operations The programmable controller uses counter operations to handle counting jobs. Counters can count up and down. The counting range is from 0 to 999 (three decades). Table 8-5 provides an overview of the counter operations. Examples follow the table.
  • Page 181 STEP 5 Operations S5-100U Loading a Constant Count The following example shows how the count 38 is loaded. Operation Operand L KC Count (0 to 999) Loading a Count as an Input, Output, Flag, or Data Word Load statement: The count 410 is stored in data word DW3 in BCD code.
  • Page 182 S5-100U STEP 5 Operations Outputting the Current Counter Status You can use a load operation to put the current counter status into ACCU 1 and process it further from there. The “Load in BCD” operation outputs a digital display (see Figure 8-5).
  • Page 183 STEP 5 Operations S5-100U Setting a Counter “S” and Counting Down “CD” Example: When input I 0.1 is switched on (set), counter 1 is set to count 7. Output Q 1.0 is now “1”. Every time input I 0.0 is switched on (count down), the count is decremented by 1.
  • Page 184 S5-100U STEP 5 Operations Resetting a Counter “R” and Counting Up “CU” Example: When input I 0.0 is switched on, the count in counter 1 is incremented by 1. As long as a second input (I 0.1) is “1”, the count is reset to “0”.
  • Page 185: 8.1.6 Comparison Operations

    STEP 5 Operations S5-100U 8.1.6 Comparison Operations Comparison operations compare the contents of the two accumulators. The comparison does not change the accumulators' contents. Table 8-6 provides an overview of the comparison operations. An example follows the table. Table 8-6. Overview of Comparison Operations...
  • Page 186: Arithmetic Operations

    S5-100U STEP 5 Operations Example: The values of input bytes IB19 and IB20 are compared. If they are equal, output Q 1.0 is set. Circuit Diagram CSF/LAD IB19 IB20 IB19 Q 1.0 IB20 Q 1.0 8.1.7 Arithmetic Operations Arithmetic operations interpret the contents of the accumulators as fixed-point numbers and manipulate them.
  • Page 187 STEP 5 Operations S5-100U Processing an Arithmetic Operation Before an arithmetic operation is executed, both operands must be loaded into the accumulators. Note When using arithmetic operations, make sure the operands have the same number format. Arithmetic operations are executed independently of the RLO. The result is available in ACCU 1 for further processing.
  • Page 188: Block Call Operations

    S5-100U STEP 5 Operations 8.1.8 Block Call Operations Block call operations specify the sequence of a structured program. Table 8-8 provides an overview of the block call operations. Examples follow the table. Table 8-8. Overview of Block Call Operations Operation...
  • Page 189 STEP 5 Operations S5-100U Unconditional Block Call “JU” One block is called within another block, regardless of conditions. Example: A special function has been programmed in FB26. It is called at several locations in the program, e.g., in PB63, and processed.
  • Page 190 S5-100U STEP 5 Operations Call a Data Block “C DB” Data blocks are always called unconditionally. All data processed following the call refers to the data block that has been called. This operation cannot generate new data blocks. Blocks that are called must be programmed or created before program scanning.
  • Page 191 STEP 5 Operations S5-100U Generating a Data Block Example Explanation Generate a data block with 128 data The constant fixed-point number KF + 127 words without the aid of a pro- +127 is loaded into ACCU 1. At grammer. the same time, the old contents of ACCU 1 are shifted to ACCU 2.
  • Page 192 S5-100U STEP 5 Operations Block End “BE” The “BE” operation terminates a block. Data blocks do not need to be terminated. “BE” is always the last statement in a block. In structured programming, program scanning jumps back to the block where the call for the current block was made.
  • Page 193: Other Operations

    STEP 5 Operations S5-100U Conditional Block End “BEC” The “BEC” operation causes a return within a block if the previous condition has been satisfied (RLO = 1). Otherwise, linear program scanning is continued with RLO “1”. Example: Scanning of program block FB20 is terminated if the RLO = “1”.
  • Page 194: Supplementary Operations

    S5-100U STEP 5 Operations STOP Operation The “STP” operation puts the programmable controller into the STOP mode. This can be desirable for time-critical system circumstances or when a programmable controller error occurs. After the statement is processed, the control program is scanned to the end, regardless of the RLO.
  • Page 195: Load Operation, For Cpu 103 And Higher

    STEP 5 Operations S5-100U 8.2.1 Load Operation, for CPU 103 and Higher As with the basic load operations, the supplementary load operation copies information into the accumulator. Table 8-10 explains the load operation. An example follows the table. Table 8-10. Load Operation...
  • Page 196: Enable Operation, For Cpu 103 And Higher

    S5-100U STEP 5 Operations 8.2.2 Enable Operation, for CPU 103 and Higher You can use the enable operation (FR) to execute the following operations even without an edge change. • Start a timer • Set a counter • Count up and down Table 8-11 presents the enable operation.
  • Page 197: Bit Test Operations, For Cpu 103 And Higher

    STEP 5 Operations S5-100U 8.2.3 Bit Test Operations, for CPU 103 and Higher Bit test operations scan digital operands bit by bit and affect them. Bit test operations must always be at the beginning of a logic operation. Table 8-12 provides an overview of these operations.
  • Page 198 S5-100U STEP 5 Operations Example Explanation A photoelectric barrier that counts Call data block 10. piece goods is installed at input I 0.0. After every 100 pieces, the Input I 0.1 loads the count of program is to jump to FB5 or FB6.
  • Page 199: Digital Logic Operations

    STEP 5 Operations S5-100U 8.2.4 Digital Logic Operations Digital logic operations combine the contents of both accumulators logically bit by bit. Table 8-14 provides an overview of these digital logic operations. Examples follow the table. Table 8-14. Overview of Digital Logic Operations...
  • Page 200 S5-100U STEP 5 Operations The result of the arithmetic operation is available in ACCU 1 for further processing. The contents of ACCU 2 are not affected. Explanation Load input word IW92 into ACCU 1. IW 92 Load a constant into ACCU 1. The previous contents of ACCU 1 are shifted KH 00FF to ACCU 2.
  • Page 201 STEP 5 Operations S5-100U Explanation Load input word IW36 into ACCU 1. IW 36 Load a constant into ACCU 1. The previous contents of ACCU 1 are shifted KH 00FF to ACCU 2. Combine the contents of both accumulators bit by bit through logic OR.
  • Page 202 S5-100U STEP 5 Operations Explanation Load input word IW70 into ACCU 1. IW 70 Load input word IW6 into ACCU 1. The previous contents of ACCU 1 are IW 6 shifted to ACCU 2. Combine the contents of both accumulators bit by bit through logic EXCLUSIVE OR.
  • Page 203: Shift Operations

    STEP 5 Operations S5-100U 8.2.5 Shift Operations Shift operations shift a bit pattern in ACCU 1. The contents of ACCU 2 are not affected. Shifting multiplies or divides the contents of ACCU 1 by powers of two. Table 8-15 provides an overview of the shift operations.
  • Page 204 S5-100U STEP 5 Operations Explanation Load the contents of data word DW2 into ACCU 1. DW 2 Shift the bit pattern in ACCU 1 three positions to the left. SLW 3 Transfer the result (contents of ACCU 1) to data word DW3.
  • Page 205: Conversion Operations

    STEP 5 Operations S5-100U 8.2.6 Conversion Operations Conversion operations convert the values in ACCU 1. Table 8-16 provides an overview of the conversion operations. Examples follow the table. Table 8-16. Overview of Conversion Operations Operation Operand Meaning One's complement The contents of ACCU 1 are inverted bit by bit.
  • Page 206 S5-100U STEP 5 Operations Explanation Load the contents of input word IW12 into ACCU 1. IW 12 Invert all bits and add a “1”. Transfer the altered word to data word DW100. DW 100 Numeric Example Form the negative value of the value IW12 in input word IW12.
  • Page 207: Decrement/Increment, For Cpu 103 And Higher

    STEP 5 Operations S5-100U 8.2.7 Decrement/Increment, for CPU 103 and Higher The decrement/increment operations change the data loaded into ACCU 1. Table 8-17 provides an overview of the decrement/increment operations. An example follows the table. Table 8-17. Decrement/Increment Operations Operation...
  • Page 208: Disable/Enable Interrupt, For Cpu 103 Version 8Ma02 And Higher

    S5-100U STEP 5 Operations 8.2.8 Disable/Enable Interrupt, for CPU 103 Version 8MA02 and Higher The disable/enable interrupt operations affect interrupt-driven and time-controlled program scanning. They prevent process or time interrupts from interfering with the processing of a sequence of state- ments or blocks.
  • Page 209: Do" Operation, For Cpu 103 And Higher

    STEP 5 Operations S5-100U 8.2.9 “DO” Operation, for CPU 103 and Higher Use the “DO” operation to process STEP 5 statements as indexed operations. This allows you to change the parameter of an operand during control program processing (see Table 8-19).
  • Page 210 S5-100U STEP 5 Operations Figure 8-6 shows how the contents of a data word determine the parameter of the next statement. Actual program :DO DW DW 12 KH = 0108 DW 13 KH = 0001 :DO DW :FR T :FR T Figure 8-6.
  • Page 211: 8.2.10 Jump Operations

    STEP 5 Operations S5-100U 8.2.10 Jump Operations Table 8.21 provides an overview of the jump operations. An example follows the table. Table 8-21. Overview of Jump Operations Operation Operand Meaning JU = Jump unconditionally The unconditional jump is executed independently of conditions.
  • Page 212 S5-100U STEP 5 Operations Processing Jump Operations A symbolic jump destination (jump label) must always be entered next to a jump operation. This jump label can have up to four characters. The first character must be a letter of the alphabet.
  • Page 213: 8.2.11 Substitution Operations, For Cpu 103 And Higher

    STEP 5 Operations S5-100U 8.2.11 Substitution Operations, for CPU 103 and Higher If you plan to process a program with various operands and without a lot of changes, it is advisable to assign parameters to individual operands (see section 7.3.4). If you have to change the ope- rands, you only need to reassign the parameters in the function block call.
  • Page 214 S5-100U STEP 5 Operations Set/Reset Operations Table 8-23 provides an overview of the set/reset operations. An example follows the table. Table 8-23. Overview of Set/Reset Operations Operation Operand Meaning Set a formal operand (binary). RB = Reset a formal operand (binary).
  • Page 215 STEP 5 Operations S5-100U Load and Transfer Operations Table 8-24 lists the various load and transfer operations. An example follows the table. Table 8-24. Overview of Load and Transfer Operations Operation Operand Meaning Load a formal operand. Load a formal operand in BCD code.
  • Page 216 S5-100U STEP 5 Operations Timer and Counter Operations Table 8-25 provides an overview of timer and counter operations. Examples follow the table. Table 8-25. Overview of Timer and Counter Operations Operation Operand Meaning Enable a formal operand for a cold restart. (For a description, see “FT”...
  • Page 217 STEP 5 Operations S5-100U The following examples show how to work with timer and counter operations: Example 1: Function Block Call Program in Function Block (FB32) Executed Program =I 5 FB 32 =I 6 NAME :TIME 005.2 I 0.0 :SFD =TIM5 I 0.1...
  • Page 218 S5-100U STEP 5 Operations “DO” Operation Table 8-26 and the example that follows explain the processing operation. Table 8-26. “DO” Operation Operation Operand Meaning DO = Process formal operand The substituted blocks are called unconditionally. Parameter Data Formal operands Actual operands permitted...
  • Page 219: System Operations, For Cpu 103 And Higher

    STEP 5 Operations S5-100U System Operations, for CPU 103 and Higher System operations and supplementary operations have the following limitations: • You can program them only in function blocks. • You can program them only in the STL method of representation.
  • Page 220 S5-100U STEP 5 Operations Table 8-28. Overview of Load and Transfer Operations Operation Operand Meaning Load the register indirectly The contents of a memory word are loaded into the specified register (ACCU 1, 2). The address is in ACCU 1.
  • Page 221 STEP 5 Operations S5-100U Processing a Field Transfer A field transfer is processed independently of the RLO. The parameter indicates the length of the data field (in bytes) that is to be transferred. The field can be up to 255 bytes long.
  • Page 222: Arithmetic Operations

    S5-100U STEP 5 Operations Transferring to the System Data Area Example: Set the scan monitoring time to 100 ms after each mode change from “STOP” to “RUN”. You can program this time in multiples of 10 ms in system data word 96. The following function block can be called from OB21, for example.
  • Page 223: Other Operations

    STEP 5 Operations S5-100U Example Explanation Decrement the constant 1020 by 33 The constant 1020 is loaded into 1020 and store the result in flag word ACCU 1. FW28. Afterwards add the constant The constant -33 is added to 256 to the result and store the sum in the ACCU contents.
  • Page 224: Condition Code Generation

    S5-100U STEP 5 Operations Condition Code Generation The processor of the programmable controller has the following three condition codes: • CC 0 • CC 1 • OV (overflow) The following operations affect the condition codes. • Comparison operations • Arithmetic operations •...
  • Page 225 STEP 5 Operations S5-100U Condition Code Generation for Digital Logic Operations Digital logic operations set CC 0 and CC 1. They do not affect the overflow condition code (see Table 8-33). The setting depends on the contents of the ACCU after the operation has been pro- cessed.
  • Page 226: Momentary-Contact Relay/Edge Evaluation

    S5-100U STEP 5 Operations Sample Programs Sections 8.5.1 through 8.5.3 provide a few sample programs that you can enter and test in all three methods of representation on a programmer. 8.5.1 Momentary-Contact Relay/Edge Evaluation Example Circuit Diagram On each leading edge of the signal at input I 0.0, the AND condition “A I 0.0 and AN F 64.0”...
  • Page 227 STEP 5 Operations S5-100U Timing Diagram Circuit Diagram Signal states I 0.0 I 0.0 Q 1.0 Q 1.0 Time I 0.0 & I 0.0 F 1.0 F 1.1 F 1.0 F 1.1 F 1.0 F 1.1 F 1.0 F 1.1 I 0.0...
  • Page 228: Clock/Clock-Pulse Generator

    S5-100U STEP 5 Operations 8.5.3 Clock/Clock-Pulse Generator This subsection describes how to program a clock-pulse generator. Example: A clock-pulse generator can be implemented using a self-clocking timer that is followed in the circuit by a binary scaler. Flag F 2.0 restarts timer T 7 each time it runs down, i.e., flag F 2.0 is “1”...
  • Page 229: Integrated Blocks And Their Functions

    Integrated Blocks and Their Functions Assigning Internal Functions to DB1, for CPU 103 Version 8MA03 and Higher ....9.1.1 Configuration and Default Settings for DB1 .
  • Page 230 Figures DB1 with Default Parameters ........Inputting the Address for the Parameter Error Code .
  • Page 231: Integrated Blocks And Their Functions

    S5-100U Integrated Blocks and Their Functions Integrated Blocks and Their Functions Assigning Internal Functions to DB1, for CPU 103 Version 8MA03 and Higher You can program the following CPU functions: • Using the integral real-time clock (see chapter 12) •...
  • Page 232: Setting The Address For The Parameter Error Code In Db1

    Integrated Blocks and Their Functions S5-100U The parameter blocks listed in Table 9-1 are used for the S5-100U. Table 9-1. Parameter Blocks and Their IDs Block ID Explanation/Default Setting Start ID 'DB1 '; S INEC L1 : Parameter block for SINEC L1 configuration /...
  • Page 233 S5-100U Integrated Blocks and Their Functions To help find parameter errors more easily and to help correct them, you can ask the programmable controller to output error messages in a coded form All you have to do is to tell the programmable controller where it should store the error code.
  • Page 234: Assigning Parameters In Db1

    Integrated Blocks and Their Functions S5-100U 9.1.3 Assigning Parameters in DB1 As discussed in section 9.1.2, you use the following steps to change or expand the preset values of DB1: 1. Display the default DB1, with its parameter block “ERT:” on the programmer.
  • Page 235 S5-100U Integrated Blocks and Their Functions In the following section are the rules for changing or expanding entire parameter blocks. Follow these steps or the CPU will not understand what you have entered. 1. Enter the start ID “DB1”, followed by a filler.
  • Page 236: How To Recognize And Correct Parameter Errors

    Integrated Blocks and Their Functions S5-100U The preceding steps present the minimal requirements for setting the parameters Beyond that, there are additional rules that make it easier for you to assign parameters. For example: • You have the ability to add comments.
  • Page 237 S5-100U Integrated Blocks and Their Functions Example: You entered the start address DB3 DW0 in parameter block “ERT:”. The parameters set in DB1 have already been transferred to the programmable controller. Then you continue to set parameters in DB1. While attempting to transfer the changed DB1 parameters to the programmable controller, you find out that the programmable controller remains in the STOP mode.
  • Page 238 Integrated Blocks and Their Functions S5-100U Locating Parameter Errors in “ISTACK” If the CPU recognizes an error in DB1 in the initial start-up, then the CPU remains in the STOP mode and stores a message in “ISTACK” describing where the error happened. The “ISTACK”...
  • Page 239: Transferring Db1 Parameters To The Programmable Controller

    S5-100U Integrated Blocks and Their Functions 9.1.6 Transferring DB1 Parameters to the Programmable Controller Unlike other data blocks, DB1 is processed only one time. This occurs when a cold restart is performed on the programmable controller. This was done so that DB1 could handle certain special functions.
  • Page 240: Reference Guide For Setting Parameters In Db1

    Integrated Blocks and Their Functions S5-100U 9.1.7 Reference Guide for Setting Parameters in DB1 Parameter Argument Meaning Block ID: SL1: SINEC L1 (SL1) Slave number DBx DWy Location of Send Mailbox DBxDWy Location of Receive Mailbox Location of Coordination Byte “Receive”...
  • Page 241: Defining System Characteristics In Db1

    Integrated Function Blocks, for CPU 102 Version 8MA02 and Higher Some standard function blocks are integrated in your S5-100U. You can call up these blocks in your control program with the commands “JU FB” or “JC FB x”. The character “x” stands for the block number.
  • Page 242: Code Converter : B4 - Fb240 -

    Integrated Blocks and Their Functions S5-100U 9.2.1 Code Converter : B4 - FB240 - Use function block FB240 to convert a number in BCD (4 tetrads) with sign to a fixed-point binary number (16 bits). You must change a two-tetrad number to a four-tetrad number before you convert it.
  • Page 243: Multiplier : 16 - Fb242 -

    S5-100U Integrated Blocks and Their Functions 9.2.3 Multiplier : 16 - FB242 - Use function block FB 242 to multiply one fixed-point binary number (16 bits) by another The pro- duct is represented by two fixed-point binary numbers (16 bits each) The result is also scanned for zero.
  • Page 244: Analog Value Conditioning Modules Fb250 And Fb251

    Integrated Blocks and Their Functions S5-100U 9.2.5 Analog Value Conditioning Modules FB250 and FB251 Function block FB250 reads in an analog value from an analog input module and outputs a value XA in the scale range specified by the user.
  • Page 245: Ob251 Pid Algorithm For Cpu 103 Version 8Ma02 And Higher

    Integrated Blocks and Their Functions 9.3.3 OB251 PID Algorithm, for CPU 103 Version 8MA02 and Higher A PID algorithm is integrated in the operating system of the S5-100U. OB251 helps you use this algorithm to meet your needs. Before calling up OB251, you must first open a data block called the controller DB. It contains the controller parameters and other controller specific data.
  • Page 246 Integrated Blocks and Their Functions S5-100U BGOG STEU STEU Bit 5 Bit 2 Sum- ming unit Limiter Manual function STEU STEU STEU STEU Bit 1 Bit 0 Bit 3 Bit 4 YH, dYH BGUG Figure 9-7. Block Diagram of the PID Controller Table 9-6.
  • Page 247 S5-100U Integrated Blocks and Their Functions Table 9-7. Description of the Control Bits in Control Word “STEU” Control Signal Name Description State AUTO Manual mode The following variables are updated in Manual mode: , XW and PW , XZ and PZ...
  • Page 248 Integrated Blocks and Their Functions S5-100U Correction Rate Algorithm The relevant correction increment dY is computed at instant t= k TA according to the following • formula: • Without feedforward control (D11.5=1); XW is forwarded to the differentiator (D11.1=0) = K[(XW...
  • Page 249 S5-100U Integrated Blocks and Their Functions At instant t , manipulated variable Y is computed as follows: Initializing the PID Algorithm OB251's interface to its environment is the controller DB. All data needed to compute the next manipulated variable value is stored in this DB. Each controller has its own controller data block.
  • Page 250 Integrated Blocks and Their Functions S5-100U Table 9-8. Structure of the Controller DB (continued) Data Name Comments Word Actual value (- 2047 to +2047) Disturbance variable (- 2047 to +2047) Derivative time (- 2047 to +2047) Output variable (- 2047 to +2047) All parameters (with the exception of the control word STEU) must be specified as 16-bit fixed point numbers.
  • Page 251 S5-100U Integrated Blocks and Their Functions Initialization and Call Up of the PID Controller in a STEP 5 Program Several different PID controllers can be implemented by calling up OB251 repeatedly. A data block must be initialized prior to each OB251 call up. These DBs serve as data interface between the controllers and the user.
  • Page 252 Integrated Blocks and Their Functions S5-100U Example for the Use of the PID Controller Algorithm: A PID controller is supposed to keep an annealing furnace at a constant temperature. The temperature setpoint is entered via a potentiometer. The setpoints and actual values are acquired using an analog input module and forwarded to the controller.
  • Page 253 S5-100U Integrated Blocks and Their Functions Calling the Controller in the Program: OB 13 Description PROCESS CONTROLLER : JU FB NAME : CONTROLLER 1 THE CONTROLLER'S SAMPLING INTERVAL DEPENDS ON THE TIME BASE USED TO CALL OB13 (SET IN DB1).
  • Page 254 Integrated Blocks and Their Functions S5-100U FB10 Description NAME :CONTROLLER 1 SELECT CONTROLLER'S DB DB 30 ********************************** READ CONTROLLER'S CONTROL BITS ********************************** READ CONTROLLER'S PY 0 CONTROL BITS FY 10 AND STORE IN DR11 DR 11 NOTE CAREFULLY: DR11 CONTAINS IMPORTANT CONTROL...
  • Page 255 S5-100U Integrated Blocks and Their Functions FB10 (continued) STL Explanation READ SETPOINT : JU FB250 NAME : RLG: AI MODULE ADDRESS KF +8 CHANNEL NO. 1, FIXED-POINT BIPOLAR KNKT KY 1,6 UPPER LIMIT FOR SETPOINT KF +2047 LOWER LIMIT FOR SETPOINT...
  • Page 256 Integrated Blocks and Their Functions S5-100U DB 30 Explanation 0000; K PARAMETER (HERE=1), FACTOR 0.001 +01000; (VALUE RANGE: - 32768 TO 32767) 0000; R PARAMETER (HERE=1), FACTOR 0.001 +01000; (VALUE RANGE: - 32768 TO 32767) 0000; TI=TA/TN (HERE=0.01), FACTOR 0.001 +00010;...
  • Page 257: Interrupt Processing, For Cpu 103 Version 8Ma02 And Higher

    Interrupt Processing, for CPU 103 Version 8MA02 and Higher 10.1 Interrupt Processing with OB2, for CPU 103 Version 8MA02 and Higher ......10 - 1 10.2 Calculating Interrupt Reaction Times...
  • Page 258 Figures 10-1 Possible Configuration of the Programmable Controller with Bus Units Having Interrupt Capability ......10 - 1 10-2 Program Interruptions by Process Interrupts .
  • Page 259 S5-100U Interrupt Processing Interrupt Processing, for CPU 103 Version 8MA02 and Higher Interrupt-driven program processing starts when a signal from the CPU causes the programmable controller to interrupt cyclic or time-controlled program scanning in order to process a specific program. Once this program has been scanned, the CPU returns to the point of interruption in the cyclic or time-controlled program and resumes processing at that point.
  • Page 260 Interrupt Processing S5-100U Triggering an Interrupt Interrupts can only be triggered by four-channel digital input modules and comparator modules that are plugged into slots 0 and 1 on a bus unit with interrupt capability. Interrupts are triggered by a change in the signal state (0 1=positive edge; 1 0=negative edge) at the respective interrupt input.
  • Page 261 S5-100U Interrupt Processing Reading Out the Interrupt PII If a process interrupt occurs, only the signal states of the interrupt inputs in slots 0 and 1 are read out to the interrupt PII. This data in the interrupt PII is the only data provided to the interrupt-driven program for evaluation.
  • Page 262 Interrupt Processing S5-100U Possibilities of Accessing Process I/O Image Tables The following figure shows how data transfer between the process I/O image tables and ACCU 1 takes place when using various load and transfer statements in OB2. Interrupt T IBX/T IW X...
  • Page 263: Calculating Interrupt Reaction Times

    S5-100U Interrupt Processing 10.2 Calculating Interrupt Reaction Times The total reaction time is is the sum of the following times: • Signal delay of the module triggering the interrupt (= time from the input signal change triggering the interrupt to the activation of the interrupt line) •...
  • Page 264: Analog Value Processing

    Analog Value Processing 11.1 Analog Input Modules ........11 - 11.1.1 Connecting Current and Voltage Sensors to Analog Input Modules .
  • Page 265 Figures 11-1 Voltage Measuring with Isolated Thermocouples (6ES5 464-8MA11/8MA21) ........11 - 11-2 Voltage Measuring with Non-Isolated Thermocouples (6ES5 464-8MA11/8MA21) .
  • Page 266 Tables 11-1 Operating Mode Switch Settings for Analog Input Modules 464-8 to 11 ..11 - 11-2 Operating Mode Switch Settings for Analog Input Module 464-8MA21 ......... 11 - 8/9 11-3 Operating Mode Switch Settings for Analog Input Module 464-8MF21 .
  • Page 267: Analog Value Processing

    S5-100U Analog Value Processing Analog Value Processing 11.1 Analog Input Modules Analog input modules convert analog process signals to digital values that the CPU can process (via the process image input table, PII). In the following sections, you will find information about the operating principle, wiring methods, and start-up and programming of analog input modules.
  • Page 268 Analog Value Processing S5-100U 11.2.1 Voltage Measurement with Isolated/Non-Isolated Thermocouples Module 464-8MA11/8MA21 is recommended for voltage measurement with thermocouples. With floating sensors (e. g., isolated thermocouples), the permissible potential difference V between terminals of the inputs and the potential of the standard mounting rail must not be exceeded. To avoid this, the negative potential of the sensor must be connected to the central ground point (see Figure 11-1).
  • Page 269: Two-Wire Connection Of Voltage Sensors

    S5-100U Analog Value Processing Connection of Thermocouples with Compensating Box to Module 464-8MA11/8MA21 The influence of the temperature on the reference junction (e. g., terminal box) can be compensated for with a compensation box. Observe the following rules: • The compensation box must have a floating supply.
  • Page 270: Two-Wire Connection Of Current Sensors

    Analog Value Processing S5-100U 11.2.3 Two-Wire Connection of Current Sensors You can use module 464-8MD11 for the two-wire connection of current sensors. Figure 11-4 shows the two-wire connections of current sensors. Figure 11-4. Two-Wire Connection for Current Sensors (6ES5 464-8MD11) 11.2.4 Connection of Two-Wire and Four-Wire Transducers...
  • Page 271 S5-100U Analog Value Processing If you use a four-wire transducer connect it as shown in Figure 11-6. Four-wire transducer Figure 11-6. Connection for Four-Wire Transducers (6ES5 464-8ME11) Four-wire transducers require their own power supply. Connect the “+” pole of the four-wire transducer to the corresponding “-”...
  • Page 272: Connection Of Resistance Thermometers

    Analog Value Processing S5-100U 11.2.5 Connection of Resistance Thermometers Analog input module 464-8MF11/8MF21 is suited for the connection of resistance thermometers (e.g., PT 100). The resistance of the PT 100 is measured in a four-wire circuit. A constant current is supplied to the resistance thermometer via terminals 7 and 8 as well as via terminals 9 and 10, so that voltage drops in these “constant current circuits”...
  • Page 273: Start-Up Of Analog Input Modules

    S5-100U Analog Value Processing 11.3 Start-Up of Analog Input Modules Set the intended operating mode using the switches on the front panel of analog input modules 464-8 through 11. These switches are located on the right side at the top of the front panel of the module.
  • Page 274 Analog Value Processing S5-100U Linearization: With this function, you can obtain a characteristic linearization of the thermo- couples of type J, K, and L or of the resistance thermometer PT 100. With module 464-8MA21, the linearization must always be activated together with the corresponding compensation of the reference point temperature.
  • Page 275 S5-100U Analog Value Processing Table 11-2. Operating Mode Switch Settings for Analog Input Module 464-8MA21 (continued) Function Settings for Operating Mode Switch without Linearization Linearization Linearization linearization type K type J type L Characteristic linearization of thermocouples without temperature Temperature compen-...
  • Page 276 Analog Value Processing S5-100U Set the switches on analog module 464-8MF21 as illustrated in Table 11-3. Table 11-3. Operating Mode Switch Settings for Analog Input Module 464-8MF21 Function Settings for Operating Mode Switch 50 Hz 60 Hz Power supply frequency...
  • Page 277: Analog Value Representation Of Analog Input Modules

    S5-100U Analog Value Processing 11.4 Analog Value Representation of Analog Input Modules Each analog process signal has to be converted into a digital format, to be stored in the process image input table (PII). The analog signals are converted into a binary digit that is written in one of the following ways: •...
  • Page 278 Analog Value Processing S5-100U Table 11-6. Analog Input Module 464-8MC11, -8MD11 (Bipolar Fixed-Point Number) Measured Value Units High Byte Low Byte Range in V in mA >4095 20.000 40.0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1...
  • Page 279 S5-100U Analog Value Processing Table 11-9. Analog Input Module 464-8MF21, 2x PT 100 “with Linearization” (Bipolar) Temperature in Resis- Units High Byte Low Byte Range tance in ° C ° F >1766 >400 >883 >1531 0 0 1 1 0 1 1 1 0 0 1 1 0 0 0 1 Overflow...
  • Page 280 S5-100U Analog Value Processing Table 11-10. Analog Input Module 464-8MA21, 4x±50 mV “with Linearization” and “with Temperature Compensation” (Bipolar); Thermoelement Type K (Nickel-Chromium/Nickel-Aluminium, according to IEC 584) Thermal Temperature Units Voltage High Byte Low Byte Range ° C ° F in mV* >2359...
  • Page 281 Analog Value Processing S5-100U Table 11-11. Analog Input Module 464-8MA21, 4x±50 mV “with Linearization” and “with Temperature Compensation” (Bipolar); Thermoelement Type J (Iron/Copper-Nickel (Konstantan), according to IEC 584) Thermal Units Temperature Voltage High Byte Low Byte Range ° C ° F...
  • Page 282 S5-100U Analog Value Processing Table 11-12. Analog Input Module 464-8MA21, 4x±50 mV “with Linearization” and “with Temperature Compensation” (Bipolar); Thermoelement Type L (Iron/Copper-Nickel (Konstantan), according to DIN 43710) Thermal Temperature Units Voltage High Byte Low Byte Range ° C ° F...
  • Page 283 Analog Value Processing S5-100U If you want to read in the analog value with function block FB250 (analog value reading), you have to pre-process the analog value before calling up FB250. Example 1: Analog input module 466-8MC11 is inserted in slot 1, which means that the module's start address is 72.
  • Page 284 S5-100U Analog Value Processing Example 2: Analog input module 466-8MC11 is inserted in slot 0, which means that the module’s start address is 64. The analog values that are read in are stored in four consecutive bytes: 1st analog value...
  • Page 285: Analog Output Modules

    Analog Value Processing S5-100U 11.5 Analog Output Modules Analog output modules convert the bit patterns that are output by the CPU into analog output voltages or currents. 11.5.1 Connection of Loads to Analog Output Modules No adjustments are necessary if you want to connect loads to the analog outputs.
  • Page 286: Analog Value Representation Of Analog Output Modules

    S5-100U Analog Value Processing Figure 11-10 shows how to connect loads to the current outputs of the following modules. • 470-8MB11 (2x±20 mA) • 470-8MC11 (2x+4 to 20 mA). Key: Analog output "Current" Chassis ground terminal of the analog unit...
  • Page 287 S5-100U Analog Value Processing Table 11-15 and 11-16 show the voltage and currents assigned to the bit patterns. Table 11-15. Output Voltages and Currents for Analog Output Modules (Fixed-Point Number Bipolar) Output Values Units High Byte Low Byte Range in V...
  • Page 288: Analog Value Conversion: Function Blocks Fb250 And Fb251

    Analog Value Processing S5-100U 11.6 Analog Value Conversion: Function Blocks FB250 and FB251 11.6.1 Reading in and Scaling an Analog Value - FB250 - Function block FB250 reads in an analog value from an analog input module and outputs a value XA in the scale range specified by the user.
  • Page 289 S5-100U Analog Value Processing Example: Display of Tank Make-Up Quantity The make-up of a cylindrical tank holding 30 m is to be shown on a 3-digit display. The individual digits must be set in BCD. The level of the liquid in the tank is sensed by a SONAR-BERO®, range 80 to 600 cm, with analog output (see Catalog NS3).
  • Page 290 Analog Value Processing S5-100U Explanation Unconditional call FB250 JU FB 250 NAME : RLG:AI Slot 0 Channel 0, channel type 3 KNKT : 0.3 Upper limit: 30.0 m : 300 Lower limit: 0.0 m No meaning EINZ Make-up quantity stored in flag word 1 as fixed-point number : FW1 “1”, if wire break...
  • Page 291 S5-100U Analog Value Processing 11.6.2 Output of Analog Value - FB251 - Analog values can be output to analog output modules using this function block. In doing so, values from the range between the lower limit (UGR) and high limit (OGR) parameters are converted to the nominal range of the module in question.
  • Page 292 Analog Value Processing S5-100U The tank contents are determined from the make-up quantity. Explanation Maximum tank capacity L KF +300 Make-up quantity L FW 1 Calculate difference Store tank contents in FW20 T FW 20 The UGR and OGR parameters of FB 251 refer to the nominal range of the analog output module.
  • Page 293: The Integral Real-Time Clock, For Cpu 103 Version 8Ma02 And Higher

    The Integral Real-Time Clock, for CPU 103 Version 8MA02 and Higher 12.1 Function ......... . . 12 - 12.2 Setting Parameters in DB1, for CPU 103 Version 8MA03...
  • Page 294 Figures 12-1 DB1 with Default Parameters for Integral Real-Time Clock ... . . 12 - 12-2 Example: Setting the Clock in DB1 to Monday, November 9, 1992, 15:30 . . . 12 - 12-3 Example: Setting the Prompt Time in DB1 to Thursday, December 17, 1992, 8:00 o'clock...
  • Page 295: The Integral Real-Time Clock, For Cpu 103 Version 8Ma02 And Higher

    S5-100U The Integral Real-Time Clock The Integral Real-Time Clock, for CPU 103 Version 8MA02 and Higher 12.1 Function The integral real-time clock offers the following possibilities of controlling the process sequence: • Clock and calendar function Used to configure clock-time dependent control, for example •...
  • Page 296: And Higher

    The Integral Real-Time Clock S5-100U 12.2 Setting Parameters in DB1, for CPU 103 Version 8MA03 and Higher Set the clock parameters in DB1 to be able to use the clock functions. Follow the same rules you used in setting parameters for other functions. Refer to section 9.1.
  • Page 297: Reading The Current Clock Time And The Current Date

    S5-100U The Integral Real-Time Clock 12.2.2 Reading the Current Clock Time and the Current Date Proceed as follows to see how and with which values the clock runs. 1. Perform an overall reset. 2. Output DB1 to the programmer. 3. Overwrite both (#) comment characters with a blank space.
  • Page 298: Db1 Parameters Used For The Integral Real-Time Clock

    The Integral Real-Time Clock S5-100U 12.2.3 DB1 Parameters Used for the Integral Real-Time Clock Table 12-2. DB1 Parameters for the Integral Real-Time Clock Parameters Argument Meaning Block ID: CLP: Clock Parameters Entering the correction factor ( C orrection F actor)
  • Page 299: Programming The Integral Real-Time Clock In Db1 For Cpu 103 Version 8Ma03 And Higher

    S5-100U The Integral Real-Time Clock 12.3 Programming the Integral Real-Time Clock in DB1, for CPU 103 Version 8MA03 and Higher Sections 12.3.1 to 12.3.4 contain examples for programming the clock in DB1. Adhere to the rules described in chapter 9 for setting parameters when you enter these examples into the programmable controller.
  • Page 300: Setting The Prompt Time In Db1

    The Integral Real-Time Clock S5-100U 12.3.2 Setting the Prompt Time in DB1 How to set the prompt time in DB1 1. Perform an overall reset on the programmable controller. 2. Generate DB5 with DW0 to DW21. 3. Output default DB1 to the programmer.
  • Page 301: Setting The Operating Hours Counter In Db1

    S5-100U The Integral Real-Time Clock 12.3.3 Setting the Operating Hours Counter in DB1 How to set the operating hours counter in DB1 1. Perform an overall reset on the programmable controller. 2. Generate DB5 with DW0 to DW21. 3. Output default DB1 to the programmer.
  • Page 302: Structure Of The Clock Data Area

    The Integral Real-Time Clock S5-100U 12.4 Structure of the Clock Data Area You need only to change the default values in DB1 to program the clock in DB1. See section 12.2. During start-up, the DB1 interpreter writes all information into the system data area.
  • Page 303 S5-100U The Integral Real-Time Clock When you set the clock, you have to transfer only the data needed to implement a particular function. For example, if you want to change only the clock function data, you do not have to enter data for the time prompt function or for the operating hours counter.
  • Page 304 The Integral Real-Time Clock S5-100U Make certain you are aware of the following points when you make inputs into the clock data area. • Entries into the clock data area must be in BCD code. • The clock runs either in the 12-hour mode or the 24-hour mode depending on how you set bit 1 in the status word.
  • Page 305 S5-100U The Integral Real-Time Clock If your inputs differ from the ones described, the operating system outputs error messages that are displayed in the status word. The operating system resets error messages displayed in the status word the next time you set the clock, prompt time, or the operating hours counter, if the new settings are within the definition range.
  • Page 306: Structure Of The Status Word And How To Scan It

    The Integral Real-Time Clock S5-100U 12.5 Structure of the Status Word and How to Scan it You can scan the status word to identify errors in the entered settings. You can deliberately change certain bits in the status word to enable or disable transfer or read operations. You can use designated flag bits to govern the clock’s behavior when the programmable controller is switched...
  • Page 307 S5-100U The Integral Real-Time Clock Tables 12-5 through 12-8 provide you with information about the significance of the signal states of the respective flags. Clock Flags Table 12-5. Significance of Bits 0, 1, 2 and 3 of the Status Word...
  • Page 308 The Integral Real-Time Clock S5-100U Operating Hours Counter Flags Table 12-7. Significance of the Operating Hours Counter Flags Bits 8, 9, and 10 of the Status Word Bit Number Signal State Meaning Error in setting entry No error in setting entry...
  • Page 309: In The System Data Area

    S5-100U The Integral Real-Time Clock 12.6 Setting Parameters for the Clock Data Area and the Status Word in the System Data Area Table 12-9. The System Data Area for the Integral Real-Time Clock Absolute System Permissible Address RAM Data Word...
  • Page 310 The Integral Real-Time Clock S5-100U The following section is intended to help you to start running the integral real-time clock as quickly as possible by setting parameters in the system data. You need to be familiar with the clock data area described in sections 12.4 and 12.5 in order to understand this section.
  • Page 311 S5-100U The Integral Real-Time Clock The Block Entry Sequence and a Programming Example: The following procedure is suggested: 1. Program FB1 - Defining system data for the integral real-time clock 2. Program OB21 - Calling up FB1 during a change from STOP to RUN 3.
  • Page 312 The Integral Real-Time Clock S5-100U Table 12-11. OB21 Program Explanation OB 21 The function block is called up once during a switch from STOP to JU FB 1 RUN. NAME: CLOCK Table 12-12. OB22 Program Explanation OB 22 The function block is called up once when the programmable JU FB 1 controller is switched on.
  • Page 313 S5-100U The Integral Real-Time Clock Reading and Setting the Time and Date After you enter the program, you can test it as follows. 1. Switch the programmable controller to the RUN mode. 2. Use the FORCE VAR programmer function to enter the following.
  • Page 314 The Integral Real-Time Clock S5-100U Write the settings into the clock data area Set transfer bit 2 in the control program Wait approximately two seconds (entering a wait program) Possible errors: Status Word - Clock is not Bit 2=1 available.
  • Page 315: User Program

    S5-100U The Integral Real-Time Clock 12.7 Programming the Integral Real-Time Clock in the User Program The programming of the clock in the user program should be performed only by users with extensive knowledge of the system. For all other users, use of DB1 is recommended (see sections 12.2 and 12.3).
  • Page 316 The Integral Real-Time Clock S5-100U FB10 STL Description NAME :SET CLOCK SETTING THE CLOCK :WDAY I/Q/D/B/T/C: I BI/BY/W/D: BY :DAY I/Q/D/B/T/C: I BI/BY/W/D: BY :MON I/Q/D/B/T/C: I BI/BY/W/D: BY :YEAR I/Q/D/B/T/C: I BI/BY/W/D: BY :HOUR I/Q/D/B/T/C: I BI/BY/W/D: BY :AMPM...
  • Page 317 S5-100U The Integral Real-Time Clock FB10 STL (continued) Explanation 11.2 HAVE SETTINGS BEEN TRANSFERRED? =M002 IF YES, JUMP TO M002 =ERR SET ERROR BIT IF THERE ARE ERRORS :BEU M002 :AN 11.0 WERE THERE ERRORS WHILE ENTERING SETTINGS? =ERR IF NO, RESET ERROR BIT...
  • Page 318 The Integral Real-Time Clock S5-100U FB13 STL Explanation NAME :READ CLOCK READING THE CLOCK :WDAY I/Q/D/B/T/C: BI/BY/W/D/:BY :DAY I/Q/D/B/T/C: BI/BY/W/D/:BY :MON I/Q/D/B/T/C: BI/BY/W/D/:BY :YEAR I/Q/D/B/T/C: BI/BY/W/D/:BY :HOUR I/Q/D/B/T/C: BI/BY/W/D/:BY :AMPM I/Q/D/B/T/C: BI/BY/W/D/:BI :MIN I/Q/D/B/T/C: BI/BY/W/D/:BY :SEC I/Q/D/B/T/C: BI/BY/W/D/:BY :MODE I/Q/D/B/T/C:...
  • Page 319: Programming The Prompt Function

    S5-100U The Integral Real-Time Clock Storing the Updated Time/Date after a RUN to STOP Switch Note This clock data area is only written to if the following requirements are met. • Bit 5 in the status word is set to “1”.
  • Page 320 The Integral Real-Time Clock S5-100U Write the settings into the clock data area Set transfer bit 14 in the control program Wait about two seconds (entering wait program Possible errors: Bit 14=1 - Clock is not available. - Clock system data is incorrect or not available.
  • Page 321 S5-100U The Integral Real-Time Clock Prompt Time Sequence • Bit 13 in the status word is set after the prompt time has elapsed. • Bit 13 remains set until you reset it in the control program. • The prompt time can be read at any time.
  • Page 322 The Integral Real-Time Clock S5-100U FB11 STL Explanation NAME :SET PROMPT TIME SETTING THE PROMPT TIME :WDAY I/Q/D/B/T/C: I BI/BY/W/D: BY :DATE I/Q/D/B/T/C: I BI/BY/W/D: BY :MON I/Q/D/B/T/C: I BI/BY/W/D: BY :HOUR I/Q/D/B/T/C: I BI/BY/W/D: BY :AMPM I/Q/D/B/T/C: I BI/BY/W/D: BI...
  • Page 323 S5-100U The Integral Real-Time Clock FB11 STL (continued) Description =HOUR STORE VALUE FOR HOURS =AMPM IF AM/PM = 1 (AFTERNOON) AND =MODE 12-HOUR MODE IS SET, THE =MORN CORRESPONDING BIT IN THE CLOCK KH 0080 DATA AREA IS SET MORN :T...
  • Page 324: Programming The Operating Hours Counter

    The Integral Real-Time Clock S5-100U 12.7.3 Programming the Operating Hours Counter You can enable the operating hours counter with bit 9 of the status word. This allows you to establish, for example, the number of hours a motor has been in operation. The operating hours counter is active only in the RUN mode.
  • Page 325 S5-100U The Integral Real-Time Clock Write the settings into the clock data area Set transfer bit 10 in the control program Wait about two seconds (entering a wait program Possible errors: - Clock is not Status word available. Bit 10=1...
  • Page 326 The Integral Real-Time Clock S5-100U Example: Setting the operating hours counter The status of input I 0.7 determines whether the operating hours counter values are transferred. You must transfer these values to flag bytes FY136 to FY140 before setting input I 0.7 (not implemented in the example program).
  • Page 327 S5-100U The Integral Real-Time Clock FB12 STL Explanation NAME :SET OPER. HOURS COUNTER SETTING THE OPERATING HOURS COUNTER :SEC I/Q/D/B/T/C: BI/BY/W/D: :MIN I/Q/D/B/T/C: BI/BY/W/D: :HOUR0 I/Q/D/B/T/C: BI/BY/W/D: :HOUR2 I/Q/D/B/T/C: BI/BY/W/D: :HOUR4 I/Q/D/B/T/C: BI/BY/W/D: :ERR I/Q/D/B/T/C: BI/BY/W/D: 20.2 FLAG IS RESET IF SETTINGS...
  • Page 328 The Integral Real-Time Clock S5-100U Reading the Current Operating Hours Counter The current data is stored in words 12 to 14 of the clock data area. You can use load operations to read out the data. Example: Reading the operating hours counter You need to switch off a machine for inspection after every 300 hours of operation.
  • Page 329: Entering The Clock Time Correction Factor

    S5-100U The Integral Real-Time Clock 12.7.4 Entering the Clock Time Correction Factor You can configure a correction value that increases the exactness of the integral real-time clock. The correction value is displayed in seconds/month. The month is defined as 30 days.
  • Page 330: Connecting The S5-100U To Sinec L1, For Cpu 102 And Higher

    Connecting the S5-100U to SINEC L1, for CPU 102 and Higher 13.1 Connecting the Programmable Controllers to the L1 Bus Cable ........
  • Page 331 Figures 13-1 Connection of the Bus Cable ....... . . 13 - 1 13-2 Programming Example for Setting Parameters in FB1 .
  • Page 332: Connecting The S5-100U To Sinec L1, For Cpu 102 And Higher

    You will find more exact information on the SINEC L1 in the SINEC L1 manual. You need to understand the SINEC L1 operating system before continuing with this chapter. The S5-100U can be connected directly to the SINEC L1 as a slave. The information you need to perform this operation is explained in this chapter.
  • Page 333: How To Program In A Function Block, For Cpu 102 And Higher

    Connecting the S5-100U to SINEC L1 S5-100U • Storage location of the coordinating information for sending data (e.g., the message: “Send Mailbox is enabled”) Name: Coordination Byte Send, abbreviated: KBS • Storage location of the coordinating information for receiving data (e.g., the message: “Receiving data can be read”)
  • Page 334 There is no overflow message. The end of the receive mailbox is flag byte 127 in the flag area or the last present data word (in the data block). Example: Setting parameters in the S5-100U as slave 1 in function block 1 Definitions: •...
  • Page 335 Connecting the S5-100U to SINEC L1 S5-100U Explanation Load slave number and store it in flag byte 65 - Load “Flag” data identifier and store it 4D00 in flag byte 66 - Load flag byte 100 and store it 100,0 in flag byte 67 - Load “Flag”...
  • Page 336: Setting Parameters In Db1, For Cpu 103 And Higher

    4. Edit the default parameters according to your requirements. Do not change the syntax. Example: The S5-100U participates in the SINEC L1 network as a slave with the slave number 2. Send Mailbox (SF) in DB2 beginning with data word 0...
  • Page 337 Connecting the S5-100U to SINEC L1 S5-100U Table 13-3. Setting Parameters for the SINEC L1 Interface Default DB1: Valid Modifications Block: SINEC L1 to Parameters for Explanation Necessary for the PG/ OP/ SINEC L1 CPU 103 and Example Port Higher Block ID “SINEC L1 to...
  • Page 338: Coordinating Data Exchange In The Control Program

    S5-100U Connecting the S5-100U to SINEC L1 13.3 Coordinating Data Exchange in the Control Program After you set the parameters, the control program for data exchange has to be created. The control program relies on the coordination information that the operating system makes available in the coordination bytes (see Figure 13-3).
  • Page 339: Sending Data

    Connecting the S5-100U to SINEC L1 S5-100U 13.3.1 Sending Data The prerequisites for sending data are as follows: • The parameters are set in DB1 for the location of the Send Mailbox (see section 13.2.2). • The data to be sent, additional information (length of the send data “net data”), and destination slave number are then transferred to the Send Mailbox.
  • Page 340: Receiving Data

    S5-100U Connecting the S5-100U to SINEC L1 The control program for sending data should be structured as follows: 1. Check bit 7 in the KBS to see if data is currently being sent. - If the programmable controller is sending data, bit 7 is set. During this phase, the Send Mailbox can not be modified and no transmission can be started.
  • Page 341 Connecting the S5-100U to SINEC L1 S5-100U Structure of the Coordination Byte Receive (KBE) Figure 13-7 shows the structure for receiving data (KBE). No error Error during last data transfer No slave failed At least one slave failed Bus in STOP mode...
  • Page 342: Programming The Messages In A Function Block

    S5-100U Connecting the S5-100U to SINEC L1 13.3.3 Programming the Messages in a Function Block The control program must execute the following tasks: • Enable the send and receive mailboxes and process the data contained in them. • Manage the coordination bytes (e.g. send request, error evaluation).
  • Page 343 Connecting the S5-100U to SINEC L1 S5-100U Explanation Receive mailbox (DB3) Check whether access to receive mailbox is permissible. F100.7 KBE/Bit 7=0: Access permitted KBE/Bit 7=1: Access not permitted Skip receive mailbox evaluation if access not permitted =M001 Check whether the number of the source (master 0) is in...
  • Page 344: Module Spectrum

    Module Spectrum 14.1 General Technical Specifications ......14 - 14.2 Power Supply Modules ....... . . 14 - 14.3 Central Processing Units...
  • Page 345: Module Spectrum

    S5-100U Module Spectrum Module Spectrum 14.1 General Technical Specifications Electromagnetic Compatibility (EMC) Climatic Environmental Conditions Noise Immunity Radiated electromagnetic to IEC 801-3 Temperature field test field strength 3 V/m Operating Fast transient burst to IEC 801-4, - horizontal design 0 to+60° C (32 to 140° F)
  • Page 346: Power Supply Modules

    1.8 x 5.3 x 4.7 Power loss of the module typ. 7.5 W Weight approx. 1040 g (2.4 lbs) 2×4,7 nF For this reason, can only be used with the S5-100U CPUs With core and sleeves 14-2 EWA 4NEB 812 6120-02...
  • Page 347 - permiss. range 92 to 132 V/ 187 to 264 V Line frequency - rated value 50/60 Hz - permiss. range 47 to 63 Hz SIMATIC S5-100U Input current at 115/230 V PS 931 - rated value 0.9/0.6 A Efficiency approx.
  • Page 348: Central Processing Units

    125 µs Scan monitoring time approx. 300 ms Flags 1024; 512 retentive Timers: Number/range approx. 16; 0.01 to 9990 s SIEMENS SIMATIC S5-100U Counters: Number/range 16; 8 retentive CPU 100 0 to 999 (up/down) Digital inputs, Digital outputs together max. 256...
  • Page 349 350 ms Flags 1024; 512 retentive Timers: Number/range approx. 32; 0.01 to 9990 s Counters: Number/range 32; 8 retentive SIEMENS SIMATIC S5-100U 0 to 999 (up/down) Digital inputs, Digital outputs together max. 256 CPU 102 Analog inputs, Analog outputs together max.
  • Page 350 - e.g. tolerance at 40 °C ±2s-3.5x(40-15) ms/day approx. 0 to -4s/day Execution times - per binary operation approx. 0.8 µs SIEMENS SIMATIC S5-100U 100 µs - per word operation approx. Scan monitoring time 500 ms, selectable CPU 103 Flags 2048; 512 retentive Timers: Number/range approx.
  • Page 351: Bus Units

    S5-100U Module Spectrum 14.4 Bus Units Bus Unit (SIGUT Screw-type Terminals) (6ES5 700-8MA11) Technical specifications Type of connection SIGUT screw-type terminals Number of plug-in modules Number of bus units per programmable SIEMENS controller max. Connection between two bus units flat ribbon...
  • Page 352 Module Spectrum S5-100U Bus Unit (Crimp Snap-in Connections) (6ES5 700-8MA21) Technical specifications Type of connection Crimp snap-in Number of plug-in modules Number of bus units per programmable controller max. SIEMENS Connection between two bus units flat ribbon Number of terminals...
  • Page 353 S5-100U Module Spectrum Bus Unit with Interrupt Capability (SIGUT Screw-type Terminals) (6ES5 700-8MB11) Technical specifications Type of connection SIGUT (screw-type terminals) Number of plug-in units Number of bus modules per programmable controller max. 16 * SIEMENS Connection between two bus modules...
  • Page 354 Module Spectrum S5-100U Bus Unit with Interrupt Capability (Crimp Snap-in Connections) (6ES5 700-8MB21) Technical specifications Type of connection Crimp-snap-in Number of plug-in units Number of bus modules per programmable SIEMENS controller max. 16 * Connection between two bus modules flat ribbon...
  • Page 355: Interface Modules

    S5-100U Module Spectrum 14.5 Interface Modules IM 315 Interface Module (6ES5 315-8MA11) SIEMENS SIMATIC S5 INTERFACE MODULE 6ES5 315-8MA11 MADE IN GERMANY Technical specifications Data Current supply to the expansion unit max. Number of interface modules per PLC max. 1 nF...
  • Page 356 Module Spectrum S5-100U IM 316 Interface Module (6ES5 316-8MA12) Technical specifications Current supply to the expansion unit max. Number of interface modules per PLC max. Cable connectors for the IM 316 - Cable connector (0.5 m/1.6 ft.) 6ES5 712-8AF00 - Cable connector (2.5 m/8.2 ft.)
  • Page 357: Digital Modules

    S5-100U Module Spectrum 14.6 Digital Modules 14.6.1 Digital Input Modules Digital Input Module 4×24 V DC (6ES5 420-8MA11) Technical specifications Address designation (for ET 100U only) 4 DI Number of inputs Galvanic isolation - in groups of Input voltage L+...
  • Page 358 Module Spectrum S5-100U Digital Input Module 8×24 V DC (6ES5 421-8MA12) Technical specifications Address designation (for ET 100U only) 8 DI Number of inputs Galvanic isolation - in groups of Input voltage L+ - rated value 24 V DC - ”0” signal 0 to 5 V - ”1”...
  • Page 359 S5-100U Module Spectrum Digital Input Module 4 × 24 to 60 V DC (6ES5 430-8MB11) Technical specifications Address designation (for ET 100U only) 4 DI Number of inputs Galvanic isolation yes (optocoupler) - in groups of Input voltage L+ - rated value 24 to 60 V DC - ”1”...
  • Page 360 Module Spectrum S5-100U Digital Input Module 4×115 V AC (6ES5 430-8MC11) Technical specifications Address designation (for ET 100U only) 4 DI Number of inputs Galvanic isolation yes (optocoupler) - in groups of Input voltage L1 - rated value 115 V AC/DC - ”0”...
  • Page 361 S5-100U Module Spectrum Digital Input Module 4×230 V AC (6ES5 430-8MD11) Technical specifications Address designation (for ET 100U only) 4 DI Number of inputs Galvanic isolation yes (optocoupler) - in groups of Input voltage L1 - rated value 230 V AC - ”0”...
  • Page 362 Module Spectrum S5-100U Digital Input Module 8 x 24 V DC (6ES5 431-8MA11) Technical Specifications Address designation (for ET 100U only) 8 DI Number of inputs Galvanic isolation yes (optocoupler) - in groups of Input voltage L+ - rated value 24 V DC - "0"...
  • Page 363 S5-100U Module Spectrum Digital Input Module 8×115 V AC (6ES5 431-8MC11) Technical specifications Address designation (for ET 100U only) 8 DI Number of inputs Galvanic isolation yes (optocoupler) - in groups of Input voltage L1 - rated value 115 V AC/DC - ”0”...
  • Page 364 Module Spectrum S5-100U Digital Input Module 8×230 V AC (6ES5 431-8MD11) Technical specifications Address designation (for ET 100U only) 8 DI Number of inputs Galvanic isolation yes (optocoupler) - in groups of Input voltage L1 - rated value 230 V AC/DC - ”0”...
  • Page 365 S5-100U Module Spectrum Digital Input Module 8 x 5 to 24 V DC (6ES5 433-8MA11) Technical Specifications Address designation (for ET 100U only) 8 DI Number of inputs Galvanic isolation yes (optocoupler) - in groups of Input voltage L+ - rated value 5 to 24 V DC - "0"...
  • Page 366: Digital Output Modules

    Module Spectrum S5-100U 14.6.2 Digital Output Modules Digital Output Module 4×24 V DC/0.5 A (6ES5 440-8MA11) Technical specifications Address designation (for ET 100U only) 4 DQ Number of outputs Galvanic isolation - in groups of Load voltage L+ - rated value...
  • Page 367 S5-100U Module Spectrum Digital Output Module 4×24 V DC/2 A (6ES5 440-8MA21) Technical specifications Address designation (for ET 100U only) 4 DQ Number of outputs Galvanic isolation - in groups of Load voltage L+ - rated value 24 V DC...
  • Page 368 Module Spectrum S5-100U Digital Output Module 8×24 V DC/0.5 A (6ES5 441-8MA11) Technical specifications Address designation (for ET 100U only) 8 DQ Number of outputs Galvanic isolation - in groups of Load voltage L+ - rated value 24 V DC...
  • Page 369 S5-100U Module Spectrum Digital Output Module 4×24 to 60 V DC/0.5 A (6ES5 450-8MB11) Technical specifications Address designation (for ET 100U only) 4 DQ Number of outputs Galvanic isolation yes (optocoupler) - in groups of Load voltage L+ - rated value...
  • Page 370 Module Spectrum S5-100U Digital Output Module 4×115 to 230 V AC/1 A (6ES5 450-8MD11) Technical specifications Address designation (for ET 100U only) 4 DQ Number of outputs Galvanic isolation - in groups of Load voltage L1 - rated value 115 to 230 V AC - frequency max.
  • Page 371 S5-100U Module Spectrum Digital Output Module 8 x 24 V DC/1 A (6ES5 451-8MA11) Technical specifications Address designation (for ET 100U only) 8 DQ Number of outputs Galvanic isolation yes (optocoupler) - in groups of Load voltage L+ - rated value...
  • Page 372 Module Spectrum S5-100U Digital Output Module 8×115 to 230 V AC/0.5 A (6ES5 451-8MD11) Technical specifications Address designation (for ET 100U only) 8 DQ Number of outputs Galvanic isolation yes (optocoupler) - in groups of Load voltage L1 - rated value...
  • Page 373 S5-100U Module Spectrum Digital Output Module 8×5 to 24 V DC/0.1 A (6ES5 453-8MA11) Technical specifications Address designation (for ET 100U only) 8 DQ Number of outputs Galvanic isolation - in groups of Load voltage L+ - rated value 5 to 24 V DC - permissible range 4.75 to 30 V...
  • Page 374 Module Spectrum S5-100U Relay Output Module 8 x 30 V DC/230 V AC (6ES5 451-8MR12) Crimp Snap-in Connector, 40-pin (6ES5 490-8MA12) Screw Plug Connector, 20-pin (6ES5 490-8MB21) Screw Plug Connector, 40-pin (6ES5 490-8MB11) Technical specifications Address designation (for ET 100U only)
  • Page 375 S5-100U Module Spectrum Relay Output Module 4 x 30 V DC/230 V AC (6ES5 452-8MR11) Technical specifications Address designation (for ET 100U only) 4 DQ Outputs 4 relay outputs, contact switching varistor SIOV-S07- K275 Galvanic isolation yes (optocoupler) - in groups of...
  • Page 376: Digital Input/Output Modules

    Module Spectrum S5-100U 14.6.3 Digital Input/Output Modules Digital Input/Output Module with LED Display (6ES5 482-8MA12) Crimp Snap-in Connector, 40-pin (6ES5 490-8MA12) Screw Plug Connector, 40-pin (6ES5 490-8MB11) DIGITAL 32x24V DC n + 1 0.1 A 0.5A 1 2 3 +9 V...
  • Page 377 S5-100U Module Spectrum Digital Input/Output Module with LED Display (continued) 6ES5 482-8MA12) Technical specifications Address designation Rated insulation voltage (for ET 100U only) 1 AX (+9 V to 12 V AC - insulation group 1 x B Permissible ambient temperature of the unit Power loss of the module typ.
  • Page 378: Analog Modules

    Module Spectrum S5-100U 14.7 Analog Modules 14.7.1 Analog Input Modules Analog Input Module 4×±50 mV (6ES5 464-8MA11) broken wire operating mode Comp. Ch.0 Ch.1 Ch.2 Ch.3 10 - ANALOG INPUT 4 x±50 mV 6ES5 464-8MA11 +9 V Data broken wire...
  • Page 379 S5-100U Module Spectrum Analog Input Module 4×±50 mV (continued) (6ES5 464-8MA11) Technical specifications Noise suppression Address designation for f=nx (for ET 100U only) 4 AI (50/60 Hz±1%); n=1, 2, ... Input ranges - common-mode (rated values) ±50 V rejection min.
  • Page 380 Module Spectrum S5-100U Analog Input Module 4 x ± 50 mV (6ES5 464-8MA21) broken wire operating mode Comp. Ch.0 Ch.1 Ch.2 Ch.3 10 - ANALOG INPUT 4 x±50 mV 6ES5 464-8MA21 +9 V Data broken wire Cu Cu Comp. Ch.0 Ch.1...
  • Page 381 S5-100U Module Spectrum Analog Input Module 4 x ± 50 mV (continued) (6ES5 464-8MA21) Technical specifications Noise suppression Address designation for f = nx (for ET 100U only) 4 AI (50/60 Hz±1%) n = 1, 2, ... Input range - common mode rejection min.
  • Page 382 Module Spectrum S5-100U Analog Input Module 4 x ± 1 V (6ES5 464-8MB11) broken wire operating mode Ch.0 Ch.1 Ch.2 Ch.3 10 - ANALOG INPUT 4 ×± 1V 6ES5 464-8MB11 +9 V Data broken wire Ch.0 Ch.1 Ch.2 Ch.3 14-38...
  • Page 383 S5-100U Module Spectrum Analog Input Module 4 x ± 1 V (continued) (6ES5 464-8MB11) Technical specifications Noise suppression Address designation for f=nx (for ET 100U only) 4 AI (50/60 Hz±1%); n=1, 2, ... Input ranges - common-mode (rated values) ± 1 V...
  • Page 384 Module Spectrum S5-100U Analog Input Module 4 x ± 10 V (6ES5 464-8MC11) operating mode Ch.0 Ch.1 Ch.2 Ch.3 10 - ANALOG INPUT 4 x ± 10 V 6ES5 464-8MC11 +9 V Data 2,5 k 47 k Ch.0 Ch.1 Ch.2 Ch.3...
  • Page 385 S5-100U Module Spectrum Analog Input Module 4 x ± 10 V (continued) (6ES5 464-8MC11) Technical specifications Address designation Noise suppression (for ET 100U only) 4 AI for f=nx (50/60 Hz±1%); Input ranges n=1,2, ... (rated values) ±10 V - common-mode min.
  • Page 386 Module Spectrum S5-100U Analog Input Module 4 x ± 20 mA (6ES5 464-8MD11) operating mode Ch.0 Ch.1 Ch.2 Ch.3 10 - ANALOG INPUT 4 x ± 20 mA 6ES5 464-8MD11 +9 V Data Ch.0 Ch.1 Ch.2 Ch.3 14-42 EWA 4NEB 812 6120-02...
  • Page 387 S5-100U Module Spectrum Analog Input Module 4 x ± 20 mA (continued) (6ES5 464-8MD11) Technical specifications Address designation Noise suppression (for ET 100U only) 4 AI for f=nx (50/60 Hz±1%); Input ranges n=1,2, ... (rated values) ±20 mA - common-mode...
  • Page 388 Module Spectrum S5-100U Analog Input Module 4 x ± 4 to 20 mA (6ES5 464-8ME11) operating mode Ch.0 Ch.1 Ch.2 Ch.3 10 - ANALOG INPUT 4 x 4 ... 20 mA 6ES5 464-8ME11 +9 V Data 31,2 Ch.0 Ch.1 Ch.2 Ch.3...
  • Page 389 S5-100U Module Spectrum Analog Input Module 4 x ± 4 to 20 mA (continued) (6ES5 464-8ME11) Technical specifications Address designation Noise suppression (for ET 100U only) 4 AI for f=nx (50/60 Hz±1%); Input ranges n=1, 2, ... (rated values) ±4 to 20 mA - common-mode min.
  • Page 390 Module Spectrum S5-100U Analog Input Module 2×PT 100/± 500 mV (6ES5 464-8MF11) broken wire operating mode I C + Ch.0 I C - I C + Ch.1 I C - ANALOG INPUT 2×Pt100 6ES5 464-8MF11 +9 V Data broken wire 2×PT100...
  • Page 391 S5-100U Module Spectrum Analog Input Module 2×PT 100/± 500 mV (continued) (6ES5 464-8MF11) Technical specifications Address designation Noise suppression (for ET 100U only) 2 AI for f = nx (50/60 Hz±1%) Input range n = 1, 2, ... (rated values)
  • Page 392 Module Spectrum S5-100U Analog Input Module 2 x PT 100/± 500 mV (6ES5 464-8MF21) broken wire operating mode I C + Ch.0 I C - I C + Ch.1 I C - ANALOG INPUT 2×Pt100 6ES5 464-8MF21 +9 V Data...
  • Page 393 S5-100U Module Spectrum Analog Input Module 2×PT 100/± 500 mV (continued) (6ES5 464-8MF21) Technical specifications Address designation Noise suppression for f = nx (for ET 100U only) 2 AI (50/60Hz ± 1%); n = 1, 2, ... Input range - common mode...
  • Page 394 Module Spectrum S5-100U Analog Input Module 4×+0 to 10 V (6ES5 466-8MC11) Ch.0 Ch.1 Ch.2 Ch.3 10 - ANALOG INPUT 4 x 0 ...10 V 6ES5 466-8MC11 +9 V Data 10 k 90 k Ch.0 Ch.1 Ch.2 Ch.3 14-50 EWA 4NEB 812 6120-02...
  • Page 395 S5-100U Module Spectrum Analog Input Module 4×+0 to 10 V (continued) (6ES5 466-8MC11) Technical specifications Address designation Basic error limits ±0.4% (for ET 100U only) 4 AI Operational error limits Input ranges (0 to 60 °C) (rated values) +0 to 10 V (32 to 140 °F)
  • Page 396: Analog Output Modules

    Module Spectrum S5-10U 14.7.2 Analog Output Modules Analog Output Module 2 x ± 10 V (6ES5 470-8MA12) Technical specifications Address designation (for ET 100U only) 2 AQ Output range (rated values) ±10 V Number of outputs Galvanic isolation yes (outputs to grounding point and between outputs) Input resistance...
  • Page 397 S5-100U Module Spectrum Analog Output Module 2×± 20 mA (6ES5 470-8MB12) Technical specifications Address designation (for ET 100U only) 2 AQ Output range (rated values) ±20 mA Number of outputs Galvanic isolation yes (outputs to grounding point and between outputs) Input resistance max.
  • Page 398 Module Spectrum S5-100U Analog Output Module 2 x 4 to 20 mA (6ES5 470-8MC12) Technical specifications Address designation (for ET 100U only) 2 AQ Output range (rated value) 4 to 20 mA Number of outputs Galvanic isolation yes (outputs to...
  • Page 399 S5-100U Module Spectrum Analog Output Module 2 x 1 to 5 V (6ES5 470-8MD12) Technical specifications Address designation (for ET 100U only) 2 AQ Output range (rated values) 1 to 5 V Number of outputs Galvanic isolation yes (outputs to...
  • Page 400: Function Modules

    Function Modules 15.1 Comparator Module 2×1 to 20 mA/0.5 to 10 V ....15 - 1 15.2 Timer Module 2×0.3 to 300 s ......15 - 4 15.3 Simulator Module .
  • Page 401 Figures 15-1 Scanning the Comparator Module ......15 - 15-2 Scanning the Timer Module .
  • Page 402: Function Modules

    S5-100U Function Modules Function Modules 15.1 Comparator Module 2×1 to 20 mA/0.5 to 10 V (6ES5 461-8MA11) Technical Specifications Address designation (for ET 100U only) 4 DI Channels Galvanic isolation Current or voltage switch-selectable measurement Switch position “0” no measuring...
  • Page 403 Function Modules S5-100U Function The module has two isolated comparators for voltage or current measurement (selector switch with positions U/0/I). When the preset value is reached, the LED of the respective channel lights up and sends a “1” signal to the programmable controller.
  • Page 404 S5-100U Function Modules Typical Application A comparator module is mounted at slot 4. The current source is connected to channel 1. If the Schmitt trigger 1 detects that the current has exceeded the preset value, output 5.1 is to be set.
  • Page 405: Timer Module 2×0.3 To 300 S

    Function Modules S5-100U 15.2 Timer Module 2×0.3 to 300 s (6ES5 380-8MA11) Technical Specifications Address designation (for ET 100U only) 4 DX Number of timers Time setting 0.3 to 3 s Range extension factor ×10, ×100 Function indication green LED Setting error ±10%...
  • Page 406 S5-100U Function Modules Function The module contains two pulse timers. While a timer runs, the LED of the respective channel is lit and a “1” is reported to the CPU. The pulse duration is preselected with the time range selector “x 0.3 s / x 3 s / x 30 s” in a definite range and then set to the exact value by means of a potentiometer on the front panel.
  • Page 407 Function Modules S5-100U Typical Application as “On-Delay Timer” A timer module is mounted at slot 5. A time of 270 s is set on channel “0” of this module by means of the time-range selector and the potentiometer. The timer is started when input 0.0 is “1”.
  • Page 408: Simulator Module

    Function Modules S5-100U 15.3. Simulator Module (6ES5 788-8MA11) Technical Specifications Address designation (for ET 100U only) - input simulator - output simulator Function selection - simulation of 8 input selected by switch signals on rear of module - display of 8 output...
  • Page 409 S5-100U Function Modules Function Simulator modules are 8-channel modules that can simulate digital input signals and display output signals. The type of module to be simulated (input or output) is selected by means of a switch on the rear of the module and indicated by two LEDs on the front panel.
  • Page 410: Diagnostic Module

    Function Modules S5-100U 15.4 Diagnostic Module (6ES5 330-8MA11) Technical Specifications Insulation rating VDE 0160 Rated insulation voltage (+9 V to 12 V AC - insulation group 1×B - tested with 500 V AC Voltage monitor - undervoltage red LED - voltage ok...
  • Page 411 S5-100U Function Modules Function The diagnostic module is used for monitoring the S5-100U I/O bus. LEDs on the front panel display the signal states of the control lines and the supply voltage for the I/O bus. • IDENT The programmable controller executes an IDENT run after each change from STOP to RUN. It executes an IDENT run after any changes in the configuration in order to determine the current configuration.
  • Page 412 Function Modules S5-100U Installation The diagnostic module is plugged into a bus unit like any other input or output module (see section 3.2.1). The module has no mechanical coding. The coding element on the bus unit does not have to be reset.
  • Page 413: Counter Module 2×0 To 500 Hz

    S5-100U Function Modules 15.5 Counter Module 2×0 to 500 Hz (6ES5 385-8MA11) Ch.0 Ch.1 5V/24 V Ch.0 Ch.1 COUNTER 500 Hz 6ES5 385-8MA11 +9 V Data 24 V 15-12 EWA 4NEB 812 6120-02...
  • Page 414 Function Modules S5-100U Technical Specifications Address designation Total permissible current (for ET 100U only) of outputs Number of Inputs Driving a digital input possible Galvanic isolation Paralleling of outputs possible - max. current 0.5 A Input voltage - rated value...
  • Page 415 S5-100U Function Modules Function The module consists of two independent down counters with isolated inputs and outputs. It counts input signals up to a frequency of 500 Hz from a set value down to the value 0. When 0 is reached, the 24-V DC output of the module is energized.
  • Page 416 Function Modules S5-100U Addressing A counter module can be addressed like a two-channel digital module (channel “0” or “1”). For enabling and resetting the counter, you address the module like a digital output module. The counter reading is scanned in the same way as a digital input module.
  • Page 417 S5-100U Function Modules Typical Application A counter module is plugged into slot 2. A value of 100 is set on channel “0” of this module using the three-digit thumbwheel switches. The incoming pulses are counted once the counter has been enabled by the control program.
  • Page 418: Counter Module 25/500 Khz

    Function Modules S5-100U 15.6 Counter Module 25/500 kHz (6ES5 385-8MB11) 2× 4× 24 V HIGH SPEED COUNTER 25/500 kHz 6ES5 385-8MB11 +9 V Data +5 V 24 V 15-17 EWA 4NEB 812 6120-02...
  • Page 419 S5-100U Function Modules Technical Specifications Power supply for sensor 24 V from L+ Address designation (PTC thermistor) (for ET 100 only) Output current max. 300 mA, short- Operating mode circuit proof (switch-selectable) - position decoder Digital Inputs reference and - counter...
  • Page 420 Function Modules S5-100U Function The counter module can be used as an up-counter or as an up/down counter for a position decoder. The counting pulses are supplied by a sensor that you can connect to the 15-pin subminiature D female connector of the module. You can choose from two types of sensors that fulfill the following requirements: •...
  • Page 421: Installation Guidelines

    S5-100U Function Modules 15.6.1 Installation Guidelines Installing and Removing the Module Plug the counter module into a bus unit like other I/Os. The counter module can only be plugged into slots 0 through 7. Set the coding key to number 6 on the bus unit.
  • Page 422 Function Modules S5-100U • Connecting Counting Pulse Sensors for 5-V Differential Signal to RS 422 Module Electronic light Sensor line 24 V Pulse sensor Shield Shell of subminiature D connector Figure 15-9. Connecting a Counting Pulse Sensor for 5-V Differential Signal to RS 422 •...
  • Page 423 S5-100U Function Modules • Connecting a 5-V Position Sensor to RS 422 Module Electronic light Sensor line 24 V Position sensor Shield Shell of subminiature D connector Figure 15-11. Connecting a 5-V Position Sensor to RS 422 • Connecting a 24-V DC Position Sensor...
  • Page 424 Function Modules S5-100U Sensor Requirements The following requirements must be satisfied by the sensor signals to the module inputs: • Signal sequence for up-counting Sensor signals: V (A, A-N/A) (B, B-N/B) (R, R-N/R) Figure 15-13. Signal Sequence for Up-Counting •...
  • Page 425 S5-100U Function Modules Terminal Block Proximity switches can be connected (contacts, two-wire BERO proximity limit switches) to the inputs on the terminal block. Terminal Terminal Assignment 24-V DC supply for the module Ground 24-V DC supply for enable signal DI enable signal DQ 24 V/0.5 A setpoint (Q0)
  • Page 426: Data Transfer

    Function Modules S5-100U 15.6.2 Data Transfer The data is transmitted via the I/O bus. Four bytes are used. Examples of data transfer are shown in section 15.6.6. Transfer from the Programmable Controller to the Counter Module (PIQ) The control program transfers two setpoints to the counter module by means of transfer operations.
  • Page 427 S5-100U Function Modules • Diagnostic Byte (Byte 1) The diagnostic byte is byte 1 of the first input word. Byte 0 has no significance. The diagnostic byte provides information on the following items: - Preset position resolution - Preset mode...
  • Page 428: Functional Description Of The Counter Mode

    Function Modules S5-100U 15.6.3 Functional Description of the Counter Mode In the operation mode “Counter”, the module works as a “port-controlled” up-counter and counts the positive edges of the counting pulses while the enable input is active. If the counter reaches a preselected setpoint, the respective output is enabled.
  • Page 429 S5-100U Function Modules Disabling the Counter A negative edge at the enable input disables the counter. The outputs, diagnostic bits, and the counter are not reset. You can continue reading the current count. A positive edge at the enable input resets the outputs and the diagnostic bytes.
  • Page 430: Functional Description Of The Position Decoder

    Function Modules S5-100U Performance during Overflow If the enabled counter exceeds the counter range limit 65,535 the following occurs: • Bit 3 (overflow) in the diagnostic byte is set to “1”. • The outputs and diagnostic bits for “setpoint reached” are disabled, but they remain unchanged.
  • Page 431 S5-100U Function Modules Connect the sub-D interface female connector to an incremental position encoder that has to deliver the following signals: • Two counting pulses offset by 90 degrees • A reference pulse The pulses can be supplied as 5-V differential signals according to RS 422 (up to 500 kHz) or as 24-V DC signals.
  • Page 432 Function Modules S5-100U Example: A rotary incremental position encoder produces 1000 pulses per revolution. The spindle has a pitch of 50 mm/revolution. The position encoder therefore produces 1000 pulses for a traversing path of 50 mm (1 revolution). The resolution of the encoder is therefore 50 mm/1000 pulses.
  • Page 433 S5-100U Function Modules Prerequisites for a Synchronization • The reference signal The sensor for the reference signal is connected to terminals 7 and 8 of the terminal block. Synchronization is enabled with the leading edge (0 to 1) at terminal 8. If the signal was already on “1”...
  • Page 434 Function Modules S5100U Positive direction of traverse Reference signal Reference pulse of the sensor Change of direction Reference signal Reference pulse of the sensor Sync Figure 15-19. Position of the Reference Point (SYNC Bit=1) during a Reversal of Direction before Reaching the Reference Pulse in a Positive Direction Example: Transporting objects from point A to point B on a conveyor belt.
  • Page 435 S5-100U Function Modules Starting the Counter The counter is reset and started by setting the SYNC bit in the diagnostic byte during the reference point approach operation. The active pulses are counted according to the rotation direction of the position encoder. The count value is incremented during a positive count direction, and decremen- ted during a negative count direction.
  • Page 436 Function Modules S5100U You can read the current count in the STEP 5 program. The actual value is displayed as a signed whole number in two's complement and lies in the range - 32768 to +32767. Note Before you enable the outputs to be switched on by setting the enable input to “1”, make sure the following conditions exist: •...
  • Page 437 S5-100U Function Modules Example 2: Approaching a Setpoint in Down-Count Direction Enable input Direction of traverse Output, diagnostic bit setpoint reached Setpoint Example of 1000 2000 3000 4000 5000 6000 7000 actual value Figure 15-23. Approaching a Setpoint in Down-Count Direction •...
  • Page 438 Function Modules S5100U Performance during Overflow If the counter leaves the counting range of -32768 to + 32767, then the following occurs: • Bit 3 (overflow) in the diagnostic byte is set to “1”. • The outputs of the counter module are disabled. The enable input (terminal 4 of the terminal block) must be set to “0”, in order to switch off active outputs.
  • Page 439: Entering New Setpoints For The Counter And Position Decoder

    S5-100U Function Modules 15.6.5 Entering New Setpoints for the Counter and Position Decoder Entering new setpoints is always possible via the PIQ. However, a setpoint is only valid if the respective output is not switched on. The status of the outputs is displayed with diagnostic bits S1 and S2.
  • Page 440: Addressing

    Function Modules S5100U 15.6.6 Addressing The counter module is addressed like an analog module (see section 6.3). • The module may only be plugged into slots 0 to 7. • The address range extends from byte 64 to byte 127. •...
  • Page 441 S5-100U Function Modules Examples for Data Exchange between the Programmable Controller and the Counter Module Example 1: The counter module is plugged into slot 4. If you now wish to check whether your system for position decoding has been synchronized by a reference point approach, you must scan the sync bit in the diagnostic byte (bit 0).
  • Page 442: Closed-Loop Control Module Ip 262

    Function Modules S5-100U 15.7 Closed-Loop Control Module IP 262 (6ES5 262-8MA12) (6ES5 262-8MB12) STATUS CLOSED LOOP CONTROLLER 6ES5 262-8MA12 15-41 EWA 4NEB 812 6120-02...
  • Page 443 S5-100U Function Modules Technical Specifications Address designation Analog outputs of the constant controller (only for ET 200) (6ES5 262-8MA11) Number of outputs Controller Galvanic isolation Total cycle time Output signal range 0 to 20 mA or (equals scan time) 100 to 200 ms...
  • Page 444 The basis, in both cases, is a PID control algorithm. The closed-loop control module IP 262 can be used with the S5-90U, S5-95U, and S5-100U programmable controllers. It can be used without COM software.
  • Page 445 S5-100U Function Modules Addressing The module is addressed like a four-channel analog module. Operating Modes Since transducers and sensors are directly wired to the module, the module can work independently from a programmable controller in stand-alone operation, provided that the setpoints and the 24-V power supply voltage are fed directly to the IP 262.
  • Page 446: Positioning Module Ip 266

    Function Modules S5-100U 15.8 Positioning Module IP 266 (6ES5 266-8MA11) Technical Specifications Address designation (only for ET 200) Analog Output Output signal range ±10 V Digital signal representation 13 bits plus sign Short-circuit proof Reference potential of the FAULT analog output signal...
  • Page 447 Thus the CPU is not burdened with positioning jobs constantly being processed. You can plug the IP 266 into slots 0 to 7 on the S5-100U. The IP 266 is assigned addresses in the analog address area of the programmable controller.
  • Page 448 Function Modules S5-100U Besides purely traversing movements, other operating modes allow offset generation of axis coordinates or drift compensation in the system. In addition, the IP 266 offers operating modes to read data such as positioning actual value or residual traversing distances.
  • Page 449 S5-100U Function Modules Overview of the Operation Modes Table 15-8. Designation of the Operating Modes List of the Operating Modes JOG 1 AUTOMATIC SINGLE BLOCK ACKNOWLEDGE ERROR JOG 2 TEACH-IN ON DRIFT COMPENSATION ON CONTROLLED JOG TEACH-IN OFF DRIFT COMPENSATION OFF...
  • Page 450: Stepper Motor Control Module Ip 267

    Function Modules S5-100U 15.9 Stepper Motor Control Module IP 267 (6ES5 267-8MA11) Technical Specifications Address designation (only for ET 200) Supply voltage (BUS) Current consumption approx. 150 mA Special voltage V 5 V to 30 V Digital Inputs Rated input voltage...
  • Page 451 Motor Control Module expands the field of application as an intelligent I/O module (IP) of the S5-100U and S5-95U programmable controllers for “closed-loop control positioning". The IP 267 controls positioning processes independently of the run time of user programs in the programmable controller.
  • Page 452 Function Modules S5-100U Using a limit switch on the digital inputs, IP 267 can monitor the limits of a traversing range and stop the traversing movement when the permissible range limit is exceeded. The activated input “external stop” causes a calculated decelerating of the traversing movement. An emergency limit switch can be installed at input “IS”...
  • Page 453: Communications Modules

    Function Modules S5-100U 15.10 Communications Modules 15.10.1 Printer Communications Module CP 521 (6ES5 521-8MA11) Technical Specifications Galvanic isolation TTY signals are isolated Memory submodule EPROM/EEPROM Serial interface V.24 (RS-232-C)/TTY, passive Real-time clock - accuracy ±2 s/day - variation due to...
  • Page 454 Function Modules The CP 521 is a powerful peripheral module that can be used with the SIMATIC systems S5-90U, S5-95U, and the S5-100U. It has its own central processor (cannot be used with the CPU 100, version 8MA01). A separate manual for this module is available. The order number is 6ES5 100-0UD21.
  • Page 455 Function Modules S5-100U Installation 1. Install the communications module on the bus module like any other I/O module (see chapter 3) 2. Plug the module only into slots 0 to 7. The module has no connection to the terminal block.
  • Page 456: Communications Module Cp 521 Basic

    S5-100U Function Modules 15.10.2 Communications Module CP 521 BASIC (6ES5 521-8MB11) Technical Specifications Address designation (only for ET 200) Galvanic isolation TTY signals are isolated Memory submodule EPROM/EEPROM/ Serial interface V.24 (RS-232-C)/TTY, passive PROG Battery Real-time clock - accuracy ±1 s/day at 25 °C 3,4V (77 °F)
  • Page 457 S5-100U The CP 521 BASIC is a powerful peripheral module that can be used with the SIMATIC systems S5-90U, S5-95U, and the S5-100U. It has its own central processor (cannot be used with the CPU 100, version 8MA01). A separate manual for this module is available. The order number is 6ES5 521-8MB21.
  • Page 458 Operations List, Machine Code and List of Abbreviations Operations List ........A.1.1 Basic Operations .
  • Page 459: A.1 Operations List

    S5-100U Operations List, Machine Code and List of Abbreviations Operations List, Machine Code and Abbreviations Operations List A.1.1 Basic Operations For organization blocks (OB) For function blocks (FB) For program blocks (PB) For sequence blocks (SB) Oper- Permissible RLO* Execution Time in µs...
  • Page 460 Operations List, Machine Code and List of Abbreviations S5-100U Execution Time in µs Oper- Permissible RLO* Function ation Operands CPU 100 CPU 102 CPU 103 MA02 MA03 (STL) Set/Reset Operations (cont.) I, O typ. Reset operand to “0”. I, O typ.
  • Page 461 S5-100U Operations List, Machine Code and List of Abbreviations Oper- Permissible RLO* Execution Time in µs Function ation Operands CPU 100 CPU 102 CPU 103 MA02 MA03 (STL) Load Operations (cont.) 1.45 Load a constant (1-byte number) into ACCU 1.
  • Page 462 Operations List, Machine Code and List of Abbreviations S5-100U Execution Time in µs Oper- Permissible RLO* Function ation Operands CPU 100 CPU 102 CPU 103 MA02 MA03 (STL) Transfer Operations (cont.) Permissible in OB2 and OB13. Transfer the contents of ACCU 1 to the interrupt PIQ with updating of the PIQ.
  • Page 463 S5-100U Operations List, Machine Code and List of Abbreviations Oper- Permissible RLO* Execution Time in µs Function ation Operands CPU 100 CPU 102 CPU 103 MA02 MA03 (STL) Counter Operations (cont.) Set counter. Reset counter. Arithmetic Operations Add two fixed-point numbers: ACCU 1+ACCU 2.
  • Page 464 Operations List, Machine Code and List of Abbreviations S5-100U Execution Time in µs Oper- Permissible RLO* Function ation Operands CPU 100 CPU 102 CPU 103 MA02 MA03 (STL) Block Call Operations 3.35 Jump unconditionally to a program block. 3.35 Jump unconditionally to a function block.
  • Page 465 S5-100U Operations List, Machine Code and Abbreviations Execution Time in µs Oper- Permissible Function ation Operands RLO* CPU 100 CPU 102 CPU 103 MA02 MA03 (STL) Display Generation Operations (cont.) Display generation operation for the programmer: switch to control system flowchart (CSF).
  • Page 466: A.1.2 Supplementary Operations

    Operations List, Machine Code and Abbreviations S5-100U A.1.2 Supplementary Operations For organization blocks (OB) For function blocks (FB) For program blocks (PB) For sequence blocks (SB) Oper- Permissible RLO* Execution Time in µs Function ation Operands CPU 100 CPU 102...
  • Page 467 S5-100U Operations List, Machine Code and Abbreviations Oper- Permissible RLO* Execution Time in µs Function ation Operands CPU 100 CPU 102 CPU 103 MA02 MA03 (STL) Bit Operations (cont.) Test a bit of a data word for “0”. Test a bit of a data word in the system data area for “0”.
  • Page 468 Operations List, Machine Code and Abbreviations S5-100U Oper- Permissible RLO* Execution Time in µs Function ation Operands CPU 100 CPU 102 CPU 103 MA02 MA03 (STL) Timer and Counter Operations (cont.) Formal op. 194** 145** Start an on-delay timer (formal operand) with the value stored in ACCU 1.
  • Page 469 S5-100U Operations List, Machine Code and Abbreviations Oper- Permissible RLO* Execution Time in µs Function ation Operands CPU 100 CPU 102 CPU 103 MA02 MA03 (STL) Conversion Operations Form the one's complement of ACCU 1. Form the two's complement of ACCU 1.
  • Page 470 Operations List, Machine Code and Abbreviations S5-100U Oper- Permissible RLO* Execution Time in µs Function ation Operands CPU 100 CPU 102 CPU 103 MA02 MA03 (STL) Other Operations Disable interrupt. Input/ output interrupt or timer OB processing is disabled. Enable interrupt.
  • Page 471: A.1.3 System Operations, For Cpu 102 And Higher

    S5-100U Operations List, Machine Code and Abbreviations A.1.3 System Operations, for CPU 102 and Higher Execution Time in µs Oper- Permissible RLO* Function ation Operands CPU 100 CPU 102 CPU 103 MA02 MA03 (STL) Set Operations Set bit in system data area unconditionally.
  • Page 472: A.1.4 Evaluation Of Cc 1 And Cc 0

    Operations List, Machine Code and Abbreviations S5-100U Execution Time in µs Oper- Permissible RLO* Function ation Operands CPU 100 CPU 102 CPU 103 MA02 MA03 (STL) Block Call Operations and Return Operations 3.35 Call an organization block unconditionally. 3.35 Call an organization block conditionally.
  • Page 473: A.2 Machine Code Listing

    S5-100U Operations List, Machine Code and Abbreviations Machine Code Listing Machine Code Machine Code Oper- Oper- Oper- Oper- ation ation NOP 0 SEC= >F <F ><F >=F <=F SSU= SFD= A-15 EWA 4NEB 812 6120-02...
  • Page 474 Operations List, Machine Code and Abbreviations S5-100U Machine Code Machine Code Oper- Oper- Oper- Oper- ation ation A-16 EWA 4NEB 812 6120-02...
  • Page 475 S5-100U Operations List, Machine Code and Abbreviations Machine Code Machine Code Oper- Oper- Oper- Oper- ation ation PB/PY PB/PY NOP 1 Depending on the type of programmer used Explanation of the Indices + byte address + number of shifts + bit address...
  • Page 476: A.3 List Of Abbreviations

    Operations List, Machine Code and List of Abbreviabrations S5-100U List of Abbreviations Permissible Operand Value Range for Abbreviation Explanation CPU 100 CPU 102 CPU 103 ACCU 1 Accumulator 1 (When accumulator 1 is loaded, any existing contents are shifted into accumulator 2.)
  • Page 477 S5-100U Operations List, Machine Code and List of Abbreviabrations Permissible Operand Value Range for Abbreviation Explanation CPU 100 CPU 102 CPU 103 DB1 parameter: SINEC L1, position of the “Send” coordination byte Constant (count) (any two (any two alphanumeric alphanumeric...
  • Page 478 Operations List, Machine Code and List of Abbreviabrations S5-100U Permissible Operand Value Range for Abbreviation Explanation CPU 100 CPU 102 CPU 103 Result of logic operation RLO affected? The RLO is affected/not affected by the operation. dependent? The statement is executed only if the RLO is “1”.
  • Page 479: B Dimension Drawings

    Dimension Drawings EWA 4NEB 812 6120-02...
  • Page 480 ..Dimension Drawing of the S5-100U (CPU) ......
  • Page 481 S5-100U Dimension Drawings Dimension Drawings Dimensions are indicated in millimeters. The approximate equivalent in inches is indicated in parentheses. (1 mm=0.039 in. rounded off to the nearest tenth or hundredth of an inch) 15° 15° Deburred Deburred 2.5 (0.1) 2.5 (0.1) R 1.2 (0.05)
  • Page 482 Dimension Drawings S5-100U 15 (0.6) 20 x 25=500 (0.8 x 1.0=19.7) 25 (1.0) 5.2 (0.2) 18 (0.7) 530 (20.9) Figure B-3. Dimension Drawing of the 530-mm (20.9-in.) Standard Mounting Rail 15 (0.6) 32 x 25=800 (1.26 x 1.0=31.5) 25 (1.0) 5.2 (0.2)
  • Page 483 S5-100U Dimension Drawings 81 (3.2) 91.5 (3.6) 63.5 (2.5) 35 (1.4) 135 (5.3) (4.1) 40 (1.6) 10.8 (0.4) Figure B-6. Dimension Drawing of the S5 100U (CPU) EWA 4NEB 812 6120-02...
  • Page 484 Dimension Drawings S5-100U 135 (5.3) 85 (3.4) 127 (5) 81 (3.2) 135 (5.3) ith crimp snap-in connection (6ES5 700-8MA21) Standard mounting rail EN 50022-35 x 15 91.5 (3.6) 45.75 (1.8) Figure B-7. Dimension Drawing of the Bus Unit (Crimp Snap-in Connections)
  • Page 485 S5-100U Dimension Drawings 135 (5.3) 85 (3.4) 127 (5) 81 (3.2) 162 (6.4) with screw type terminals (6ES5 700-8MA11) Standard mounting rail EN 50022-35 x 15 91.5 (3.6) 45.75 (1.7) Figure B-8. Dimension Drawing of the Bus Unit (SIGUT Screw-type Terminals)
  • Page 486 Dimension Drawings S5-100U (5.3) min. 210 (8.3) max. 570 (22.4) 81 (3.2) (5.3) 13.5 (0.5) 26 (1) 45.4 (1.8) 35 (1.4) Figure B-9. Dimension Drawing of the IM 315 Interface Module EWA 4NEB 812 6120-02...
  • Page 487 S5-100U Dimension Drawings 45.4 (1.8) min. 210 (8.3) max. 10000 (39.4) 81 (3.2) 135 (5.3) 13.5 (0.5) 26 (1) 35 (1.4) Figure B-10. Dimension Drawing of the IM 316 Interface Module (6ES5 316-8MA12) EWA 4NEB 812 6120-02...
  • Page 488 Dimension Drawings S5-100U 135 (5.3) 120 (4.7) 127 (5) 81 (3.2) Standard mounting rail EN 50022-35×15 45.4 (1.8) Figure B-11. Dimension Drawing of the PS 930 and PS 931 Power Supply Modules EWA 4NEB 812 6120-02...
  • Page 489: C Active And Passive Faults In Automation Equipment

    Active and Passive Faults in Automation Equipment EWA 4NEB 812 6120-02...
  • Page 490 8, “Permissible exceptions when working on live parts.” Do not open the S5-100U. Do not attempt to repair an item of automation equipment. Such repairs may be carried out only by Siemens service personnel or repair shops Siemens has authorized to carry out such repairs.
  • Page 491: D Information For Ordering Accessories

    Information for Ordering Accessories EWA 4NEB 812 6120-02...
  • Page 492 S5-100U Information for Ordering Accessories Information for Ordering Accessories Order Numbers Standard 35 mm Mounting Rail for 19-in. cabinets, length 483 mm 6ES5 710-8MA11 for 600 mm cabinets, length 530 mm 6ES5 710-8MA21 for 900 mm cabinets, length 830 mm...
  • Page 493 6ES5 375-0LC41 UV eraser for 230 V AC/50 Hz 6ES5 985-1AA11 for 115 V AC/60 Hz 6ES5 985-1BA21 Programming pad (STL 50 sheets) E80850-C254-XA1 Manual for S5-100U, separately German 6ES5 998-0UB13 English 6ES5 998-0UB23 French 6ES5 998-0UB33 Spanish 6ES5 998-0UB43...
  • Page 494 S5-100U Information for Ordering Accessories Order Numbers Manual for IP 262 Closed-Loop Control Module German 6ES5 998-5SG11 English 6ES5 998-5SG21 Italian 6ES5 998-5SG51 Manual for IP 266 Positioning Module German 6ES5 998-5SC11 English 6ES5 998-5SC21 Manual for IP 267 Stepper Motor Module...
  • Page 495 Information for Ordering Accessories S5-100U Order Numbers Analog Input Modules 4 x ± 50 mV isolated 6ES5 464-8MA11 4 x ± 50 mV isolated 6ES5 464-8MA21 4 x ± 1 V isolated 6ES5 464-8MB11 4 x ± 10 V isolated 6ES5 464-8MC11 4 x ±...
  • Page 496 S5-100U Information for Ordering Accessories Order Numbers PG 750 Programmer 6EA 1750-0AA00-0AA0 with 5 ” floppy disk drive PG 750 Programmer 6EA1 750-0AF00-0AA0 with 3 ” floppy disk drive Manual for PG 750 German 6ES5 886-0FC11 English 6ES5 886-0FC21 French...
  • Page 497 6ES5 845-7GP01 GRAPH 5 Program Package with description in German, English, and French for the S5-DOS operating system 6ES5 845-8DA01 for the MS-DOS, S5-DOS/MT operating system 6ES5 845-7DA01 S5-100U Program Package with description in German 6ES5 840-4BC11 English 6ES5 840-4BC21 Italian...
  • Page 498: E Reference Materials

    Reference Materials EWA 4NEB 812 6120-02...
  • Page 499 Reference Materials Reference Materials • Programming Primer for the SIMATIC® S5-100U Practical Exercises with the PG 615 Programmer Siemens AG, Berlin and Munich, 1989 (Order No.: ISBN 3-8009-1528-6) • Automating with the SIMATIC S5-115U Programmable Controllers Hans Berger Siemens AG, Berlin and Munich, 1989 (2nd Edition) (Order No.: ISBN 3-8009-1530-8)
  • Page 500: F Siemens Addresses Worldwide

    Siemens Addresses Worldwide EWA 4NEB 812 6120-02...
  • Page 501 Federal Republic Ireland Siemens AG Österreich of Germany (continued) Siemens Ltd. Vienna Hanover Dublin Bregenz Leipzig Graz Mannheim Italy Innsbruck Munich Siemens S. p. A. Klagenfurt Nuremberg Milan Linz Saarbrücken Bari Salzburg Stuttgart Bologna Brescia Belgium Finland Casoria Siemens S.A.
  • Page 502 Siemens Addresses Worldwide S5-100U Romania Switzerland USSR Siemens birou de Siemens-Albis AG Siemens AG Agency consulta ii tehnice Zürich Moscow Bukarest Bern Siemens-Albis S.A. Yugoslavia Spain Lausanne, Renens General Export Siemens S.A. OOUR Zastupstvo Madrid Turkey Belgrade ETMA Ljubljana Sweden...
  • Page 503 S5-100U Siemens Addresses Worldwide Sudan Brazil Honduras National Electrical & Siemens S.A. Representaciones Electro- Commercial Company São Paulo industriales S. de R.L. (NECC) Belém Tegucigalpa Khartoum Belo Horizonte Brasília Mexico Swaziland Campinas Siemens S.A. Siemens (Pty.) Ltd. Curitiba México, D.F.
  • Page 504 Electro Mechanical Co. Iraq Lahore Abu Dhabi Samhiry Bros. Co. (W.L.L.) Peshawer Baghdad Quetta Siemens Resident Engineer Rawalpindi Abu Dhabi Siemens AG (Iraq Branch) Scientechnic Baghdad People's Republic of China Dubai Siemens Represen- Japan tative Office Siemens Resident Engineer Siemens K.K. Beijing...
  • Page 505 S5-100U Siemens Addresses Worldwide Asia (continued) Yemen (Arab Republic) Tihama Tractors & Engineering Co.o., Ltd. Sanaa Siemens Resident Engineer Sanaa Australia Australia Siemens Ltd. Melbourne Brisbane Perth Sydney New Zealand Siemens Liaison Office Auckland EWA 4NEB 812 6120-02...
  • Page 506 Index EWA 4NEB 812 6120-02...
  • Page 507 S5-100U Index Index Block Accumulator 8-10, 8-12 - call operations 8-33 Actual operand 7-14 - end symbol Addition 8-31 - header Address - ID 9-1, 9-5, 9-10 - absolute - length - relative 5-11 - parameters 7-14 Address assignment - programming...
  • Page 508 Index S5-100U Control Display generation operation 8-39 - deviation 9-21 Divider : 16 9-13 - variable 9-12 DO operation 8-54 - word 9-19 Controller - continuous action 9-15 Electromagnetic interference 3-22 Controller DB 9-15, 9-19 EMERGENCY OFF equipment 3-36 Conversion operation...
  • Page 509 S5-100U Index Installation of the S5-100U - electrical 3-20, 3-21 10-1, 10-4 - horizontally OB13 7-28 - mechanical OB21 7-24 - mechanical, with external OB22 7-24 I/Os On-delay 8-22, 8-23 - vertical - stored 8-23 Integral action time (TN) 9-19...
  • Page 510 Reference potential 11-1 Printer communications module 15-52 Register contents CP521 - loading and transfering 8-65 Printer mode 15-53 Removing the S5-100U 3-1, 3-2 Response time 7-27 Process image (PII, PIQ) 2-4, 7-29 Process image I/O tables 10-4 Retentive characteristics - interrupt...
  • Page 511 S5-100U Index Slave 13-3, 13-5 USTACK Slot addressing SONAR BERO 11-23 Start ID 9-4, 9-5 Wiring START-UP 4-1, 7-24 - arrangement 3-29 Starting up Wiring method Statement list (STL) - crimp-snap-in terminals 3-10 STATUS - screw-type terminals STATUS VAR Status word...
  • Page 512 Siemens AG Sender (Please fill out) AUT 125 Doku Name Postfach 1963 D-92209 Amberg Company/Department Fed. Rep. of Germany Address Telephone Suggestions: Corrections: S5-100U (6ES5 998-0UB23) Have you found any typographical errors while reading this manual? Please use this form to tell us about them.

Table of Contents

Save PDF