产品标题:MRK000614-ABr02 1MRK000007-6 用于控制器扩展卡 ABB
型号: MRK000614-ABr02 1MRK000007-6 用于控制器扩展卡
质保:七天验收期,质保期一年
品牌: ABB
产品图片展示
产品详情资料
_clear_interrupt(结构TPU3_tag*tpu,UINT8通道)
此功能清除***通道的中断位。
•*tpu-这是指向要使用的TPU3模块的指针。它属于TPU3_tag类型,在
m_tpu3.h。
•通道-这是分配了FQM功能的通道编号。
UINT8 tpu_check_interrupt(结构TPU3_tag*tpu,UINT8通道)
此函数检查***通道的中断位,查看是否已设置。此函数返回TRUE
如果此通道导致中断,则返回FALSE。
•*tpu-这是指向要使用的TPU3模块的指针。它属于TPU3_tag类型,在
m_tpu3.h。
•通道-这是分配了FQM功能的通道编号。
4 FQM功能配置
CPU按如下方式配置FQM功能:
1.清除相应的信道优先级位,禁用信道。
2.FQM功能编号写入通道功能选择位。
3.CHANNEL_CONTROL和WINDOW_SIZE写入通道参数RAM。
4.写入主机序列位,选择所需的操作边缘和操作模式。
5.发出HSR以初始化功能。
6.信道优先级位被写入以启用功能并分配信道优先级。
7.TPU执行初始化状态。
MOTOROLA使用频率测量TPU功能5
代码列表
所有这些步骤都包含在C级tpu_fqm_init()函数中。参见第3.1节“初始化
函数(tpu_fqm_init)。”
初始化后,TPU等待***个选定边开始时间窗口。到期时
时间窗口,累积值被写入PULSE_COUNT参数和中断
提出服务请求。这可以通过C级函数tpu_fqm_get_pulse读取。见第3.3节,
“值返回函数”。在单次启动模式下,函数将进入空闲状态。在连续模式下,
该函数立即在新窗口中开始脉冲积累。在连续模式下,中断
服务请求在每个窗口时间结束时发出。tpu_fqm_get_pulse函数可以是
发生中断后调用。
一旦单次放炮模式完成,可以通过发出
初始化HSR。在写入HSR寄存器之前,可以修改模式和窗口时间参数。
如果在当前时间窗口到期之前进行了初始化HSR,则该累积为
流产,开始新的积累。
在连续模式操作期间,无需重新初始化即可修改窗口时间参数。
新时间段在当前窗口时间到期后立即生效。C级功能
可以调用tpu_fqm_update_window_size来更新窗口大小。见第3.2节,“变更
操作功能。”如果在当前时间窗口到期之前进行初始化HSR,则
当前累加中止,新累加开始。在连续模式中更改模式
操作,首先禁用通道,然后写入适当的参数寄存器和主机序列位,
发出HSR,然后写入优先级位。此程序可防止由于以下原因导致的不确定结果
在函数运行时修改序列位
nction and assign channel priority.
7. The TPU executes the initialization state
_clear_interrupt(struct TPU3_tag *tpu, UINT8 channel)
This function clears the interrupt bit for the specified channel.
• *tpu - This is a pointer to the TPU3 module to use. It is of type TPU3_tag which is defined in
m_tpu3.h.
• channel - This is the channel number that has the FQM function assigned to it.
UINT8 tpu_check_interrupt(struct TPU3_tag *tpu, UINT8 channel)
This function checks the interrupt bit for the specified channel to see if it is set. This function returns TRUE
if this channel caused the interrupt, FALSE otherwise.
• *tpu - This is a pointer to the TPU3 module to use. It is of type TPU3_tag which is defined in
m_tpu3.h.
• channel - This is the channel number that has the FQM function assigned to it.
4 Configuration of FQM Function
The CPU configures the FQM function as follows:
1. The appropriate channel priority bits are cleared, disabling the channel.
2. The FQM function number is written to the channel function select bits.
3. CHANNEL_CONTROL and WINDOW_SIZE are written to channel parameter RAM.
4. The host sequence bits are written, selecting the desired action edge and mode of operation.
5. An HSR is issued to initialize the function.
6. The channel priority bits are written to enable the function and assign channel priority.
7. The TPU executes the initialization state.
MOTOROLA Using the Frequency Measurement TPU Function 5
Code Listing
All of these steps are included in the C level tpu_fqm_init() function. See Section 3.1, “Initialization
Functions (tpu_fqm_init).”
After initialization, the TPU waits for the first selected edge to begin the time window. At the expiration of
the time window, the accumulated value is written to the PULSE_COUNT parameter and an interrupt
service request is made. This can be read with the C level function tpu_fqm_get_pulse. See Section 3.3,
“Value Return Function.” In single-shot mode, the function then goes to an idle state. In continuous mode,
the function immediately begins pulse accumulation in a new window. In continuous mode an interrupt
service request is made at the completion of every window time. The tpu_fqm_get_pulse function can be
called after an interrupt has occurred.
Once single-shot mode has completed, another single-shot sequence can be scheduled by issuing an
initialization HSR. Mode and window time parameters can be modified before writing to the HSR register.
If an initialization HSR is made prior to the expiration of a current time window, that accumulation is
aborted and a new accumulation begins.
During continuous mode operation, the window time parameter can be modified without re-initialization.
The new time period takes effect as soon as the current window time expires. The C level function
tpu_fqm_update_window_size can be called to updated the window size. See Section 3.2, “Change
Operation Function.” If an initialization HSR is made prior to the expiration of a current time window, the
current accumulation is aborted and a new accumulation begins. To change mode during continuous mode
operation, first disable the channel, then write the appropriate parameter registers and host sequence bits,
issue an HSR, and then write the priority bits. This procedure prevents indeterminate results due to
modification of sequence bits while the function is running
.
主营产品简介
专注于DCS、PLC、机器人控制系统、大型伺服四大系统领域。
主营产品各种模块/卡件,控制器,触摸屏,伺服驱动器。
优势:供应进口原装正品,专业停产配件,
发货快,货期精准,
主营品牌包括 ABB贝利、GE/FUANC、FOXBORO、英维思TRICONEX 、本特利BENTLY、A-B罗克韦尔、艾默生EMERSON 、OVATION、MOTOROLA、XYVOM、霍尼韦尔HONEYWELL 、力士乐REXROTH、KUKA、NI、DEIF、横河、伍德沃德WOODWARD、瑞恩、施耐德SCHNEIDER 、安川、 穆格MOOG、PROSOFT等品牌