Products
Download
Contact us
Back to Top
Otasuke FAQ's Book
 FAQ
 What is the difference between UP Counter, DOWN Counter and UP/DOWN Counter?

As for UP Counter, increment the current value when the counter trigger bit CE turns ON, and turn ON the counter output bit when the current value reaches the preset value.
As for DOWN Counter, decrement the current value when the counter trigger bit CE turns ON, and turn ON the counter output bit when the current value is zero or less.
As for UP/DOWN Counter, you can select Up Counter or Down Counter by turning ON/OFF  the counter up instruction UP.  


Special variables automatically created when creating counter
Special Variable Description Variable Type
Variable.PV Preset Value Integer
Variable.CV Current Value Integer

Variable.R

Counter Reset Discrete
Variable.UP UP Counter Discrete
Variable.QU UP Counter Output Discrete
Variable.QD DOWN Counter Output Discrete
Variable.Q Counter Output Discrete

・UP Counter

When the counter trigger bit CE passes power, the current value CV is incremented by one. When the current value CV is equal to the preset value CV, the counter output bit Q is turned ON, and the instruction passes power.

   
・DOWN Counter

When the counter trigger bit CE passes power, the current value CV is decremented by one. When the current value becomes equal to or less than zero after decrementing, the counter output bit Q is turned ON, and the instruction passes power.

   
・UP/DOWN Counter
When executing the CTUD instruction while the counter up instruction variable UP is ON, the execution is similar with the CTU instruction (up-counter).
When Variable. UP is OFF, the execution is similar with the CTD (down-counter) instruction.

After executing the CTUD instruction:
If the current value CV is equal to or greater than the preset value PV, Variable. Q and Variable. QU are turned ON.
If the current value CV is equal to or less than zero, the Variable. Q and Variable.QD are turned ON.

Return to Top Close
FAQ for use | Protection of Personal Information | Trademark Acknowledgments | About Intellectual Property Rights | Terms of Use
Copyright (C) 2005- Schneider Electric Japan Holdings Ltd. All Rights Reserved.