Beckhoff C1120 Technical Documentation Manual
Beckhoff C1120 Technical Documentation Manual

Beckhoff C1120 Technical Documentation Manual

S5 to ii/o-lightbus interface

Advertisement

Quick Links

C1120 S5 to II/O Lightbus Interface
Beckhoff II/O-Lightbus System
C1120
S5 to II/O-Lightbus Interface
Technical Documentation
VERSION 2.1
Date 27.06.97
Version 2.1
Page 1 of 52

Advertisement

Table of Contents
loading

Summary of Contents for Beckhoff C1120

  • Page 1 C1120 S5 to II/O Lightbus Interface Beckhoff II/O-Lightbus System C1120 S5 to II/O-Lightbus Interface Technical Documentation VERSION 2.1 Date 27.06.97 Version 2.1 Page 1 of 52...
  • Page 2: Table Of Contents

    2.1 Installation of Software ............................. 4 2.2 Main menu................................. 5 2.3 Master Setup..............................7 C1120 Configuration ............................9 C1120 I/O Memory Map List .......................... 13 Timer and Interrupts ............................19 C1100 to C1120 Project Conversion ....................... 21 Online Menu ..............................22 Debug Menu ..............................
  • Page 3: Functional Description Of Hardware

    RAM of the interface card. The I/O addresses of the II/O-Lightbus System are mapped to the S5 I/O address memory map with a configuration program running on a personal computer. The interface card C1120 is placed in a PLC slot for ‘intelligent peripherial devices’. Date 27.06.97 Version 2.1...
  • Page 4: Functional Description Of Software

    C1120 S5 to II/O-Lightbus Interface Beckhoff II/O-Lightbus System Functional description of Software For further documentation it is assumed that the interface card C1120 is connected to a PC running DOS with a serial interface cable to COMx. Installation of Software...
  • Page 5: Main Menu

    C1120 S5 to II/O Lightbus Interface Beckhoff II/O-Lightbus System Main menu First screen after the start of program shows: All actions are taken with the function keys F1 to F10. Some actions are provided with security questions. If the desired action is valid, type ‘J’ or ‘Y’ to activate, ‘N’ or ESC to quit.
  • Page 6 C1120 S5 to II/O-Lightbus Interface Beckhoff II/O-Lightbus System PROGRAM END returns to DOS after closing the application. F10 SYSTEM ENTRY changes to the setup menu of the running program. Page 6 of 52 Version 2.1 Date 27.06.97...
  • Page 7: Master Setup

    II/O-Lightbus system and the SIEMENS PLC is displayed and can be edited, saved under a project name and transfered from and to the C1120 card. The screen shows different fields for input, status line and function key setup.
  • Page 8 I/O map to your printer on LPT1:. SAVE PROJECT stores the setup of C1120 under a project name - if first time used you are asked for a project name. At further store commands, a <RETURN> stores under existing project name.
  • Page 9: C1120 Configuration

    The field "S5-CommChannnel" describes the base address for the parallel channel functions (see chapter "parallel channel" ). For use of more than one C1120 cards in one PLC the base address default of 250 for the communication channel can be changed to an other address ( from address 128 - 250, length 6 Byte ).
  • Page 10 For use of more than one C1120, the word alignement can be disabled by overwriting a "0". The default setup value of "0" in the field "Error request" enables the C1120 to stop the PLC with a timeout status of the C1120 in case errors occur on the II/O-Lightbus System, the C1120 interface deletes the I/O addresses in the Dual Ported RAM mapped to the PLC in case of error.
  • Page 11 The pageswitch mechanism displayes the newest process image memory page to the PLC. Entering a “ 1” in the field PLC IRQ Frame causes the C1120 to send an extra control and interrupt message frame for triggering a local process image cycle on the intelligent peripheral modules.
  • Page 12 C1120 S5 to II/O-Lightbus Interface Beckhoff II/O-Lightbus System function keys HELP displays help text. SET DEFAULT sets configuration parameters to default. F10 PREVIOUS MENU returns to the master setup menu. IMPORTANT REMARK regarding the page number: The page number for data exchange with the PLC is configurable, beginning with interface version numbers above V 1.51.
  • Page 13: C1120 I/O Memory Map List

    Ident number. Warning ! The interface card C1120 is not able to identify modules. If the I/O list and physical order of modules are different, or the inputs and outputs are set up incorrectly by DIP switches, I/O data is transferred erroneous from the PLC program to the modules without recognition.
  • Page 14 C1120 S5 to II/O-Lightbus Interface Beckhoff II/O-Lightbus System Function keys HELP displays help text. INSERT MODULE by pressing "F2" a new module is inserted at the current cursor position. The address is set to the equivalent line number. Following module addresses are incremented.
  • Page 15 Example given: the modules 1 and 2 are mapped as direct modules. The STEP5 program accesses the I/O addresses 23 to 26, the C1120 maps the I/O data to the modules 1 and 2: IB 23, IB 24 from module 1...
  • Page 16 PLC (PB/PY 254): Bit 1 acts as life bit and changes status every cycle. By reading the life bit the programmer can recognize and count cycles (refer also to chapter "status register S5/C1120). Example: In above shown setup screen the modules 3 and 4 are mapped indirect. The base address for indirect communications list is set up to 60, number of indirect modules is 2.
  • Page 17 II/O Lightbus communication with the C1120 interface. The C1120 interface card responds with setting the bit 0 of PB/PY 254 (ACK bit): the data byte contents are valid and can be read by the PLC with L PB. The PLC handshakes with resetting the bit 0 of PB/PY 254 (strobe bit).
  • Page 18 C1120 S5 to II/O-Lightbus Interface Beckhoff II/O-Lightbus System Fast Communications Channel If the S5 is run in multi-processor mode, one CPU can be assigned the fast communications channel in order to improve process image synchronisation. The fast communications channel works only with a selection of peripheral modules which are given the identification codes “...
  • Page 19: Timer And Interrupts

    C1120 S5 to II/O Lightbus Interface Beckhoff II/O-Lightbus System Timer and Interrupts With this menu the four fast interrupts of the Beckhoff II/O-Lightbus System can be configured: It is possible to connect the interrupts with a free running timer. To select the timer period, enter the timer period in the equivalent field.
  • Page 20 C1120 S5 to II/O-Lightbus Interface Beckhoff II/O-Lightbus System It is possible to count the number of interrupt events occurring within a specific time interval. The time interval can be entered in the field “ Timer Period” and must be in the range 0 ms (timer disabled) to 1677 ms.
  • Page 21: C1100 To C1120 Project Conversion

    To start conversion, the path, directory name and project name have to be entered in the equivalent lines (e.g. " C:\C1100\SYS\"). The projectname of the C1120 project to be generated is entered in the field C1120 project name. Path and directory of the C1120 project can be changed in the menu "Project Manager"...
  • Page 22: Online Menu

    Beckhoff II/O-Lightbus System Online Menu For transfer of setups from a PC to the C1120 interface and back, the online menu helps to control communication actions, saving and printing of project setups: If a communication timeout occurs during or at start of a transfer, first action to be taken should be to check the RS232 interface cable and the serial interface parameters in the menu "Program Parameters".
  • Page 23 With this test it is possible to take the II/O-Lightbus ring under observation, e.g. to find a ring fault: After start of this test, all modules from the C1120 interface to the ring interruption show the "CYCLE" LED. After the ring interruption, the "CYCLE"...
  • Page 24: Debug Menu

    C1120 S5 to II/O-Lightbus Interface Beckhoff II/O-Lightbus System Debug Menu The debug menu helps to analyze the status and quality of the II/O-Lightbus ring. Two tables show the parity error and status information: The parity error table allows to analyze and identify the location of parity error sources. To use this option, II/O-Lightbus modules must be configured with SPROMS of type "132".
  • Page 25: How To Get Started - Setting Up An I/O List

    Beckhoff II/O-Lightbus System How to get started - setting up an I/O list Connect PC with the C1120 interface with the interface cable. Power on PLC and PC: PLC must reside in STOP mode, II/O-Lightbus ring has to be closed before Power on.
  • Page 26: Status Register S5 / C1120

    Beckhoff II/O-Lightbus System Status register S5 / C1120 The C1120 interface occupies the addresses PB/PY 250 to PB/PY 255 by default. This setup is configurable. By generating a single transfer to peripherial byte PB/PY 255 (T PB 255) the C1120 interface is interrupted for a single request. The peripherial byte PB/PY 254 is the status register C1120.
  • Page 27: Parallel Communication Channel

    PB/PY 250 = parallel channel argument 2 The handshake is carried out with the peripherial address PB/PY 253 or equivalent. Following control bits represent status information to both sides ( S5 --> C1120 and C1120 --> S5 ): Bit 253.7: strobebit for parallel handshake Bit 253.6:...
  • Page 28 Write argument 1 to PB/PY 251 Write argument 2 to PB/PY 250 Set strobe bit PB/PY 253.7 Wait for C1120 acknowlege bit PB/PY 253.6 to be "1" (function is started by C1120 interface) Reset strobe bit PB/PY 253.7 Wait for C1120 acknowlege bit PB/PY 253.6 to be "0" (end of handshake cycle).
  • Page 29 C1120 S5 to II/O Lightbus Interface Beckhoff II/O-Lightbus System Several special functions are available for the PLC via the parallel communication channel: Function-nr 48 = 30H II/O-Lightbus Error status request Request from PLC Argument 1 Argument 2 ---- ---- Reply from C1120 Interface...
  • Page 30 C1120 S5 to II/O-Lightbus Interface Beckhoff II/O-Lightbus System Function-nr 56 = 38H II/O-Lightbus Loss test Request from PLC Argument 1 Argument 2 ---- ---- Reply from C1120 Interface Argument 1 Argument 2 Error number Module number Function No. 59 = 3BH...
  • Page 31: Table Of Error Numbers

    C1120 S5 to II/O Lightbus Interface Beckhoff II/O-Lightbus System Table of error numbers: Error number Error cause 2 - 9 Intensity test not successful 10 - 12 14 - 16 No receiption of II/O-Lightbus signals 20 - 21 22 - 23...
  • Page 32: Service Routines In Step 5 Language

    C1120 S5 to II/O-Lightbus Interface Beckhoff II/O-Lightbus System Service Routines in STEP 5 language Following described service routines are available at the moment of issue: Function block for single request Function block for error status request / reset of II/O-Lightbus System...
  • Page 33: Status Leds

    C1120 S5 to II/O Lightbus Interface Beckhoff II/O-Lightbus System Status LEDs 3 Status LEDs are shown on the front panel of the C1120 interface: : If this LED shows the C1120 interface is ready to work. CPU-ERR : Intermitting light indicates mismatch of number of modules in the configuration and II/O-Lightbus ring.
  • Page 34: Slave Setup

    Beckhoff II/O-Lightbus System Slave Setup The C1120 interface is able to interface to a PLC behaving as a slave to a Master PLC with C1120 interface. In this configuration, the slave C1120 interface is driven by a (standard) master system, which supervises the II/O-Lightbus. I/O-data transmission and other interesting applications are available in this configuration.
  • Page 35 C1120 S5 to II/O Lightbus Interface Beckhoff II/O-Lightbus System PROJECT MANAGER the slave project manager is under development. PRINT (SLAVE) PROJECT the print function is under development. SAVE PROJECT saves the configuration to the hard disc. ONLINE MENU changes to the online menu.
  • Page 36: Edit Inputs

    C1120 S5 to II/O-Lightbus Interface Beckhoff II/O-Lightbus System Edit Inputs This menu helps editing the input data for the PLC. Output data are edited with a special menu. The field "No" shows the line number of the table, "description" shows a text edited by the user.
  • Page 37: Edit Outputs

    C1120 S5 to II/O Lightbus Interface Beckhoff II/O-Lightbus System Edit Outputs This menu helps editing the output data for the PLC. Output data are edited with a special menu. The field "No" shows the line number of the table, "description" shows a text edited by the user.
  • Page 38: Edit Configuration

    Beckhoff II/O-Lightbus System Edit Configuration This menu is used to edit the configuration data of the C1120 interface. The pageswitch mechanism provides a consistent process image to the PLC at any time of processing: While one process image is switched to the PLC, I/O communication is done with a second process image.
  • Page 39 STOP mode with an acknowlege delay by deleting the addresses of the I/O bytes in the dual port memory of the C1120 interface. The acknowlege delay event can be managed by the PLC by programming the OB 23 and 28.
  • Page 40: Online Menu

    C1120 interface, activation of the configuration stored in the EEPROM memory. The status of the C1120 interface is displayed in the status line after the reset. This function only takes place, if the PLC is residing in STOP mode.
  • Page 41 C1120 S5 to II/O Lightbus Interface Beckhoff II/O-Lightbus System C1120 -> PC Reads the actual configuration from the C1120 interface to the PC. F10 PREVIOUS MENU changes to the main menu. Date 27.06.97 Version 2.1 Page 41 of 52...
  • Page 42: Project Manager

    C1120 S5 to II/O-Lightbus Interface Beckhoff II/O-Lightbus System Project Manager With the help of this menu, different setups can be managed under the name of projects: Function keys: HELP displays help text. SET PATH changes to new drive path for project file.
  • Page 43 C1120 S5 to II/O Lightbus Interface Beckhoff II/O-Lightbus System OPEN PROJECT Loads a project from the actual directory. MAKE PROJECT generates a new project in the actual directory. DELETE PROJECT deletes a project from the actual directory. COPY PROJECT Copies a project from the actual directory to any path and/or directory.
  • Page 44: System Configuration

    C1120 S5 to II/O-Lightbus Interface Beckhoff II/O-Lightbus System System Configuration System Entry Pressing F10 from the main menu leads to the system entry menu, from here the user can choose the menus DOS, SYSTEM and PROGRAM PARAMETER. Function keys: HELP displays help text.
  • Page 45: System

    C1120 S5 to II/O Lightbus Interface Beckhoff II/O-Lightbus System System This menu offers the submenus LANGUAGE and LOGFILE. Function keys: HELP displays help text. LANGUAGE offers the submenu LANGUAGE to choose different language options. LOG FILE offers the submenu LOG FILE containing status history information.
  • Page 46: Language

    C1120 S5 to II/O-Lightbus Interface Beckhoff II/O-Lightbus System Language This menu is used to change the actual menu language during program execution: Function keys: HELP displays help text. GERMAN switches to german language menu. ENGLISH switches to english language menu.
  • Page 47: Log File

    C1120 S5 to II/O Lightbus Interface Beckhoff II/O-Lightbus System Log File With the help of this menu the logfile can be displayed to review the event history: Function keys: HELP displays help text. COPY LOGFILE Copies the file ’PROGRAM.LOG’ to the drive set in the menu "Programm Parameter"...
  • Page 48: Program Parameter

    Beckhoff II/O-Lightbus System Program Parameter The configuration for the configuration program for the C1120 interface is set and stored with the help of this menu: It is possible to move the cursor through the mask to access and change parameters of the program.
  • Page 49: C1120 Interface: Technical Data

    C1120 S5 to II/O Lightbus Interface Beckhoff II/O-Lightbus System C1120 Interface: Technical Data 80C166 Communication processor memory COM1 serial port Ports eqiv. RS232 C or 20 mA current loop occupied by the configuration program Beckhoff II/O-Lightbus System Field bus 2,5 MBaud, 32 Bit user data in 25 µs...
  • Page 50: Installation Remarks

    The C1120 interface should be mounted in a slot for intelligent peripherials or communication processors (slot 0) of the S5- rack CR700-1. Pull off the blind plug and place the C1120 interface in the slot like any other interface. No external power supply is necessary for the C1120 interface, it is driven directly from the S5 PLC Bus.
  • Page 51: Interface Ports For Connection With A Pc

    Beckhoff II/O-Lightbus System Interface ports for connection with a PC The interfacing is realized with a standard serial RS232- cable with 9-pin connector (pinout see annex) for the port connector of the C1120 interface. Date 27.06.97 Version 2.1 Page 51 of 52...
  • Page 52: C1120 Serial Port Pinout

    C1120 S5 to II/O-Lightbus Interface Beckhoff II/O-Lightbus System C1120 Serial Port Pinout Pinout of RS232 C / current loop port (9-pin SUB-D connector on front of C1120) Signal Port RS232 C COM2: RS232 C COM1: RS232 C COM1: RS232 C COM2:...

Table of Contents