Lenze Drive Server Bus server S7 getting started Instrukcja Użytkownika Strona 52

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 63
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 51
Busserv er S7
L
113Busserver S7 DE/EN 1.0
6.5.6 Parameter data access
The FB90 (FB DRIVE) enables accessing parameter data both via OPC and from the PLC. The
changeover between these two communication channels takes place automatically.
One instanc e each of FB90 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.
FC4, network 2
L StatusWord //disconnected
L 0 //drive controllers
==I //are
SPB NEXT //skipped.
CALL FB 90 , DB100
Tag := //STRING
PB_Address :=B#16#9 //BYTE, B#16#x
EA_Address :=1000 //I-address, decimal
DriveServer_DB :=DB-OPC-Server //DBx; e.g. DB80
DrivePar_DB :=S7-Parameter //DBx; e.g. DB81
TimerNr :=TimeOutTimer_OPC//TIMER
TimeOut :=S5T#1S //TIME
Busy :=BUSY //OUT, BYTE
NEXT: NOP 0
Use the StatusWord to check if the drive controller is switched on ( StatusWord <>0).Ifitis
not, the call of FB90 is skipped.
In the above example, FB90 uses the instance data blo ck DB100 for variables storage.
The input Tag is not assigned.
The PROFIBUS device address and the start address of the parameter channel are indicated as
shown above.
In the above example, both parameter da ta blocks (DB80, DB81)areused.
The output byte Busy provides information about the communication status.
Tip!
Detailed information about the parameters of FB90 can be found in cha pter 6.3.1. (^ 100)
Show/Hide Bookmarks
Przeglądanie stron 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 62 63

Komentarze do niniejszej Instrukcji

Brak uwag