English. Svenska. Driver for Siemens SIMATIC S5 PG/AS511. Manual MA00334C

Relevanta dokument
English. Svenska. Driver for Bernecker+Rainer Mininet. Manual MA00450B

Beijer Electronics AB 2000, MA00336A,

English. Svenska. Driver for Moeller PS4 SUCOM-A. Manual MA00500A

English. Svenska. Driver for Yaskawa MemoBus Master RTU. Manual MA00440A

Driver for SIMATIC S5 PG/AS511

2.1 Installation of driver using Internet Installation of driver from disk... 3

Driver for Klockner Moeller PS series

Driver for MELSEC AJ65BT-G4 CCLINK

Driver for Allen-Bradley ControlLogix Ethernet

English. Svenska. Driver for Allen-Bradley DH485. Manual MA00419B

Driver for Modbus SLAVE RTU

English. Svenska. Driver for FESTO/BECK FST CI. Manual MA00449A

Driver for ABB SattCon COMLI

English. Svenska. Driver for Allen-Bradley SLC Ethernet. Manual MA00511A

Driver for Steeplechase VLC serial

Driver for MELSEC FX 485 ADP/BD

Beijer Electronics AB 2001, MA00550,

Driver for Siemens SIMATIC S7 MPI

English. Svenska. Driver for Generic PROFIBUS DP. Manual MA

English. Svenska. Driver for MELSEC QnA/Q Ethernet E71. Manual MA00515A

Driver for SEW Eurodrive MOVIDRIVE

Driver for Allen-Bradley DF1. English. Svenska. G&L Beijer Electronics AB 2000, MA00342A,

Driver for Telemecanique TSX series Uni-Telway

Support Manual HoistLocatel Electronic Locks

Driver for Allen-Bradley DF1. English. Svenska. Beijer Electronics AB, MA00335B,

English. Svenska. Driver for SEW-Eurodrive MOVITRAC. Manual MA00457A

Styrteknik 7.5 hp distans: E-1000 och E-Designer

English. Svenska. Driver for Siemens SIMATIC S7 PROFIBUS DP. Manual MA00368D

InstalationGuide. English. MODEL:150NHighGain/30NMiniUSBAdapter

Lösenordsportalen Hosted by UNIT4 For instructions in English, see further down in this document

Driver for SEW Eurodrive MOVIDYN

1. Unpack content of zip-file to temporary folder and double click Setup

Styrteknik: Binära tal, talsystem och koder D3:1

Driver for SEW Eurodrive MOVITRAC

Installation av F13 Bråvalla

Product configurations Produire configuration Produkt konfigurationen Producto configuraciones Produkt konfigurationerna

Får endast utföras av behörig personal. May only be carried out by authorized electrician

Schenker Privpak AB Telefon VAT Nr. SE Schenker ABs ansvarsbestämmelser, identiska med Box 905 Faxnr Säte: Borås

Driver for Matsushita FP-series MEWTOCOL-COM

Driver for MELSEC QnA Ethernet E71

Boiler with heatpump / Värmepumpsberedare

Schenker Privpak AB Telefon VAT Nr. SE Schenker ABs ansvarsbestämmelser, identiska med Box 905 Faxnr Säte: Borås

Problem som kan uppkomma vid registrering av ansökan

Quick Start Guide Snabbguide

Alternativet är iwindows registret som ni hittar under regedit och Windows XP 32 bit.

MBIT BREDBAND VI ÄGS AV INVÅNARNA I KARLSHAMN REGISTRERA DIG IDAG. Din lokala elleverantör. Starka på hemmaplan. Din guide till Karlshamnsporten

REGISTRERA DIG IDAG Din guide till Ronnebyporten

Styrteknik: E-Designer och E-1000

Driver for Modbus Master ASCII, RTU or TCP

IFC MC. Manual. English, Svenska MA00281C

BREDBAND MBIT REGISTRERA DIG IDAG. Din guide till Karlshamnsporten

