in313-pr1

35
IM-PR1 TECHNICAL INSTRUCTION MANUAL Serial Interface Unit IN313-PR1 Profibus Compatible

Upload: wellbr123

Post on 05-Nov-2015

212 views

Category:

Documents


0 download

DESCRIPTION

yhj

TRANSCRIPT

  • IM-PR1

    TECHNICAL INSTRUCTION MANUAL

    Serial Interface Unit IN313-PR1Profibus Compatible

  • Table of Contents

    Page1 System Overview 21.1 Profibus 21.2 Serial Interface 2

    2. System Structure 3-52.1 Schematic Illustration 3-42.2 Applicable PLC's 52.3 Applicable Series of Solenoid Valves/Manifolds 5

    3. Specifications (IN313-PR1) 63.1 General Specification 63.2 General Specification PROFIBUS 63.3 General Specification SI-unit 6

    4. Structure of Parts 7-84.1 Designation of Each Section 74.2 LED Indication 8

    5. Switch Settings 9-135.1 Protocol 95.2 Address 95.3 Data Rate (baud rate) 10

    6. Wiring / Installation 11 -166.1 Terminal Block 116.2 Bus Connection 12-136.3 Power Supply Wiring 136.4 Line Termination 14-156.4.1 Line Termination according to DIN 19245 146.4.2 Line Termination according to PROFIBUS-DP 156.5 Bus Cable 16

    7. Programming Guide 17-187.1 PROFIBUS Layer 7 177.1.1 Bus Parameters 177.1.2 Communication- Relation -List 187.1.3 Static Object Directory 187.1.4 Definition of Configuration Byte 187.2 PROFIBUS Layer-7 Access SINEC -L2 197.2.1 Commissioning o f PROFIBUS Master 197.2.2 Operating on SINEC -L22 197.2.3 Operation on SINEC -L2 Cyclic Peripherals 197.3 PROFIBUS-DP (Sine -L2-DP) 207.3.1 Use SAP's 207.3.2 Occupancy of Pin Connections 207.3.3 Scan Times 21

    8. Troubleshooting 22

    9. Glossary 23

    SINEC is a registered trademark of Siemens AG.

    1

  • 1. System Overview

    1.1 System-Description The PROFIBUS protocol, according to DIN 19245 part 1 and 2, is an inter-operable andopen Bus-System. The PROFIBUS master device can be either a PLC or PC. Manydifferent versions of these products are available from a wide variety of manufacturers.

    Additionally, subset systems with the PROFIBUS protocol according to DIN 19245 arealso available. These subset systems can be from independent manufacturers orproprietary from a specific manufacturer.e.g.

    Independent from a manufacturer:PROFIBUS-DP

    Specific manufacturer:Siemens company: SINEC L2-DP

    SINEC L2-FMSSINEC L2-TFSINEC L2 cyclical periphery

    It is possible to control up to 32 active or passive nodes (122 nodes withmax. 3 repeater).

    The PROFIBUS protocol allows for different transmission speeds dependingupon the bus length.

    The data medium should be a shielded, twisted pair cable.

    1.2 SI-unit IN313-PR1 The Serial Interface (SI) unit IN313-PR1 is a slave device for use with thePROFIBUS protocol. It is possible to connect and control up to 16 valves(16 single- or 8 double solenoid) from the SI unit.

    The SI valve manifold systems manufactured by SMC have internally prewired solenoid connections. It is only necessary to make the communicationand power wire connections to the SI unit interface terminal block.It is necessary to set the address and the appropriate transmission protocolwith the DIP switches.

    It is not necessary to set the transmission speed because the SI- unitselects the correct transmission speed automatically. When the additionalindex 51 is programmed, the valves switch to a pre-defined position in theevent of a bus error.

    2

  • 3

  • 4

  • 2. System Construction

    5

  • 3. Specifications

    3.1 General Specifications Operating ambient 0 - 55' C (max. 8 points at ON)temperature 0 - 560 C (app points at ON)Oper. ambient humidity 10 - 90% RH (no dew formation)Vibration resistance Smaller value in either of single amplitude 0.75mmdurability in 10 Hz - 150 Hz acceleration 1 OG. 4 sweeps

    in SWEEP TIME 8 min.Malfunction Smaller value in either of single amplitude 0.50mm

    in 10 Hz - 150 Hz or acceleration 7G. 4 sweeps inSWEEP TIME 8 min.

    Impact resistance Peak acceleration 30G 3 directions 3 timesNoise resistance 1000 Vp-p pulse with 100 ns-1 us leading 1 ns

    pulseDielectric strength 1500 V AC 50/60 Hz one min. between external

    terminal and housingInsulation resistance >1 10 M ohm (at 500 V DC megger)

    between external terminals and housingOperating atmosphere No corrosive gas or heavy dust

    3.2 General Specifications, Mode of the SI-unit The CPU is a passive node (Slave)PROFIBUS Protocol Max. No. of participants 32 active or passive nodes

    (122 nodes with repeater)Transmission speed depending on the bus length

    up to 650 ft - 500 Kbit/sup to 2000 ft - 187,5 Kbit/sup to 4000 ft - 9,6 Kbit/sup to 4000 ft - 19,2 Kbit/sup to 4000 ft - 93,75 Kbit/s

    Max. Bus Length max. 4000 ftdepending on the transmissionspeed (EIA RS422A)

    Medium (cable) shielded twisted pair cable impedancelevel 100 to 130L2min. 0.22 MM2 (24 AWG 4)) , about 60pF/m

    Bus structure Termination resistors, on both endsof the bus network.

    Contrary to EIA 485 definitions, practice has shown that longer branchcabling are possible if the sum of cable capacitance (C-stges) of all branchcabling in relation to the transmission rate does not exceed the following:C-stges 0,6 nF to 500 Kbit/s;C-stges 1,0 nF to 187,5 Kbit/s;C-stges 3,0 nF to 93,75 Kbit/s;C-stges 15 nF to 9,6 und 19,2 Kbit/s.

    Please note that the sum of all branch cabling lengths must be included aspart of the total line length. The number of bus nodes without repeater is limitedto a maximum of 32 active/passive stations. With repeater, a maximum of 122stations is possible.

    3.3 General Specifications, Power for solenoid valve 24 V DC 10%SI-unit supply for unit internal 24 V DC 10 %

    Current for solenoid valve max. 1.5 Aconsumption for unit internal max. 75 mATemperature 0 - 500 C

  • 6

  • 4. Structure of Parts

  • 4. Structure of Parts

    8

  • 5. Switch Settings

    5.1 Protocol With the power supply OFF, open the protective switch cover of the"ADDRESS" section on the top of the unit.Use a ball point pen or a small screwdriver to set the position of the 8 bitDIP switch.

    With DIP switch 1 (bit 1) choose the Bus protocol.

    DIP switch 1 BUS-protocolOFF PROFIBUS, SINECOL2-FMS,

    SINEC L2-TF, SINEC L2 cyclicperipherals

    ON PROFIBUS-DP, SINEC L2-DP up to 500 kBit/s

    5.2 Address With the power supply OFF, open the protective switch cover of the "ADDRESS" section on thetop of the unit.

    With the DIP switches 2 thru 8 (bit 2 - 8) it is possible to set the "Address" off the SI unit.Valid address range:

    Address range BUS-protocol1 ....126 PROFIBUS, SINEC L2-FMS,

    SINEC L2-TF, SINEC L2 cyclicPeripherals

    3 ....124 PROFIBUS-DP, SINEC8L2-D-P

    9

  • 5. Switch Settings

    5.3 Data Rate (baud rate) It is not necessary to set the transmission speed (baud rate). The SI unit willautomatically set the correct baud rate according to DIN 19245 part 1 andpart 2 .

    Transmission speed Based on the bus lengthup to 650 ft - 500 Kbit/sup to 2000 ft - 187,5 Kbit/sup to 4000 ft - 9,6 Kbit/sup to 4000 ft - 19,2 Kbit/sup to 4000 ft - 93,75 Kbit/s

    ATTENTION!!! The max. transmission speed of PROFIBUS-DP and SINEC -DP is 500 kbit/s

  • 10

  • 6. Wiring / Installation

    6. Wiring / Installation All wiring and installation steps should be performed with the power supply off.

    For the installation of the PROFIBUS protocol unit it is necessary to take care of theEuropean standards. Example: EN60204 part 1.

    Remove the IN313-PR1 unit by loosening its 4 mounting screws and pulling it straightout to disconnect the interface plug. Be careful not to drop the unit or to damage theinterface plug.

    6.1 Terminal Block Remove the plastic cover ("spacer A") to expose the screw terminals.

    11

  • 6. Wiring / Installation

    6.2 Bus Connection The connection of the cable should be as shown below. (See also Sec. 2.1schematic 1 Illustration).Also refer to the specific PLC owner's manual and to the DIN standard 19245part 1 and part 2.

    1. Make all connections with power OFF.2. Avoid proximity of cable to high voltage lines and equipment3. Use appropriate style cable, see Sec. 6.5, Bus Cable.4. When the unit is at a physical end link, be sure to include the terminating resistor (see Sec. 6.4, Bus Terminating).

    Pin Connections of theD-Sub Connector:

    Wiring:

    ATTENTION!!! Signal lines must not be crossed!!The shield of the cable must be grounded at least at one point within the system.

    12

  • 6. Wiring / Installation

    6.2 Bus Connection The potential difference between the data reference potential DGND and all(continuation) other connections (figure 1) must not exceed 7 Volts!

    Wiring:

    ATTENTION!!! Signal lines must not be crossed!!

    6.3 Power Supply Wiring Power must be supplied to the SI unit and to the solenoid valves. Individualor common 24 DCV supply can be used (see also Sec. 6.1).

    1. 24 DCV for solenoid valve (max. 1.5 A)Attach to terminals marked "SOLENOID".(Note: It is possible to employ a switch

    for safety lockout on solenoidpower supply).

    2. 24 DCV for serial interface unit (max. 0.1 A)Attach to terminals marked "SIU".

  • 13

  • 6. Wiring / Installation

    6.4 Line Termination

    6.4.1 Line Termination Both ends of the bus cable must have a terminating resistor Rt'according to DIN 19245,Line Type B: If the transmission line suggested in the DIN 19245 / part 1 (line B, see Sec.

    6.5, Bus Cable) is used, termination of the line must be accomplished asfollows:

    14

  • 6. Wiring / Installation

    6.4.2 Line Termination according Both ends of the bus cable must have a terminating resistor Rt'to PROFIBUS-DP, LineType A: The following termination combination is defined for connections of line type

    A (see Sec. 6.5, Bus Cable) with a higher impedance characteristic:

    15

  • 6. Installation

    6.5 Bus Cable: A shielded twisted pair cable must be used.

    Line type A is used in order to obtain the increased transmission length (for PROFIBUS-DP)compared to DIN 19245.

    Parameter Line A Line B PROFIBUS-DP DIN 19245 part 1

    Impedance: 135 165 ohm 100 120ohm(3 20 MHz) (f > 100 kHz)

    Capacitance: < 30 nF/km < 60 nF/kmLoop Resistance: < 110 QJkm < 160 DJkmCore Diameter: > 0,64 mm > 0,53 mmCore-Cross Section: > 0,34 MM2 > 0,22 MM2

    Depending on the requirements for the connection, line A or line B can be used forPROFIBUS-DP. The following table contains a list of individual transmission rates andcorresponding line lengths with respect to Baud rates:

    Baud rate(kB!t/s) 9,6 19,2 93,75 187,5 500LengthLine A 1200 m 1200 m 1200 m 11000 m400 mLengthLine B 1200 m 1200 m 1200 m 600 m 200 m

    The values given in the standard DIN 1925 part 1 are applicable for branch cabling of both linetypes and transmission rates of up to 500 kBit/s.

    Note Contrary to EIA 485 definitions, practice has shown that longer branch cabling are possible, if thesum of cable capacitance (C - stges) of all branch cabling in relation to the transmission ratedoes not exceed the following:C-stges

  • 16

  • 7. Information for Programming

    7.1 PROFIBUS Layer-7 Output data is transmitted to index 50 via a write request. Output data canAccess (FMS) be retransmitted using a read request.

    Apart from the object index 50 for output data there is a second object index 51 -whichenables the user to predetermine a certain default configuration for the valve terminalshould a connection error occur.

    The time interval for the connection verification is stored in object index 49 (Unsigned16). By entering 0, the connection verification is switched off. The unit of the time intervalto be stored is 10 msec. Thus, if the value 1000 is written to index 49, the slave checksevery 10 seconds to see if the Master has an index 51 connection error. If the masterdoes not have writing access during the defined interval, the default configuration onindex 51 is then transmitted to the valves. The connection verification can be deactivatedafter the module has been turned on (object 49 receives 0).

    After activation, the PROFIBUS protocol works with the default bus parameters definedin the PROFIBUS-profile sensor technology/actuator technology. The objects index 40and index 41 are used to optimize these bus parameters; data can be read from themand written to them by the master.

    Most of the following data is stored on the EPROM and must be manually set toconfigure the PROFIBUS-network.

    7.1.1 Bus Parameters: Default values are used as defined in the PROFIBUS-profile sensortechnology/actuator technology.

    Parameter Symbol ValveRedundancy medium red noTransmission Rate baud rate adjustable 9,6 ....500 kBd

    (kBd) 9,6 19,2 93,75 187,5 500 Target Rotation Time TTR (Bit) 10000 15000 30000 50000 100000

    Slot-Time TSL (Bit) 120 200 500 15003000Min Station Delay min-TsDR (Bit) 30 60 125 250 500ResponderMax Station Delay max.-TsDR (Bit) 50 100 250 500 1000Responder

    The two parameters min-TSDR and TSL may be set as write requests via thePROFIBUS.

    ATTENTION!!! Time intervals must not be shorter than those defined for the master,otherwise interruption of the communication may occur!!

    The interval TSL must not be too short; processing of the access routinemust still be possible.

    The limit values of the bus parameter TSDR and TSL depend on the pre-setbaud rate:* 9,6 kBd: 1- 472 Bit* 19,2 kBd: 1- 945 Bit* 93,75 kBd: 1- 6143 Bit* 187,5 kBd: 1- 12287 Bit* 500 kBd: 1- 24575 Bit

    Limit values are not checked by the CPU. They must be correctly selected by the user.

  • 17

  • 7. Information for Programming

    7.1.2 Communication-Relation Communication with the application processes of the communication- List (CRL): partners is accomplished via logical channels. Logical channels are defined

    in the communication-relation-list during the project planning stage. Eachcommunication partner establishes such a list for his communication relation.

    Communication Type of Connection Local SAP UseReference2 acyclical, open 2 Read / Write

    connection3 acyclical, open 3 Read / Write

    connection4 cyclical, open 4 Read / Write

    connectionPROFIBUS layer-2 5 Read /.Write

    7.1.3 Static Object PROFIBUS protocol is an object-oriented mode of operation. Before communication via Directory the bus can take place, all communication objects and

    their meaning or structure must be defined for the communication system. This definition is carried out in the object

    directory.

    Index Object Access Internal Data Length UseCode Type (Byte)

    40 Var Read/Write Unsigned 16 2 Tsdr-min41 Var Read/Write Unsigned 16 2 Tsl42 Var Read/Write Unsigned 8 1 Configuration

    Byte49 Var Read/Write Unsigned 16 2 Time - Out50 Var Read/Write Unsigned 16 2 Valve Data

    VO - V1551 Var Read/Write Unsigned 16 2 Valve Data for

    ConnectionErrors

    7.1.4 Definition of Bit 0 (LSB)* not usedConfiguration Byte Bit 1 not used(index 42): Bit 2 not used

    Bit 3 not usedBit 4 not usedBit 5 not usedBit 6 layer 2 connection surveillance

    = 0: switched off= 1: switched off

    Bit 7 (MSB)** = 1: trigger off Reset

    *LSB - Least significant bit **MSB - Most significant bit

    18

  • 7.2 PROFIBUS Layer-7 Access (FMS) SINEC L2

    7.2.1 Commissioning of An example for commissioning the KLB for the PROFIBUS-PC-Card by TMG i-tec isPROFIBUS Master listed; it is part of the file of the test program .

    ;KLB for station 3;;KLB header 0 * 3000

    KR OAE Typ ATR PRSA PA PAE PDU-LENGTH FEATURES-SUPPORTED CS RC SA RA Cl PW GR5 MSAZ D 3 2 01280128 80 30 00 00 00 00 1 0 0 0 0 00 336 MSAZ D 3 3 01280128 80 30 00 00 00 00 1 0 0 0 0 00 33

    7 MSZY D 3 4 01280128 80 30 00 00 00 00 0 0 0 0 5 0033

    7.2.2 Operating on SINEC L2: Via SINEC L2 access the objects may be accessed by SINEC L2 telegrams. For this purpose, a SINEC L2 telegram must use a specifically implemented service access point (SAP).

    Local SAP Type of Connection Use5 SINEC L2 Access Read / Write

    The connection type SINEC L2 makes access to SIMATIC S5 possible via data transmission by direct access to layer-2 services. Programming of the S5 communication processor is explained in the CP 5430 Manual. (chapter10). The blocks to be transmitted consist of data and a header. Transmission between S5 and

    CP 5430 is carried out via handling modules; data is stored on data modulesand can be written to them or read from them by the STEP 5 program.

    7.2.3 Operation on SINEC L2- Access to objects via SINEC L2 telegrams is established by connectingCyclic Peripherals: type L2-cyclic peripherals. For this purpose, a specifically implemented

    service access point (SAP) must be used for different objects.

    Local SAP Type of Connection Use6 SINEC L2 Read / Write7 SINEC L2 Cyclic Peripherals Index 42 Read / Write8 SINEC L2 Cyclic Peripherals Index Read / Write9 SINEC( L2 Cyclic Peripherals Index 51 Read / Write

    By means of the connection type SINEC L2-cyclic peripherals and a correspondingprogramming of the CP 5430 (see Manual, chap. 9) PROFIBUS station data can directlybe written and read from the outputs. The peripheral byte that is used for writing and - ifapplicable - reading must be reserved for cyclic peripherals (CP) by the COM 5430software as either output area or output and input area. To avoid overlapping, eachparticipant must be assigned an individual byte. Transmitted and received data can beedited by means of the reserved input or output byte with STEP 5 commands.

    19

  • 7.3 PROFIBUS-DP (SINEC L2-DP)

    The SI unit was conceived as passive node (slave) in the L2-DP. The station address canbe selected from 3 ... 124; (hexadecimal 3h ... 7Ch).

    The master sends command data to a 4-byte data field that is transmitted in one messageto the valve manifold. To check the transmission, this data package is re-transmitted to themaster in the same cycle.

    Diagnostic is not supported, since the valve manifold is not capable of detecting valveerrors.

    7.3.1 Use SAPS: The following SAPs are used if the SINEC Q2 protocol is used:

    Use SAPSINEC L2 DP (Read Configuration) 59SINEC L2 DP (Read Diagnosis) 60SINEC L2 DP (Write Parameters) 161SINEC L2 DP (Write Configuration) 62SINEC L2 DP (Read/Write Data) NIL

    7.3.2 Occupancy of Pin The following pin connection codes are used, individual bytes are given in the table:Connections:

    Connection Code Use AccessNo.0 009 Valves 0 ..7 Read1 009 Valves 8 ...15 Read2 009 Valve Data for Error 0 7 Read3 009 Valve Data for Error 8...15 Read4 017 Valve 0 ...7 Write5 017 Valve 8 ...15 Write6 017 Valve Data for Error 0 ...7 Write7 017 Valve Data for Error 8 ...15 Write

    These pin connection configuration codes must be entered in the same order by the userduring programming with a PC and COM ET200.

    Programming of the valve station follows the same programming technique of the Siemensunit ET200 V.

    The initialization of the valve station with the initialization software COM ET200 is the sameas the initialization of the Siemens unit ET200 V. Station type: ET200 U.

    All other commissioning operations must be carried out according to L2 DP Masterdocuments (e.g. SIEMENS Dezentrales Peripheriesystem ET200 Handbuch Kapitel9/inbetriebnahme und Test).

    20

  • 7.3 PROFIBUS-DP (SINEC L2-DP)

    7.3.3 Scan times:

    Time for one complete data scan with one master and up to 30 valve modulesat 500 kBit/s.

    o PROFIBUS FMS Master PROFIBUS-PC-cardmade by TMG i-tec

    o PROFIBUS-DP Master IM 308 Bmade by SIEMENS

    21

  • 8. Troubleshooting

    22

  • Glossary

    PROFIBUS PROcess Field BUSField bus standard defined in the DIN 19245/part 1 and 2

    PROFIBUS-DP: Standard draft PROFIBUS-DP (DIN 19245 part 3), based on the ET 200 bySIEMENS (SINEC( L2-DP)DP -> Dezentrale Peripherie (Decentralised Peripherals).

    Repeater: Amplifier for bus signals necessary for coupling of bus lines.Passive node (Slave): Is only allowed to transmit data after request from an active node (master).

    CRL: Communication Relation ListContains data of planned connections.

    CR: Communication ReferenceCode for addressing of connections.

    Index: Code for addressing of an object.

    SAP: Service Access PointLogical interface of a communication connection.

    Read / Write: Service functions used to carry out operations on objects.

    OD: Object DirectoryList of defined objects with data on structure and data type; Directory of allaccessible objects.

    Connection Surveillance: Automatically checking the correct function of a connection regardless oftransmitted data. (See OD/index 49 Time - Out Connection SurveillanceLayer 7).

    FMS: Fieldbus Message SpecificationInterface connection to application process with a variety of applicationservices used for accessing communication objects of an applicationprocess.

    Layer 7: Application protocol comprising communication functions for the user.Defined by FMS.

    Layers 1 and 2: Specification of transmission medium, physical and electrical interfaceproperties, bus access procedure and processing of layer-2 services withtheir respective transmission protocols and telegrams.

    Hamming Distance: Indication of the degree of data distortion that is still recognized aserroneous. HD 4 is achieved by application of the regulations given in theinternational standard IEC 870-5-1 (selection of specific telegram start andstop signs, data synchronization, parity bit and control byte).

  • 23