Poll

Can change SVcounter only 1?

V counter
0 (0%)

Total Members Voted: 0

Author Topic: SetCtrSV 3, GetCtrSV(3)+1  (Read 11938 times)

Michael

  • Guest
SetCtrSV 3, GetCtrSV(3)+1
« 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?

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re:SetCtrSV 3, GetCtrSV(3)+1
« Reply #1 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.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS