<< 点击显示目录 >> 主页 mappVision帮助助手 > 机器视觉帮助 > mapp Vision > 编程 > 库 > 核心库 > ViBase > 用例 > 使用案例:基于轴的图像采集 > 使用外部编码器 |
在使用功能块ViBaseAxisBasedAcquisition和通过 "通用轴接口 "读入的外部编码器时,必须考虑以下条件才能自动确定位置补偿时间(参见ViBaseAxBsdAcqAddInfoType):
•必须在外部编码器配置中启用 16 位数据宽度的 "时间信息格式"。
•在相关纯虚拟轴的配置中,必须使用选项 "净时间 "作为 "有效性检查",并指定外部编码器相应净时间寄存器的 "I/O 通道映射":
•"Encoder01TimeValid "为最后一个有效计数器值的净时间,或
•"ActTime01 "为最后一个有效位置值的净时间。
图外部编码器数据点 "ActTime01 "的 "通道映射 "配置示例。
•此外,"位置滤波器 "中配置的 "外推时间 "会影响自动确定的位置补偿时间。过高的数值会导致位置补偿时间为负值,因而无效。
When using function block ViBaseAxisBasedAcquisition with an external encoder that is read in via "General purpose axis interface", the following conditions must be taken into account for automatic determination of the position compensation time (see ViBaseAxBsdAcqAddInfoType):
•"Time information format" with 16-bit data width must be enabled in the configuration of the external encoder.
•In the configuration of the associated pure virtual axis, option "Net time" must be used as "Validity check" and "I/O channel mapping" must be specified to the corresponding NetTime register of the external encoder:
•"Encoder01TimeValid" with the NetTime of the last valid counter value, or
•"ActTime01" with the NetTime of the last valid position value.
Fig.: Example configuration of "Channel mapping" to data point "ActTime01" of the external encoder.
•In addition, the configured "Extrapolation time" of "Position filter" influences the automatically determined position compensation time. A value that is too high can result in a negative and therefore invalid position compensation time.