Siemens SIMATIC S5 Series Manual
Siemens SIMATIC S5 Series Manual

Siemens SIMATIC S5 Series Manual

Second serial interface of the programmable controller
Hide thumbs Also See for SIMATIC S5 Series:
Table of Contents

Advertisement

SIMATIC S5
Second Serial Interface of the
S5-95U Programmable Controller
Manual
EWA 4NEB 812 6095-02a
Edition 02

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC S5 Series

  • Page 1 SIMATIC S5 Second Serial Interface of the S5-95U Programmable Controller Manual EWA 4NEB 812 6095-02a Edition 02...
  • Page 2 STEP ®, SIMATIC ® and SINEC ® are registered trademarks of Siemens AG Copyright © Siemens AG 1993 Subject to change without prior notice. ”The reproduction, transmission or use of this document or its contents is not permitted without express written authority.
  • Page 3 Introduction Description of the System Point-To-Point Link with SINEC L1 Protocol Computer Link with 3964(R) Transmission Protocol ASCII Driver A/B/C/ Appendices Index EWA 4NEB 812 6095-02...
  • Page 4: Table Of Contents

    S5-95U, Second Serial Interface Contents Contents Page Introduction ........... . Description of the System .
  • Page 5 Contents S5-95U, Second Serial Interface Page ASCII Driver ..........4 - 1 Connection of Communication Partners when Using the ASCII Driver .
  • Page 6: Introduction

    S5-95U, Second Serial Interface Introduction Introduction The S5-95U programmable controller with second serial interface can communicate with other devices via interface-specific functions. In order to be able to use the performance capability of the second serial interface of the S5-95U (SI2) in full, the user requires detailed information.
  • Page 7 For definitions of the terms ”Warning”, ”Danger”, ”Caution” and ”Note” please see the ”Safety- Related Guidelines for the User” at the end of this introduction. Courses SIEMENS offers extensive training opportunities for SIMATIC S5 users. For more detailed information please contact your Siemens office. Reference material Reference material is listed in the S5-90U/S5-95U System Manual, Appendix E.
  • Page 8 Siemens. • The product will function correctly and safely only if it is transported, stored, set up, and installed as intended, and operated and maintained with care.
  • Page 9 Description of the System Possible Applications of the S5-95U with Second Serial Interface ......... . 1 - 2 Range of Functions of the Two Serial Interfaces .
  • Page 10 Figures Device Configurations ........1 - 2 S5-95U LEDs, Controls and Interfaces .
  • Page 11: Description Of The System

    Low-cost interface to a further PLC (SIMATIC S5) via point-to-point link e.g. S5-95U with S5-100U (CPU 102); no CP required • Simple connection to SIEMENS devices via computer link e.g. S5-95U with SICOMP PC • Simple connection to third-party devices via ASCII driver e.g.
  • Page 12: Possible Applications Of The S5-95U With Second Serial Interface

    SINEC L1 LAN 3964(R) out transmission transmission protocol protocol Control and Point-to-point link SIEMENS device in Third-party devices monitoring systems S5-95U can be general with limited for SIMATIC S5 master or slave processing capacity in general...
  • Page 13: Criteria For Selecting The Communications Mechanism

    Table 1-1 Criteria for Selecting the Communications Mechanism Selection Criteria Point-to-P. Link w. 3964(R) Computer ASCII Driver SINEC L1 Protocol link Interface with SIMATIC Possible Possible SIEMENS Possible Possible Device Third- Possible Possible Party Device Maximum Number of 64 bytes...
  • Page 14: Characteristics Of The Communications Mechanisms

    Description of the System S5-95U, Second Serial Interface The following overview ( Table 1-2) contains the main characteristics of all communications mechanisms supported by the SI2 interface. Table 1-2 Characteristics of the Communications Mechanisms Communications Features Mechanism Programmer • PLC is programmed with programmer or process functions in the Functions PLC are monitored with operator panel •...
  • Page 15: Range Of Functions Of The Two Serial Interfaces

    S5-95U, Second Serial Interface Description of the System Range of Functions of the Two Serial Interfaces You can connect programmers and operator panels at both serial interfaces. The entire range of functions of the interfaces is listed in Table 1-3. The program execution period may be extended when connecting a programmer, operator panel or SINEC L1 to the SI1 or SI2 interface (for scan on-load times of the PLC, see Appendix E).
  • Page 16 Description of the System S5-95U, Second Serial Interface Table 1-3 Overview of the Functions Possible at Interfaces SI1 and SI2 (Continued) Programmer Function Possible at SI1 Possible at SI2 Designation Abbreviation Auxiliary functions AUX FCT Transfer TRANSFER Delete DELETE Directory Function Possible at SI1 Possible at SI2...
  • Page 17: Configuration Of The Plc And Assignment Of The Second Serial Interface

    Second Serial Interface Description of the System of the Second Serial Configuration of the PLC Assignment Interface The figure below shows all displays, controls and interfaces of the S5-95U (6ES5095-8MC01). DIGITAL ,etil~dv 0,6A n @1 O 0 2 Do - - o .1 a 3@ o @ 3 r).1 STOP...
  • Page 18: Pin Assignments Of The Second Serial Interface Of The S5-95U

    Description of the System S5-95U, Second Serial Interface The second serial interface is non-floating. The cables are connected to a 15-pin sub D socket. Assignment of the 15-pin sub D socket: (Reference potential) (Reference potential) (TTYtransmission line -) OUT- +5.2V (for external loads) (TTYtransmission line +) OUT+ 20 mA (TTY current source)
  • Page 19 Point-To-Point Link with SINEC L1 Protocol Connection of Nodes in a Point-To-Point Link ....2 - 4 Data Traffic and DB1 Parameter Assignment in a Point-To-Point Link .
  • Page 20 Figures Structure of a SINEC L1 LAN ....... . . 2 - 1 Structure of a Point-To-Point Link with BT 777 Transceiver .
  • Page 21: Point-To-Point Link With Sinec L1 Protocol

    S5-95U, Second Serial Interface Point-To-Point Link Point-To-Point Link with SINEC L1 Protocol This section covers the following: • Possible communication partners for the S5-95U • How to connect communication partners to the SI2 interface • Data communication via point-to-point link •...
  • Page 22 Point-To-Point Link S5-95U, Second Serial Interface Point-to-point link with SINEC L1 protocol and S5-95U as a communication partner The point-to-point link is a special case of SINEC L1 communication. A SINEC L1 LAN is reduced to two nodes. Data, logic control and error detection and correction data can only be exchanged between two communication partners.
  • Page 23 S5-95U, Second Serial Interface Point-To-Point Link As a communication partner in the point-to-point link, you can use the following modules ( Table 2.1). Table 2-1 Communication Partners in the Point-To-Point Link Applications of the S5-95U Communication Partners (master) S5-95U with 2 serial interfaces CP 521 SI S5-95U is slave S5-115U...
  • Page 24 Point-To-Point Link S5-95U, Second Serial Interface Conection of Nodes in a Point-To-Point Link A link can be set up in two ways: • Via a bus cable with transceivers (BT 777, S5-90U/S5-95U System Manual, Section 14) • via a direct cable ( Figure 2-4, 2-5). Use a 4-core, shielded cable with a cross-section of at least 0.14 mm .
  • Page 25 S5-95U, Second Serial Interface Point-To-Point Link Linking the S5-95U as master with the CP 521 SI (TTY passive) as slave (TTY active) Cable length: < 100 m S5-95U CP 521 SI 20 mA TTY IN+ TTY IN TTY OUT+ TTY OUT - 20 mA TTY IN+ TTY OUT+...
  • Page 26: Data Traffic And Db1 Parameter Assignment In A Point-To-Point Link

    Point-To-Point Link S5-95U, Second Serial Interface Data Traffic and DB1 Parameter Assignment in a Point-To-Point Link As in the case of the SINEC L1 LAN, data traffic is handled via send and receive mailboxes, which are accessed by the PLC program via load and transfer operations ( S5-90U/S5-95U System Manual, Section 14.3).
  • Page 27: Coordination Bytes In A Point-To-Point Link

    S5-95U, Second Serial Interface Point-To-Point Link Coordination Bytes in a Point-To-Point Link The ”receive” and ”send” coordination bytes control data traffic between the partners. The meaning of the bits in the coordination bytes is explained below. ”Send” coordination byte (KBS) (flag byte or high-order byte in the data word) Error 0: No error 1: Send error during last data transfer...
  • Page 28: Program Example Of Point-To-Point Link

    Point-To-Point Link S5-95U, Second Serial Interface Program Example of Point-To-Point Link In this section, the structure of a PLC program for a point-to-point link is explained in detail. Example: The program example can be used for any communication partner both as point-to-point master and slave.
  • Page 29 S5-95U, Second Serial Interface Point-To-Point Link DB1 STL Description ; SL1: SLN 0 SF '; Slave number: 0 (PLC is master); Send mailbox: ='DB100DW80 EF DB100DW40 '; DB100 from DW 80; Receive mailbox: DB100 from DW 40; KBE MB61 KBS MB6'; ”Receive”...
  • Page 30 Point-To-Point Link S5-95U, Second Serial Interface FB100 AWL (continued) Description KF +72 FW 252 Scan to determine whether all 32 DW have :!=F already been copied =M002 then jump to receive mailbox enable FW 252 otherwise, data word numbers are :ADD KF +1 incremented by 1 FW 252...
  • Page 31 Computer Link with 3964(R) Transmission Protocol Connection of Communication Partners in a Computer Link ..3 - 3 Data Traffic via Computer Link ......3 - 5 Coordination Bytes for a Computer Link .
  • Page 32 Figures Node in a Computer Link with 3964(R) Transmission Protocol ..3 - 1 Pin Assignments S5-95U (TTY Active) - any Communication Partner (TTY Passive) ......3 - 3 Pin Assignments of S5-95U (TTY Passive) - any Communication Partner (TTY Active)
  • Page 33: Computer Link With 3964(R) Transmission Protocol

    3964(R) transmission protocol. The 3964(R) transmission protocol is SIEMENS-specific and is therefore ideal for the connection of SIEMENS devices. In the meantime, there is also a range of third-party devices which offer the 3964(R) transmission protocol. The computer link with 3964(R) transmission protocol is used for the connection of two communication partners.
  • Page 34 Computer Link with 3964(R) Transmission Protocol S5-95U, Second Serial Interface A number of conventions must be agreed upon for a data transmission procedure: codes, modes, transmission rates and the sequence of transmission. Difference between the 3964 and 3964R transmission protocols: The 3964R transmission protocol differs from the 3964 transmission protocol by a block check character (BCC) generated and sent at the end of a transmitted data block.
  • Page 35: Connection Of Communication Partners In A Computer Link

    S5-95U, Second Serial Interface Computer Link with 3964(R) Transmission Protocol Connection of Communication Partners in a Computer Link The communication partners are linked via a direct cable. Use a 4-core, shielded cable with a cross- section of at least 0.14 mm .
  • Page 36: Communication Partner (Tty Active)

    Computer Link with 3964(R) Transmission Protocol S5-95U, Second Serial Interface Linking S5-95U (TTY passive) with any communication partner (TTY active) Cable length: see technical data of the node S5-95U Communication partner TTY IN+ 20 mA TTY IN - TTY OUT+ TTY OUT - Ground TTY OUT -...
  • Page 37: Data Traffic Via Computer Link

    (1024 bytes) (1024 bytes) Communication partners SIEMENS device with computer link capability Byte 1 ˆ - most significant half; Byte 2 ˆ - least significant half Figure 3-5 Functional Model of a Computer Link Data can be transmitted in both directions: •...
  • Page 38 Computer Link with 3964(R) Transmission Protocol S5-95U, Second Serial Interface Characteristics of send and receive mailboxes: • In the first word of the send mailbox, the length of the data block to be sent must be specified (in bytes). The data block length (word 1) is not transmitted. The remaining words of the send mailbox are available for the data to be sent.
  • Page 39: Coordination Bytes For A Computer Link

    S5-95U, Second Serial Interface Computer Link with 3964(R) Transmission Protocol Coordination Bytes for a Computer Link The computer link monitors data traffic and writes status and error messages in two different bytes, the ”send” (KBS) and ”receive” (KBE) coordination bytes. The following diagram shows the structure of the two coordination bytes.
  • Page 40: Error Messages In The "Send" Coordination Byte

    Computer Link with 3964(R) Transmission Protocol S5-95U, Second Serial Interface The error messages are listed and explained in the following tables. Error messages in the ”send” coordination byte Table 3-1 Error Messages in the ”Send” Coordination Byte Assignment Meaning Response Negative acknowledgement of receiver at Data invalid for receiver connection cleardown...
  • Page 41: Error Messages In The "Receive" Coordination Byte

    S5-95U, Second Serial Interface Computer Link with 3964(R) Transmission Protocol Error messages in the ”receive” coordination byte In a receive request, various errors may occur, which are assigned different priorities by the computer link. The KBE always contains the error which has the highest priority in the last receive attempt.
  • Page 42: Parameterizing The Computer Link In Db1

    Computer Link with 3964(R) Transmission Protocol S5-95U, Second Serial Interface Parameterizing the Computer Link in DB1 To facilitate parameterizing, DB1 has default settings and is loaded in the PLC. If you load the default DB1 from the PLC into the programmer after an overall reset and display it on the screen, it has the following structure: ='DB1 OBA: AI 0 ;...
  • Page 43: Computer Link, Db1 Parameters

    S5-95U, Second Serial Interface Computer Link with 3964(R) Transmission Protocol DB1 parameters for the computer link You specify the following in DB1: • Position of the parameter set for the computer link • Positions of send mailbox, receive mailbox, ”send” and ”receive” coordination bytes •...
  • Page 44 Computer Link with 3964(R) Transmission Protocol S5-95U, Second Serial Interface Mode number for computer link (MOD) Two modes are available for the type of data transmission. Table 3-4 shows the meanings of the individual mode numbers. Table 3-4 Meanings of the Mode Numbers Default in Mode Meaning...
  • Page 45: (Depending On Data Format)

    S5-95U, Second Serial Interface Computer Link with 3964(R) Transmission Protocol Parity (PRTY) Five types of parity are available. Table 3-5 Meanings of the Types of Parity Default in Parity Meaning DB1: EVEN Even parity The parity bit is set to ensure that the sum of the data bits (including parity bit) with signal state ”1”...
  • Page 46 Computer Link with 3964(R) Transmission Protocol S5-95U, Second Serial Interface Character delay time (DT) This is the maximum permissible time interval between receiving two characters (character delay time). Only those characters with a delay shorter than the specified time are recognized as valid characters and transmitted in a frame to the CPU.
  • Page 47: Sample Program For Computer Link

    S5-95U, Second Serial Interface Computer Link with 3964(R) Transmission Protocol Sample Program for Computer Link This section deals with the structure of a PLC program for transmitting data via a computer link. Example: This example describes the program of an arbitrary communication partner. In can be used for an S5-95U for which high priority is set in DB1 and a communication partner for which low priority is set.
  • Page 48 Computer Link with 3964(R) Transmission Protocol S5-95U, Second Serial Interface DB1 STL Description 156: =' ; # RKT: PAR DB206DW0 '; Parameter set is in DB206 from DW 0 onwards 168: SF DB207DW0 EF DB208'; Send mailb.: DB207 from DW0; Rec. mailb.: DB208 180: ='DW0 KBS MB100...
  • Page 49 S5-95U, Second Serial Interface Computer Link with 3964(R) Transmission Protocol FB207 STL Description NAME :SENDEN DB 207 Open send mailbox 100.7 End if currently sending or if no send request present :BEC (Enable sending at I 0.0) 100.0 Error during last send procedure? :JC PB Then error evaluation in PB1 Prepare send mailbox...
  • Page 50: The 3964(R) Transmission Protocol

    Computer Link with 3964(R) Transmission Protocol S5-95U, Second Serial Interface The 3964(R) Transmission Protocol The following explanations are not required for starting up the S5-95U. The protocol will be described simply for the sake of explaining the DB1 parameter settings (e.g. mode number, data format Table 3-4, 3-6).
  • Page 51 S5-95U, Second Serial Interface Computer Link with 3964(R) Transmission Protocol Protocol data The 3964 and 3964R transmission protocols control data flow between the programmable controller and a communication partner. The data to be sent must be written into the send buffer of the S5-95U. This data is sent together with the 3964 or 3964R transmission protocol to the communication partner.
  • Page 52 Computer Link with 3964(R) Transmission Protocol S5-95U, Second Serial Interface Sending For building up a connection, the PLC sends the STX (start of text) control character. If the communication partner responds with the DLE (Data Link Escape) character before the timeout has elapsed, the transmission protocol switches to send mode.
  • Page 53 S5-95U, Second Serial Interface Computer Link with 3964(R) Transmission Protocol Example of an error-free send procedure: Communication partner S5-95U 3964(R) driver 1st character nth character * BCC only in the 3964R transmission protocol Figure 3-11 Error-Free Communication During Sending Receiving In the idle state, the 3964(R) driver does not process any send request and the PLC waits for the communication partner to establish a connection.
  • Page 54 Computer Link with 3964(R) Transmission Protocol S5-95U, Second Serial Interface The PLC terminates the receive procedure in one of the following ways depending on whether it uses the 3964 or 3964R transmission protocol: • 3964 transmission protocol (i.e. without BCC): If the PLC recognizes the character sequence DLE ETX, it stops receiving and sends DLE to the communication partner for correctly receiving a block (or NAK in case of an error).
  • Page 55 S5-95U, Second Serial Interface Computer Link with 3964(R) Transmission Protocol Example of incorrect data transmission: S5-95U 3964(R) driver Communication partner Low priority High priority Incorrect buildup attempt 1st char. Incorrect nth char. send attempt: BCC invalid 1st char. nth char. * BCC only with 3964R transmission protocol Figure 3-13 Incorrect Data Transmission 3-23...
  • Page 56 Computer Link with 3964(R) Transmission Protocol S5-95U, Second Serial Interface Initialization conflict An initialization conflict occurs if a communication partner does not respond with DLE or NAK to the send request (STX character) of the other communication partner within the specified timeout and sends an STX character instead.
  • Page 57 S5-95U, Second Serial Interface Computer Link with 3964(R) Transmission Protocol Protocol errors The transmission protocol recognizes errors caused by the communication partner and errors caused by line faults. In both cases, the send or receive procedure is repeated. If the data block cannot be sent or received even after the maximum number of repetitions (or if another error occurs), the transmission protocol stops sending or receiving.
  • Page 58 ASCII Driver Connection of Communication Partners when Using the ASCII Driver 4 - 2 Data Traffic with the ASCII Driver ......4 - 4 Coordination Bytes for Use of the ASCII Driver .
  • Page 59 Figures Communication Partners if the ASCII Driver is Used ....4 - 1 Pin Assignments S5-95U (TTY Active) - any Communication Partner (TTY Passive) .
  • Page 60: Ascii Driver

    S5-95U, Second Serial Interface ASCII Driver ASCII Driver This section covers the following: • Possible communication partners for the S5-95U • How to connect communication partners to the SI2 interface • Data traffic via the ASCII driver • Parameter assignment of the PLC •...
  • Page 61: Connection Of Communication Partners When Using The Ascii Driver

    ASCII Driver S5-95U, Second Serial Interface Connection of Communication Partners when Using the ASCII Driver The communication partners are linked via a direct cable. Use a 4-core, shielded cable with a cross- section of at least 0.14 mm . We recommend the 707-1 bus cable (Order number Appendix D). Linking the S5-95U (TTY active) with any communication partner (TTY passive) Cable length: <...
  • Page 62 S5-95U, Second Serial Interface ASCII Driver Linking the S5-95U (TTY passive) with any communication partner (TTY active) Cable length: see technical specifications of the communication partner S5-95U Communication partner TTY IN+ 20 mA TTY IN - TTY OUT+ TTY OUT - Ground TTY OUT - Ground...
  • Page 63: Data Traffic With The Ascii Driver

    ASCII Driver S5-95U, Second Serial Interface Data Traffic with the ASCII Driver Figure 4-5 shows the principle of operation of the ASCII driver in schematic form. S5-95U Coordination byte Coordination byte Sending (KBS) Receiving (KBE) (in the flag or data area) (in the flag or data area) Sending Error messages...
  • Page 64 S5-95U, Second Serial Interface ASCII Driver • Receiving The communication partner sends data to the SI2 interface of the S5-95U in ASCII code. The data is buffered in the input buffer and stored in the receive mailbox (EF) after initiation through the PLC program.
  • Page 65: Coordination Bytes For Use Of The Ascii Driver

    ASCII Driver S5-95U, Second Serial Interface Coordination Bytes for Use of the ASCII Driver The ASCII driver monitors data traffic and stores status and error messages in two bytes, the ”send” (KBS) and ”receive” (KBE) coordination bytes. The following display shows the structure of the two coordination bytes. ”Send”...
  • Page 66 S5-95U, Second Serial Interface ASCII Driver The different error messages are listed and explained in the following table. Table 4-1 Error Messages in the Coordination Bytes Assignment Meaning Response Output buffer is full Data rejected Parameterizing error Send mailbox not available Frame is too long Break Data valid until time...
  • Page 67: Parameterizing The Ascii Driver In Db1

    ASCII Driver S5-95U, Second Serial Interface Parameterizing the ASCII Driver in DB1 In order to simplify parameterizing, the DB1 with default parameters is already integrated in the PLC. If you load the default DB1 from the PLC into the programmer after an ”overall reset” and display it on the screen, it has the following structure: ='DB1 OBA: AI 0 ;...
  • Page 68 S5-95U, Second Serial Interface ASCII Driver DB1 parameters for the ASCII driver In DB1, you specify the position of the ASCII parameter set, the position of the send mailbox, receive mailbox and coordination bytes, the mode number and the ASCII parameter set. The parameter settings in the S5-95U and in the communication partner must be identical.
  • Page 69 ASCII Driver S5-95U, Second Serial Interface ASCII mode number (MOD) You can define the type of data traffic by means of the mode number (1 ... 8). Two protocol types can be distinguished: • Non-interpreting mode (mode no. 1, 2, 3) Data is exchanged without XON/XOFF protocol.
  • Page 70 S5-95U, Second Serial Interface ASCII Driver Table 4-3 Meaning of the Mode Number (Continued) Mode Meaning Definition of the ML/ME Parameters Output on printer. Send the send mailbox until an end-of-text character defined in the set of parameters (low-order byte) is reached. ME 0 4 The end-of-text character is not sent.
  • Page 71 ASCII Driver S5-95U, Second Serial Interface ASCII parameter set (PAR) The principle of operation of the ASCII driver can be parameterized in the ASCII parameter set. You specify the following in DB1: • Data block/flag byte in which the parameter set should lie (in the DBx, from DW y onwards) and •...
  • Page 72 S5-95U, Second Serial Interface ASCII Driver You must define the individual parameters of the parameter set in the DB1 depending on the mode selected. Table 4-4 gives an overview of the relevant parameters for the various modes. The specifications of Table 4-4 should be regarded as an example; the permissible value ranges for the DB1 parameters are included in Table 4-2.
  • Page 73 ASCII Driver S5-95U, Second Serial Interface Parity (PRTY) You can choose from five types of parity. Table 4-5 Meaning of the Parity Default in Parity Meaning DB1: EVEN Even parity The parity bit is set in such a way that the sum of the data bits (inclusive of parity bit) is even at signal state ”1”.
  • Page 74 S5-95U, Second Serial Interface ASCII Driver Example of a character frame: Stop bit Start bit Data bit No. Parity bit Figure 4-9 Example of an 11-Bit Character Frame Waiting times CR, LF, FF (WCR, WLF, WFF) The DB1 parameter ”WCR” specifies the waiting times for the transition to the next line for a printer.
  • Page 75 ASCII Driver S5-95U, Second Serial Interface End-of-text identifier (ME) You can parameterize either one or two end-of-text characters for sending data frames with variable length. You limit the length of the respective data frame by means of the end-of-text characters selected.
  • Page 76: Program Example For The Ascii Driver

    S5-95U, Second Serial Interface ASCII Driver Program Example for the ASCII Driver In this section, the structure of a PLC program for the ASCII driver is explained. Example: The program generates a message list for output on the DR 211 printer. It automatically initiates a printout in 2-second intervals.
  • Page 77 ASCII Driver S5-95U, Second Serial Interface Activate the S5-95U and carry out a ”PLC overall reset” (PLC mode STOP). Parameterize the ASCII driver in DB1 of the S5-95U as described below. Program the individual blocks as described below. Do not forget to generate the DB for the parameter set! Transfer DB1 and the PLC program to the S5-95U.
  • Page 78 S5-95U, Second Serial Interface ASCII Driver DB1 AWL Erläuterung 240: ='TTS 6 #ASC: ASCII set of parameters lies in DB202 from DW O onwards. 252: ='DB202DW0 SF DB203DW0 Send mailbox: DB203 from DW0: Receive mailbox: DB204 264: =' EF DB204DW0 KBS MB200';...
  • Page 79 ASCII Driver S5-95U, Second Serial Interface The FB1 example function block is used for printing out reports stored in the DB203 send data block. A printer output is initiated at every call of the function block and resetting of send initiation bit (KBS bit 7).
  • Page 80 S5-95U, Second Serial Interface ASCII Driver FB4 STL Description NAME :DU>ASCII Converter Binary number to ASCII number :DUAL E/A/D/B/T/Z: E BI/BY/W/D: :A-TH E/A/D/B/T/Z: A BI/BY/W/D: :A-ZE E/A/D/B/T/Z: A BI/BY/W/D: KB 0 Delete auxiliary register FW 240 FW 242 FW 244 Residual value register =DUAL Load binary number (area 0-9999)
  • Page 81 ASCII Driver S5-95U, Second Serial Interface FB4 STL (continued) Description :JU =SUBH Jump to processing hundreds ZEHN :-F FW 244 FY 242 :ADD KF +1 FY 242 Increment tens count register :TAK :JU =SUBZ Jump to processing tens EINE :TAK FY 243 Write units count register KH 3030...
  • Page 82 S5-95U, Second Serial Interface ASCII Driver DB202 STL (continued) Explanation KH = 520D; 52 H = R ; 0D H = CR KS ='========================'; Header 2 KS ='========================'; KS ='========================'; KS ='========'; KH = 0D2A; 0D H = CR ; 2A H = * KS ='************************';...
  • Page 83: Appendices

    Appendices Appendix A DB1 Parameters, DB1 Parameterizing Errors Appendix B Positions of the Parameters in the System Data Area of the PLC, ASCII Code Appendix C List of Abbreviations Appendix D Accessories and Order Numbers Appendix E Technical Data, Scan On-Load Times of the PLC When Using the Second Serial Interface EWA 4NEB 812 6095-02...
  • Page 84: Adb1 Parameters, Db1 Parameterizing Errors A

    DB1 Parameters, DB1 Parameterizing Errors EWA 4NEB 812 6095-02...
  • Page 85 S5-95U, Second Serial Interface DB1 Parameters, DB1 Parameterizing Errors DB1 Parameters, DB1 Parameterizing Errors Permissible Parameter Argument Meaning Range Block Identifier: SL1: SINEC L1/Point-to-Point Link ” SL ave N umber” p=0, 1 ... 30 DBxDWy x=2 ... 255 Position of the send mailbox (start of SF) y=0 ...
  • Page 86 DB1 Parameters, DB1 Parameterizing Errors S5-95U, Second Serial Interface Permissible Parameter Argument Meaning range Block identification: ASC: ASCII Driver at Second Serial Interface Position of ASCII- PAR ameter set DBxDWy x= 2 ... 255 Position of the send mailbox (start of SF) y= 0 ...
  • Page 87 S5-95U, Second Serial Interface DB1 Parameters, DB1 Parameterizing Errors DB1 parameterizing error You can read DB1 parameterizing errors as error codes. For this purpose, you must define in the ”ERT:” DB1 parameter block where the error code is to be stored (in the flag area or in a data block).
  • Page 88: B Positions Of The Parameters In The System Data Area Of The Plc, Ascii Code B

    Positions of the Parameters in the System Data Area of the PLC, ASCII Code EWA 4NEB 812 6095-02...
  • Page 89 S5-95U, Second Serial Interface Positions of the Parameters in the System Data Area Positions of the Parameters in the System Data Area of the PLC, ASCII Code The DB1 enters the parameters you have selected in system data words 48 to 63. The following tables tell you which system data word includes which parameter and which absolute address is occupied.
  • Page 90 Positions of the Parameters in the System Data Area S5-95U, Second Serial Interface System Data High byte Low byte Absolute Word Address Position of the Parameters for SINEC L1 / Point-to-Point Link: Programmer bus number Slave number 5D72 SD 57 (1...30) (0, 1...30) 5D73...
  • Page 91 S5-95U, Second Serial Interface Positions of the Parameters in the System Data Area Default for ASCII driver and computer link without parameterization of DB1 and parameter Both the ASCII driver and the computer link offer default values for the parameter set. Under the following circumstances, the defaults are accepted: •...
  • Page 92 Positions of the Parameters in the System Data Area S5-95U, Second Serial Interface Word Meaning Range of Default, Depending on Mode Values End-of-text <CR> <CR> <CR> <CR> <EOT> None character/num- <LF> <LF> ber of receive characters Suppress LF 0/1 yes/no Lines per page 1 ...
  • Page 93 S5-95U, Second Serial Interface Positions of the Parameters in the System Data Area Default of the set of parameters for computer link: Word Meaning Range of Values Default Transmission rate 200 bit/s 300 bit/s 600 bit/s 1200 bit/s 2400 bit/s 4800 bit/s 9600 bit/s Parity...
  • Page 94 Positions of the Parameters in the System Data Area S5-95U, Second Serial Interface ASCII code Hexadecimal ASCII Hexadecimal ASCII Hexadecimal ASCII Hexadecimal ASCII SP 40 @ 60 ! 41 A 61 B 62 ” C 63 D 64 E 65 &...
  • Page 95: C List Of Abbreviations C

    List of Abbreviations EWA 4NEB 812 6095-02...
  • Page 96 S5-95U, Second Serial Interface List of Abbreviations List of Abbreviations Interface-specific abbreviations Description DB1 block identification for ASCII drivers Block check character DB1 parameter: Transmission rate DB1 parameter: Block Wait Time Communications processor DB1 parameter: Data format ASCII character: Data Link Escape DB1 parameter: Delay Time (character delay time) DB1 parameter: Position of the receive mailbox ASCII character: End of transmission...
  • Page 97 List of Abbreviations S5-95U, Second Serial Interface Interface-specific abbreviations Description First serial interface (also programmer interface) Second serial interface DB1 block idientifier SINEC L1 DB1 parameter: Suppress LF DB1 parameter: Slave number Interface ASCII character: Start of text DB1 parameter: Timeout DB1 parameter: Tries To Erect (number of buildup attempts) DB1 parameter: Tries To Send (number of send attempts) TTY active...
  • Page 98: D Accessories And Order Numbers D

    Accessories and Order Numbers EWA 4NEB 812 6095-02...
  • Page 99: Second Serial Interface

    S5-95U, Second Serial Interface Accessories and Order Numbers Accessories and Order Numbers Order numbers S5-95U programmable controller with two serial interfaces 6ES5 095-8MC01 S5-90U/S5-95U System Manual German 6ES5 998-8MA12 with User's Guide S5-90U and S5-95U English 6ES5 998-8MA22 French 6ES5 998-8MA32 Spanish 6ES5 998-8MA42 Italian...
  • Page 100 Technical Data, Scan On-Load Times of the PLC When Using the Second Serial Interface EWA 4NEB 812 6095-02...
  • Page 101 S5-95U, Second Serial Interface Technical Data, Scan On-Load Times Technical Data, Scan On-Load Times of the PLC When Using the Second Serial Interface Climatic environmental conditions Specific data of the interface (continued) S5-90U/S5-95U System Manual Possible transmission rates (adjustable in DB1) Mechanical environmental conditions S5-90U/S5-95U System Manual - for programmer functions;...
  • Page 102 Technical Data, Scan On-Load Times S5-95U, Second Serial Interface Interrupt reaction time The interrupt reaction time increases by a maximum of 2.3 ms for all functions that are executable at the SI2 interface (exception: ”Compress block” programmer function; Calculation of interrupt reaction times S5-90U/S5-95U System Manual, Section 10.3) .
  • Page 103 S5-95U, Second Serial Interface Technical Data, Scan On-Load Times 2. Compute time for a bus cycle The time for one bus cycle (cycle time T in ms) can be calculated by means of the following equation: (20 + · 1.8 ·...
  • Page 104 Index EWA 4NEB 812 6095-02...
  • Page 105: Index

    2-4, 3-3, 3-4, 4-2 - for computer link DLE duplication 3-9, 3-18, 3-20 - for point-to-point link Driver number - SIEMENS device DT Character delay time - SIMATIC device - Third-party device Computer link EF Receive mailbox Computer link 3964(R)
  • Page 106 Index S5-95U, Second Serial Interface Mode 4-4, 4-5, 4-13 Footers 4-16 - Interpreting 4-10 Frame length 4-15 - Non-interpreting 4-10, 4-15 FT1 Footers Mode number FT2 Footers - for ASCII 4-10 - for computer link 3-12 HD1 Headers HD2 Headers 3-18, 3-20, C-1 Headers 4-16...
  • Page 107 2-6, 3-5, 4-4 TTS Send attempts - Characteristics 3-6, 4-5 Send XOFF - active SF Send mailbox - passive SIEMENS devices SIMATIC devices SINEC L1 LAN system 1-4, 2-1, B-2 Wait time CR 4-15 SINEC L1 network Wait time FF...
  • Page 108 Siemens AG AUT 125 Doku Postfach 1963 D-92209 Amberg Federal Republic of Germany From: Your Name: Your Title: Company Name: Street: City, Zip Code: Country: Phone: Please check any industry that applies to you: Automotive Pharmaceutical Chemical Plastic Electrical Machinery...
  • Page 109 Your comments and recommendations will help us to improve the quality and usefulness of our publications. Please take the first available opportunity to fill out this questionnaire and return it to Siemens. Title of Your Manual: Order No. of Your Manual:...

This manual is also suitable for:

Simatic s5-95u

Table of Contents