Sunteți pe pagina 1din 35

IM-PR1

TECHNICAL INSTRUCTION MANUAL

Serial Interface Unit IN313-PR1


Profibus Compatible

Table of Contents
1
1.1
1.2

System Overview
Profibus
Serial Interface

Page
2
2
2

2.
2.1
2.2
2.3

System Structure
Schematic Illustration
Applicable PLC's
Applicable Series of Solenoid Valves/Manifolds

3-5
3-4
5
5

3.
3.1
3.2
3.3

Specifications (IN313-PR1)
General Specification
General Specification PROFIBUS
General Specification SI-unit

6
6
6
6

4.
4.1
4.2

Structure of Parts
Designation of Each Section
LED Indication

7-8
7
8

5.
5.1
5.2
5.3

Switch Settings
Protocol
Address
Data Rate (baud rate)

9-13
9
9
10

6.
6.1
6.2
6.3
6.4
6.4.1
6.4.2
6.5

Wiring / Installation
Terminal Block
Bus Connection
Power Supply Wiring
Line Termination
Line Termination according to DIN 19245
Line Termination according to PROFIBUS-DP
Bus Cable

11 -16
11
12-13
13
14-15
14
15
16

7.
7.1
7.1.1
7.1.2
7.1.3
7.1.4
7.2
7.2.1
7.2.2
7.2.3
7.3
7.3.1
7.3.2
7.3.3

Programming Guide
PROFIBUS Layer 7
Bus Parameters
Communication- Relation -List
Static Object Directory
Definition of Configuration Byte
PROFIBUS Layer-7 Access SINEC -L2
Commissioning o f PROFIBUS Master
Operating on SINEC -L22
Operation on SINEC -L2 Cyclic Peripherals
PROFIBUS-DP (Sine -L2-DP)
Use SAP's
Occupancy of Pin Connections
Scan Times

17-18
17
17
18
18
18
19
19
19
19
20
20
20
21

8.

Troubleshooting

22

9.

Glossary

23

SINEC is a registered trademark of Siemens AG.

1. System Overview
1.1 System-Description

The PROFIBUS protocol, according to DIN 19245 part 1 and 2, is an inter-operable and
open Bus -System. The PROFIBUS master device can be either a PLC or PC. Many
different versions of these products are available from a wide variety of manufacturers.
Additionally, subset systems with the PROFIBUS protocol according to DIN 19245 are
also available. These subset systems can be from independent manufacturers or
proprietary from a specific manufacturer.
e.g.
Independent from a manufacturer:
PROFIBUS-DP
Specific manufacturer:
Siemens company:

SINEC L2-DP
SINEC L2-FMS
SINEC L2-TF
SINEC L2 cyclical periphery

It is possible to control up to 32 active or passive nodes (122 nodes with


max. 3 repeater).
The PROFIBUS protocol allows for different transmission speeds depending
upon 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 the
PROFIBUS 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 pre
wired solenoid connections. It is only necessary to make the communication
and power wire connections to the SI unit interface terminal block.
It is necessary to set the address and the appropriate transmission protocol
with the DIP switches.
It is not necessary to set the transmission speed because the SI- unit
selects the correct transmission speed automatically. When the additional
index 51 is programmed, the valves switch to a pre-defined position in the
event of a bus error.

2. System Construction

3. Specifications
3.1 General Specifications

Operating ambient
temperature
Oper. ambient humidity
Vibration resistance
durability
Malfunction

Impact resistance
Noise resistance

0 - 55' C (max. 8 points at ON)


0 - 560 C (app points at ON)
10 - 90% RH (no dew formation)
Smaller value in either of single amplitude 0.75mm
in 10 Hz - 150 Hz acceleration 1 OG. 4 sweeps
in SWEEP TIME 8 min.
Smaller value in either of single amplitude 0.50mm
in 10 Hz - 150 Hz or acceleration 7G. 4 sweeps in
SWEEP TIME 8 min.
Peak acceleration 30G 3 directions 3 times
1000 Vp-p pulse with 100 ns -1 us leading 1 ns

pulse
Dielectric strength
Insulation resistance
Operating atmosphere

3.2

General Specifications,
PROFIBUS Protocol

Mode of the SI-unit


Max. No. of participants
Transmission speed

Max. Bus Length

Medium (cable)

Bus structure

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


terminal and housing
>1 10 M ohm (at 500 V DC megger)
between external terminals and housing
No corrosive gas or heavy dust

The CPU is a passive node (Slave)


