I can't compile code for download CBM tell that there is an Loop break error which is from string variable
I can't compile code for download in CBM tell that there is an Loop break error which is from string variable my question is is it safe to set string variable attribute to Nosort in stead of retain? usually we can fix loop code with state retain attribute but it's not applicable for string variable. the only way i can think of is to set string variable attribute to Nosort but I'm not sure this setting lead to a serious impact to the hardware or application error or not.
Answers
Hello,
Can you please share the image of error
Can you please share the image of error
> "is is it safe to set string variable attribute to Nosort"
- Nobody can answer this. It depends entirely on how your program is written. In general however, "Nosort" is a bad idea. There is no effect on hardware, "NoSort" only affects the execution order of your Code Blocks.
Any Code blocks that reference the string variable will be executed in a Random order, including everything else in that code block. ie you can begin to affect the execution order of code that affects things other than the string variable, which can be very difficult to fix. If you are going to Nosort something, then one suggestion is that you only write that variable in a code block and no others.
https://forum-controlsystems.abb.com/...
- Nobody can answer this. It depends entirely on how your program is written. In general however, "Nosort" is a bad idea. There is no effect on hardware, "NoSort" only affects the execution order of your Code Blocks.
Any Code blocks that reference the string variable will be executed in a Random order, including everything else in that code block. ie you can begin to affect the execution order of code that affects things other than the string variable, which can be very difficult to fix. If you are going to Nosort something, then one suggestion is that you only write that variable in a code block and no others.
https://forum-controlsystems.abb.com/...
Add new comment