Quick Start. English Svenska PRIMACY. Printing settings and winsign

2.45GHz CF Card Reader User Manual. Version /09/15

3 Tekniska data för PROFIBUS DP I tabellen nedan beskrivs tekniska data för PROFIBUS DP.

Windlass Control Panel v1.0.1

Information technology Open Document Format for Office Applications (OpenDocument) v1.0 (ISO/IEC 26300:2006, IDT) SWEDISH STANDARDS INSTITUTE

Uttagning för D21E och H21E

Det finns en handledning till kortet på hemsidan. AVR STK500.

Beijer Electronics AB 2000, MA00339A,

Quick Start. English Svenska. Moca

Release notes for Permobil R-net PC-programmer ver Dealer access level

Module 1: Functions, Limits, Continuity

This exam consists of four problems. The maximum sum of points is 20. The marks 3, 4 and 5 require a minimum

Styrteknik : Funktioner och funktionsblock



Övning 5 ETS052 Datorkommuniktion Routing och Networking

D-285 r0. Installationsanvisning för ServiceTool

Driver for Siemens SIMATIC S7 Profibus DP

Michael Q. Jones & Matt B. Pedersen University of Nevada Las Vegas

PNSPO! Tips! Xpectia kommunikation till OMRON PLC via Seriellt. 14 mars 2012 OMRON Corporation


FORTA M315. Installation. 218 mm.

Paneler - VCPXX.2. Programmeringsmanual för VCP-paneler. Revision 2

Driver for Siemens SIMATIC S5 PROFIBUS DP

Application Note SW

Custom-made software solutions for increased transport quality and creation of cargo specific lashing protocols.

Installationsguide. EG200 Multi WAN Residential Gateway. v

Workplan Food. Spring term 2016 Year 7. Name:

Nemo96 HD och Nemo96 HD+ firmware uppdatering

Installation Instructions

Module 6: Integrals and applications

Isolda Purchase - EDI

Föreläsning 4 IS1300 Inbyggda system

IRAB Mottagare sida 2-5 Tele Radio AB Mottagare sida 6

Installationsguide. DG200 Multi WAN Residential Gateway V

Antares Användning och installation

1. Compute the following matrix: (2 p) 2. Compute the determinant of the following matrix: (2 p)

Preschool Kindergarten

Datasäkerhet och integritet


Varmt välkommen som gästföreläsare till Juridiska fakulteten vid Lunds universitet

This manual should be saved! EcoFlush Manual

Alias 1.0 Rollbaserad inloggning

MAC Ope ra tor Terminal

This manual should be saved! EcoFlush Manual. Wostman 2018:2

P650 - Takscreen. Installationsguide EN

Användarhandbok. MHL to HDMI Adapter IM750

Webbregistrering pa kurs och termin

Översättning av galleriet. Hjälp till den som vill...

Transkript:

English Svenska MA00334C 2002-02 Driver for Siemens SIMATIC S5 PG/AS511 Manual

Contents Contents 1 Introduction... 3 2 Install and update driver... 4 2.1 Installation of driver using Internet...4 2.2 Installation of driver from disk...4 3 Connecting the terminal to the controller... 5 3.1 Settings in the programming tool...5 3.2 Transfer the driver to the terminal...7 3.3 Connecting the controller...8 4 Addressing... 9 4.1 Digital signals...9 4.2 Analog signals...10 5 Efficient communication... 11 5.1 Signals affecting the communication time...11 5.2 How to make the communication more efficient...12 6 Appendix... 13 6.1 Error codes...13 7 Drawings... 14

Introduction 1 Introduction This manual describes how to connect the Siemens SIMATIC S5 series controllers to the operator terminals, and how they communicate via the protocol S5 PG/AS511. Addressing of an item in the controller is made in the regular SIMATIC way. The functions in the operator terminals and in the programming tool for the operator terminals are described in the manual for the operator terminals and the programming tool. For information about the controller we refer to the manual for the current system. The terminals support the SIMATIC S5 90, 95, 115, 135 and 155 controllers. 3

Install and update driver 2 Install and update driver When installing the programming tool the drivers available at the time of release are installed too. A new driver can be added into the programming tool either with the programming tool using an Internet connection or from disk. A driver can be updated to a newer version in similarly. 2.1 Installation of driver using Internet To update available drivers to the latest version or to install new drivers, the function File/Update terminal drivers/from Internet in the programming tool can be used. All projects must be closed prior to using this function, and the computer must be able to connect to Internet. A browser is not required. When the connection is established all drivers that can be downloaded to the computer from Internet are listed. The list states the version number of available and installed drivers. Select which drivers to install, and then click Download. The function Mark Newer will mark all drivers available in a newer version than the ones installed, and the drivers not installed. Each driver is approximately 500 kb, and ready to use when the download is finished. 2.2 Installation of driver from disk To update available drivers to the latest version or to install new drivers, the function File/Update terminal drivers/from Disk in the programming tool can be used. All projects must be closed prior to using this function. Select the folder with the new driver and open the mpd-file. All drivers that can be installed are listed, and the version number of available drivers and the version number of installed drivers are stated. Select which drivers to install into the programming tool, and then select Install. The function Mark Newer will mark all drivers available in a newer version than the ones installed, and the drivers not installed. 4

Connecting the terminal to the controller 3 Connecting the terminal to the controller 3.1 Settings in the programming tool For communication with the SIMATIC S5 controller via the S5 PG/AS511 protocol the following settings must be made in the programming tool for the operator terminal. Driver selection Choosing File/New creates a new project and displays the dialog Project Settings. In an existing project, the dialog is displayed by selecting File/Project Settings. Click on Change under Controller systems to display available drivers. Choose Brand name, Protocol and Model, and click OK. Click OK once more to confirm the project settings. 5

Connecting the terminal to the controller Communication setup The settings for the communication between the terminal and the controller system are made under Setup/Peripherals. To change the port the controller system is connected to, mark Controller 1 (or Controller 2) and hold left mouse button down and drag to move the controller system to another communication port. Mark the selected communication port and click Edit to change the settings. Correct settings: Parameter Description Port RS-232C or RS-422 Baud rate 9600 Data bits 8 Stop bits 1 or 2 Parity Even 6

Connecting the terminal to the controller 3.2 Transfer the driver to the terminal The selected driver is downloaded to the terminal when the project is transferred to the terminal. Choose Transfer/Project. There are three alternatives when the driver is downloaded to the terminal: Function Never Always Automatic Description The driver is not downloaded and the existing driver in the terminal is used. The driver is downloaded every time the project is transferred. The driver is downloaded only if the driver in the terminal is not the same as the selected driver in the project. 7

9 8 7 6 5 4 3 2 1 _ 0 + 9 8 7 6 5 4 3 2 1 _ 0 + Connecting the terminal to the controller 3.3 Connecting the controller The connection is of the type point-to-point master/slave. The CPU port on the controller is connected to either the RS-232C port or the RS-422 port on the operator terminal according to the alternatives below. Connection via Siemens converter RS-232C Converter 6ES5 734-1BD20 CAB1 The converter 6ES5 734-1BD20 from Siemens is connected to the CPU port on the controller. The standard cable CAB1 is connected between the converter and the terminal. Connection via standard cable RS-422 CAB7 The standard cable CAB7 is connected between the CPU-port on the controller and the RS-422 port on the terminal. 8

