TREBING + HIMSTEDT SPI 3 Manual

Serial-profibus-interface
Hide thumbs Also See for SPI 3:

Advertisement

Quick Links

SERIAL-PROFIBUS-INTERFACE SPI 3
for Fieldbus devices with a serial interface
ASCII | 3964R | RK512
Contents SPI 3 – SIMATIC S5/S7 (up to SPI Release 11)
Contents Online Documentation
Doc. version 3.1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SPI 3 and is the answer not in the manual?

Questions and answers

Summary of Contents for TREBING + HIMSTEDT SPI 3

  • Page 1 SERIAL-PROFIBUS-INTERFACE SPI 3 for Fieldbus devices with a serial interface ASCII | 3964R | RK512 Contents SPI 3 – SIMATIC S5/S7 (up to SPI Release 11) Contents Online Documentation Doc. version 3.1...
  • Page 2 & Himstedt Prozessautomation GmbH & Co. KG. The right is reserved to make changes to this online documentation and to the SPI 3 device at any time without prior notification. All product names used in this manual are trademarks or otherwise protected by law, even if this is not specifically mentioned.
  • Page 3: Table Of Contents

    About this Online Documentation ................3 Safety notes .......................... 4 Safety notes for the planning stage ............4 Safety notes for installation and operation of the SPI 3 ......5 Overview of the SPI 3 ......................6 Connections and interfaces ..............6 Mounting the device ................
  • Page 4: Introduction

    Data is exchanged between the DP master and the SPI 3 in the form of telegrams or tele- gram fragments through a data channel, the size of which can be configured to adapt it to the telegram length and the size of the PLC I/O area.
  • Page 5: Scope Of Delivery

    About this Online Documentation Please read this online documentation before starting the installation work. It contains im- portant information on planning your system, connecting up and configuring the SPI 3 and on parameter setting. The online documentation uses the following keywords and symbols: Danger! Risk of injury to personnel due to electric shock.
  • Page 6: Safety Notes

    ASCII | 3964R | RK512 Safety notes Safety notes for the planning stage Observe the general rules for PROFIBUS components when planning the SPI 3 installa- tion. Please observe the following to avoid risk to personnel and damage to equipment and to...
  • Page 7: Safety Notes For Installation And Operation Of The Spi 3

    VDE 0100 regulations for handling electrical equipment. – Always mount the SPI 3 on a suitable top-hat rail. – The cables used to connect up the SPI 3 should not apply any mechanical forces to the device.
  • Page 8: Overview Of The Spi 3

    · GND Signal ground terminal · PE Protective ground terminal – PROFIBUS interface – Serial interface (RS232, RS422 or RS485 see label on SPI 3) Mounting the device – Spring-loaded orange clip for releasing the SPI 3 from the top-hat rail Operating elements –...
  • Page 9: Indicating Elements

    (see »Error diagnosis and remedies« on page 24): – RUN: lights continuously if supply voltage is present, flashes in case of errors – PB: lights up if the SPI 3 has been configured by the master and is operational, flashes in case of errors – TX: flashes if data is being sent to the serial interface –...
  • Page 10: Mounting And Connecting Up The Spi 3

    Attaching the SPI 3 to the top-hat rail – Hook the SPI 3 onto the top-hat rail and snap it into place. In order to remove the SPI 3 from the top-hat rail, pull out the orange locking clip with a suitable tool.
  • Page 11: Connecting Up To The Profibus

    We recommend you to use connectors from ERNI and Sie- mens. If the SPI 3 is installed at the beginning or end of the PROFIBUS cable segment, you should use PROFIBUS connectors which contain an integrated terminating resistor.
  • Page 12: Setting Up The Spi 3

    ASCII | 3964R | RK512 Setting up the SPI 3 In order to set up the SPI 3, you need to configure it, set the parameters and install the function blocks in your PLC programming software. When configuring the SPI 3 from the DP master using a commercially-available PROFI- BUS configurator program, refer to the on-line help for information on specifying the pa- rameters.
  • Page 13: Configuring The Spi 3

    MODUL_82000004______ MODUL_C1CFCF07______ MODUL_C1DFDF07______ MODUL_C1FFFF07______ Note! You should only configure one module for the SPI 3 device. After configuring the SPI 3, you need to set the parameters. This is described in »Setting parameters for the SPI 3« on page 12.
  • Page 14: Setting Parameters For The Spi 3

    Setting up the SPI 3 ASCII | 3964R | RK512 Setting parameters for the SPI 3 When you configure the SPI 3 with the PROFIBUS configurator, you will be prompted to choose the required parameters from a menu. You can set the following parameters: Unstructured ASCII driver, 3964R, RK512 see »SPI 3-specific parameters«...
  • Page 15: Installing The Function Blocks

    – Load the project into the SPS. After successful loading and subsequent SPS RUN, the LEDs RUN and PB will light on the SPI 3 (see also: »Checking the PROFIBUS communication« on page 14). The TX LED flashes. Load function blocks in an existing project: –...
  • Page 16: Checking The Spi 3 For Correct Operation

    Refer to »Error diagnosis and reme- dies« on page 24 for details of how to locate the fault. If no errors were detected, the SPI 3 is ready for use and you can use it for transferring data.
  • Page 17: Exchanging Data Using The Simatic Fb's

    In the case of the data transfer protocol “unstructured ASCII driver” in combina- tion with the RS485 serial interface, the SPI 3 sends the telegram which is re- ceived from the DP master for the serial partner back to the DP master again.
  • Page 18: Parameters For Data Transfer For Simatic S5

    The control data or user data to be exchanged is copied to a special PLC memory area – the data block (DB) – from where the PLC writes the data to the SPI 3 through the DP master. The data block consists of several data words, whereby data words 0 to 5 (DW0 to DW5) are reserved for internal use.
  • Page 19 Exchanging data using the SIMATIC FB’s ASCII | 3964R | RK512 Parameter for return codes: contain information on the status or processing results of the FB; also used to transfer commands (e.g. reset) to the FB. present in: Name Type Description / Function FB200 FB201...
  • Page 20: Parameters For Data Transfer For Simatic S7

    The control data or user data to be exchanged is copied to a special PLC memory area – the data block (DB) – from where the PLC writes the data to the SPI 3 through the DP master. User data always starts at DW0.
  • Page 21 Exchanging data using the SIMATIC FB’s ASCII | 3964R | RK512 Parameters for processing RK512 telegrams: specify the send and receive data blocks used for RK512 telegrams; specify compatibility with SIMATIC S5 . present in: Name Type Description / function FB100 FB101 FB103...
  • Page 22: Data Consistency (Only For S7)

    Exchanging data using the SIMATIC FB’s ASCII | 3964R | RK512 Parameter for return codes: contain information on the status or processing results of the FB; also used to transfer commands (e.g. reset) to the FB. present in: Name Type Description / function FB100 FB101 FB103...
  • Page 23: Configuring The Size Of The Data Blocks (S5 And S7)

    Exchanging data using the SIMATIC FB’s ASCII | 3964R | RK512 Configuring the size of the data blocks (S5 and S7) The data blocks used for sending and receiving RK512 telegrams (DB-Q and DB-Z for S5; DB_Empfangen and DB_Senden for S7) must be at least 78 words in length to allow enough space for the telegrams.
  • Page 24: Receiving Data (S5 And S7)

    Exchanging data using the SIMATIC FB’s ASCII | 3964R | RK512 Receiving data (S5 and S7) Proceed as follows to receive data: Start – Set bit 1 (Telegram has been received) to 0, and call the Receive data FB (FB201 for S5; FB101 for S7).
  • Page 25: Processing Rk512 Telegrams (S5 And S7)

    Exchanging data using the SIMATIC FB’s ASCII | 3964R | RK512 Processing RK512 telegrams (S5 and S7) Proceed as follows to process RK512 telegrams (FB203 for S5; FB103 for S7): – Configure the data blocks (DB-Q and DB-Z for S5; DB_Empfangen and DB_Senden for S7) with the appropriate size.
  • Page 26: Error Diagnosis And Remedies

    ASCII | 3964R | RK512 Error diagnosis and remedies If errors are detected, the pattern of flashing of the PB and RUN LED’s on the SPI 3 can be used for error diagnosis. The LED’s can flash with the following patterns (this is called the “LED code”):...
  • Page 27 Communication OK – Serial partner communicat- – SPI 3 working correctly ing correctly with the SPI 3 If errors occur during communication, you can also carry out PROFIBUS diagnostics with the DP master. The device-specific diagnostics data contains the following information:...
  • Page 28: Technical Specifications

    2, 4, 16, 32, 64 Certification Max. number of fieldbus devices** 32 (RS 485); 1 (RS 232, RS 422) * See label on the SPI 3 for information on the serial interface which is fitted ** Depends on the protocol...
  • Page 29: Appendix

    The module codes are used to select the operating mode of the SPI 3 (see »Configuring the SPI 3« on page 11). The module codes in the configuration telegram should be specified as follows: extended parameters (Release 12 and higher) simple parameters –...
  • Page 30: Spi 3-Specific Parameters

    Appendix ASCII | 3964R | RK512 SPI 3-specific parameters The following 18 bytes of the parameter telegram (bytes 7 to 24) contain SPI 3-specific parameters (see table). The specific parameters are valid for SPI 3 release 12 and higher. Note! The hex value for character timeout/response timeout must be specified in Mo- torola format (high byte first).
  • Page 31 Appendix ASCII | 3964R | RK512 Byte Parameter Value Hex code Default 18+19 Character timeout (unstruc- Both parameters in units of 10 ms: 0x0000 200 (0x00, 0xC8) tured ASCII data) (0…65535) × 10 ms Response timeout (for 3964 0xFFFF and RK512) SIO mode 0x00 ASCII driver ZVZ...
  • Page 32: Glossary

    Glossary Glossary → Station address Address ANZW 16 bit in-out variable for sending commands to an FB and re- ceiving return values. Abbreviation for binary digit, the smallest unit in the binary sys- tem; it can have the value 0 or 1. Cable with two defined ends which is used for exchanging data between the connected bus stations.
  • Page 33 Data channel A logical channel for exchanging data with the SPI 3. The size of the data channel (i.e. I/O area) is dependent on the SPI 3 configuration. If a telegram is larger than the data channel, it needs to be fragmented.
  • Page 34 Mirror The input byte 0 of a data channel is called the mirror. The SPI 3 mirrors (returns a copy of) the stamp (q.v.) to confirm the oper- ation or when user data is being processed. Mirror = 0 indicates that the DP slave is ready for data exchange.
  • Page 35 Glossary MODBUS MODBUS RTU is implemented according to the Reference Guide “Modicon PI-MBUS-300, Rev. D”. Module Selecting a module during device configuration determines the configuration telegram and thus the size of the PLC I/O area. Most Significant Bit Non-floating With non-floating I/O devices, the reference potentials of control circuits and power circuits are electrically interconnected and are not galvanically isolated.
  • Page 36 The DP master sends a telegram to a Fieldbus device through the SPI 3. Send channel Data channel for data which is sent to the SPI 3. Slave Bus station which is only allowed to exchange data with a mas-...
  • Page 37 Glossary Stamp The output byte 0 of a data channel is called the stamp. Stamp = 0 indicates that the master is ready for data exchange. If stamp = 0, output byte 2 contains information on the length of the following user data. Stamp ≠...
  • Page 38 Glossary Version code Indicates the version of a product and is always incremented when the hardware or software in the product is updated or modified. The version code can be seen on the first and second page of this online documentation at the bottom left. →...
  • Page 39: General Conditions

    General conditions General conditions Änderungsrecht / Right to make changes Trebing & Himstedt Prozeßautomation GmbH & Co. KG behält sich das Recht vor, das vorliegende Handbuch sowie die Eigenschaften der Hard- und Software jederzeit weiterzuentwickeln, auch ohne dieses vorher anzukündigen oder über Änderungen zu berichten. Trebing &...
  • Page 40 Documentation No. 10001240 © Trebing & Himstedt Prozeßautomation GmbH & Co. KG...

This manual is also suitable for:

Gpa-ns-011236Gpa-ns-011237Gpa-ns-011238

Table of Contents