32 active or passive nodes
(122 nodes with repeater)
depending on the bus length
up to 650 ft - 500 Kbit/s
up to 2000 ft - 187,5 Kbit/s
up to 4000 ft - 9,6 Kbit/s
up to 4000 ft - 19,2 Kbit/s
up to 4000 ft - 93,75 Kbit/s
max. 4000 ft
depending on the transmission
speed (EIA RS422A)
shielded twisted pair cable impedance
level 100 to 130L2
min. 0.22 MM2 (24 AWG 4)) , about 60pF/m
Termination resistors, on both ends
of the bus network.

Contrary to EIA 485 definitions, practice has shown that longer branch
cabling are possible if the sum of cable capacitance (C-stges) of all branch
cabling 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 as
part of the total line length. The number of bus nodes without repeater is limited
to a maximum of 32 active/passive stations. With repeater, a maximum of 122
stations is possible.

3.3

General Specifications,
SI-unit

Power
supply

for solenoid valve


24 V DC 10%
for unit internal 24 V DC 10 %

Current
consumption
Temperature

for solenoid valve max. 1.5 A


for unit internal max. 75 mA
0 - 500 C

4. Structure of Parts

4. Structure of Parts

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 bit
DIP switch.
With DIP switch 1 (bit 1) choose the Bus protocol.
DIP switch 1
OFF

ON

5.2 Address

BUS-protocol
PROFIBUS, SINECOL2-FMS,
SINEC L2-TF, SINEC L2 cyclic
peripherals
PROFIBUS-DP, SINEC L2-DP up to 500 kBit/s

With the power supply OFF, open the protective switch cover of the "ADDRESS" section on the
top 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-protocol

1 ....126

PROFIBUS, SINEC L2-FMS,


SINEC L2-TF, SINEC L2 cyclic
Peripherals
PROFIBUS-DP, SINEC8L2-D-P

3 ....124

5. Switch Settings
5.3 Data Rate (baud rate)

It is not necessary to set the transmission speed (baud rate). The SI unit will
automatically set the correct baud rate according to DIN 19245 part 1 and
part 2 .

Transmission speed

Based on the bus length


up to 650 ft - 500 Kbit/s
up to 2000 ft - 187,5 Kbit/s
up to 4000 ft - 9,6 Kbit/s
up to 4000 ft - 19,2 Kbit/s
up 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 the
European standards. Example: EN60204 part 1.
Remove the IN313-PR1 unit by loosening its 4 mounting screws and pulling it straight
out to disconnect the interface plug. Be careful not to drop the unit or to damage the
interface plug.

6.1 Terminal Block

11

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

6. Wiring / Installation
6.2 Bus Connection

The connection of the cable should be as shown below. (See also Sec. 2.1
schematic 1 Illustration).
Also refer to the specific PLC owner's manual and to the DIN standard 19245
part 1 and part 2.
1. Make all connections with power OFF.
2. Avoid proximity of cable to high voltage lines and equipment
3. 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 the


D-Sub Connector:

Wiring:

ATTENTION!!!

12

Signal lines must not be crossed!!


The shield of the cable must be grounded at least at one point within the system.

6. Wiring / Installation
6.2

Bus Connection
(continuation)

The potential difference between the data reference potential DGND and all
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. Individual
or 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 solenoid
power 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
according to DIN 19245,
Line Type B:

14

Both ends of the bus cable must have a terminating resistor Rt'
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 as
follows:

6. Wiring / Installation
6.4.2

15

Line Termination according


to PROFIBUS-DP, Line
Type A:

Both ends of the bus cable m ust have a terminating resistor Rt'
The following termination combination is defined for connections of line type
A (see Sec. 6.5, Bus Cable) with a higher impedance characteristic:

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
PROFIBUS-DP

Line B
DIN 19245 part 1

Impedance:

135
165 ohm
(3
20 MHz)
< 30 nF/km
< 110 QJkm
> 0,64 mm
> 0,34 MM2

100
120ohm
(f > 100 kHz)
< 60 nF/km
< 160 DJkm
> 0,53 mm
> 0,22 MM2

Capacitance:
Loop Resistance:
Core Diameter:
Core-Cross Section:

Depending on the requirements for the connection, line A or line B can be used for
PROFIBUS-DP. The following table contains a list of individual transmission rates and
corresponding line lengths with respect to Baud rates:
Baud rate
(kB!t/s)
Length
Line A
400 m
Length
Line B

9,6

19,2

93,75

187,5

1200 m

1200 m

1200 m

11000 m

1200 m

1200 m

1200 m

600 m

500

200 m

The values given in the standard DIN 1925 part 1 are applicable for branch cabling of both line
types 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 the
sum of cable capacitance (C - stges) of all branch cabling 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 and 19,2 Kbit/s.
Please note that the sum of all branch cabling lengths must be included as a part of the total line
length. The number of bus nodes without repeater is limited to a maximum of 32 active/passive
stations. With repeater, a maximum of 122 stations is possible.

Baud rate

Max. Distance between


