800xA SP1b producing loop errors during download
I'm programming logic in Function Designer in 800xA 5.0 SP1b
Function Plan with SFC2DHeader and Sequence2D connected like this
produced a loop error during download into Softcontroller.
Short list is when connection is direct, long list is when there is a variable between the 2 blocks.
I can provide more information, if necessary
thanks ahead for the answer
Voted best answer
Welcome to the world of Code Sorting Errors !
Check the AC800M Planning Manual ( 3BSE044222 ) Section 3 for information on diagnosing and resolving code sorting loop issues. The manual describes how to diagnose exactly which connection is causing the loop.
Code sorting issues can sometimes be very troublesome to resolve properly. The main tips are ...
- Control loops often point to a connection error in your code. You may have connected to the wrong variable for example.
- Make sure you have your program organized properly into "Code Blocks". This isn't applicable in your fuction designer code, but is important inside any custom control modules you write. "Inputs" and "Outputs" need to be in different code blocks.
- If you cant resolve the issue by splitting your code into different blocks, you can add a "no sort" attribute to the variable that is causing the problem.
- You can also use a "StateCC" control module to break the code sorting
Be very carefull about deliberately breaking code sorting because this can cause unexpected timing problems with your code.