Addressing 4 Addressing The terminal can handle the following data types in the controller: Name Data type, English Data type, German Flag F M Output Q A Input I E Data block DB DB Timer (current value) T T Counter (current value) C Z A data block (DB) in SIMATIC S5 can have a maximum length of 256 words. The terminal can access all data blocks in the controller. Note! Trying to access an undefined data block in the controller causes the controller to stop. For information about instructions in the controller we refer to the manual for the current system. 4.1 Digital signals For digital signals, the current bit in the byte is stated. For example: I50.3 means bit 3 in input byte 50. Data type, English Ixxxx.b Qxxxx.b Fyyyy.b DBno.DWadr.b Data type, German Exxxx.b Axxxx.b Myyyy.b DBno.DWadr.b xxxx = address 0-127, yyyy = 0-255, b = bit number 0-7 (for I, Q, R or E, A, M) no = data block number 0-255, adr = data word within the data block 0-255, b = bit number 0-15 (for DB). Writing bits from the operator terminal to the controller is made in three steps: 1. The entire byte is read from the controller to the terminal. 2. The current bit is set or reset in the terminal. 3. The entire byte from the terminal is written to the controller. Note! During the time it takes for the terminal to make the three steps above, the controller may not change the other bits in the current byte, since they will be overwritten. 9

Addressing 4.2 Analog signals For 16-bit numbers, the suffix W is stated. For example: MW100 means two bytes from memory byte 100-101. Data type, English IWxxxx QWxxxx FWyyyy DBno.DWadr Tzzzz Czzzz Data type, German EWxxxx AWxxxx MWyyyy DBno.DWadr Tzzzz Zzzzz xxxx = address 0-126, yyyy = 0-255, zzzz = 0-255, no = data block number 0-255, adr = data word within the data block 0-255. Note! When storing ASCII values in 16-bit numbers the eight most significant bits contain the first ASCII code, and the eight least significant bits contain the second ASCII code. For 32-bit numbers, the suffix D is stated. For example: MD100 means four bytes from memory byte 100-103. Data type, English IDxxxx QDxxxx FDyyyy DBno.DDadr Data type, German EDxxxx ADxxxx MDyyyy DBno.DDadr xxxx = address 0-124, yyyy = 0-255, no = data block number 0-255, adr = data word within the data block 0-255. The driver supports the S5 floating point format where the mantissa is presented as a 24-bit fixed-point number and the exponent as an 8-bit fixed-point number. A floating point number always occupies a double word and its bits are used as follows. Word m Word m+1 Byte n Byte n+1 Byte n+2 Byte n+3 Bits 31 to 24 Exponent Bits 23 to 0 Mantissa The value of a floating-point number is calculated as: G = (Mantissa) 2 (exponent) 10

Efficient communication 5 Efficient communication To make the communication between the terminal and the controller system quick and efficient the following should be noted about how the signals are read and how the reading can be optimized. 5.1 Signals affecting the communication time Only signals to objects in the current block are read continuously. Signals to objects in other blocks are not read, thus the number of blocks does not affect the communication time. Besides the signals to objects in the current block, the terminal reads the following signals from the controller system continuously: Display signals (Block Header) Print signals (Block Header) LED registers Alarm signals Remote acknowledge signals on alarms and alarm groups Login signal (Passwords) Logout signal (Passwords) Registers for trend curves Bar graph registers if using min/max indicators New display register Buzzer register Backlight signal Cursor control block Recipe control block Library index register Index Registers Controller clock register if the controller clock is used in the terminal List erase signal (Alarm Settings) No protocol control register No protocol on signal Signals not affecting the communication time The following signals do not affect the communication time: Signals linked to function keys Time channels Objects in the alarm messages 11

