Docsity

SIMATIC NET DP/RS 232C Link, Notas de estudo de Cultura

Pré-visualização parcial do texto

Baixe SIMATIC NET DP/RS 232C Link e outras Notas de estudo em PDF para Cultura, somente na Docsity!

SIMATIC NET

DP/RS 232C Link

User Description Date 10/20/

6FKQLWW6WHOOHQ&HQWHU '356&/LQN

Page 4 Release: 1.5 8VHU'HVFULSWLRQ

10/99 Copyright (C) Siemens AG 1999. All rights reserved.

Disclaimer of liability Although we have checked the contents of this publication for agreement with the actual hardware and software, responsibility for complete agree- ment cannot be accepted. The information in this document is reviewed at regular intervals and necessary corrections included in later releases. Your suggestions are welcome.

Copyright Copyright (C) Siemens AG 1999. All rights reserved Passing on of this document, duplication, utilization and revelation of its contents is prohibited unless express permission is granted. Violations will be subject to damages. All rights reserved, particularly in the event a pat- ent is granted or a utility model is registered.

Subject to change without prior notice

'356&/LQN 6FKQLWW6WHOOHQ&HQWHU

8VHU'HVFULSWLRQ Release: 1.5 Page 5

Copyright (C) Siemens AG 1999. All rights reserved. 10/

&RQWHQW

'DWD&RPPXQLFDWLRQ 
3RVVLEOH'DWD/HQJWKV 
%RRWLQJ3KDVH 
3URFHGXUH6SHFLILFDWLRQV 
'DWD&RPPXQLFDWLRQ 

6.2.1 Introduction of Data Communication by the Low-Priority Station 14 6.2.2 Conflicts 15 6.2.3 Introduction of Data Communication by the High-Priority Station 15

$GGUHVV6HWWLQJ 
3OXJ&RQQHFWRU 

10.2.1 Plug Connector to External Device 18 10.2.2 PROFIBUS-DP Plug Connector 18 10.2.3 Power Supply 19 10.2.4 Shield Termination 19

6HWXS*XLGHOLQHV  10.3.1 Mounting the Interface Module 19 10.3.2 Wiring 20 10.3.3 Cabling, Shielding and Measures against Interference Voltage 25

'356&/LQN 6FKQLWW6WHOOHQ&HQWHU

8VHU'HVFULSWLRQ Release: 1.5 Page 7

Copyright (C) Siemens AG 1999. All rights reserved. 10/

