
Busserv er S7
L
120 Busserver S7 DE/EN 1.0
6.6.6 Parameter data access
The FB91 (FB DRIVE CP1) enables a ccess parameter data both via OPC and from the PLC. The
changeover between these two communication channels takes place automatically. The block works
in the same way as FB90.
• One instanc e each of FB91 is to be called for each drive (DP Slave). In addition, one instance
data block for each drive is required for variables storage.
• Parameter data jobs via OPC are saved in DB OPC.
• Parameter data jobs from the PLC are sa ved in DB S7PAR.
FC3, network 2
L “StatusWord”
L 0
==I
SPB NEXT
CALL FB 91 , DB100
Tag :=
PB_Address :=B#16#9
FirstDriveDW :=0
DriveSend_DB :=”DriveSend_DB”
DriveRecv_DB :=”DriveRecv_DB”
DriveServer_DB :=”DB-OPC-Server”
DrivePar_DB :=”S7-Parameter”
TimerNr :=”TimeOutTimer_OPC”
TimeOut :=S5T#1S
Busy :=”BUSY”
NEXT: NOP 0
• Use the StatusWord to check if the drive controller is switched on (StatusWord <> 0). If it is not,
the call of FB91 is skipped.
• In the above example, FB91 uses the instance data blo ck DB100 for variables storage.
• The input Tag is not assigned.
• The PROFIBUS device address and the data blocks for data exchange with the communication
processor and the byte offset are indicated as sho wn above.
• In the above example, the da ta blocks DB80 (”DB-OPC-Server”) and DB81 (”S7-Parameter”)
are used for DB OPC and DB S7PAR.
• The output byte Busy provides information about the communication status.
Tip!
Detailed information about the parameters of FB91 can be found in cha pter 6.3.2. (^ 101)
Kommentare zu diesen Handbüchern