Efficient communication 5.2 How to make the communication more efficient Group controller signals consecutively Signals from the controller system are read most rapidly if all signals in the list above are consecutive. If for example, 100 signals are defined, the quickest way to read these is to linked them, for example, M0.0-M11.7. If the signals are spread (e.g. I0.4, Q30.0, M45.3 etc.) the updating is slower. Efficient block changes Block changes are carried out most rapidly and efficiently through the block jump function on the function keys or through a jump object. Display signals in the block header should only be used when the controller system is to force the presentation of another block. The New display register can also be used if the controller system is to change the block. This does not affect communication as much as a larger number of Display signals. Use the clock in the terminal An extra load is put on communication if the clock in the controller system is used, since the clock register must be read up to the terminal. Downloading of the clock to the controller system also creates an extra load. The interval between downloadings should therefore be as long as possible. Packaging of signals When signals are transferred between the terminal and the controller system, all signals are not transferred simultaneously. Instead they are divided into packages with a number of signals in each package. By decreasing the number of packages that has to be transferred the communication speed can improve. The number of signals in each package depends on the used driver. In the SIMATIC S5 PG/AS511 driver the number is 60 for analog devices and 200 for digital devices. To make the communication as fast as possible the number of packages has to be minimized. Consecutive signals require a minimum of used packages but it is not always possible to have consecutive signals. In such cases the waste between two signals has to be considered. The waste is the maximum distance between two signals in the same package. The waste depends on the used driver. In the SIMATIC S5 PG/AS511 driver the number is 20 for analog devices and 40 for digital devices. Signal 1 2 3 4 5 6 7 8 9 10 Used X X X X X Waste 12

Appendix 6 Appendix 6.1 Error codes Error codes from the SIMATIC S5. The code is shown on the terminal display. Error code 0x0000 0x0001 0x0002 0x0004 0x0008 0x0010 0x0020 0x0100 0x0200 0x1000 0x4000 0x8000 DB does not exist DB range error S5-Cmd is locked Comm error code xx Description No error Time-out error Data transfer error Data transfer error Data transfer error Data transfer error The data block does not exist in CPU The length of the data block is smaller than requested address CPU is busy Communication error The command is locked in CPU The stated communication port does not exist Reading a data block not defined in the controller Reading outside the size of the data block The controller is not configured to communicate Another error code - see the S5 manual for further information 13

Drawings 7 Drawing s 4) Only for units with one serial port (RS-422) and 232-25-ADP (adapter). On all other terminals, not connected. 2) Only for units with 5VDC voltage feed 3) Only for units with one serial port (RS-422) 14

Drawings 15

16 Drawings

Innehåll Innehåll 1 Introduktion...3 2 Installation och uppdatering av drivrutin...4 2.1 Installation av drivrutin via Internet... 4 2.2 Installation av drivrutin från disk... 4 3 Ansluta terminalen till styrsystemet...5 3.1 Inställningar i programmeringsverktyget... 5 3.2 Överföra drivrutinen till terminalen... 7 3.3 Ansluta styrsystemet... 8 4 Adressering...9 4.1 Digitala signaler... 9 4.2 Analoga signaler... 10 5 Effektiv kommunikation...11 5.1 Signaler som påverkar kommunikationstiden... 11 5.2 Hur kommunikationen kan optimeras... 12 6 Appendix...13 6.1 Felkoder... 13 7 Ritningar...14

Introduktion 1 Introduktion Manualen beskriver hur Siemens SIMATIC S5-styrsystem ansluts till operatörsterminalerna, och hur de kommunicerar via protokollet S5 PG/AS511. Adressering i styrsystemet görs på vanligt SIMATIC-sätt. Funktionaliteten i operatörsterminalerna och programmeringsverktyget i operatörsterminalerna beskrivs i manualen för operatörsterminalerna och programmeringsverktyget. För information om styrsystemet hänvisas till manualen för aktuellt system. Terminalerna stöder styrsystemen SIMATIC S5 90, 95, 115, 135 and 155. 3

