Technical data

Programming
CPU 317T: Technology Functions
5-18 A5E00251798-03
5. The "Value" field of the drop-down list, or the short info, provide you with
information about permissible parameter values.
6. Close the parameter assignment view, then cancel or confirm the changes
made in the next dialog box. The configured content of the instance DB is
irrelevant when the data are provided at the FB input parameters.
7. In the user program, call FB 407 "MC_WriteParameter" by means of the
instance DB and set the input parameter values you have noted down.
Parameter assignment is initiated by a positive edge at the Execute input.
The advantage of this procedure is, that you only need one instance DB. Of
disadvantage is, that you can edit only one parameter at a time, and that you have
to wait for MC_WriteParameter to respond before you edit the next parameter.
Editing parameter with the help of different instance DBs
Each parameter change requires of you to create and configure a new instance
DB.
1. In SIMATIC Manager, open the instance DB (opens the "DB-Param" tool and
shows the content of the instance DB in the parameter assignment view.)
2. In the drop-down list, select the technology object that contains the parameter
you want to edit with this instance DB.
3. In the tree view, select the relevant group and the parameter.
4. Select the required "Value" from the drop-down list or type in the value.
5. Close this dialog box and confirm your changes in the next dialog box.
6. In the user program, call FB 407 "MC_WriteParameter" with the required
instance DB.
7. Provide only the input parameter Execute with data. The assignment of
parameters based on the values of the instance DB is initiated with a positive
at input parameter Execute.
Repeat this procedure until you have completed all parameter changes.
The advantage is here, that you can easily configure the parameters my means of
DB-Param, and that you can edit several parameters in immediate succession, the
disadvantage being, that you always require several DBs or a multiple instance DB.