Siemens SIMATIC S5 Manual

Ip 265 high speed sub control
Hide thumbs Also See for SIMATIC S5:
Table of Contents

Quick Links

SIMATIC S5
IP 265
High Speed Sub Control
EWA 4NEB 812 6130-02a
Table of Contents
loading

Summary of Contents for Siemens SIMATIC S5

  • Page 1 SIMATIC S5 IP 265 High Speed Sub Control EWA 4NEB 812 6130-02a...
  • Page 2 STEP® and SIMATIC® are registered trademarks of Siemens AG. Subject to change without prior notice. The reproduction, transmission or use of this document or its contents is not permitted without express written authority. Offenders will be liable for damages. All rights, including rights created by patent grant or registration of a utility model or design, are reserved.
  • Page 3 Preface Introduction System Overview Technical Description Installation Guidelines General Operation Addressing Control of the IP 265 by the CPU User Program Startup, Loading and Operating States Fundamentals of COM 265 Programming the IP 265 with COM 265 Testing and Simulation with COM 265 COM 265 Services and File Functions IP 265 Expansion Sample Applications and Programming Aids...
  • Page 4: Table Of Contents

    IP 265 Summary Summary Page Preface ........... . Introduction .
  • Page 5 Summary IP 265 Page General Operation ......... . . 4 - 1 Parallel Program Execution with IP 265 .
  • Page 6 IP 265 Summary Page Fundamentals of COM 265 ........8 - 1 Preparations for Working with COM 265 .
  • Page 7 Summary IP 265 Page 10.2 On-Line Testing of the IP 265 ......10 - 20 10.3 Wiring Test .
  • Page 8 IP 265 Summary Page Appendices Diagnostics and Error Messages ....... . A - 1 LEDs .
  • Page 9: Preface

    On the worldwide market of mini and micro PLCs, there is a growing tendency towards faster and smaller components. In the case of existing mini PLCs of the SIMATIC S5 family, system-dependent limits are set by processing speed of control commands. The conventional SIMATIC C1, C2, C3 circuitry is therefore still used for expecially fast applications.
  • Page 10: Introduction

    Customer-oriented layout of the contents In this way we would like to provide the information necessary for working with the IP 265 to both inexperienced as well as experienced SIMATIC S5 users. Description of contents This manual represents a comprehensive description of the IP 265. It can be divided into individual thematic blocks.
  • Page 11 There is a glossary containing all the terms which we had to define in conjunction with the application of a new technology in a SIMATIC S5 module. At the end of the manual, correction forms are included. Please enter in these forms any suggestions you may have for improvements, additions or corrections and send them to us.
  • Page 12 IP 265 Introduction Conventions This manual is organized in menu form to make it easier for you to find information. This means the following: • Each section is marked with printed tabs. • On the next two pages of the manual, you will find an overview page that lists the title of each section.
  • Page 13 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. Courses Siemens offers extensive opportunities for training to SIMATIC S5 users. For detailed information, please contact your local Siemens office. EWA 4NEB 812 6130-02a...
  • Page 14: System Overview

    System Overview System Environment of the IP 265 ..... . . 1 - 2 User Controls ........1 - 3 EWA 4NEB 812 6130-02a...
  • Page 15 Figures System Environment of the Module ......1 - 2 EWA 4NEB 812 6130-02a...
  • Page 16 System Overview System Overview Intelligent I/O modules extend the field of application of SIMATIC S5 programmable controllers. They are technology-oriented and offload the central processor in the CPU. The IP 265 is an extremely powerful I/O module. Use of the module in an S5 system permits fast I/O preprocessing through parallel program scanning.
  • Page 17 Use of the IP 265 enables the control of fast sub processes of an overall system. For communication with the system environment, the module is equipped with several ports. The SIMATIC S5 hardware constitutes the direct environment of the IP 265. Memory...
  • Page 18: User Controls

    IP 265 System Overview Interface to another IP 265 The results obtained in one IP 265 can be processed by the other IP 265. The expansion enables you to - nearly double the program capacity, - double the number of inputs and outputs. You can define the IP 265 function easily at the programmer/PC.
  • Page 19: Technical Description

    Technical Description Hardware Structure of the IP 265 ......2 - 1 Interface to the External I/O Bus .
  • Page 20 Figures Block Diagram of the IP 265 with Ports ......2 - 1 Overview of the Module ........2 - 2 Pin Assignments of the Interface for the 24 V Inputs .
  • Page 21: Block Diagram Of The Ip 265 With Ports

    IP 265 Technical Description Technical Description Hardware Structure of the IP 265 The IP 265 is a single-width module of the S5-100 system. The module is equipped with several ports for communication with the system environment. The following representation shows an overview block diagram in which the essential hardware components of the module are shown.
  • Page 22: Interface To The External I/O Bus

    Technical Description IP 265 Figure 2-2 shows the position of the interfaces on the front of the module. Elements on the fronplate STOP RUN Status and fault LEDs indication Memory submo- for EPROM, dule receptacle EEPROM Digital inputs Sub D connector (24 V) 9-pin Digital outputs...
  • Page 23: Pin Assignments Of The Interface For The 24 V Inputs

    IP 265 Technical Description Interface to the Process I/O 2.3.1 24 V Digital Inputs Connect the signal lines of the plant sensors to the 9-pin sub D connector labelled "INPUT". You can connect up to 8 sensors with 24 V signals. The frequency of the input signals may be at the most 10 kHz.
  • Page 24: Differential Inputs

    Technical Description IP 265 Warning Parallel connection of the 24 V outputs is only allowed in pairs. The output current per 24 V output is thus 0.8 times the rated current. 2.3.3 5 V Differential Inputs The IP 265 has 3 differential inputs. The differential inputs are connected to the 15-pin sub D socket of the module.
  • Page 25: Expansion Interface

    Technical Description Expansion Interface You can link the IP 265 with a further IP 265 via the expansion interface. This is only possible with the special connection cable offered by Siemens. This extension can become necessary if • the number of digital inputs and outputs of one IP 265 (24 V) or •...
  • Page 26: Memory Submodule Receptacle

    Technical Description IP 265 Memory Submodule Receptacle The submodule receptacle of the IP 265 can accommodate an EPROM or EEPROM submodule. Generally, the user program for the IP 265 is to be stored on the memory submodule. If you use a standard program, you can also plug the fixed-programmed memory submodule supplied (EPROM) into the submodule receptacle of the IP 265.
  • Page 27: Installation Guidelines

    Installation Guidelines Assembly and Removal of the IP 265 ..... 3 - 1 Establishing Connection to the I/Os ..... . . 3 - 1 3.2.1 Connecting 24 V Digital Inputs...
  • Page 28 Figures Typical Connection for 24 V Digital Inputs ..... . . 3 - 2 Typical Connection for 24 V Digital Outputs .
  • Page 29: Establishing Connection To The I/Os

    IP 265 Installation Guidelines Installation Guidelines Assembly and Removal of the IP 265 The IP 265 is to be snapped onto a bus unit in the same way as an I/O module of the S5-100 system. Please note the following for assembly and removal of the module: •...
  • Page 30: Connecting 24 V Digital Inputs

    Installation Guidelines IP 265 3.2.1 Connecting 24 V Digital Inputs The signal cables of sensors in the plant are to be connected via the 9-pin sub D connector of the IP 265 labelled "INPUT". The digital inputs of the IP 265 are designed for 24 V DC and must be non-floating.
  • Page 31: Connecting Differential Inputs

    The maximum length of the signal cables is 32 m. The signal cables must be shielded. Prefabricated standard cables from Siemens may be used for this purpose ( Appendix G). Figure 3-3 shows a connection example for the 5 V differential inputs of the IP 265.
  • Page 32: Power Supply Of The Ip

    PS 931 power supply module ( Appendix G) • Siemens load power supply of the 6EW1 series. When connecting other load power supplies, please note that the voltage must be in the range of 20 to 30 V (including ripple).
  • Page 33: Important Information On The Configuration And Installation Of The Ip

    IP 265 Installation Guidelines Important Information on the Configuration and Installation of the IP 265 Since the module usually constitutes a part of a larger system or plant, this information is intended as a guideline for the safe integration of the product into its environment. Guidelines to be considered for installation and startup of the product - depending on the application: Warning •...
  • Page 34: Hardware Fault Detection During Connection Buildup

    Installation Guidelines IP 265 Hardware Fault Detection During Connection Buildup Hardware faults on the 24 V DC load circuit side are indicated as follows: • By flashing LEDs on the IP 265 ( Appendix A.1) • By error bits set in the status word of the IP 265 ( Appendix A.2) Table 3-1.
  • Page 35: Parallel Program Execution With Ip 265

    General Operation Parallel Program Execution with IP 265 ....4 - 1 Response Time ........4 - 4 4.2.1 Program Execution Time...
  • Page 36 Figures Comparison of Sequential Program Execution and Parallel Program Execution ........4 - 1 Example: Binary Segment of the IP 265 User Program .
  • Page 37 IP 265 General Operation General Operation Parallel Program Execution with IP 265 Remember In the case of conventional programmable controllers (PLCs), the user program for the control of an overall system is processed by a CPU. The individual instructions of the CPU user program are executed sequentially by the CPU.
  • Page 38 General Operation IP 265 Sequential program processing Parallel program processing CPU user program: IP 265 user program: IP 265 operating in parallel Inputs read in DCyc cyclically Continuous reading of the inputs A I 0.0 PCyc A I 0.1 Programmed &...
  • Page 39 IP 265 General Operation Example: Segment consisting of three binary language elements (program execution time: 7.8 µs) Two AND operations are ORed. I 0.0, I 0.1, I 0.2, I 0.3, Q 0.0 are the addresses of the inputs or outputs of the IP 265. &...
  • Page 40: Response Time

    General Operation IP 265 4.2. Response Time The response time is the time that elapses from the change of an input until setting of an output of the IP 265. In the preceding section, we already mentioned the program execution time of the FPGA. For the assessment of the response time of the IP 265, additional delays must be considered when using the 24 V inputs and 24 V outputs.
  • Page 41: Program Execution Time

    IP 265 General Operation 4.2.1 Program Execution Time All segments of the IP 265 user program are processed in parallel in the IP 265. For purely binary operations, the program execution time is 1/128 kHz=7.8 µs (the interconnection is clocked with 128 kHz).
  • Page 42: Input Delay

    General Operation IP 265 4.2.2 Input delay The input delay of the 24 V inputs consists of two times: • Delay of the input circuit: typ. 15 µs • Debouncing time: 1 to 2 ms Remember: For adaptation to simple sensors, the fast 24 V inputs can be debounced. You can configure the debouncing time with the aid of COM 265.
  • Page 43: Output And Input Data

    IP 265 General Operation Output and Input Data IP 265 program processing is controlled by the CPU via the external I/O bus. For each slot, 8 bytes are reserved for the IP 265 in the process image of the outputs (PIQ) and in the process image of the inputs (PII) of the CPU.
  • Page 44: Structure And Operation Of The Control Word

    General Operation IP 265 4.3.1 Structure and Operation of the Control Word Control commands are transferred to the IP 265 via the control word. The IP 265 can thus be switched to the STOP and RUN operating states. Two types of instruction can be stored in the control word: •...
  • Page 45: Structure And Handling Of The Status Word

    IP 265 General Operation 4.3.2 Structure and Handling of the Status Word The operating state and possible error states of the IP 265 can be recognized via the status word. You can evaluate the following in the status word of the IP 265 •...
  • Page 46 General Operation IP 265 The control bit (bit 2 in byte 0 of the status word) is set • after POWER ON while the IP 265 is being loaded from the memory submodule, • during loading of the IP 265 via the remote I/O bus and •...
  • Page 47: Memory Submodule Evaluation In Status Word

    IP 265 General Operation Memory submodule evaluation: After POWER ON, the IP 265 executes a memory submodule evaluation during restart. The relevant information is displayed in bits 0 to 2 in byte 1 of the status word with a corresponding code ( Table 4-3).
  • Page 48: Parameters Of The Ip 265 User Program

    The counters and timers in the IP 265 can be supplied with constants by the CPU user program. However, it is not possible to work with the SIMATIC S5 constants for timers (KT) and counters (KC). Constant count and time values can only be transmitted in BCD code from the CPU to the IP 265.
  • Page 49: Output Parameters Of The Ip 265 User Program

    IP 265 General Operation Output parameters Output parameter are results of IP 265 program scanning which are read and processed by the CPU user program. Note The output parameters of the IP 265 user program at the time of an IP 265 STOP can be read and evaluated at any time by the CPU user program.
  • Page 50: Addressing

    Addressing Addressing in the IP 265 User Program (IP 265 Viewpoint) ..5 - 2 5.1.1 Actual Addresses of the Inputs and Outputs of the IP 265 ..5 - 2 5.1.2 Actual Addresses of the Input and Output Parameters (IP 265 Viewpoint) .
  • Page 51 Figures Communications Model ........5 - 1 Example: Addressing the Status Word in the CPU User Program .
  • Page 52 Addressing Addressing Remember The 1P 265 is provided with interfaces to the process, . a port to a further 1P 265 and a port to the 1/0 bus for communication with the CPU. Figure 5-I shows the relation between the hardware ports of the 1P 265 and the margin bar objects user of the control system flowchart (IP 265 program).
  • Page 53: Addressing In The Ip 265 User Program (Ip 265 Viewpoint)

    Addressing IP 265 Addressing in the IP 265 User Program (IP 265 Viewpoint) All interfaces of the IP 265 are addressed in the IP 265 user program with fixed actual addresses: • 24 V inputs and 24 V outputs • 5 V differential inputs •...
  • Page 54: (Ip 265 Viewpoint)

    IP 265 Addressing 5.1.2 Actual Addresses of the Input and Output Parameters (IP 265 Viewpoint) Note The actual addresses of the input and output parameters of the IP 265 are slot- independent in the IP 265 user program. The addresses (direct addressing) are used for addressing the parameter area of a maximum of 6 bytes for input parameters and 6 bytes for output parameters.
  • Page 55: Addressing In The Cpu User Program (Cpu Viewpoint)

    Addressing IP 265 Addressing in the CPU User Program (CPU Viewpoint) The CPU accesses the IP 265 via the process image of the inputs (PII) and the process image of the outputs (PIQ). The CPU addresses the IP 265 in the address space of the analog channels. The address space is determined by the slot selected for the IP 265.
  • Page 56 IP 265 Addressing 5.2.1 Address of the Control Word and the Status Word Note The addresses for the control word and status word of the IP 265 are slot-dependent in the CPU user program. The address of the status word or control word always corresponds to the starting address of the module slot.
  • Page 57: Actual Addresses Of The Input And Output Parameters (Cpu Viewpoint)

    Addressing IP 265 5.2.2 Actual Addresses of the Input and Output Parameters (CPU Viewpoint) Note The addresses of the input and output parameters of the IP 265 are slot- dependent in the CPU user program. For address allocation, you must add the starting address of the slot into which you have plugged the module (module address) to the relevant byte number in the address area (byte 2 to 7).
  • Page 58 IP 265 Addressing Example: Determining the address of an input parameter You want to store e.g. a count in bytes 4 and 5 of the PIQ in the CPU user program. You have plugged the IP 265 into slot 2. Consequently, the starting address of the slot (module address) is 80.
  • Page 59: Allocation Of The Parameter Addresses In The Ip 265 User Program

    Addressing IP 265 5.3. Allocation of the Parameter Addresses in the IP 265 User Program and in the CPU User Program In order to prevent programming errors, the tables below give you an overview of the correct addressing of the parameters of the IP 265 (repetition from the preceding sections). The information given in Tables 5-7 and 5-8 •...
  • Page 61: Control Of The Ip 265 By The Cpu User Program

    Control of the IP 265 by the CPU User Program Control of IP 265 Program Execution ..... . 6 - 1 Transfer Times for Data Exchange Between CPU and IP 265 .
  • Page 62 Figures Control System Flowchart: Control of IP 265 by the CPU User Program . . . 6 - 2 Transfer of Input and Output Data ......6 - 3 Structure of the CPU Program Section for Control of the IP 265 .
  • Page 63 IP 265 Control of the IP 265 by the CPU User Program Control of the IP 265 by the CPU User Program Control of IP 265 Program Execution Program execution in the IP 265 is controlled by the CPU user program. The IP 265-related part of the CPU user program communicates with the IP 265 via the PIQ and PII of the CPU: •...
  • Page 64 Control of the IP 265 by the CPU User Program IP 265 POWER ON CPU transfers RUN instruction (OB21/OB22) Load IP 265 Load IP 265 from memory submodule IP 265 loaded IP 265 switched to Start IP 265 RUN state IP 265 provides status and AP CPU evaluates status word...
  • Page 65 IP 265 Control of the IP 265 by the CPU User Program Transfer Times for Data Exchange Between CPU and IP 265 Input and output data is transferred continuously between the IP 265 and the I/O bus. If the IP 265 is in the RUN state, •...
  • Page 66 Control of the IP 265 by the CPU User Program IP 265 Summary The transfer times for the data exchange between the CPU and the IP 265 (t ) are basically determined by the program scan time (t ) and the data transfer time (t ) of the CPU (system PCyc DCyc...
  • Page 67: Structure Of The Cpu Program Section

    IP 265 Control of the IP 265 by the CPU User Program 6.3.1 Structure of the CPU Program Section The CPU program section for controlling the IP 265 consists of 3 nesting levels. The function blocks called by the OB1 are processed cyclically. OB21/22 Name: CONTROL Name: IPPARAM...
  • Page 68: Programming Blocks Of The Cpu Program Part

    Control of the IP 265 by the CPU User Program IP 265 Advantage of parameter exchange via flag areas: The CPU can access the parameters at any location in the CPU user program without having to check each time whether the IP 265 is ready. 6.3.2 Programming Blocks of the CPU Program Part We provide you with the following function blocks:...
  • Page 69 IP 265 Control of the IP 265 by the CPU User Program FB 2 Segment 1 0000 IP 265 in slot 2 Name :IPPARAM1 0008 IW 82 Load output parameters of IP 265 0009 FW 10 into slot 2 and store 000A IW 84 in flag words 10 to 14...
  • Page 70 Control of the IP 265 by the CPU User Program IP 265 (FB 1, continued) 000C 80.2 Is one of the two IP 265 modules 000D 88.2 controlled by COM 265: 000E :BEC --> BEC 0010 80.0 If one of two IP 265 modules 0011 88.0 is in STOP state:...
  • Page 71: Startup, Loading And Operating States

    Startup, Loading and Operating States Function Model of a Startup ......7 - 1 Loading .
  • Page 72 Figures Function Model for Startup of the IP 265 ......7 - 2 Function Model - IP 265 Changes Operating State .
  • Page 73 IP 265 Startup, Loading and Operating States Startup, Loading and Operating States Function Model of a Startup A function model is used to illustrate the basic user inputs required for startup of the IP 265 ( Figure 7-1). You determine the function of the IP 265 in the IP 265 user program. The IP 265 is programmed and tested by means of COM 265 at the programmer/PC.
  • Page 74 Startup, Loading and Operating States IP 265 IP 265 startup Start COM 265 ( Section 8.1) Wiring test Check wires ( Section 10.3) to the process Edit program ( Section 9) Off-line simulation ( Section 10.1) Generate Load program via external IP 265 user I/O bus ( Section 7.2.1, program...
  • Page 75 IP 265 Startup, Loading and Operating States Wiring test COM 265 offers the possibility of checking the wiring between the inputs/outputs of the IP 265 and the sensors and/or actuators of the process interface system for continuity. COM 265 provides the special "WIRE" user program for the IP 265 to check the wiring. Program generation The IP 265 user program is generated in four steps: •...
  • Page 76 Startup, Loading and Operating States IP 265 On-line test The IP 265 user program is tested on the module in order to check IP 265 program execution. COM 265 provides convenient access to the address area of the IP 265 in the PIQ and PII of the CPU.
  • Page 77 IP 265 Startup, Loading and Operating States Loading There are two ways of loading the IP 265: • Loading via the external I/O bus • Loading from the memory submodule During both loading procedures, all inputs and outputs of the module are passive. The loading procedure is indicated by high-speed flashing of the STOP LED on the module front and by the relevant status acknowledgements in the status word of the module ( Section 4.3.2).
  • Page 78 Startup, Loading and Operating States IP 265 Table 7-1. Operator Inputs - Loading Via the I/O Bus Operating State User Handling Effects of the CPU No further user inputs necessary CPU user program continues to work, IP 265 program execution is interrupted STOP via mode Mode selector switch of the CPU...
  • Page 79 IP 265 Startup, Loading and Operating States 7.2.2 Loading the IP 265 from the Memory Submodule Loading from memory submodule is possible without COM 265. For the loading procedure, the following prerequisite must be fulfilled: • A memory submodule containing the IP 265 user program must be plugged into the IP 265. You can use either - an EPROM or EEPROM submodule programmed using COM 265 - an EPROM submodule with standard program...
  • Page 80: Operating States

    Startup, Loading and Operating States IP 265 Operating States 7.3.1 Possible Operating States During startup and normal operation, the IP 265 can enter different operating states. A change of the operating state of the IP 265 can be initiated in the following ways: •...
  • Page 81: 7.3.2 Useful Operating States For Normal Operation And Transitions

    IP 265 Startup, Loading and Operating States This provides you with the opportunity to continue the sub process controlled by the IP 265 even if the CPU is in the STOP mode. Table 7-2. Behaviour of IP 265 in Case of CPU STOP if IP 265 is in RUN Mode Configuration LEDs Behaviour...
  • Page 82 Startup, Loading and Operating States IP 265 POWER ON IP 265 loads program CPU in STOP IP 265: STOP CPU: RUN IP 265 receives RUN command CPU in STOP FREELY* configured IP 265: RUN IP 265: STOP CPU: STOP CPU: STOP Switch CPU to RUN Switch CPU to RUN IP 265: RUN...
  • Page 83: Fundamentals Of Com

    Fundamentals of COM 265 Preparations for Working with COM 265 ....8 - 2 COM 265 Screen Forms ......8 - 4 Basic COM 265 Functions in the "Function Selection"...
  • Page 84 Figures COM 265 "Function Selection" Form; COM 265 Screen Form Segments 8 - 4 Hierarchical Structure of COM 265 ......8 - 8 Selecting the "Rename"...
  • Page 85 Like other SIMATIC COM packages, COM 265 is an autonomous package. Conventional COM packages are used to initialize SIMATIC S5 modules. In contrast, COM 265 has its own pro- gramming language (based on the CSF format used in STEP 5) for writing and testing a special application for the S5-100's IP 265 module.
  • Page 86 Fundamentals of COM 265 IP 265 Preparations for Working with COM 265 Before beginning work with COM 265, you must first make a number of preparations. First, make sure that the following software has been installed on your programmer: • Operating system: MS-DOS 3.2 •...
  • Page 87 IP 265 Fundamentals of COM 265 Start COM 265 Now start the COM 265 programming package from the hard disk. Make the directory in which you stored COM 265 into the current directory, e.g. C: < > cd \COM265 < >...
  • Page 88: Com 265 Screen Forms

    The structure of the COM 265 screen forms is shown below, using the "Function Selection" form, or menu, as an example. "Function Selection" form Header Copyright (c) Siemens AG 1992. All rights reserved. oooo ooooo oo o...
  • Page 89: Basic Com 265 Functions In The "Function Selection" Form

    IP 265 Fundamentals of COM 265 Basic COM 265 Functions in the "Function Selection" Form The softkey menu in the first COM 265 screen form displayed when COM 265 is started ("Function Selection" form) shows the COM 265 basic functions. You can invoke any one of these functions by pressing the appropriate function key.
  • Page 90 Fundamentals of COM 265 IP 265 : Editor COM 265 allows you to write the IP 265 application program in control system flowchart (CSF) format, which is similar to the CSF format used in STEP 5 (for CPU program- ming). •...
  • Page 91 IP 265 Fundamentals of COM 265 : Services By pressing the function key assigned to 'Services', the user can invoke the symbolic editor and initiate output of the IP 265 user program to various media. • The COM 265 operand editor allows you to enter symbolic identifiers for operands in the IP 265 user program.
  • Page 92: Hierarchical Structure Of Com 265

    Fundamentals of COM 265 IP 265 Hierarchical Structure of COM 265 COM 265 is structured into several operator levels. The top menu, i.e. "Function Selection", represents the highest operator level. Pressing of a function key from to takes you to the COM 265 screen form for the basic function you selected.
  • Page 93 IP 265 Fundamentals of COM 265 The function key menu has the same basic structure for all COM 265 screen forms: • to invoke COM 265 functions or sublevels • ("Return") or ("Store") returns you to the next higher COM 265 screen form ( Figure 8.3) The single exception is the "Editor"...
  • Page 94: Com 265 Operator Control Philosophy

    Fundamentals of COM 265 IP 265 COM 265 Operator Control Philosophy 8.5.1 Help Forms and Help Windows The "Help" concept in COM 265 is similar to that used in STEP 5. Help texts can be displayed in dependence on the selected COM 265 screen form and the current position of the cursor.
  • Page 95 IP 265 Fundamentals of COM 265 Help forms: Help texts with descriptive information on the current COM 265 screen form and function key menu You can display a Help form with descriptive information about the current screen form and function key menu by pressing the ...
  • Page 96 Fundamentals of COM 265 IP 265 Help window: Help texts for input fields and Help texts for compiler error messages Press function key "Info" (if available in the function key menu) for Help texts on COM 265 input fields. A Help window is displayed which provides information on possible and permissible entries in the field at which the cursor is currently positioned.
  • Page 97: Errors And Warnings

    IP 265 Fundamentals of COM 265 8.5.2 Errors and Warnings The COM 265 concept of errors and warnings is also similar to that used in STEP 5. COM 265 can detect various types of errors and inform the user by displaying an appropriate message.
  • Page 98 Fundamentals of COM 265 IP 265 Errors detected during compilation of the IP 265 user program COM 265 provides adequate support for compiling IP 265 user programs. An IP 265 user program reserves memory space on the IP 265 ( Section 9.4.1). When a compiler run is started, COM 265 checks to see whether the IP 265 user program is compilable and whether there is sufficient space in the IP 265's memory.
  • Page 99: Cursor Control In Control System Flowcharts And Input Fields

    IP 265 Fundamentals of COM 265 8.5.3 Cursor Control in Control System Flowcharts and Input Fields All entries in COM 265 screen forms are cursor-supported. The cursor can be moved only to specific positions within each screen form. Cursor control in and between input fields •...
  • Page 100 Fundamentals of COM 265 IP 265 • Using the cursor, mark the grid positions in the control system flowchart at which actions such as "Insert language element" or "Invert input" are to be carried out. Connecting lines, language elements and marginal objects can be marked in the control system flowchart. Section 8.5.4 provides information on the keys on the programmer keyboard that can be used for cursor control.
  • Page 101 IP 265 Fundamentals of COM 265 Cursor control: : Move cursor up one line in input field; Move cursor up based on grid in control system flowchart : Move cursor down one line in input field; Move cursor down based on grid in control system flow- chart : Move cursor one character to the left in input field;...
  • Page 102 Fundamentals of COM 265 IP 265 Segment handling: : Page to previous segment : Page to next segment : Insert segment in front of on-screen segment. The segment numbers of all the following segments will be incremented by one. : Delete the on-screen segment. The segment numbers of all segments that follow the deleted segment will be decre- SHIFT mented by one.
  • Page 103 IP 265 Fundamentals of COM 265 Go from "Editor" to "Assignment line": : Go direct from the control system flowchart editor to a section of the symbolic editor (assignment line) without CORR exiting the "Editor" form (Section 9.4.3). Store functions: : Store (confirm) key INSERT : Return key...
  • Page 104 Programming the IP 265 with COM 265 Defaults ......... . 9 - 1 Configuring the IP 265 Response .
  • Page 105 Figures "Defaults" Form; Defaults for COM 265 ......9 - 1 "Configure" Form; Configuring Data for the IP 265 .
  • Page 106: Programming The Ip 265 With Com

    IP 265 Programming the IP 265 with COM 265 Programming the IP 265 with COM 265 The following sections cover procedures for programming the IP 265 with COM 265. It has been assumed that you have made the preparations for working with COM 265 discussed in Section 8.1.
  • Page 107 Programming the IP 265 with COM 265 IP 265 Possible entries in the input fields of the COM265 "Defaults" form: • Program name: The IP 265 user program is stored as a program file. For file management purposes, each IP 265 user program must be assigned a name.
  • Page 108 IP 265 Programming the IP 265 with COM 265 The specifications in the "Defaults" form can either be entered on the keyboard or chosen from the selection window for the relevant input field. You can screen additional information on the input fields and various editing options by pressing ...
  • Page 109: Configuring The Ip 265 Response

    Programming the IP 265 with COM 265 IP 265 Configuring the IP 265 Response Additional defaults can be defined for IP 265 control. With COM 265, you can specify • Debouncing for each of the eight 24 V inputs • The response of the IP 265 inputs and outputs in the event of a CPU STOP "Configure"...
  • Page 110 IP 265 Programming the IP 265 with COM 265 You may make your entries in the input fields by typing them in character by character on the keyboard, or by picking them from the relevant selection windows. You can screen information on input fields and editing options by pressing ...
  • Page 111: Com 265 Language Description

    Programming the IP 265 with COM 265 IP 265 COM 265 Language Description The IP 265 user program is written with the aid of COM 265 in a control system flowchart (CSF) format similar to that used in STEP 5 (for programming SIMATIC CPUs). In contrast to the CPU user program, the IP 265 user program is not subdivided into blocks which have to be called during program scanning.
  • Page 112 IP 265 Programming the IP 265 with COM 265 Operands • Control system flowchart operands can be placed only in the segments' margin bars. • The only exception is the connectors, which can also be programmed in the logic field between COM 265 language elements.
  • Page 113: Operands In A Control System Flowchart

    Programming the IP 265 with COM 265 IP 265 9.3.1 Operands in a Control System Flowchart The operands in a control system flowchart are placed in "margin bars" (with the exception of connectors, which may also be placed in the logic field). The following operands are allowed in a control system flowchart's input bar: •...
  • Page 114 IP 265 Programming the IP 265 with COM 265 The IP 265 operand area is more restricted than the CPU operand area. The table below provides an overview of the operands which may be used in the margin bars of a control system flowchart. Table 9-1.
  • Page 115 Programming the IP 265 with COM 265 IP 265 Constants The IP 265 user program may include: • Bit constants • Count constants • Time constants Bit constants: You may use the two bit constants "0" and "1". Bit constants are used, for example, to specify the response of the COM 265 language element "Clockpulse generator".
  • Page 116: Language Elements In A Control System Flowchart

    IP 265 Programming the IP 265 with COM 265 9.3.2 Language Elements in a Control System Flowchart The COM 265 language elements and their representation in a control system flowchart are very closely based on STEP 5 (which is used to program SIMATIC CPUs). In addition to the familiar STEP 5 language elements, a number of new language elements have been implemented for programming the IP 265: •...
  • Page 117 Programming the IP 265 with COM 265 IP 265 Binary logic operations (&, >=1, XOR) Table 9-2. Binary Logic Operations Binary logic operation CSF (example) AND operation "&": This operation queries whether or not several con- ditions are all true. An AND operation can evaluate &...
  • Page 118 IP 265 Programming the IP 265 with COM 265 Set/Reset operations (S/R..) Table 9-3. "Set/Reset operations" Set/Reset operation CSF (example) Set/Reset operation for latching signal output (reset dominant) "S": The language element has one Set input (S), one Reset input (R) and one output (Q). The Reset input is dominant.
  • Page 119 Programming the IP 265 with COM 265 IP 265 Binary scaler Table 9-4. Binary scaler Set/Reset operation CSF (example) Binary scaler "2:1": The language element has one binary input (C) and one binary output (Q). I 0.0 Q 0.5 > C Each rising input signal edge inverts the signal state of the output, effecting a division of the frequency by two.
  • Page 120 IP 265 Programming the IP 265 with COM 265 Edge flag (trigger) Table 9-5. Edge flag Set/Reset operation CSF (example) Edge flag "EF": The language element has one binary input (C) and one binary output (Q). > I 0.0 #KON1 Each rising input signal edge sets the output to "1"...
  • Page 121 Programming the IP 265 with COM 265 IP 265 Delay Table 9-6. Delay Set/Reset function CSF (example) Delay "D-FF": The language element has one binary input (D) and D-FF one binary output (Q). > I 0.0 Q 0.5 The input signal is delayed by an interval of one internal clock pulse (128 kHz).
  • Page 122 IP 265 Programming the IP 265 with COM 265 Example: Critical signal chart due to latching language element (Set/Reset operation) in a segment of the IP 265 user program Table 9-7. Example: Using the "Delay" Language Element Timing diagram: CSF: "Critical signal chart" "Critical signal chart"...
  • Page 123 Programming the IP 265 with COM 265 IP 265 Timer operations ( The timer operations in an IP 265 user program are very similar to those in a CPU user program, with two exceptions: • The IP 265 timer operations have no time element numbers. •...
  • Page 124 IP 265 Programming the IP 265 with COM 265 Table 9-8. Timer Operations Timer operation CSF (example) Starting a pulse timer "SI": The timer is started each time the signal at the Start > S input changes from "0" to "1", and runs until the I 0.0 Start signal is "0", the time has expired or the timer is reset.
  • Page 125 Programming the IP 265 with COM 265 IP 265 Table 9-8. Timer Operations (continued) Timer operations CSF (example) Starting a delay timer "SD": Each signal change from "0" to "1" at the Start input T!-!0 starts the timer, which runs until the Start signal is >...
  • Page 126 IP 265 Programming the IP 265 with COM 265 Table 9-8. Timer Operations (continued) Timer operations CSF (example) Starting an OFF delay timer "SF": The timer is started each time the signal at the Start 0!-!T input goes from "1" to "0", and runs until the Start <...
  • Page 127 Programming the IP 265 with COM 265 IP 265 Clockpulse generator (Clock) The IP 265 user program may include clock-pulse generators with variable clock frequencies. You may choose between 8 different frequencies. Select the required frequency in the menu line for the relevant language element.
  • Page 128 IP 265 Programming the IP 265 with COM 265 Counter operations (CU/D) You can count both up and down with the IP 265. These two counter operations in an IP 265 user program are largely identical to those used for CPU programming, with two exceptions: •...
  • Page 129 Programming the IP 265 with COM 265 IP 265 Table 9-11. Counter Operations Counter operation CSF (example) Up counter "CU": Each change from "0" to "1" at the CU input increments the count by 1. The counter is not CU/D incremented once it has reached the upper limit value >...
  • Page 130 IP 265 Programming the IP 265 with COM 265 Comparison operations (>=<) Comparison operations make it possible to compare the BI output of a counter function ( Table 9-11) with a constant or input parameter in the IP 265 program. Identifiers for Comparison operations: Example: ">=":...
  • Page 131 Programming the IP 265 with COM 265 IP 265 Connectors (# or <#>) Connectors can be used in IP 265 application programs both in the margin bars and in the logic field. Connectors make it possible to branch signal leads within a segment and between the segments in the application program.
  • Page 132: Enter Ip 265 User Program

    IP 265 Programming the IP 265 with COM 265 Enter IP 265 User Program 9.4.1 Rules and Recommendations for Programming In the following sections, you will find • Information on quantity framework restrictions for the IP 265 • Information on quantity framework restrictions for COM 265 •...
  • Page 133 Programming the IP 265 with COM 265 IP 265 Quantity framework restrictions for COM 265 The COM 265 quantity framework restrictions relating to editing of the IP 265 user program are less "limiting" than those for the IP 265, i.e. COM 265 allows you to edit and test a more complex IP 265 user program than the IP 265 can actually accommodate.
  • Page 134 IP 265 Programming the IP 265 with COM 265 Rules for referencing operands Note • Operands are specified with symbolic or direct addresses in the margin bars of the control system flowchart. Inputs and outputs without identifiers ("open" input or output) are identified by the text "????????".
  • Page 135: Entries In The Local Ip 265 Assignment List

    Programming the IP 265 with COM 265 IP 265 9.4.2 Entries in the Local IP 265 Assignment List Remember The operands in the IP 265 user program may have both direct and symbolic addresses (identifiers) in the control system flowchart. Each operand may also be supplemented by an operand commen- tary.
  • Page 136 IP 265 Programming the IP 265 with COM 265 The operand assignment list is invoked in the "Services" menu. "Symbols" screen form Funtion Selection Symbols editor "Services" "Symbols" F1 F2 F3 F4 F5 F6 F7 F8 F1 F2 F3 F4 F5 F6 F7 F8 Symbolic editor IP265 program: IP265 Line: 1...
  • Page 137 Programming the IP 265 with COM 265 IP 265 Note The "Store" key () must be pressed each time modifications are made in the list, also after delete and copy. The purpose of the IP 265 assignment list is illustrated below, using the initialization of timers as an example.
  • Page 138: Entering A Control System Flowchart

    IP 265 Programming the IP 265 with COM 265 9.4.3 Entering a Control System Flowchart In the preceding sections, you have learned something about • the COM 265 language ( Section 9.3) • the rules and recommendations governing programming ( Section 9.4.1) and •...
  • Page 139 Programming the IP 265 with COM 265 IP 265 The control system flowchart editor is invoked in COM 265's "Function Selection" menu. "Editor" form Function Selection Editor "Editor" F1 F2 F3 F4 F5 F6 F7 F8 F1 F2 F3 F4 F5 F6 F7 F8 Control system flowchart Output bar Input bar...
  • Page 140 IP 265 Programming the IP 265 with COM 265 The following applies to entries in COM 265's "Editor" form: Before an editing function (e.g. enter operand, insert language element, etc.) can be initiated, you must first select the locations in the control system flowchart at which an action is to take place. To do this, move the cursor to the required location in the input area of the COM 265 screen form.
  • Page 141 Programming the IP 265 with COM 265 IP 265 Entering operand identifiers in the margin bars with automatic cursor control The operand input fields for each language element edited in the COM 265 "Editor" form are marked with the text "????????". When a new language element has been selected, the input of its operands is supported by an automatic cursor control facility, i.e.
  • Page 142 IP 265 Programming the IP 265 with COM 265 Entering operand identifiers in the margin bars without automatic cursor control Proceed as follows if automatic cursor control is disabled () and you want to reenter or correct an operand identifier: Move the cursor to the input field Activate Input mode by pressing <1>...
  • Page 143 Programming the IP 265 with COM 265 IP 265 Entering connectors in the margin bars and logic field Connectors may be entered in both the margin bars and the logic field of a control system flowchart. Entering connectors in the margin bars: Input activities depend on whether automatic cursor control is enabled or disabled.
  • Page 144 IP 265 Programming the IP 265 with COM 265 Entering connectors in the logic field: Move the cursor to the connecting line in which the connector is to be inserted (input or output of a language element). Select the "#" element in the softkey menu by pressing . The input field, with the "#" character, is displayed at the required position.
  • Page 145 Programming the IP 265 with COM 265 IP 265 Entering operand commentary for connectors: Immediately upon completing a connector entry, and whenever the cursor is positioned to a connector in a control system flowchart, an assignment line is displayed beneath the header ( Point ).
  • Page 146 IP 265 Programming the IP 265 with COM 265 In the operand's assignment line, you can: • view the assignment of direct to symbolic address made in the IP 265 assignment list ( Section 9.4.2) • dissolve the existing assignment of direct to symbolic address •...
  • Page 147 Programming the IP 265 with COM 265 IP 265 Inserting a language element Move the cursor to the connecting line in which the language element is to be inserted (omit in the case of an empty segment). Select the language element to be inserted from the choices given on the menu line and press the associated function key.
  • Page 148 IP 265 Programming the IP 265 with COM 265 Converting a language element You can convert a language element in a control system flowchart into another, type-conforming language element. Language elements are type-conforming when the number and data type of their inputs and outputs are identical.
  • Page 149 Programming the IP 265 with COM 265 IP 265 Deleting a language element Move the cursor to the language element to be deleted. Press the key on the programmer keyboard's numeric keypad. Example: Initial situation Keyboard entry Result ”Delete” I 0.0 &...
  • Page 150 IP 265 Programming the IP 265 with COM 265 Deleting an input Additionally inserted inputs (>2 inputs) for expandable language elements AND, OR and XOR can be removed through deletion. Set the cursor to the connecting line to be deleted. Press ...
  • Page 151: Entering The Segment Name And Segment Commentary

    Programming the IP 265 with COM 265 IP 265 9.4.4 Entering the Segment Name and Segment Commentary In addition to the program logic, you can also input the following in order to document the IP 265 user program: • A header for each segment (segment name or segment header) •...
  • Page 152 IP 265 Programming the IP 265 with COM 265 The "Commentary" form is invoked in the editor: ”Commentary” form Editor Commentary 2× F1 F2 F3 F4 F5 F6 F7 F8 F1 F2 F3 F4 F5 F6 F7 F8 IP265 program: IP265 Segment: 1 of 1 (Valve closes Input mode...
  • Page 153 Programming the IP 265 with COM 265 IP 265 Compiling the IP 265 User Program Note The IP 265 user program must be compiled before it can be stored on a memory sub- module or loaded into the IP 265 over the I/O bus. Prerequisites •...
  • Page 154: Ip 265 User Program Load On The Ip 265

    IP 265 Programming the IP 265 with COM 265 Once the compilation run has been started, COM 265 handles the run autonomously. A compilation takes place in three phases: • Phase A: Placing the COM 265 language elements • Phase B: Interconnecting the COM 265 language elements •...
  • Page 155 Programming the IP 265 with COM 265 IP 265 Table 9-13. IP 265 Load Effected by COM 265 Language Elements and their Interconnection IP 265 load * COM 265 language element Type of interconnection Arbitrary binary logic operation with 5 inputs Arbitrary binary logic operation with 6 to 8 inputs Set/reset operations:...
  • Page 156: What If There Is An Ip 265 Overload

    IP 265 Programming the IP 265 with COM 265 9.5.2 What if there is an IP 265 Overload? If COM 265 aborts the compiler run because the IP 265 user program is too big, you can assess the best measures for compressing the program by adding up the percent values shown in Table 9-13. The following measures are recommended when the 100 % load limit has been exceeded: •...
  • Page 157 Testing and Simulation with COM 265 10.1 Off-Line Simulation of the IP 265 User Program ....10- 1 10.1.1 General Information on Simulation with COM 265 ... . . 10- 1 10.1.2 Starting the Simulator and Simple Simulation of a COM 265 Language Element .
  • Page 158 Figures 10-1 "Simulator" Form; CSF Format ....... . 10- 4 10-2 "Simulator"...
  • Page 159: Testing And Simulation With Com 265

    IP 265 Testing and Simulation with COM 265 Testing and Simulation with COM 265 COM 265 provides many possibilities for testing the IP 265 user program and the execution of the user program in the IP 265. The COM 265 simulator makes it possible to simulate most of the interconnections in the IP 265 user program off-line, i.e.
  • Page 160 Testing and Simulation with COM 265 IP 265 The simulator's dynamic response The COM 265 simulator simulates the actual real-time conditions of the IP 265 in the programmer, i.e. the interconnections in the IP 265 user program are clocked at 128 kHz (IP 265 clock pulse: 1/128 kHz=7.8 fs).
  • Page 161 IP 265 Testing and Simulation with COM 265 • CSF format and text format during simulation You can choose between two formats when simulating the IP 265 user program: - Control system flowchart format (default) The control system flowchart appears as in COM 265's "Editor form" - Text format IP 265 inputs, IP 265 outputs, parameters and selected COM 265 language elements are displayed, together with their current signal states and values, in table form.
  • Page 162: Starting The Simulator And Simple Simulation Of A Com

    Testing and Simulation with COM 265 IP 265 10.1.2 Starting the Simulator and Simple Simulation of a COM 265 Language Element Every IP 265 user program can be simulated off-line without any restrictions whatsoever. Note Even IP 265 user programs which cannot be compiled because they are "too big" (IP 265 load > 100 %) can be simulated.
  • Page 163 IP 265 Testing and Simulation with COM 265 To acquaint you with the COM 265 simulator, the example below deals with the simplest form of simulation. In subsequent sections, you will find detailed information on all of the many possible simulator settings.
  • Page 164: 10.1.3 Generating Simulator Settings

    Testing and Simulation with COM 265 IP 265 10.1.3 Generating Simulator Settings Prior to off-line simulation of the IP 265 user program, you must specify the simulator settings. COM 265 simulator options include: Looping IP 265 outputs back to IP 265 inputs Isolating part of the control system flowchart Specifying actual values via function keys Specifying signal states...
  • Page 165 IP 265 Testing and Simulation with COM 265 Example: Looping output 0.5 back to input 0.0 Move the cursor to input 0.0 in the control system flowchart's input bar. Select "Loopback" from the softkey menu by pressing function key . Select "Insert"...
  • Page 166 Testing and Simulation with COM 265 IP 265 Isolate parts of the control system flowchart ( "Isolate") Parts of the control system flowchart, all the way down to individual COM 265 language elements, can be isolated for simulation. Isolating points can serve a practical purpose when specific parts of the IP 265 user program (e.g.
  • Page 167 IP 265 Testing and Simulation with COM 265 Example: Generating an isolating point between an AND and a counter function Move the cursor to the binary connecting line in which an isolating point is to be inserted. Select "Isolate" from the function key menu by pressing . Select "Insert"...
  • Page 168 Testing and Simulation with COM 265 IP 265 Specify actual values via function keys ( "Value") You can assign new actual values for retentive language elements and non-binary input parameters in the control system flowchart. You need not exit the Simulator level to do so. The following manipulations are possible: •...
  • Page 169 IP 265 Testing and Simulation with COM 265 Example: A comparator compares a count (symbolic name: C VALUE1) with input word IW 66. The current actual value of input parameter IW 66 can be changed as follows: Move the cursor to the comparison value. Select "Value"...
  • Page 170 Testing and Simulation with COM 265 IP 265 Specify signal states A signal state change from "0" to "1" may be specified for: • IP 265 inputs and binary input parameters in the input bar • Isolating points in the logic field Table 10-2.
  • Page 171 IP 265 Testing and Simulation with COM 265 Triggering timers and counters ( "Trigger") All retentive language elements can be triggered within the segments. By pressing function key "Trigger" in the "Simulator" form's softkey menu, you can • restart timers (the input conditions for S and R must be fulfilled if the timer is to be restarted on the next clock pulse, Table 9-8) •...
  • Page 172: 10.1.4 Resetting Simulator Settings

    Testing and Simulation with COM 265 IP 265 10.1.4 Resetting Simulator Settings Table 10-3. Resetting Simulator Settings Resetting of: User actions • all simulator settings, including Select "Defaults" in the softkey menu by pressing isolating points and loopbacks . • automatic clocking to manual Press ...
  • Page 173: 10.1.5 Symbols For Simulator Settings

    IP 265 Testing and Simulation with COM 265 10.1.5 Symbols for Simulator Settings All simulator settings are displayed on the monitor. The table below provides an overview of the simulator's symbols. Table 10-4. Symbols for Simulator Settings Symbol Description Example •...
  • Page 174 Testing and Simulation with COM 265 IP 265 Additional aids: • All language elements in a control system flowchart are numbered. The numbers are faded onto the screen by the simulator. • When digit keys (<00> to <23>) are used to change the signal state of IP 265 inputs, the first digit (byte address) is displayed at the upper right of the screen.
  • Page 175: 10.1.6 Clocked Simulator Control

    IP 265 Testing and Simulation with COM 265 10.1.6 Clocked Simulator Control You can choose between • manual clocking (default) • automatic clocking Manual clocking You simulate the IP 265 clock pulse by pressing the space bar. Each depression of the space bar simulates an IP 265 cycle (7.8 µs) (single-step mode).
  • Page 176: 10.1.7 Text Representation

    Testing and Simulation with COM 265 IP 265 10.1.7 Text Representation Text format is an alternative to control system flowchart format. The same simulator functions as in control system flowchart format are possible in text format; only the representation of the control system flowchart elements differs.
  • Page 177 IP 265 Testing and Simulation with COM 265 Example: Incorporate language element "&" with position number "1" in text format Select CSF format (if necessary) with "CSF". Move the cursor to the language element "&" with position number "1". Select the "Defaults"...
  • Page 178 Testing and Simulation with COM 265 IP 265 10.2 On-Line Testing of the IP 265 The logically correct IP 265 user program can be tested on-line, i.e. in the IP 265 (under CPU control and with process I/Os). COM 265 provides a special test function to support on-line testing. The "On-line test"...
  • Page 179 IP 265 Testing and Simulation with COM 265 "Online" form Function Selection Online "Test" "Online" F1 F2 F1 F2 Online test IP265 program: IP265 Creation date: 3.12.1992 Input parameters Output parameters Input parameters Output parameters ENABLE = ON/OFF Status of the High Speed Sub Control IP at STOP, loaded, EEPROM submodule inserted, load 8% IP265 error: Wirebreak IP-RUN...
  • Page 180 Testing and Simulation with COM 265 IP 265 • Status information A text line containing the following status messages is displayed beneath the parameter list: - Operational status of the IP 265 (STOP, RUN) - Load status of the IP 265 (loaded, not loaded) - Type of memory submodule plugged into the IP 265 (EPROM or EEPROM) •...
  • Page 181 IP 265 Testing and Simulation with COM 265 10.3 Wiring Test COM 265 provides a function for testing the electrical continuity between the IP 265's inputs/outputs and the process I/Os' sensors or actuators of the process I/O. There is no "wiring test" function as such. Instead, there is a special IP 265 utility called "WIRE", which must be loaded into the IP when you want to perform a wiring test.
  • Page 182 Testing and Simulation with COM 265 IP 265 Testing the electrical continuity of the outputs Move the cursor to the relevant output. Press "Value". The signal state changes from "0" to "1". Observe the responses of the actuators of the process I/O. Testing the electrical continuity of the inputs Initiate a signal state change by de-energizing one of the actuators of the process I/O.
  • Page 183 COM 265 Services and File Functions 11.1 Services ......... . 11- 1 11.1.1 Invoking the Symbols Editor .
  • Page 184 Figures 11-1 "Services" Menu ......... 11- 1 11-2 "Load IP 265 via I/O Bus"...
  • Page 185: Services" Menu

    IP 265 COM 265 Services and File Functions COM 265 Services and File Functions COM 265 provides a number of services and file functions to support IP 265 startup. 11.1 Services COM 265 services are used to • invoke the symbols editor (local IP 265 assignment list) •...
  • Page 186 COM 265 Services and File Functions IP 265 11.1.1 Invoking the Symbols Editor COM 265 is equipped with a special symbols editor which makes it possible to enter operand commentary and symbolic operand identifiers from the IP 265 user program in an assignment list. You will find detailed information on reorganizing the operand references in the assignment list and removing operands from the list in Section 9.4.2, "Entries in the Local IP 265 Assignment List".
  • Page 187: Load Ip 265 Via I/O Bus" Form

    IP 265 COM 265 Services and File Functions Starting the load "Load" form Function Selection Load IP 265 "Services" "Load IP" F1 F2 F1 F2 Load IP IP265 program: IP265 Slot: 0 (COM 265 message) Data transferred: 40% Load Return : The selected IP 265 user program, i.e.
  • Page 188 COM 265 Services and File Functions IP 265 LED indicators The STOP LED on the module's frontplate flashes at high frequency to indicate that the module is being loaded over the I/O bus. Duration of the load procedure The IP 265 user program is transferred in 1000 data cycles. At an average CPU cycle time of 20 ms, the load would take approximately 20 s.
  • Page 189 IP 265 COM 265 Services and File Functions Starting the store "E(E)PROMs" form Function Selection E(E)PROM "Services" "E(E)PROM" F1 F2 F1 F2 E(E)PROM IP265 program: IP265 (COM 265 message) Blow Read Return : The selected IP 265 user program, "IP265" in the example, is blown into the memory submodule.
  • Page 190 COM 265 Services and File Functions IP 265 11.1.4 Reading an IP 265 User Program from a Memory Submodule Once you have stored an IP 265 user program in an E(E)PROM, you can display it on the programmer screen any time you wish. For this purpose, COM 265 provides a special service function for reading the data stored on E(E)PROM into the programmer's program memory.
  • Page 191 IP 265 COM 265 Services and File Functions Starting the read procedure "E(E)PROMs" form Function Selection E(E)PROM "Services" "E(E)PROM" F1 F2 F1 F2 E(E)PROM IP265 program: IP265 (COM 265 message) Blow Read Return : The user program in the memory submodule plugged into the programmer is transferred to the programmer's program memory.
  • Page 192: Print" Form; Printing The Ip 265 Program

    COM 265 Services and File Functions IP 265 11.1.5 Printing an IP 265 User Program The "Print" service outputs the following to the printer interfaced to the programmer: • All segments in the IP 265 user program (CSF format), with segment names •...
  • Page 193: File Functions" Menu

    IP 265 COM 265 Services and File Functions 11.2 File Functions The IP 265 user program is stored at the MS-DOS operating system level in a file named "xxxxxPIP.S5D". Only the "xxxxx" part of the filename (max. 5 characters) appears in the COM 265 screen forms.
  • Page 194: Copy" Form

    COM 265 Services and File Functions IP 265 11.2.1 Copying an IP 265 User Program An existing IP 265 user program can be copied to another drive for program management purposes. Parameters for the copy function "Copy" form Copy Function Selection "Transfer"...
  • Page 195: Delete" Form

    IP 265 COM 265 Services and File Functions 11.2.2 Deleting an IP 265 User Program You can delete IP 265 user programs individually. Parameters for the delete function "Delete" form Delete Function Selection "Files" "Delete" F1 F2 F3 F4 F5 F6 F7 F8 F1 F2 F3 F4 F5 F6 F7 F8 COM265 file function: Delete Drive:...
  • Page 196: Directory" Form

    COM 265 Services and File Functions IP 265 11.2.3 Display Directory of All IP 265 User Programs If you wish, you can output a directory of all IP 265 user programs. Starting the display function "Directory" form Function Selection Directory "Files"...
  • Page 197: Rename" Form

    IP 265 COM 265 Services and File Functions 11.2.4 Renaming an IP 265 User Program The name of an existing IP 265 user program can be changed for program management purposes. Parameters for the rename function "Rename" form Function Selection Rename "Files"...
  • Page 198 IP 265 Expansion 12.1 General Remarks ........12 - 1 12.2 Interconnecting Two IP 265s .
  • Page 199 Figures 12-1 Data Transfer Between CPU and Two Expanded IP 265s ... . . 12 - 2 12-2 Simplified Diagram for Non-Isolated Connection of an Expanded IP 265 to the PLC .
  • Page 200: Ip 265 Expansion

    IP 265 IP 265 Expansion IP 265 Expansion The information presented in this section deals only with the particularities of interfacing two IP 265s. General knowledge regarding operation and startup of the IP 265 have been assumed ( Sections 2 to 11).
  • Page 201 IP 265 Expansion IP 265 Dynamic response Over the expansion interface, a signal is delayed by 7.8 µs. • • The CPU user program uses the external I/O bus for error control and recovery and for STOP/RUN control of both IP 265s. Since control word and status word for both IP 265s are forwarded cyclically in one CPU data cycle, there is no delay when e.g.
  • Page 202 IP 265 IP 265 Expansion Response to a change in the operational status STOP and RUN commands from the CPU reach expanded IP 265s without any delay. In order to ensure error-free, reproducible control of both IPs, you should follow the guidelines below in the event of an IP 265 operational status change: •...
  • Page 203 IP 265 Expansion IP 265 Startup procedures The procedures for COM 265-supported startup of expanded IP 265s are the same as those for single IP 265s. It is recommended that you proceed as follows: Write the entire IP 265 user program with the COM 265 editor. Test the complete IP 265 user program off-line.
  • Page 204: Interconnecting Two Ip 265S

    12.2 Interconnecting Two IP 265s Siemens provides a prefabricated, shielded standard cable for the electrical connection between two IP 265s (expansion cable). Insert the two ends of the expansion cable into the 15-pin sub D "Interface" sockets on the two IPs.
  • Page 205: Addressing The Expansion Inputs/Outputs

    IP 265 Expansion IP 265 12.4 Addressing the Expansion Inputs/Outputs In the IP 265 user program, the expansion interface is referenced via fixed addresses. The expansion interface comprises 8 pins on the IP 265's 15-pin sub D "INTERFACE" socket. These pins may be used as expansion inputs or expansion outputs. Table 12-1.
  • Page 206 Process Malfunctions are detected as follows: web. The 10 BEROS are connected to the IPs’ 24 V inputs. The drives are controlled as follows: The CPU forwards the Enable signal for the drives to an 1P 265 (slot 3) in the form of a bit parameter.
  • Page 207 IP 265 Expansion IP 265 Load on the IP 265 interfaces IP 265 in slot 2: IP 265 in slot 3: 24 V inputs: 24 V inputs: Control word Control word I 0.0 to I 0.4 I 0.0 to I 0.4 Status word Status word IP 265...
  • Page 208 IP 265 IP 265 Expansion • Entries in the local IP 265 assignment list (IP 265 in slot 3): Operand Symbol Comments I 0.0 DI BERO 6 I 0.1 DI BERO 7 I 0.2 DI BERO 8 I 0.3 DI BERO 9 I 0.4 DI BERO 10 DQ Motor 1...
  • Page 209 IP 265 Expansion IP 265 Programming the CPU Because this sample application includes bilateral data transfers between IP 265 and CPU and a connection via the expansion interface, the CPU user program must be written to include the following: • The control word for both IP 265s (including matching of their operational states) •...
  • Page 210 IP 265 IP 265 Expansion • Entries in the SIMATIC assignment list: Operand Symbol Comments I 90.0 Motor ON/OFF Q 90.0 Enable signal for motor • STL in CPU user program: OB 21/22 Segment 1 0000 0001 KH 0000 Scratch flag 0002 FY 64 0003...
  • Page 211 IP 265 Expansion IP 265 (FB 1 continued) 0017 FB 2 --> Initialize and read parameters 0018 NAME :IP-PARAM for IP 265 in slot 3 0019 :BEU 001A M001 FY 64 Wait cycles: CPU in restart routine 001B KF +1 001C 001D FY 64...
  • Page 212 Sample Applications and Programming Aids 13.1 Sample Programs ........13 - 1 13.1.1 Simple Sample Program .
  • Page 213 Figures 13-1 IP 265 Interfaces to the CPU and Process I/Os ....13 - 1 13-2 Process: Dynamic Measuring System for Profiles ....13 - 2 13-3 IP 265 Interfaces Used in the Sample Application: "Length Measuring System for Profiles"...
  • Page 214 IP 265 Sample Applications and Programming Aids Sample Applications and Programming Aids 13.1 Sample Programs The following sections deal with the programming of the IP 265 and the CPU for control of high- speed subprocesses within a process by presenting practice-related examples. There are three sample applications, each more complex than its predecessor as regards the user programs and the use of the IP 265 interfaces.
  • Page 215 Sample Applications and Programming Aids 13.1.1 Simple Sample Program Sample application for case a): Controlling a subprocess with an 1P 265 without parameter interchange between 1P 265 and CPU. A high-speed subprocess is to be autonomously controlled by the 1P 265. Communication between CPU and 1P is limited to forwarding of the RUN command for the 1P.
  • Page 216 IP 265 Sample Applications and Programming Aids Process Profile length control procedures are as follows: • Light barriers L2 and L3 are 0.1 mm apart (permissible length tolerance). The mean distance between L1 and L2/L3 represents the normal length of a profile. Light barriers L1, L2 and L3 are connected to the IP 265's 24 V inputs.
  • Page 217 Sample Applications and Programming Aids IP 265 Programming the IP 265 • Entries in the local IP 265 assignment list (IP 265 in slot 2) Operand Symbol Comments I 0.0 DI Light barrier 1: Measuring release I 0.1 DI Light barrier 2: Measuring signal I 0.2 DI Light barrier 3: Measuring signal I 0.3...
  • Page 218 IP 265 Sample Applications and Programming Aids IP 265 user program: PROFI Segment: 2 of 3 (ON/OFF control) > -ON/OFF IP 265 user program: PROFI Segment: 3 of 3 (motor rotation) >=1 & #FALSE >=1 & #FALSE -CLKW/CC 13-5 EWA 4NEB 812 6130-02a...
  • Page 219 Sample Applications and Programming Aids IP 265 Programming the CPU As there is no parameter interchange between IP 265 and CPU in this example, the CPU need only set the RUN bit in the control word. The RUN command for the IP 265 is forwarded to the IP 265 in the CPU's restart routine. If the IP is in slot 2, the section of the CPU user program for IP 265 control might look as follows: •...
  • Page 220 Sample Applications and Programming Aids 13.1.2 Sample Program with Parameter Interchange Sample application for case b): If data (such as preset values for timers, counters or simple bit information) is to be interchanged between 1P 265 and CPU, it must be linked into the 1P 265 user program as input parameters (CPU to IP) or output parameters (IP to CPU).
  • Page 221 Sample Applications and Programming Aids IP 265 Process Synchronous operation is controlled as follows: • Two light barriers (L1 and L2) are arranged so that they are side by side and at a right angle to the conveyor belt's transport direction. The light barriers are connected to the IP 265's 24 V inputs, and implement "GATE"...
  • Page 222 IP 265 Sample Applications and Programming Aids Programming the IP 265 • Entries in the local IP 265 assignment list (IP 265 in slot 2): Operand Symbol Comments I 0.0 DI Light barrier 1: Measuring signal I 0.1 DI Light barrier 2: Measuring signal QW 66 COUNT Count for correction...
  • Page 223 Sample Applications and Programming Aids IP 265 IP 265 user program: PAPPE Segment: 2 of 3 (Count L2) & #ENAB 64 kHz #L2 FIRS #L2 TRIG IP 265 user program: PAPPE Segment: 3 of 3 (Count valid ?) & =VALID 13-10 EWA 4NEB 812 6130-02a...
  • Page 224 IP 265 Sample Applications and Programming Aids Programming the CPU Because the CPU and the IP 265 interchange parameters in this example, the CPU user program must be written to include not only the control word (IP 265 RUN, IP 265 STOP) and the status word (operational status, error diagnostics), but also reading of the output parameters.
  • Page 225 Sample Applications and Programming Aids IP 265 • STL in the CPU user program: OB 21/22 Segment 1 0000 0000 KH 0200 Set IP 265's RUN bit in the 0001 QW 80 CPU restart routine 0002 Normal CPU user program: No processing of IP 265 input or output data ABCD...
  • Page 226 IP 265 Sample Applications and Programming Aids 13.1.3 Sample Program with Expansion and Parameter Interchange Sample application for case c): Controlling a subprocess with expansion and parameter interchange between IP 265 and CPU. If an IP 265 user program cannot be implemented on a single IP 265 because a of its size or because of the number of digital inputs/outputs needed, the IP 265 can be expanded to include a second IP.
  • Page 227 Sample Applications and Programming Aids IP 265 13.2 Programming Aids This section discusses a number of programming aids for the IP 265 user program. Programming aids (also called software tools) are program fragments containing complex functions which must often be included in control programs for high-speed processes and which can be easily linked into the IP 265 user program.
  • Page 228 IP 265 Sample Applications and Programming Aids • 1-fold pulse evaluation: & > CU/D > & > > > S KC 500 -SYNCH • 2-fold pulse evaluation: & > >=1 & CU/D > > & > >=1 & > > >...
  • Page 229 Sample Applications and Programming Aids IP 265 Example: Fast, reproducible de-energizing of an output If the IP 265's digital inputs/outputs are used as parameters in the IP 265 application program, the IP 265 may be used as a normal DI/DQ module. •...
  • Page 230 Standard Function "Counter" EWA 4NEB 812 6130-02a...
  • Page 231 What is the standard function counter? This standard function is an IP 265 user program which was written and pretested by the Siemens AG. In automation technology, the counting of high-speed processes is a field in itself. For this reason, Siemens has developed a memory submodule containing a standard function called "Counter".
  • Page 232 Appendices Appendix A . . . Diagnostics and Error Messages Appendix B . . . Technical Specifications Appendix C . . . Dimension Drawing of the IP 265 Appendix D . . . Keyboard Layout for COM 265 Editing Functions on the Programmer Appendix E .
  • Page 233 Diagnostics and Error Messages LEDs ..........A - 1 IP 265 Error Messages .
  • Page 234 IP 265 Diagnostics and Error Messages Diagnostics and Error Messages LEDs The STOP and RUN LEDs show the following module modes: Operating Operating LEDs on the IP 265 Status of Diagnostics Status of STOP LED RUN LED the CPU the IP 265 Steady light Inputs/outputs passive STOP...
  • Page 235 Diagnostics and Error Messages IP 265 IP 265 Error Messages The IP 265 provides sophisticated error/fault evaluation options. The IP 265 displays operator errors and hardware faults: • Group faults are flagged in the status word • The appropriate error bit is set in the status word •...
  • Page 236 IP 265 Diagnostics and Error Messages (Continued) Error bit in byte 1 of Operating Status the status word Error/Fault of the IP 265 Wirebreak/No 24 V voltage STOP I/O error bit: Short circuit in outputs (I/O I/O error bit: not ready) Note A "Hard STOP"...
  • Page 237 Technical Specifications EWA 4NEB 812 6130-02a...
  • Page 238 IP 265 Technical Specifications Technical Specifications Module Permissible ambient temperature - Horizontal configuration 0 to+60 °C - Vertical configuration 0 to+40 °C Current consumption from+9 V (CPU) <175 mA Insulation rating To VDE 0160 Signal status display For 24 V inputs and 24 V outputs only (green LEDs) Status indicators for STOP (red LED)
  • Page 239 Technical Specifications IP 265 Digital 24 V outputs 9-pin sub D socket Number of outputs Galvanic isolation Status indicators yes, on 5 V side Short-circuit protection yes, electronically clocked Load voltage L+ - Nominal value 24 V DC - permissible range 20 to 30 V Output current at "1"...
  • Page 240 Dimension Drawing of the IP 265 EWA 4NEB 812 6130-02a...
  • Page 241 IP 265 Dimension Diagram of the IP 265 Dimension Diagram of the IP 265 162 with screw-type terminals (6ES5 700-8MA11) Standard mounting rail EN 50022-35×15 91.5 45.75 EWA 4NEB 812 6130-02a...
  • Page 242 Keyboard Layout for COM 265 Editing Functions on the Programmer EWA 4NEB 812 6130-02a...
  • Page 243 IP 265 Keyboard Layout for COM 265 Editing Functions on the Programmer Keyboard Layout for COM 265 Editing Functions on the Programmer The COM 265 editing functions on the programmer are all invoked via the programmer's numeric keypad. Nonetheless, a number of editing functions can also be invoked via other keys or key combinations, as described in Section 8.5.4.
  • Page 244 Keyboard Layout for COM 265 Editing Functions on the Programmer IP 265 "Move" screen: : Scroll up one line Pg Up : Scroll down one line Pg Dn : Page down Shift Pg Up : Page up Shift Pg Dn Segment handling: : Page to preceding segment : Page to next segment...
  • Page 245 IP 265 Keyboard Layout for COM 265 Editing Functions on the Programmer Go from "Simulator" to "Editor" and back: : Correction key Go directly from the simulator to the COM 265 control system flowchart editor without screening the "Function Selection" menu. : Return to the simulator.
  • Page 246 Keyboard Layout for COM 265 Editing Functions on the Programmer IP 265 Delete function: : Delete key Delete the characters, language elements or inserted inputs of a language element to which the cursor is set. Special functions not invoked on the numeric keypad: : Abort key (ESC) Sometimes accompanied by a prompt asking "Are you sure?".
  • Page 247 Glossary EWA 4NEB 812 6130-02a...
  • Page 248 IP 265 Glossary Glossary OM 265 language element An elementary function in the IP 265 user program, such as logic operations, counters, timers, comparators and the like. ontrol bit Informs the CPU application program that the IP 265 is working under COM 265 control and may not be serviced by the CPU.
  • Page 249 Glossary IP 265 nput data Data which the CPU forwards to the IP 265 via the process output image (PIQ). It consists of the IP 265 control word and input parameters for the IP 265 user program, if any. nput parameters Parameters P 265 assignment list Local operand assignment list, which is independent of the global PLC assignment list.
  • Page 250 IP 265 user program which cannot be read out, modified or copied. A special standard function counter can be obtained from your Siemens branch office, but you can define any self-written IP 265 user program as a standard program.
  • Page 251 Active and Passive Faults in Automation Systems EWA 4NEB 812 6130-02a...
  • Page 252 VGB 4.0, particularly §8, "Permissible tolerances for active components". Under no circumstances may the IP 265 be opened. Repairs on automation equipment may be carried out only by the Siemens Customer Service Department or by repair shops authorized by Siemens. EWA 4NEB 812 6130-02a...
  • Page 253 Accessories and Order Numbers EWA 4NEB 812 6130-02a...
  • Page 254 6ES5 725-2AC01 Connecting cable for position encoder with open end 6ES5 706-8BF01 16 m 6ES5 706-8CB61 32 m 6ES5 706-8CD21 Connecting cable for SIEMENS position encoders 6ES5 706-7BF01 (6FC9 320-...) 16 m 6ES5 706-7CB61 32 m 6ES5 706-7CD21 PS 931 power supply module 6ES5 931-8MD11 AC 115 V/230 V;...
  • Page 255 Index EWA 4NEB 812 6130-02a...
  • Page 256 IP 265 Index Index COM 265 language elements 9-6, 9-11f. Address COM 265 screen forms - Direct 9-30, 9-31 - Header line - Symbolic 9-30, 9-31 - Input/output area Addressing - Menu line - 5 V differential inputs - Message line 8-4, 8-10 - 24 V outputs - Screen layout...
  • Page 257 Index IP 265 Dimension drawing Displays I/O bus, external 1-2, 2-1, 2-2 - IP 265 utilization 8-10, 9-49, 9-50 Input - LEDs 3-6, A-1 - Bar - Status word 4-9f., A-2 - Data 4-7, 5-4, 6-3 Distributor 9-26 - Delay Down counter 9-24 - Fields...
  • Page 258 IP 265 Index Language element 9-6, 9-11 Parameter interchange 6-2, 6-3 - Deleting 9-44 PC keyboard - Distributor 9-26 Pin assignments - Edge flag 9-15 - 9-pin sub D plug connector - Inserting 9-42 - 9-pin sub D socket connector - Latching - 15-pin sub D socket connector - RS flipflop...
  • Page 259 Index IP 265 Shielding Short circuit Value range Signal state display - Count value 4-12 - 24 V inputs/24 V outputs - Time value 4-12 Simulator 10-1f. Voltage supply Simulator settings - 24 V DC - Generate 10-6 - Expanded IP 265 12-5 - Reset 10-14...
  • Page 260 Siemens AG Sender (Please fill out) AUT E1114B Name Postfach 1963 Werner-von-Siemens-Str. 50 Company/Department D-92209 Amberg Fed. Rep. of Germany Address Telephone Suggestions: Corrections: IP 265 2nd edition (6ES5 998 - 5SH11) Have you found any typographical errors while reading this manual? Please use this form to tell us about them.

Table of Contents