Lenze Drive Server Bus server S7 getting started Manuale Utente Pagina 57

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 63
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 56
Busserv er S7
L
118 Busserver S7 DE/EN 1.0
6.6.4 OB1/FC3
Call the F3 function in OB1. All other Lenze blocks are called from this function. Then call the Siemens
FC blocks DP_SEND and / or DP_RECV, which are requi red for data exchange with the communication
processor:
CALL FC 1
CPLADDR :=W#16#100
SEND :=P#DB30.DBX 0.0 WORD 15
DONE :=M1.0
ERROR :=M1.1
STATUS :=MW2
CALL FC 2
CPLADDR :=W#16#100
RECV :=P#DB31.DBX 0.0 WORD 15
NDR :=M1.2
ERROR :=M1.3
STATUS :=MW3
DPSTATUS :=MB12
The parameter CPLADDR needs the I/O address of the PROFIBUS-CP. The address is listed in the slot
table of the Hardware Manager:
Slot I-address O-address
Please observe that the address data in the Hardware Manager are decimal values (here: 256),
functions FC1 and FC2, however, expect hexadecimal entries (here: 100).
Specify the data block used for data exchange between communication processor and CPU.
In this example, DB30 is used to send data and DB31 to receive data. When UDT93 (4 process
data words) is used, 16 bytes are reserved for each drive controller in the data blocks.
Use the parameter RECV to indicate the number of drive controllers (here: 15).
Tip!
Each block can comprise a maximum of 240 bytes. Therefore a maximum of 15 drive controllers can
be addressed byoneblock. The maximumnumberdependsonthenumber of process data words used.
If more than 15 devices are to be supported, additional data blocks must be created for data exchange
and the functions FC1 and FC2 must be cyclically activated for these blocks.
More information about FC1 and FC2 can be found in the STEP7 documentation.
Show/Hide Bookmarks
Vedere la pagina 56
1 2 ... 52 53 54 55 56 57 58 59 60 61 62 63

Commenti su questo manuale

Nessun commento