8 writing a parameter, Writing a parameter, Busserver s7 – Lenze Drive Server Bus server S7 getting started User Manual
Page 54

Busserver S7
L
115
Busserver 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 always set to TRUE.
Once a parameter write request has been processed correctly, TriggerWrite is automatically
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 data 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 chapter 6.3.3.
(
Show/Hide Bookmarks