Show/Hide Toolbars

PROFIBUS Manual

Navigation: MS0: cyclic data > Setting parameters

Set_Parameter telegram

Scroll Prev Top Next More

The Set_Parameter telegram comprises no fewer than 7 and no more than 244 bytes of payload data.

 

Station

status

Watch

dog 1

Watch

dog 2

Min TSDR

Ident High

Ident Low

Group

DPV1 Status_1

DPV1 Status_2

DPV1 Status_3

User

 

The first seven parameter bytes have a mandatory specification in the standard. Bytes 8 to 10 have been codified in DP-V1. Other bytes are vendor-specific.

 

Parameters are coded according to the following pattern: X = value 1 enabled, value 0 disabled

 

7

6

5

4

3

2

1

0

Set_Parameter byte 1: Station status

 

 

 

 

 

0

0

0

Reserved

 

 

 

 

X

 

 

 

WD_On (Watchdog on):

If this bit is set to 0, watchdog monitoring will be disabled.

 

 

 

X

 

 

 

 

Freeze_Req:

This bit indicates to the DP slave that it is to be operated in Freeze-Mode, as soon as the command with the Global_Control function has been transferred. If a DP slave does not support the freeze command, it must set Not_Supported in the diagnostic data. This request during parameter setting avoids errors when running with payload data.

 

 

X

 

 

 

 

 

Sync_Req:

This bit indicates to the DP slave that it is to be operated in Sync-Mode, as soon as the command with the Global_Control function has been transferred. If a DP slave does not support the Sync command, it must set Not_Supported in the diagnostic data. This request during parameter setting avoids errors when running with payload data..

 

X

 

 

 

 

 

 

Unlock_Req:

The DP master sets this bit to 1 when access to a DP slave is to be enabled again for another DP master. This bit has priority over bit 7/ Lock_Req.

X

 

 

 

 

 

 

 

Lock_Req:

The DP master sets this bit to 1 when other masters are to be blocked from accessing a DP slave.

 

7

6

5

4

3

2

1

0

Set_Parameter bytes 2 & 3: watchdog (response monitoring)

0- 255 (0x00-xFF)

Watchdog factor_1

0- 255 (0x00-xFF)

Watchdog factor_2

 

The values stored in the two bytes represent factors for adjusting the watchdog time (TWD). In a DP slave, watchdog monitoring ensures that, if the DP master goes down, outputs will assume the secure state after this period has elapsed.

 

The time is calculated as follows:

 

Watchdog = factor_1 * factor_2 * 10 ms

 

In this way, times can be achieved ranging from 10 ms to 650 sec, regardless of the baud rate. With bit 2 in byte 8 this watchdog time-base can be adjusted by 1 ms. Periods 10 times shorter can therefore be set. Watchdog monitoring is switched on or off by the bit WD_On.

7

6

5

4

3

2

1

0

Set_Parameter byte 4: minimum slave response time

0, 11-255 (0x00, 0x0B–0xFF)

Min. TSDR in tBit

 

This is the minimum time that the DP slave must wait until it is allowed to send its response telegrams back to the DP master.

 

Straight DP operation:  0, 11 to max TSDR according to standard

Mixed operation (e.g. DP&FMS): 0, 11 to 255 tBit

 

With value 00 the existing value will be maintained.

 

7

6

5

4

3

2

1

0

Set_Parameter bytes 5 & 6: ident number

0-255 (0x00-0xFF)

Ident number high byte

0-255 (0x00-0xFF)

Ident number low byte

 

The DP slave only accepts parameter telegrams if the ident number they transmit matches the slave's own ident number. Exception: The min TSDR can also be set if both the Lock_Req and Unlock_Req bits are zero and the ident numbers do not match.

 

7

6

5

4

3

2

1

0

Set_Parameter Byte 7: group allocation

 

 

 

 

 

 

 

X

Device belongs to group 1

 

 

 

 

 

 

