Pidloop&Acstdrive loop fault
I try to PID control some ACS800 driver with communication profibus.
I created new Function Block Type. I use pidloop and Acstdrive same block.
I connect pidloop's 'out' parameter to Acstdrive's AutoSP1(Out.value)
But when i use this block i cant download program to CPU. Program find loop in logic.
I add my FB pic as attachment. How can i control pid and acstdrive same time.
Or can you suggest me different solutions?
Code loops are only generated by Control Modules. They happen when the compiler tries to optimise the execution order of the "code blocks" inside the control modules.
The code you pasted is written in FBD. So this small piece of code is not sorted and does not generate a code loop.
If this code is written inside a control module then you need to look at how the variables and control module parameters are used in each code block ( the tabs at the bottom of the editor ) and how they are connected to the parameters of other control modules.
Your description and attached screen shot is not enough to identify the code loop of your program. There had been a same kind of problem reported here before. I have attched the link of it. It may help you understand the loop and way to resolve it.