Counter Free-Running
增量计数器,在达到指定位数的最大值后重置为零。
类型: Counter Free-Running
图书馆中的路径:
|
港口
输出
#
OUT_1
—
计数器数值
scalar
Details
计数器值为 8、16 或 32 位无符号整数。
数据类型 |
UInt8`、UInt16`、UInt32`、UInt64`、UInt128`。 |
复数支持 |
无 |
参数
主要
#
Sample time —
计算间隔
SampleTime (real number / vector of two real numbers)
Details
以非负数指定计算步骤之间的间隔。要继承一个计算步骤,请将此参数设置为 -1
。
默认值 |
|
程序使用名称 |
|
可调谐 |
无 |
可计算 |
是 |
#
Number of bits —
位数
Real number
Details
以实数标量指定位数。当您指定
-
正整数,例如
8
,则程序块计数到 ,即到255
。 -
无符号整数表达式,如
UInt8(8)
时,数据块计数到 ,即到254
。
默认值 |
|
程序使用名称 |
|
可调谐 |
无 |
可计算 |
是 |