Down Counter

  • 格式:doc
  • 大小:29.00 KB
  • 文档页数:2

Down Counter ( 减法计数器)
操作
将一个减法计数器镶入一个功能模块举例计数从一个事先调整好的值。

这个最小的事先调整好的值是0,这个最大的事先调整好的值是从+32,767开始计数。

当这个现得的值达到最小值时—32,768时,他将保留直到重置。

当减法计数器重置时,这个现有的值将被重置为事先调整好的值。

当这个激励流入输入电路使其从关闭转换为导通状态,现有的值是1,只要当这个现有的值小于或等于0,这个输出量就能使电路导通。

注释说明
*你必须执行一个最初的置零操作使减法计数器能够正确的运转。

如果这个减法计数器实例不能够置零重置,这个现有值置零。

这个输出量立刻使这个电路导通。

*对于任何CPU这个初值可存储1到任何操作数。

CPU数90——70.这个现有值也是被输入现有操作数。

注释表格
操作数数据类型存储范围描述
????一个空间的字节排列
三个字节R,P,L,W,
符号的
*命令1:通用值
*命令2:初始值
*命令3:控制字吗
R 功率通量当R收到能流,它将
重新安排这个相反的
通用值给初始值
PV 整形变量或者衡量弯
曲排列长度16或者
更多字节数据流,
I,Q,M,T,G,R,P,L,AI
,AQ,W,象征输入输出
变量
数值是可用或重置
时,事先调整的值到
命令2的地址
CV 整形变量,弯曲排列
字节16或者更多(限
制应用)数据流,
I,Q,M,T,G,R,P,L,AI
,AQ,W,象征输入输出
变量
(PAC系统只支持90
—70系列CPU)这个
计数器的通直,相同
的值按照命令1执行
举例应用
例子1
The DNCTR built-in function block instance counts 5000 new parts before energizing output %Q00005.
Logic for PACSystems CPUs and Series 90-70:
Logic for other CPUs:
例子2
CPUs other than PACSystems and Series 90-70
To keep track of the number of parts in a temporary storage area, you can use a down counter and up counter with a shared register for the accumulated or current value. When a part leaves the storage area, the DNCTR built-in function block instance decreases the current value of the parts in storage by 1. When a part enters the storage area, the up counter (UPCTR) increments by 1, increasing the inventory storage value by 1. To avoid conflict with the shared register, the counters use different register addresses。