12/6/2023 10:29 AM | |
Joined: 9/23/2005 Last visit: 5/20/2024 Posts: 4325 Rating: (1426)
|
Hi As from TIA V19, it is possible to work with “named values data types”. “Named values data types” are user data types of a single type (int, dint, word, dword etc.) where it is possible to associate names to the variable values (it would be as if we could give symbolic names to the values of a variable) Therefore, in programming, instead of using values for assignments or comparisons, you can use the name assigned to the given values. TIPs:
Sample project (archived from TIA Portal as .zap19 and after that compacted in .zip format to be uploaded here) AttachmentNamed Value data types.zip (360 Downloads) |
Last edited by: The Helping Hand at: 12/06/2023 11:03:01Text formatting optimized Denilson Pegaia |
|
This contribution was helpful to3 thankful Users |
1/11/2024 6:35 PM | |
Joined: 3/26/2015 Last visit: 5/15/2024 Posts: 4 Rating: (1) |
Why only named values (enums) in software units?? |
Follow us on