Installation och uppdatering av drivrutin 2 Installation och uppdatering av drivrutin Tillgängliga drivrutiner installeras samtidigt som programmeringsverktyget installeras. En ny drivrutin kan läggas till i programmeringsverktyget antingen från Internet eller från disk. En drivrutin kan uppdateras till nyare version på samma sätt. 2.1 Installation av drivrutin via Internet För att uppdatera befintliga drivrutiner till senaste version eller för att installera nya drivrutiner kan funktionen Arkiv/Uppdatera drivrutiner/från Internet användas. Alla projekt måste stängas innan funktionen används och datorn måste kunna ansluta till Internet. Någon webbläsare behövs inte. När anslutningen är etablerad visas en lista med alla drivrutiner som kan laddas ner till datorn via Internet. I listan visas versionsnummer på tillgängliga och på redan installerade drivrutiner. Markera önskade drivrutiner och välj därefter Ladda ner. Funktionen Markera nyare markerar alla drivrutiner som finns tillgängliga i en senare version, samt drivrutiner som inte är installerade. Varje drivrutin är ungefär 500 kb stor, och kan användas så snart nedladdningen avslutats. 2.2 Installation av drivrutin från disk För att uppdatera tillgängliga drivrutiner till senaste version eller för att installera nya drivrutiner kan funktionen Arkiv/Uppdatera drivrutin/från Disk användas. Alla projekt måste stängas innan funktionen används. Välj den katalog som innehåller den nya drivrutinen och öppna mpd-filen. En lista visas med alla drivrutiner som kan installeras. I listan visas versionsnummer på tillgängliga drivrutiner och versionsnumret på installerade drivrutiner. Markera önskade drivrutiner och välj därefter Ladda ner. Funktionen Markera nyare markerar alla drivrutiner som finns tillgängliga i en senare version samt drivrutiner som inte är installerade. 4

Ansluta terminalen till styrsystemet 3 Ansluta terminalen till styrsystemet 3.1 Inställningar i programmeringsverktyget För kommunikation med SIMATIC S5-styrsystem via protokollet S5 PG/AS511 måste följande inställningar göras i programmeringsverktyget. Val av drivrutin Välj Arkiv/Nytt för att skapa ett nytt projekt. Då visas dialogrutan Projektinställningar. I ett befintligt projekt visas dialogen genom Arkiv/Projektinställningar. Klicka på Ändra under Styrsystem och välj i listan över tillgängliga drivrutiner. Välj Fabrikat, Protokoll och Modell, och klicka OK. Klicka på OK igen för att bekräfta projektinställningarna. 5

Ansluta terminalen till styrsystemet Kommunikationsinställningar Inställningarna för kommunikationen mellan terminalen och styrsystemet anges under Inställningar/Periferienheter. För att ändra vilken port styrsystemet är anslutet till, markera Styrsystem 1 (eller Styrsystem 2) och håll vänster musknapp nere för att dra och släppa styrsystemet på önskad kommunikationsport. Markera den valda kommunikationsporten och klicka på Redigera för ändra inställningarna. Korrekta inställningar Parameter Beskrivning Port RS-232C eller RS-422 Hastighet 9600 Databitar 8 Stoppbitar 1 eller 2 Paritet Jämn 6

Ansluta terminalen till styrsystemet 3.2 Överföra drivrutinen till terminalen Drivrutinen laddas ner till terminalen när projektet överförs till terminalen. Välj Överför/Projekt. Det finns tre alternativ för hur drivrutinen ska överföras: Funktion Aldrig Alltid Automatiskt Beskrivning Drivrutinen laddas aldrig, befintlig drivrutin i terminalen används. Drivrutinen laddas varje gång hela projektet överföres. Drivrutinen laddas endast om drivrutinen i terminalen inte är samma som i projektet. 7

9 8 7 6 5 4 3 2 1 _ 0 + 9 8 7 6 5 4 3 2 1 _ 0 + Ansluta terminalen till styrsystemet 3.3 Ansluta styrsystemet Anslutningen är av typen point-to-point master/slav. CPU-porten på styrsystemet ansluts till RS-232C-porten eller RS-422-porten på terminalen enligt alternativen nedan. Anslutning via Siemens omvandlare RS-232C Converter 6ES5 734-1BD20 CAB1 Omvandlaren 6ES5 734-1BD20 från Siemens ansluts till CPU-porten på styrsystemet. Mellan omvandlaren och operatörsterminalen ansluts standardkabeln CAB1. Anslutning via standardkabel RS-422 CAB7 Standardkabeln CAB7 ansluts mellan CPU-porten på styrsystemet och RS-422-porten på terminalen. 8

