Profibus, process data communication, monitoring

Question:

How can process data communication be monitored with Profibus?

Answer:

Profibus module 2133IB contains a monitoring function which monitors the arrival of process data frames within a certain time (default setting = deactivated). The appropriate time is set in the Profibus master and from there it is passed on to the bus devices.

Activation of this function for monitoring process data communication can be implemented for Profibus module 2133IB by setting a device function under Index 6004 hex. Index 6004 hex can only be parameterised via the parameter channel of the Profibus and is installed in the profiles 'DRIVECOM' and 'Lenze device control'. In case of the PROFIDRIVE profile the index is also efficient, but before it is to be set via the DRIVECOM parameter channel. The index cannot be accessed via the PROFIDRIVE parameter channel. It is also installed if 2131 functionality has been set with DIP switch S8.

Range of Index 6004 hex:
  • 0 = no reaction (factory setting)
  • 1 = controller inhibitor (RSP)...(in the case of the DRIVECOM profile: with lock in device state STARTING INHIBITOR)
  • 2 = quick stop (QSP).............................(in the case of the DRIVECOM profile: with lock in device state STARTING INHIBITOR)

Example:

Parameter write job using Lenze Siemens-S7 sample program:
Index 6004 hex, subindex 0, data type integer 16 bit

Entries in DB31:

Service byte = 12 (write job 2 bytes data size)
Index = 24580 dec (6004 hex => dec)
Subindex = 0
Data = 16777216 (2^24 so the value set is 1)

The 'data' variables of data type DINT, 32 bit, are declared in DB 31. With entry 2^24 the first bit in the high word is set to the value 1.
The data type of 'data' must not be changed or else function FC 127 will no longer work properly!

Attention:
If you are working with an 9300 Servo PLC, you must make a connection between the system function blocks AIF1 and  DCTRL in the PLC program. (DCTRL_wAIF1Ctrl = AIF1_wDctrlCTRL ; AIF1_wDctrlStat = DCTRL_wStat)

Further information is also available in contribution 20030002 (Monitoring functions of Profibus 2133IB with 9300).

URL for linking this AKB article: https://www.lenze.com/en-de/go/akb/20020215/1/
Kontaktformular