Lenze Drive Server Bus server S7 getting started Manual de usuario Pagina 54

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 63
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 53
Busserv er S7
L
115Busserver S7 DE/EN 1.0
6.5.8 Writing a parameter
FC4, network 4
UN TriggerWrite
= TriggerWrite
CALL FC 90 //data types
DrivePar_DB :=S7-Parameter //DB81
Count :=1 //decimal: 0-31
PB_Address :=PB-Address //B#16#9
R_W :=FALSE //FALSE or TRUE
Code :=Code //W#16#C, code 12
SubCode :=Subcode //B#16#0, Sub-code 0
W_Value :=WriteValue //DINT oder L#xxx
Status :=WriteStatus //OUT, BYTE, status byte
R_Value :=WriteResult //OUT, DINT, value
Trigger :=TriggerWrite //INOUT, BOOL
The variable TriggerWrite is al ways set to TRUE.
Once a parameter write request has been processed correctly, TriggerWrite is automa tically
reset to FALSE.
FC90 and parameter R_W = FALSE are called to transmit a write request for a drive parameter.
Data exchange with FB DRIVE (FB90) takes place via the da ta block S7-Parameter (DB81).
Input parameters are the request number, PROFIBUS address, write/read request, code and
sub-code and the actual value.
Output parameters are the read value and the status byte.
Set parameter R_W to TRUE to transmit a read request for a drive parameter.
Tip!
Detailed information about the parameters of FC90 can be found in cha pter 6.3.3. (^ 102)
Show/Hide Bookmarks
Vista de pagina 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 62 63

Comentarios a estos manuales

Sin comentarios