Internet PLC Forum
General => Technical support => Topic started by: Michael on March 28, 2007, 12:19:55 AM
-
I have problem when used CusFc SetCtrSV 3, GetCtrSV(3)+1
to change the Set Value (S.V,) of the Counter, increased by 19.
Can I increase SV counter only 1?
-
Is your custom function a "differentiated up" custom function {dCusF} and not the red {CusFn}. The latter execute many time when the logic condition of the CF is true so it could increase by a large number because it has executed many times. Use the differentiated version to make sure that it is executed only once every time the execution condition is true.