550 984 01

 

 

 

PD 667 Profibus - Slave configuration guide.

 

Index:

 

 

Danfoss VLT 2800.

Frequency converter from Danfoss that uses the ProfiDrive profile.

 

The file "da030404.GSD" has been used as a basis for this guide.

 

I/O data in ProfiDrive are named PPO objects. In ProfiDrive, 8 different PPOs are specified.

In ProfiDrive, the input and output arrays for a given PPO always have identical sizes.

 

 

PPO

Byte:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

Out

PCA

IND

PVA

CTW

MRV

 

 

 

 

 

 

 

 

In

PCA

IND

PVA

STW

MAV

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2

Out

PCA

IND

PVA

CTW

MRV

PCD 3 ... PCD 6

 

 

 

 

In

PCA

IND

PVA

STW

MAV

PCD 3 ... PCD 6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3

Out

 

 

 

CTW

MRV

 

 

 

 

 

In

 

 

 

STW

MAV

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

Out

 

 

 

CTW

MRV

PCD 3 ... PCD 6

 

 

 

 

In

 

 

 

STW

MAV

PCD 3 ... PCD 6

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

Out

PCA

IND

PVA

CTW

MRV

PCD 3 ... PCD 10

In

PCA

IND

PVA

STW

MAV

PCD 3 ... PCD 10

 

 

 

 

 

 

 

 

6

Out

 

 

 

CTW

MRV

PCD3...PCD4

 

In

 

 

 

STW

MAV

PCD3...PCD4

 

 

 

 

 

 

 

 

 

 

 

7

Out

 

 

 

CTW

MRV

PCD3 ... PCD8

 

In

 

 

 

STW

MAV

PCD3 ... PCD8

 

 

 

 

 

 

 

 

 

 

8

Out

 

 

 

CTW

MRV

PCD3 ... PCD10

In

 

 

 

STW

MAV

PCD3 ... PCD10

 

Only the data marked with grey are background is exchanged, in the PD 667 starting form input[1] / output[1].

Example:

If PPO5 is selected PCA is in Input[1] and Input[2].

If PPO6 is selected CTW is in Input[1] and Input[2]. 

 

CTW

Control word. Consists of 16 bits for direct control of VLT

STW

Status word. Consists of 16 bits for direct display of status

MRV

Main reference value. Normally the frequency set point

MAV

Main actual value. Normally the actual output frequency.

PCA,

IND,

PVA

Used as a "mailbox" system to read or write single data from the Master.

(Refer to Danfoss Profibus documentation for details)

PCD3

......

PCD10

Used for selectable read or write data parameters.

(Refer to Danfoss Profibus documentation for details)

 

 

 

Configuration:

 

Size

List (with module consistency)

InputSize

OutputSize

PPO1

2

243,241

12

12

PPO2

2

243,245

20

20

PPO3

1

241

4

4

PPO4

1

245

12

12

PPO5

2

243,249

28

28

PPO6

1

243

8

8

PPO7

1

247

16

16

PPO8

1

249

20

20

 

 

 

IdentNo:

1028  (0404 hex)

MaxTSDR:

15

Parameters.Size:

3

Parameters.List:

0,0,0

 

 

 

VLT 2800 notes:

 

Always refer to the appropriate Danfoss documentation. The below notes may apply differently to other versions of VLTs.

 

Slave address is set on the VLT display, parameter No.: 918. To activate a new slave address, the power must be removed and re-applied.

 

Parameter 502 to 508: Select different bus control options.

 

Parameter 512: Select between "ProfiDrive" or "FC control" layout for the 16 bits in control word and status word.

 

The "Start" key on the VLT must be pressed to enable control of the VLT by Profibus (Standby mode). Pressing the "Stop" key on the VLT switches to local control, and bit 9 in the STW "bus control" is reset.

 

Frequency set point (MRV) and actual frequency (MAV) is set and shown as a value 0..$4000 (Hex) where $4000 is the maximum permitted frequency.

$4000 is equal to 16384 decimal.

 

 

 

 

 

 

Danfoss VLT FC300.

Frequency converter from Danfoss that uses the ProfiDrive profile.

 

The file "DA02040A.GSD" has been used as a basis for this guide.

 

The FC300 and VLT 2800 share the same ProfiDrive layout, the same Configuration and Setup, except the FC300 has IDENT No.: = 1034  (040A Hex)

 

Please also be aware that FC300 menu items and number reference for VLT data is different to what is described in “VLT 2800 notes”.

 

 

 

FC300 Profibus terminal connection:

 

PD 667 “A” to terminal 63

PD 667 “B” to terminal 62

PD 667 “S” to terminal 66

 

 

 

 

Simatic PLC S7-300

Type "CPU313C-2DP"

 

The file "siem80D0.GSE" has been used as the basis for this guide

 

The Simatic Manager is used to configure the slave interface of the S7-CPU.