1RWHVRQ&(6HDORIWKH,QWHUIDFH

(8JXLGHOLQHV The following information applies to the interface described in this manual.

RQ(0&((&

Products bearing the CE seal meet the requirements of EU guidelines 89/336/EEC on electromagnetic compatibility and the harmonized European standards con- tained therein. The EU declarations of conformity are available at the following address for viewing by responsible authorities in accordance with article 10 of the above stated EU guidelines.

Siemens Aktiengesellschaft Bereich Antriebs-, Schalt- und Installationstechnik ASI 2 Postfach 1954 D-92220 Amberg

$SSOLFDWLRQDUHD The interface modules are designed for use in industrial applications and meet the

following requirements.

$SSOLFDWLRQ$UHD 5HTXLUHPHQWVRQ

,QWHUIHUHQFH(PLVVLRQ ,QWHUIHUHQFH,PPXQLW\

Industry EN 50081-2 : 1993 EN 50082-2 : 1995

When individual approval is granted, the interface module can also be used in resi- dential areas (e.g., residential, business and commercial zones and small busi- nesses).

$SSOLFDWLRQ$UHD 5HTXLUHPHQWVRQ

,QWHUIHUHQFH(PLVVLRQ ,QWHUIHUHQFH,PPXQLW\

Residential areas Individual approval EN 50082-1 : 1992

Individual approval must be obtained from an appropriate authority or inspection office. In Germany, this document can be obtained from the Bundesamt für Post und Telekommunikation and its branches.

$GKHUHQFHWR The interface module complies with the requirements when the following

VHWXSJXLGHOLQHV guidelines are adhered to.

  1. Setup guidelines for installation and operating contained in the operating in- structions
  2. The following rules covering the installation of the device and work on switching cabinets

,QVWDOODWLRQ Interface modules must be installed in electrical equipment rooms or in closed housings (e.g., control boxes of metal or plastic). In addition, the device and the metal control box or at least the top hat rail (plastic box) snapped onto the interface must be grounded.

:RUNRQVZLWFKLQJ To protect the modules from discharge of static electricity, personnel must FDELQHWV discharge themselves electrostatically before opening the switching cabinets or control boxes.

6FKQLWW6WHOOHQ&HQWHU '356&/LQN

Page 8 Release: 1.5 8VHU'HVFULSWLRQ

10/99 Copyright (C) Siemens AG 1999. All rights reserved.

1RWHVIRUWKH0DQXIDFWXUHURI0DFKLQHV

,QWURGXFWLRQ Since the DP/RS232 interface is not a machine in the sense of the EU guidelines, it

does not require a declaration of conformity in accordance with EU guideline 89/392/EEC on machines.

(8JXLGHOLQHV

RQPDFKLQHV

((& EU guideline 89/392/EEC on machines covers the requirements for machines. A

machine is defined as an entity of connected parts or devices. See also paragraph 3.1 of EN 292-1.

Since the interface is part of the electrical equipment of a machine, the manufac- turer of the machine must include it in the declaration of conformity procedure.

6FKQLWW6WHOOHQ&HQWHU '356&/LQN

Page 10 Release: 1.5 8VHU'HVFULSWLRQ

10/99 Copyright (C) Siemens AG 1999. All rights reserved.

7KH6\VWHP

 'DWD&RPPXQLFDWLRQ

The PROFIBUS master sends the output data cyclically to the gateway. The gateway compares the data received from the master with the previous telegram. When changes are detected, the gateway sends the data to the external device in accordance with the selected procedure. When no changes are detected, the telegram is not sent to the external device (i.e., each telegram is only sent once to the external device). The external device responds in accordance with procedure conventions. The gateway always sends the data received from the external device to the master without changes. The gateway writes the data received from the external device in the internal RAM of the SPC3. The updated data are transferred during the next polling cycle with the gateway.

$OOGDWDDUHWUDQVIHUUHGLQERWKGLUHFWLRQVE\WKHJDWHZD\ZLWKFRQVLVWHQF\7KHPD[LPXPOHQJWK
RIFRQVLVWHQWGDWDPXVWEHDGKHUHGWRGXULQJGDWDFRPPXQLFDWLRQEHWZHHQWKHPDVWHUDQGWKH
&387KLVLVXVXDOO\GHSHQGHQWRQWKHPDVWHULQWHUIDFHDQG&38EHLQJXVHG

Construction of data:

7ULJJHUE\WH %\WH
1XPEHURIFKDUDFWHUV %\WH

Userdata Bytes

Triggerbyte and Number of characters are only present when the corresponding flag is set.

'356&/LQN 6FKQLWW6WHOOHQ&HQWHU

8VHU'HVFULSWLRQ Release: 1.5 Page 11

Copyright (C) Siemens AG 1999. All rights reserved. 10/

Master Gateway external device

Data telegram 1

Response to telegram 1

Send telegram 2 to the external device

free flowing data from the external device

Data telegram 1

Response to telegram 1

Data telegram 2

Response to telegram 2

Data telegram 2

Response to telegram 2

Send telegram 1 to the external device

free flowing data from the external device

)LJXUH'DWDFRPPXQLFDWLRQ

'356&/LQN 6FKQLWW6WHOOHQ&HQWHU

8VHU'HVFULSWLRQ Release: 1.5 Page 13

Copyright (C) Siemens AG 1999. All rights reserved. 10/

7KH7ULJJHUE\WH

As the data transmission on PROFIBUS is done cyclically the gateway has to recognize when new data should be transferred via the serial interface. Normally this is done by comparing the internal data with the new received data from PROFIBUS. In some cases this procedure doesn´t work, f.e. when the same data should be send twice or more. The user can influence this behaviour by adjusting the triggerbyte..In this mode the data is only send when the triggerbyte changes. In the normal mode the program in the gateway cannot detect whether the gateway has received several same telegrams. But when the trigger byte mode is switched on the gateway increments the triggerbyte at anytime it has received a new telegram. When the trigger byte mode is switched on it is always the first byte in the data unit.

If the Send-Ready-Trigger is used, the lower 7 bits of the Triggerbytes in the input-data is used like described above However the MSB toggles each time a send-telegram has finished.

$GMXVWLQJWKH/HQJWKRIWKH6HQG'DWD

The meaning of one bit in the flags register is to tell the fuser programm in the gateway whether the length of the data to be send is included in the data unit. The gateway will only send as much data as it is defined. This mode only makes sense in combination with the trigger byte. In the receive direction the gateway stores the number of received characters in this byte.

6FKQLWW6WHOOHQ&HQWHU '356&/LQN

Page 14 Release: 1.5 8VHU'HVFULSWLRQ

10/99 Copyright (C) Siemens AG 1999. All rights reserved.

7KH5'ULYHU

The 3964 driver package is used to transfer data between 2 serial devices. To resolve initialization conflicts, one partner must have high priority and the other low priority.

The interface consists of 3 parts.

  • The initialization part
  • The cyclical part
  • The functions in the interrupt handlers
 3URFHGXUH6SHFLILFDWLRQV

The telegram format is described below.

STX, data, DLE, ETX, BCC (1 start bit, 8 data bits, 1 stop bit, even parity)

  • The received user data are transferred in both directions without changes (i.e., transparent).
  • Data blocking is not provided.
  • The user data length is restricted to 224 bytes per telegram.
  • Communication is always performed between high and low-priority communication partners.
 'DWD&RPPXQLFDWLRQ
 ,QWURGXFWLRQRI'DWD&RPPXQLFDWLRQE\WKH/RZ3ULRULW\6WDWLRQ

When the low-priority station receives an STX in response to an STX, it interrupts its request to send, as- sumes receiving mode, and acknowledges the received STX with DLE.

+LJK3ULRULW\6WDWLRQ /RZ3ULRULW\6WDWLRQ
STX
STX

Station assumes receiving mode. High-priority station wants to send too.

STX DLE Data, DLE, ETX, BCC DLE positive acknowledgment or NAK negative acknowledgment

A DLE in the data string is doubled and included in the checksum. BCC is calculated from the XOR linking of all characters.

6FKQLWW6WHOOHQ&HQWHU '356&/LQN

Page 16 Release: 1.5 8VHU'HVFULSWLRQ

10/99 Copyright (C) Siemens AG 1999. All rights reserved.

6WDUW(QG'HOLPLWHU3URWRFRO

Protocol: (< Start delimiter>), Net data, < End delimiter> (< 2nd End delimiter>)

The character in brackets are optional. The Start-End delimiter are transmitted transparently that means they have to be sttored iin the send buffer by the user.

Receive direction: When the start delimiter is switched on the gateway sxnchronises the gateway with this character. If not the gateway stores the next received character in the receive buffer. The telegram ends when the end delimiter is recognized. send direction: When the flag ´length byte´is set the required length is transmitted. If not the data is transmitted until the end delimiter is detected. The maximum data that can be transmitted always corresponds to the adjusted length in th configuration telegram.

$WWHQWLRQ

In this mode the timeout detection is active and aborts a receive-telegramm if the delay time is exired. This can be inhibited by switching off the timeout monitoring.

&KDUDFWHU'HOD\0RGH

no protocol

Receive direction: The received data are stored in the send buffer until the character delay time has run out. This time monitor- ing is adjusted in the parameterization telegram.

send direction: The data is transmitted transparently.

$WWHQWLRQ

In this mode the timeout monitoring must not be switched off!

1XPEHURI&KDUDFWHU3URWRFRO

The data are transferred transparently without time monitoring. The user specifies the data for the master. When changes are detected, these data are sent to the external device without monitoring. A response from the external device is also sent to the master unchanged. Any desired security mechanisms for user data must be provided by the user.

'356&/LQN 6FKQLWW6WHOOHQ&HQWHU

8VHU'HVFULSWLRQ Release: 1.5 Page 17

Copyright (C) Siemens AG 1999. All rights reserved. 10/

+DUGZDUH&RQQHFWLRQ6ZLWFKHVDQG/('

'HYLFH ,QWHUIDFH

 (^)     



 

$GGUHVV

(6 $$;$ [ [

 (^)      

 

9 

56&

352),%86'

DP / RS232C Link

     

*MMPPGG

€ Device-LED: green » Device is ready for operation

red » Device malfunction. No function possible off → Device is not turned on

Å Interface-LED: green » both Interfaces ok

yellow » Interface 1 unclear (PROFIBUS-DP) off » Interface 2 unclear (RS232C) red » both interfaces unclear

Ì Address-switch für PORFIBUS-DP (Address 0 ... 99)

˚ Labels

¯ Earth terminal for shield

˘ Power supply

Ó Interface 1: » PROFIBUS-DP SLQ68%'IHPDOH

¸ Interface 2: » RS232C SLQ68%'PDOH

'356&/LQN 6FKQLWW6WHOOHQ&HQWHU

8VHU'HVFULSWLRQ Release: 1.5 Page 19

Copyright (C) Siemens AG 1999. All rights reserved. 10/

 3RZHU6XSSO\

The device must be supplied with 24 V via a 4-pin, plug-in, screw-type terminal. The 24 V supply can be looped through.

Pin No. Name Function 1 P24 24 V supply voltage 2 P24 24 V supply voltage 3 M24 0 V supply voltage 4 M24 0 V supply voltage

 6KLHOG7HUPLQDWLRQ

The shield signal for the electronic circuit is connected to the top hat rail with the shied plate. For reasons of interference immunity, the shield signal for the cable shield is not connected to the shield signal of the elec- tronic circuit. It must be applied to the screw terminal on the front plate.

 6HWXS*XLGHOLQHV

 0RXQWLQJWKH,QWHUIDFH0RGXOH

Since the interface module has been developed for use in switching cabinets (IP20), it can only be secured on a standard rail (i.e., low top hat rail in accordance with EN 50022).

0RXQWLQJ

  • Hang the module in the top hat rail from the top.
  • Swing it down until the sliding switch on the module snaps in.
  • Other modules may be installed to the left and right of the interface module.
  • At least 5 cm of free space must be provided for heat dissipation above and below the module.
  • The standard rail must be connected with the equipotential bonding rail of the switching cabinet. The con- nection wire must have a cross section of at least PP.
  • A grounding terminal must be placed next to the interface so that the shield connection to the device with a flexible wire PP can be kept as short as possible.

'HPRXQWLQJ

  • Disconnect the power and signal lines first.
  • Then push down the sliding switch on the module with a screwdriver.
  • Swing out the interface from the top hot rail.

6FKQLWW6WHOOHQ&HQWHU '356&/LQN

Page 20 Release: 1.5 8VHU'HVFULSWLRQ

10/99 Copyright (C) Siemens AG 1999. All rights reserved.

)LJXUH0RXQWLQJDQGGHPRXQWLQJ

Hutschiene

Gerät

Anschaltungsbaugruppe

Schieber

Erdungsklemme

210 34 5678 9 210 34 5678 9

6,(0(16 '356&/LQN

$GGUHVV

'HYLFH ,QWHUIDFH

 (6$$;$ [  [ *

9 

352),%86'

56&

     

9HUWLFDOLQVWDOODWLRQ

The standard rail can also be mounted vertically so that the interface module is mounted at an angle of 90°. Since heat dissipation through convection is less when this type of mounting is used, the permissible ambient temperature is reduced to a maximum of 40° C.

 :LULQJ

 &RQQHFWLRQ7HFKQLTXHV

The following connection techniques must/can be used to wire the interface module.

  • Standard screw-type connection (Grounding terminal)
  • Plug-in terminals (Connection terminals for the power supply)
  • 9-pin sub D plug-in connector (PROFIBUS-DP and 3WN6 connection)

a) One line can be connected per terminal point for the standard screw-type terminals. A screwdriver with a blade width of 3.5 mm is recommended to tighten the screws. Permissible cross sections of the line:

  • Flexible line with core end bushing: 1 x 0.25 to 1.5 mm 2
  • Solid line: 1 x 0.25 to 1.5 mm 2 Turning moment: 0.5 to 0.8 Nm

b) The plug-in terminal strips are a combination of the standard screw-type connection and the plug-in con- nector. The plug-in connection portion is coded so that it cannot be inserted incorrectly.

c) The 9-pin sub D plug-in connectors are secured with two "4-40-UNC" thread screws. A screwdriver with a blade width of 3.5 mm is recommended to tighten the screws. Turning moment: 0.2 to 0.4 Nm

 56&&RPPXQLFDWLRQ,QWHUIDFH

This interface is equipped with a 9-pin sub D pin strip on the interface.

  • Connect the connector of your RS 232C line to the 9-pin sub D pin strip labeled 56&.