Internet PLC Forum

General => Technical support => Topic started by: Michael on March 28, 2007, 12:19:55 AM

Title: SetCtrSV 3, GetCtrSV(3)+1
Post 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?
Title: Re:SetCtrSV 3, GetCtrSV(3)+1
Post by: support on March 28, 2007, 07:18:01 AM
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.