2 Stations PROFIBUS-DP
Cable Type A
(with 3 repeater)

Max. Distance between


2 Stations DIN 19245
Cable Type 13
(with 3 repeater)

9,6 kBit/s
19,2 kBit/s
93,75 kBit/s
187,5 kBit/s
500 kBit/s

16000 ft
116000 ft
16000 ft
10000 ft
4000 ft

16000 ft
16000 ft
16000 ft
16000 ft
2000 ft

Cable Type B:
BELDEN
Type: "Low Capacitance Cable"
RS 485 9841
Type: SUMITOMO
RS 485 9841

Cable Type A:
SIEMENS
Type: SINEC R 1 9 Buskabel
Part No: 6XV 1830-OA H 10

16

7. Information for Programming


7.1

PROFIBUS Layer-7
Access (FMS)

Output data is transmitted to index 50 via a write request. Output data can
be retransmitted using a read request.
Apart from the object index 50 for output data there is a second object index 51 -which
enables the user to predetermine a certain default configuration for the valve terminal
should a connection error occur.
The time interval for the connection verification is stored in object index 49 (Unsigned
16). By entering 0, the connection verification is switched off. The unit of the time interval
to be stored is 10 msec. Thus, if the value 1000 is written to index 49, the slave checks
every 10 seconds to see if the Master has an index 51 connection error. If the master
does not have writing access during the defined interval, the default configuration on
index 51 is then transmitted to the valves. The connection verification can be deactivated
after the module has been turned on (object 49 receives 0).
After activation, the PROFIBUS protocol works with the default bus parameters defined
in the PROFIBUS-profile sensor technology/actuator technology. The objects index 40
and index 41 are used to optimize these bus parameters; data can be read from them
and written to them by the master.
Most of the following data is stored on the EPROM and must be manually set to
configure the PROFIBUS-network.

7.1.1 Bus Parameters:

Default values are used as defined in the PROFIBUS-profile sensor


technology/actuator technology.

Parameter

Symbol

Valve

Redundancy
Transmission Rate

medium red
baud rate
(kBd)
TTR (Bit)
TSL (Bit)

no
adjustable 9,6 ....500 kBd
9,6 19,2 93,75 187,5 500

min-TsDR (Bit)

30

60

max.-TsDR (Bit)

50

100

Target Rotation Time


Slot-Time
3000
Min Station Delay
Responder
Max Station Delay
Responder

10000 15000 30000

120

50000

200

125
250

500

100000

1500

250

500

500

1000

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

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 routine
must still be possible.
The limit values of the bus parameter TSDR and TSL depend on the pre-set
baud 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
- List (CRL):

Communication with the application processes of the communication


partners is accomplished via logical channels. Logical channels are defined
in the communication-relation-list during the project planning stage. Each
communication partner establishes such a list for his communication relation.

Communication
Reference

Type of Connection

acyclical, open
connection
acyclical, open
connection
cyclical, open
connection
PROFIBUS layer-2

3
4

7.1.3 Static Object

Read / Write

Read / Write

Read / Write

Read /.Write

This definition is carried out in the object

Index Object Access


Code

Internal Data
Type

40
41
42

Var
Var
Var

Read/Write
Read/Write
Read/Write

Unsigned 16
Unsigned 16
Unsigned 8

2
2
1

49
50

Var
Var

Read/Write
Read/Write

Unsigned 16
Unsigned 16

2
2

51

Var

Read/Write

Unsigned 16

Bit 0 (LSB)*
Bit 1
Bit 2
Bit 3
Bit 4
Bit 5
Bit 6

Bit 7 (MSB)**

Length
(Byte)

not used
not used
not used
not used
not used
not used
layer 2 connection surveillance
= 0: switched off
= 1: switched off
= 1: trigger off Reset

*LSB - Least significant bit


**MSB - Most significant bit

18

Use

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.
directory.

7.1.4 Definition of
Configuration Byte
(index 42):

Local SAP

Use
Tsdr-min
Tsl
Configuration
Byte
Time - Out
Valve Data
VO - V15
Valve Data for
Connection
Errors

7.2 PROFIBUS Layer-7 Access (FMS) SINEC L2


7.2.1 Commissioning of
PROFIBUS Master

An example for commissioning the KLB for the PROFIBUS-PC-Card by TMG i-tec is
listed; it is part of the file <pbc.klb> of the test program <constar.exe>.
;KLB for station 3
;
;KLB header
0*
3000

7.2.2 Operating on SINEC L2:

CP 5430
and can be written to

7.2.3 Operation on SINEC L2Cyclic Peripherals:

KR OAE
5
6

Typ
MSAZ
MSAZ

MSZY D

ATR PRSA
D
D

PA
3
3

PAE
2
3

PDU-LENGTH
01280128
01280128

