Measuring Control Expert Program Section or POU Scan Times in SCADAPack x70 RTUs
Scan time is the amount of time the RTU takes to execute one full cycle of logic.
Understanding scan time helps diagnose performance issues, optimize logic, and verify that time‑critical tasks are running as expected.
To determine how long each section or POU takes to execute in a SCADAPack x70 RTU, use the FREERUN function block. This function block enables a free-running counter, which can be used for run time measurement of sections and application programs.
Measurement using FREERUN function block reflect only the logic execution time of the section being measure. They do not include the RTU system overhead, such as: IO updating and communication servicing time. These overhead components are included only in the overall task scan time, which can be monitored via system words %SW30.
System Status Words:
FREERUN outputs a counter value that increases every program scan.
By placing a FREERUN block at the start and end of a section, you can calculate the time difference between the two values.
This difference represents the approximate scan time for that section of logic.
Example: Using FREERUN to measure section scan time
Below is a common implementation pattern:
- Insert a FREERUN block at the beginning of a section.
- Capture its output into a variable (e.g., StartTime).
- Insert another FREERUN block at the end of the section.
- Capture its output into another variable (e.g., EndTime).
- Subtract StartTime from EndTime to obtain the execution time.
The SUB_DINT instruction is typically used to perform the subtraction.
FREERUN increments once per scan, so the raw difference represents scan cycles, not time in microseconds.
To convert cycles into microseconds:
Time (µs) = CycleCount × ScanPeriod (µs)
Using animation table to monitor the Scan time.
Right click on the OUT of the SUB_DINT and select Initialize Animation Table
So if your animation table shows
MotorScanTime = 4, the section time is 4 µs.게시 대상: 슈나이더 일렉트릭 Korea
도움이 필요하신가요?
제품 선택기
애플리케이션에 적합한 제품과 액세서리를 빠르고 쉽게 찾을 수 있습니다.
견적 받기
영업 관련하여 온라인으로 문의하시면 전문가가 연락드립니다.
구매처
해당 지역의 가장 가까운 슈나이더 일렉트릭 대리점을 쉽게 찾을 수 있습니다.
지원 센터
한 곳에서 모든 요구 사항에 대한 지원 리소스를 찾아보십시오.