In the S7-CPU, the interface is set to slave mode and the selection of additional diagnostic features must be removed. This will set the slave interface to a fully passive state (no active functions).

Baud rate and slave address must be selected, and the required communication objects must be created. 

 

The configuration of input and output between the S7 and the PD 667 mush match.

 

Configuration of the PD 667: In the Configuration.List[1...n ] the number of required communication objects are listed. The sum of input and output sizes are calculated and entered into InputSize and OutputSize variables respectively.

 

In addition to the user configuration, this slave requires 3 configuration bytes for the system. These are the first 3 elements in the configuration list, and must always be "0". These 3 data items must be included when the configuration size variable is set. The system configuration does not influence the Input and output sizes. 

 

 

 

 

IdentNo:

32976  (80D0 hex)

MaxTSDR:

15

Parameters.Size:

3

Parameters.List:

0,0,0

 

 

Configuration:

 

Input to the PD 667  (match definitions of S7 Q area.):

Name

Size

Consistency

Identifier

hex

Identifier

decimal

Input

size

Master input (Slave Q)

1 byte

unit

0x10

16

1

Master input (Slave Q)

2 byte

unit

0x11

17

2

Master input (Slave Q)

2 byte

total length

0x91

145

2

Master input (Slave Q)

4 byte

unit

0x13

19

4

Master input (Slave Q)

4 byte

total length

0x93

147

4

Master input (Slave Q)

8 byte

unit

0x17

23

8

Master input (Slave Q)

8 byte

total length

0x97

151

8

Master input (Slave Q)

16 byte

unit

0x1F

31

16

Master input (Slave Q)

16 byte

total length

0x9F

159

16

Master input (Slave Q)

1 word

unit

0x50

80

2

Master input (Slave Q)

2 word

unit

0x51

81

4

Master input (Slave Q)

2 word

total length

0xD1

209

4

Master input (Slave Q)

4 word

unit

0x53

83

8

Master input (Slave Q)

4 word

total length

0xD3

211

8

Master input (Slave Q)

8 word

unit

0x57

87

16

Master input (Slave Q)

8 word

total length

0xD7

215

16

Master input (Slave Q)

13 word

unit

0x5C

92

26

Master input (Slave Q)

13 word

total length

0xDC

220

26

Master input (Slave Q)

16 word

unit

0x5F

95

32

Master input (Slave Q)

16 word

total length

0xDF

223

32

 

 

Output from the PD 667 (match definition of S7 I area.):

Name

Size

Consistence

Identifier

hex

Identifier

decimal

Output

size

Master output (Slave I)

1 byte

unit

0x20

32

1

Master output (Slave I)

2 byte

unit

0x21

33

2

Master output (Slave I)

2 byte

total length

0xA1

161

2

Master output (Slave I)

4 byte

unit

0x23

35

4

Master output (Slave I)

4 byte

total length

0xA3

163

4

Master output (Slave I)

8 byte

unit

0x27

39

8

Master output (Slave I)

8 byte

total length

0xA7

167

8

Master output (Slave I)

16 byte

unit

0x2F

47

16

Master output (Slave I)

16 byte

total length

0xAF

175

16

Master output (Slave I)

1 word

unit

0x60

96

2

Master output (Slave I)

2 word

unit

0x61

97

4

Master output (Slave I)

2 word

total length

0xE1

225

4

Master output (Slave I)

4 word

unit

0x63

99

8

Master output (Slave I)

4 word

total length

0xE3

227

8

Master output (Slave I)

8 word

unit

0x67

103

16

Master output (Slave I)

8 word

total length

0xE7

231

16

Master output (Slave I)

13 word

unit

0x6C

108

26

Master output (Slave I)

13 word

total length

0xEC

236

26

Master output (Slave I)

16 word

unit

0x6F

111

32

Master output (Slave I)

16 word

total length

0xEF

239

32

 

 

 

Example setup to read 208 byes in the PLC and write 224 bytes to the PLC:

Parameters.Size

3

Parameters.List

0,0,0

Configuration.Size

17

Configuration.List

0,0,0,95,95,95,31,95,95,95,111,111,111,111,111,111,111

Configuration.Inputsize

208

Configuration.outputsize

224

 

 

 

Simatic DP/DP Transceiver, aliasDP/DP Coupler

 

Version: Release 2

The file "si018070.GSE" has been used as the basis for this guide

 

The DP/DP Transceiver is used to exchange DP data between two Profibus Master systems.

 

Each master system runs independently, and are totally isolated from each other.

The DP/DP Transceiver has a slave address for each master. These slave addresses can be the same or different, as can the communication speed on each side.

 

When one master sends an output to the DP/DP Transceiver, the other master can read this as an input from the DP/DP Transceiver. The configuration of input and output must match, so that the size and order of output in one master matches the size and order of inputs in the other master, and vice versa.

 

 

 

The DP/DP Transceiver can transfer a maximum of 244 bytes in each direction.

 

IdentNo:

32880  (8070 hex)

