Tag values reset to zero

Modifying a user-defined data type that is referenced by a tag could affect the value of the tag(s) referencing the type.
  • Values are reset to 0 if the size of the data type changed.
For example, when adding or deleting a member, or changing a member’s data to a new type that is a different size (for example, BOOL to REAL), then the value is reset.
  • Values are not reset to 0 if the size of the data type does not change.
However, the system preserves the current values. If a structural change was made, check the values for validity. For example, when modifying a member’s name, values are preserved. When modifying a member’s data type from DINT to REAL, values are preserved, but may no longer be valid for that member.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal