5 Application example
5.7 Example program – DX-NET-PROFINET2-2 with TIA Portal
DX-NET-PROFINET2-2
01/22 MN040062EN
www.eaton.com
125
Write
To write parameters, set the following values for the variables in function
block FB286.
P1-02 (f-max)
ReadWrite = 1, write request
ParaNo = 4, 4 parameters to be written
Set the following values for the variables of the instance database of function
block FB286:
SINA_PARA_DB.sxParameter\[1].siParaNo=20 (index number)
SINA_PARA_DB.sxParameter\[1].siIndex=1 (subindex)
SINA_PARA_DB.sxParameter\[1].srValue=700 (parameter is changed to 70 Hz)
P1-01 (f-min)
SINA_PARA_DB.sxParameter\[2].siParaNo=20
SINA_PARA_DB.sxParameter\[2].siIndex=0
SINA_PARA_DB.sxParameter\[2].srValue=100, (parameter is changed to 10 Hz)
Figure 68:
Monitoring table for write parameters.
A rising edge at the start input starts the write job.
When the write job is complete, the Done bit is set.
The changed parameter values are saved in the variable frequency drive.