Adressering 4 Adressering Terminalen kan hantera följande signaltyper i styrsystemet: Namn Datatyp, engelska Datatyp, tyska Flag F M Output Q A Input I E Data block DB DB Timer (current value) T T Counter (current value) C Z Datablock (DB) i SIMATIC S5 kan maximalt bestå av 256 ord. Terminalen kan nå alla datablock i styrsystemet. Observera! Om man försöker nå ett datablock som inte definierat i styrsystemet stannar systemet. För mer information om instruktioner i styrsystemet hänvisas till manualen för aktuellt styrsystem. 4.1 Digitala signaler För digitala signaler anges aktuell bit i byten. Exempel: Med I50.3 avses bit 3 i input byte 50. Datatyp, engelska Ixxxxx.b Qxxxxx.b Fxxxxx.b DBno.DWadr.b Datatyp, tyska Exxxxx.b Axxxxx.b Mxxxxx.b DBno.DWadr.b xxxxx = adress 0-127, yyyy = 0-255, b = bitnummer 0-7 (för I, Q, F eller E, A, M) no = datablocknummer 0-255, adr = dataord inom datablock 0-255, b = bitnummer 0-15 (för DB). Skrivning av bitar från terminalen till styrsystemet utförs i tre steg: 1. Hela byten från styrsystemet till terminalen läses. 2. Aktuell bit ett- eller nollställs i terminalen. 3. Hela byten från terminalen skrivs till styrsystemet. Observera! Under tiden det tar för terminalen att genomföra de tre stegen, får styrsystemet inte ändra de andra bitarna i aktuell byte, eftersom de kommer att bli överskrivna. 9

Adressering 4.2 Analoga signaler För 16-bitars tal anges suffixet W. Exempel: Med MW100 avses två bytes från minnesbyte 100-101. Datatyp, engelska IWxxxx QWxxxx FWyyyy DBno.DWadr Tzzzz Czzzz Datatyp, tyska EWxxxx AWxxxx MWyyyy DBno.DWadr Tzzzz Zzzzz xxxx = adress 0-126, yyyy = 0-255, zzzz = 0-255, no = datablocknummer 0-255 och adr = dataord inom datablocket 0-255. Observera! När ASCII-värden lagras i 16-bitars ord innehåller de åtta mest signifikanta bitarna första delen av ASCII-koden, och de åtta minst signifikanta bitarna innehåller den andra delen av ASCII-koden. För 32-bitars ord anges suffixet D. Exempel: Med MD100 avses fyra bytes från minnesbyte 100-103. Datatyp, engelska IDxxxx QDxxxx FDyyyy DBno.DDadr Datatyp, tyska EDxxxx ADxxxx MDyyyy DBno.DDadr xxxx = adress 0-124, yyyy = 0-255, no = datablocknummer 0-255, adr = dataord inom datablocket 0-255. Drivrutinen stöder S5 flyttalsformat där mantissan presenteras som ett 24-bitars fast värde och exponenten som ett 8-bitars fast värde. Ett flyttal upptar alltid ett dubbelt ord och bitarna används enligt nedan. Ord m Ord m+1 Byte n Byte n+1 Byte n+2 Byte n+3 Bit 31 till 24 Exponent Bit 23 till 0 Mantissa Värdet på flyttalet beräknas enligt följande: G = (Mantissa) 2 (exponent) 10

Effektiv kommunikation 5 Effektiv kommunikation För att göra kommunikationen mellan terminalen och styrsystemet snabb och effektiv bör följande noteras om hur signalerna läses och hur kommunikationen kan optimeras. 5.1 Signaler som påverkar kommunikationstiden Det är endast signalerna till objekten i aktuellt block som läses kontinuerligt. Signalerna till objekten i de andra blocken läses inte och antalet block påverkar därför inte kommunikationstiden. Förutom signalerna till objekten i det aktuella blocket, läser terminalen kontinuerligt följande signaler från styrsystemet: Visa block-signaler (Blockhuvud) Blockutskriftsignaler (Blockhuvud) Lysdiodregister Larmsignaler Externa kvitteringssignaler för larm och larmgrupper Inloggningssignal (Lösenord) Utloggningssignal (Lösenord) Register för trendkurvor Register till stapelobjekt om min/max-indikatorer används Ny bild-register Summer-register Bakgrundsbelysningssignalen Markörkontrollblock Receptkontrollblock Bibliotekindexregister Indexregister Registren till styrsystemsklockan om styrsystemsklockan används i terminalen Radera larmlista-signal (Larminställningar) No protocol mode-kontrollregister No protocol-signal Signaler som inte påverkar kommunikationstiden Följande signaler som påverkar inte kommunikationstiden: Signaler kopplade till funktionstangenter Tidkanalerna Objekt i larmtexter 11