X

 

Device belongs to group 2

 

 

 

 

 

 

 

 

....

X

 

 

 

 

 

 

 

Device belongs to group 8

 

This byte can be used to form groups for the Global_Control function. Each bit represents a group. It is only accepted if the Lock_Req bit is set.

 

The following bytes are extensions for DP-V1. A controller that does not support these extensions should set all these values to 0. If a device that supports these extensions sets in the GSD file the key word:

 

DPV1_Slave = 1

 

7

6

5

4

3

2

1

0

Set_Parameter Byte 8: DPV1_Status_1

 

 

 

0

0

 

0

0

Reserved

 

 

 

 

 

X

 

 

Time base of watchdog is 1 ms (and not 10 ms)

 

 

X

 

 

 

 

 

The slave should work as Publisher

 

X

 

 

 

 

 

 

The slave should work in Fail_Safe mode

X

 

 

 

 

 

 

 

The slave should work in DP-V1 mode

 

The key word

WD_Base_1ms_supp = 1

in the GSD file indicates whether the DP slave supports this function of the 1 ms watchdog.

 

The publisher function is explained in more detail in the section on direct data exchange  and Fail_Safe mode relates to the state of the class 1 master.

7

6

5

4

3

2

1

0

Set_Parameter Byte 9: DPV1_Status_2

 

 

 

 

 

 

 

X

Check_Cfg_Mode:
Reduced configuration control

 

 

 

 

 

 

0

 

Reserved

 

 

 

 

 

X

 

 

Switch on update alarm

 

 

 

 

X

 

 

 

Switch on status alarm

 

 

 

X

 

 

 

 

Switch on vendor-specific alarm

 

 

X

 

 

 

 

 

Switch on diagnostic alarm

 

X

 

 

 

 

 

 

Switch on process alarm

X

 

 

 

 

 

 

 

Switch on plug alarm (Pull-Plug)

 

Check_Cfg_Mode: If this bit is at 0 the slave must verify the consistency of the Chk_Config telegrams from the DP-V1 master and reject faulty configurations. If this bit is at 1 however, vendor-specific deviations are allowed. For example, it is possible to accept a module in the configuration even though it is not currently plugged in. Support for this bit is indicated in the GSD file with the key word

Check_Cfg_Mode = 1

 

Alarms belong to the acyclic services.

7

6

5

4

3

2

1

0

Set_Parameter Byte 10: DPV1_Status_3

 

 

 

 

 

0

1

2

3

4

5

6

7

1 Alarm of any type possible

2 Alarms in total possible

4 Alarms in total possible

8 Alarms in total possible

12 Alarms in total possible

16 Alarms in total possible

24 Alarms in total possible

32 Alarms in total possible

 

 

 

 

X

 

 

 

Prm_Structure: a parameter block follows

 

 

 

X

 

 

 

 

Isochronous mode is switched on

(Block type = 4)

X

 

 

 

 

 

 

 

Redundancy commands are switched on

(Block type = 2)

 

0

0

 

 

 

 

 

Reserved

 

If the Prm_Structure bit is set, this data is then followed by parameter blocks with further standardized parameters and instructions. Individual blocks and instruction groups can be enabled with individual bits.  

 

The whole block is built up in a fixed format.

 

Structure Length

Structure Type

Slot Number

Reserved

User Parameter Data

 

7

6

5

4

3

2

1

0

Set_Parameter Block: Structure_Length

5 - 244 (0x05–0xFF)

255 (0xFF)

Length of parameter block including this byte

Rest of the parameter telegram is one block

 

7

6

5

4

3

2

1

0

Set_Parameter Block: Structure_Type

2 (0x02)

3 (0x03)

4 (0x04)

5 (0x05)

7 (0x07)

Redundancy commands

DxB tables

Parameter for isochronous cycle

F-parameter for PROFIsafe

Subscriber tables