5 Application example
5.7 Example program – DX-NET-PROFINET2-2 with TIA Portal
124
DX-NET-PROFINET2-2
01/22 MN040062EN
www.eaton.com
Set the following data for the variables on the channels of function block
FB286:
ReadWrite = 0, read request
ParaNo = 4, 4 parameters to be read
Set the following values for the variables of the instance database of function
block FB286:
Frequency reference
SINA_PARA_DB.sxParameter\[1].siParaNo=1, (index number)
SINA_PARA_DB.sxParameter\[1].siIndex=0, (subindex)
Speed reference
SINA_PARA_DB.sxParameter\[2].siParaNo=0
SINA_PARA_DB.sxParameter\[2].siIndex=1
A rising edge at the start starts the read job.
As soon as the read job is completed, the “Done” bit is set. The parameter
values are displayed in .sxParameter\[x].srValue.