Effektiv kommunikation 5.2 Hur kommunikationen kan optimeras Gruppera styrsystemsignalerna i en följd Signalerna från styrsystemet läses snabbast om signalerna i listan i föregående avsnitt är i en följd. Om exempelvis 100 signaler är definierade, läses dessa snabbast om de grupperas till exempel M0.0-M11.7. Om signalerna sprids ut (t ex I0.4, Q30.0, M45.3 etc.) går uppdateringen långsammare. Effektiva blockbyten Blockbyte sker effektivast via blockhoppsfunktionen på funktionstangenterna eller via hoppobjekt. Visa block-signalen i blockhuvudet bör endast användas då styrsystemet ska tvinga fram en annat block. För att styrsystemet ska byta bild kan även Ny bild-registret användas. Det belastar inte kommunikationen lika mycket som ett större antal Visa block-signaler. Använd klockan i terminalen Om terminalklockan används belastas kommunikationen eftersom styrsystemets klockregister måste läsas upp till terminalen. Nerladdningen av terminalklockan till styrsystemet belastar också. Intervallet mellan nerladdningarna bör därför vara så långt som möjligt. Packning av signaler När signalerna ska överföras mellan terminalen och styrsystemet, överförs inte alla signalerna samtidigt. De delas istället in i paket med ett antal signaler i varje. Genom att minska antalet paket som ska överföras kan kommunikationen göras snabbare. Antalet signaler i varje paket beror på drivrutinen. I drivrutinen SIMATIC S5 PG/AS511 är antalet 60 för analoga signaler och 200 för digitala signaler. Signaler i en följd behöver ett minimalt antal paket, men det är kanske inte alltid nödvändigt. I sådana fall blir det ett glapp mellan två signaler. Glappet är det maximala avståndet mellan två signaler i samma paket. Glappet beror på vilken drivrutin som används. I drivrutinen SIMATIC S5 PG/AS511 är antalet 20 för analoga signaler och 40 för digitala signaler. Signal 1 2 3 4 5 6 7 8 9 10 Använd X X X X X Glapp 12

Appendix 6 Appendix 6.1 Felkoder Felkoder från SIMATIC S5. Koden visas på terminalens display. Felkod 0x0000 0x0001 0x0002 0x0004 0x0008 0x0010 0x0020 0x0100 0x0200 0x1000 0x4000 0x8000 DB does not exist DB range error S5-Cmd is locked Comm error code xx Beskrivning Inget fel Time-out fel Dataöverföringsfel Dataöverföringsfel Dataöverföringsfel Dataöverföringsfel Datablocket finns inte i CPU-enheten Datablockets längd är kortare än den begärda adressen CPU-enheten är upptagen Kommunikationsfel Kommandot är låst i CPU-enheten Den angivna kommunikationsporten finns inte Läsning av odefinierat datablock Läsning utanför datablockets storlek Styrsystemet är inte konfigurerat för att kommunicera Övrig felkod - se S5-manualen för ytterligare information 13

Ritningar 7 Ritningar 4) Only for units with one serial port (RS-422) and 232-25-ADP (adapter). On all other terminals, not connected. 2) Only for units with 5VDC voltage feed 3) Only for units with one serial port (RS-422) 14

15 Ritningar

Ritningar 16