
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)
Commentaires sur ces manuels