- 1
- 0
- 约1.06万字
- 约 15页
- 2026-02-11 发布于北京
- 举报
TheAOI_TCandAOI_TCMgetstheelapsed
timeinµSecondsweentwopointsinan
RSL5Kprogram
Startingpoint
CursorC1
Finalpoint
CursorC2
Programexecution
MeasureelapsedtimeweenC1andC2
1)引言
有多少次你想要知道程序中两个点之间或条件发生之间的执行时间,又有多少次你
编写了一个简单的代码来使用简单计时器测量它?
AOI_TC(时间光标)与AOI_TCM(时间光标测量)结合使用,将准确该功能。
只需在需要进行时间测量的起始点放置一个AOI_TC实例,在最终点放置第二个
实例,当两个“时间光标”触发后,AOI_TCM将给出以下结果:
实际经过的时间格式为:秒‑毫秒‑微秒最小经过时间(微秒)
平均经过时间(微秒)最大经过时间(微秒)
还有一个输入位用于清除峰值检测器和用于平均值计算的累加器。
使用的硬件
−RSLogix5000V16.03
−Logix5000模拟
1)Introduction
Howmanytimeswantedtoknowtheelapsedexecutiontimeweentwopointsina
programorweenconditionsoccurrencesandhowmanytimeswroteasimplecodeto
measureitusingasimpletimer?
TheAOI_TC(TimeCursor)combinedwiththeAOI_TCM(TimeCursorMeasure)will
accuratelyprovidethatfunctionality.
JustbycinganinstanceofAOI_TCinthestartingpointwheretodothetimemeasure
andasecondoneinthefinalpoint,andafterboth“TimeCursors”triggered,the
AOI_TCMwillgivefollowingresults:
Actualelapsedtimeinformat:Seconds–Milliseconds-µSeconds
MinimumelapsedtimeinµSeconds
AverageelapsedtimeinµSeconds
umelapsedtimeinµSeconds
Thereisalsoaninputbittoclearpeakdetectorsandaccumulatorusedforaveragevalue
calculation.
Hardwareused
原创力文档

文档评论(0)