FEATURES-SUPPORTED
80 30 00 00 00 00
80 30 00 00 00 00

CS
1
1

RC
0
0

SA
0
0

RA
0
0

Cl
0
0

PW GR
00 33
00 33

01280128

80 30 00 00 00 00

0033

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

Use

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
is carried out via
handling modules;
data is stored on data modules
them or read from them by the STEP 5 program.
Access to objects via SINEC L2 telegrams is established by connecting
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

Use

6
7
8
9

SINEC L2
SINEC L2 Cyclic Peripherals Index 42
SINEC L2 Cyclic Peripherals Index
SINEC( L2 Cyclic Peripherals Index 51

Read / Write
Read / Write
Read / Write
Read / Write

By means of the connection type SINEC L2-cyclic peripherals and a corresponding


programming of the CP 5430 (see Manual, chap. 9) PROFIBUS station data can directly
be written and read from the outputs. The peripheral byte that is used for writing and - if
applicable - reading must be reserved for cyclic peripherals (CP) by the COM 5430
software as either output area or output and input area. To avoid overlapping, each
participant must be assigned an individual byte. Transmitted and received data can be
edited 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 can
be selected from 3 ... 124; (hexadecimal 3h ... 7Ch).
The master sends command data to a 4-byte data field that is transmitted in one message
to the valve manifold. To check the transmission, this data package is re-transmitted to the
master in the same cycle.
Diagnostic is not supported, since the valve manifold is not capable of detecting valve
errors.
7.3.1 Use SAPS:

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


Use
SINEC L2 DP (Read Configuration)
SINEC L2 DP (Read Diagnosis)
SINEC L2 DP (Write Parameters)
SINEC L2 DP (Write Configuration)
SINEC L2 DP (Read/Write Data)

7.3.2 Occupancy of Pin


Connections:

SAP
59
60
161
62
NIL

The following pin connection codes are used, individual bytes are given in the table:

Connection
No.
0
1
2
3
4
5
6
7

Code

Use

Access

009
009
009
009
017
017
017
017

Valves 0 ..7
Valves 8 ...15
Valve Data for Error 0 7
Valve Data for Error 8...15
Valve 0 ...7
Valve 8 ...15
Valve Data for Error 0 ...7
Valve Data for Error 8 ...15

Read
Read
Read
Read
Write
Write
Write
Write

These pin connection configuration codes must be entered in the same order by the user
during programming with a PC and COM ET200.
Programming of the valve station follows the same programming technique of the Siemens
unit ET200 V.
The initialization of the valve station with the initialization software COM ET200 is the same
as the initialization of the Siemens unit ET200 V. Station type: ET200 U.
All other commissioning operations must be carried out according to L2 DP Master
documents (e.g. SIEMENS Dezentrales Peripheriesystem ET200 Handbuch Kapitel
9/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 modules
at 500 kBit/s.

21

PROFIBUS FMS

PROFIBUS-DP

Master PROFIBUS-PC-card
made by TMG i-tec
Master IM 308 B
made by SIEMENS

8. Troubleshooting

22

Glossary
PROFIBUS
PROFIBUS-DP :

PROcess Field BUS


Field bus standard defined in the DIN 19245/part 1 and 2
Standard draft PROFIBUS-DP (DIN 19245 part 3), based on the ET 200 by
SIEMENS (SINEC( L2-DP)
DP -> Dezentrale Peripherie (Decentralised Peripherals).

Repeater:
Passive node (Slave):

Amplifier for bus signals necessary for coupling of bus lines.


Is only allowed to transmit data after request from an active node (master).

CRL:

Communication Relation List


Contains data of planned connections.

CR:

Communication Reference
Code for addressing of connections.

Index:

Code for addressing of an object.

SAP:

Service Access Point


Logical interface of a communication connection.

Read / Write:

Service functions used to carry out operations on objects.

OD:

Object Directory
List of defined objects with data on structure and data type; Directory of all
accessible objects.

Connection Surveillance:

Automatically checking the correct function of a connection regardless of


transmitted data. (See OD/index 49 Time - Out Connection Surveillance
Layer 7).

FMS:

Fieldbus Message Specification


Interface connection to application process with a variety of application
services used for accessing communication objects of an application
process.

Layer 7:

Application protocol comprising communication functions for the user.


Defined by FMS.

Layers 1 and 2:

Specification of transmission medium, p hysical and electrical interface


properties, bus access procedure and processing of layer-2 services with
their respective transmission protocols and telegrams.

Hamming Distance:

Indication of the degree of data distortion that is still recognized as


erroneous. HD 4 is achieved by application of the regulations given in the
international standard IEC 870-5-1 (selection of specific telegram start and
stop signs, data synchronization, parity bit and control byte).

23

S-ar putea să vă placă și