MaxTSDR:

15

Parameters.Size:

8

Parameters.List[1]..[8]

0,0,0,5,129,0,0,0

Parameter.List[8] : Extended diagnostic:   0 = On; 128 = Off

 

 

Overview of matching configurations between the two masters:

Configuration.List contains one or two numbers for each data definition.

The number of used elements in Configuration.List is entered into Configuration.Size.

The sum of InputSize (in bytes) is entered into Configuration.InputSize

The sum of OutputSize (in bytes) is entered into Configuration.OutputSize

 

.List[x]

InputSize:

Name

OutputSize:

.List[x]

16

1

1 byte input 0x10

 

 

1 byte output 0x20

1

32

 

 

 

 

17

2

2 byte input 0x11

 

 

2 byte output 0x21

2

33

 

 

 

 

19

4

4 byte input 0x 13

 

 

4 byte output 0x23

4

35

 

 

 

 

23

8

8 byte input 0x17

 

 

8 byte output 0x27

8

39

 

 

 

 

31

16

16 byte input 0x1F

 

 

16 byte output  0x2F

16

47

 

 

 

 

64,31

32

32 byte input 0x40,0x1F

 

 

32 byte output  0x80,0x1F

32

128,31

 

 

 

 

64,63

64

64 byte input 0x40,0x3F

 

 

64 byte output  0x80,0x3F

64

128,63

 

 

 

 

64,127

128

64 word input 0x40,0x7F

 

 

64 word output  0x80,0x7F

128

128,127

 

 

 

 

144

1

1 byte input consistent 0x90

 

 

1 byte output consistent 0xA0

1

160

 

 

 

 

145

2

2 byte input consistent 0x91

 

 

2 byte output consistent 0xA1

2

161

 

 

 

 

147

4

4 byte input consistent 0x93

 

 

4 byte output consistent 0xA3

4

163

 

 

 

 

151

8

8 byte input consistent 0x97

 

 

8 byte output consistent 0xA7

8

167

 

 

 

 

159

16

16 byte input consistent 0x9F

 

 

16 byte output consistent 0xAF

16

175

 

 

 

 

64,159

32

32 byte input consistent 0x40 0x9F

 

 

32 byte output consistent 0x80 0x9F

32

128,159

 

 

 

 

64,191

64

64 byte input consistent 0x40 0xBF

 

 

64 byte output consistent 0x80 0xBF

64

128,191

 

 

 

 

64,255

128

64 word input consistent 0x40 0xFF

 

 

64 word output consistent 0x80 0xFF

128

128,255

 

 

Example:

 

In the external master, 5 objects are defined:

4 byte output

16 byte input

64 word input

2 byte output

8 byte output consistent

 

This must match 5 object definitions in the PD 667:

(Note: object No. 3 uses both Configuration.List[3] and Configuration.List[4])

 

Configuration.List[1] = 19

4 byte input (matches 4 byte output)

Configuration.List[2] = 47

16 byte output (matches 16 byte input)

Configuration.List[3] = 128

 

Configuration.List[4] = 127

64 word output (matches 64 word input)

Configuration.List[5] = 17

2 byte input (matches 2 byte output)

Configuration.List[6] =  151

8 byte input consistent (matches 8 byte output consistent)

Configuration.Size = 6

Number of elements used in Configuration.List

Configuration.InputSize = 14

Calculated as: 16 + 128 number of bytes used as Output

Configuration.OutputSize = 144

Calculated as: 4 + 2 + 8 number of bytes used as Input

 

 

Notes:

The "DIA" switch on the DP/DP Transceiver enables "data validation", where the DP / DP Transceiver monitors the 2 masters. Status is shown in the least significant bit of the first input byte in each direction. This function will thus modify the first output byte from each master.

 

 

In the external master's first parameter byte, the 2 most significant bits may be set. They have the following meaning:

bit7: DPV1 mode   

bit6: Failsafe mode

As these two functions are not supported by the PD 667, Parameter. List[1] is set to 0.

 

 

Extended diagnostic ON: The SF1 / SF2 LED is lit if a failure occurs to the network e.g. no connection.

Extended diagnostic OFF: The SF1 / SF2 LED is not lit if a failure occurs to the network.

The DP/DP Transceiver will in both extended diagnostic modes report a "read diagnostic request" to both DP masters.  The PD 667 automatically reads the diagnostic data and signals this afterwards by the status and notification bits. A Simatic S7 CPU calls OB 82 in both situations, but it only writes to the diagnostic buffer if the Extended diagnostic is ON.

 

A diagnostic message is 26 bytes long:  Standard diagnosis is found in List[1..6] and module diagnostics in List[17..26].

If the parameter.size is set to 0 or if the parameters are wrong, the DP/DP transceiver will work in a mode that is compatible with the first generation. This had reduced data I/O size and only 11 bytes of diagnostic data.

 

 

 

For further information please refer to the DP/DP Transceiver documentation.