Technical FAQs

Ask a Question

How to replace the init values by the current values in the PLC and in the Unity Pro project

Reminder :
During the development of the project you may define some intial values for the located variables (with symbole) and the unlocated variables.
After the download these init values are in a specific zone in the PLC memory in order that after a cold start the init values replace the current values.

For the needs of the process, sometimes the init values in the PLC have to be replaced by the current values during the Run time, these current values may also become the init values in the Unity Pro project, hereafter the Unity Pro operating modes to perform these functionalities.


Data Editor :

Each variables you want to accept the mechanism for updating initial values with current values must have the "Save" attribute checked.
In the Data editor display the "Save" column from the "Column configuration" tool.




Replace the init values by the current values in the PLC (Run time) :

1) By the program.
Set the system bit %S94, all the variables with the "Save" attribute checked have the initial values replaced by the current values.
After the replacement the system reset %S94.

2) Manually from Unity Pro.
The Unity Pro project must be in On line mode with the PLC .
Use the command "Update Init values with Current values" in the PLC menu.

Replace the init values by the current values in the Unity-Pro project :

-On Unity Pro Version V6.0 (and upper)
For this, perform the following steps :

1) Replace the init values by the current values in the PLC (Run time) by using one of the two methods describe above.
2) Update the project using the command "Update Local Init Values with PLC Init Values " in the PLC menu.
3) Save the project.
In the data editor the variables with the "Save" attribute are updated with the new init values.

- On Unity Pro Version V5.0 (and lower)
In these previous version the command "Update Local Init Values with PLC Init Values " was not existing. So for this, perform the following steps :

1) Replace the init values by the current values in the PLC (Run time) by using one of the two methods describe above.
2) Upload the project using the command "Transfer project from PLC" in the PLC menu.
3) Save the project.
In the data editor the variables with the "Save" attribute are updated with the new init values.

NB: This only functions using the memory cards without memory Flash: this means that using "TSXMCP or TSXMFP " memory card your Initial values will not be replaced by any current value.
Up to now there is no warning message telling to the user that the action is not done.
Was this helpful?
What can we do to improve the information ?