(4)| 12/6/2023 10:29 AM | |
|
Joined: 9/23/2005 Last visit: 1/15/2026 Posts: 4447 Rating:
|
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 (1322 Downloads) |
Last edited by: The Helping Hand at: 12/06/2023 11:03:01Text formatting optimized Last edited by: Denilson Pegaia at: 12/11/2024 12:13:43Last edited by: Denilson Pegaia at: 05/19/2025 10:24:08Denilson Pegaia |
|
This contribution was helpful to
|
|
| 1/11/2024 6:35 PM | |
|
Joined: 3/26/2015 Last visit: 1/5/2026 Posts: 9 Rating:
|
Why only named values (enums) in software units?? |
| 12/11/2024 12:01 PM | |
|
Joined: 9/23/2005 Last visit: 1/15/2026 Posts: 4447 Rating:
|
Hi As from TIA V20, it is possible to see the Named value data types values (that means, the texts) by monitoring it ONLINE. TIPs:
Other news from TIA V20, conform the system help: “
Example: myInt: nvtTrafficLight := nvtTrafficLight#GREEN; Named value data types can be exported and imported via the TIA Portal Openness interface. “ You can also find tips about Named Value data types in How do you use "Named value data types" in TIA Portal V20? Printscreen and Sample project (archived from TIA Portal as .zap20 and after that compacted in .zip format to be uploaded here) user= User, all password = Password1! |
Last edited by: Denilson Pegaia at: 05/19/2025 10:25:56Denilson Pegaia |
|
| 12/11/2024 12:07 PM | |
|
Joined: 9/23/2005 Last visit: 1/15/2026 Posts: 4447 Rating:
|
The open project exceeded 8M, so I split the project in two parts and zip it in different files. part 1 AttachmentNamed value data type PART1s.zip (378 Downloads) |
|
Denilson Pegaia |
|
| 12/11/2024 12:08 PM | |
|
Joined: 9/23/2005 Last visit: 1/15/2026 Posts: 4447 Rating:
|
Part 2 here Unzip both part1 and part2 at the same folder to get the original project. AttachmentNamed value data types PART2.zip (412 Downloads) |
|
Denilson Pegaia |
|
Follow us on