Tomo453
Lifetime Supporting Member
Hello,
I have posed a similar question before, but the DB then provided me with pre-allocated "spares". In this instance I need to declare a constant that is initialized in another function. The constant is a speed value that is chosen by a separate "speed selector" function. The speed constants are in a standard data block and I want to add a constant "tag" "Idle_Creep", and have the value written to the address from another function "initialize_material_constants". Can I add this constant by adding it to the declaration view of the DB? Will I then need to download the edited DB or will I copy and paste from Offline to Online? I would like to not have to download the entire project. I am using Siemens Simatic S7 v 5.5 and 300 series controllers.
I have posed a similar question before, but the DB then provided me with pre-allocated "spares". In this instance I need to declare a constant that is initialized in another function. The constant is a speed value that is chosen by a separate "speed selector" function. The speed constants are in a standard data block and I want to add a constant "tag" "Idle_Creep", and have the value written to the address from another function "initialize_material_constants". Can I add this constant by adding it to the declaration view of the DB? Will I then need to download the edited DB or will I copy and paste from Offline to Online? I would like to not have to download the entire project. I am using Siemens Simatic S7 v 5.5 and 300 series controllers.
Last edited: