产品
下载
联系我们
网站地图
返回首页

微信扫一扫
在线技术支持

微信扫一扫
访问视频号

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
常见问题 | 个人信息保护 | 关于知识产权 | 使用条款
版权 (C) 2005- Schneider Electric Japan Holdings Ltd.,和普洛菲斯国际贸易(上海)有限公司版权所有,保留所有权利。
沪ICP备05028659号-3