beautypg.com

Rockwell Automation AutoMax Enhanced Ladder Language Reference Manual User Manual

Page 306

background image

DĆ4

D.3

Using the PreĆDefined Ladder Execution Time

Variables

Use the following double integer parameters to help you check and monitor the

program's execution time. Only use these variables as input parameters.

D task_usec_max

Use this variable to monitor the maximum execution time (in

µ

s) for the

current program. When this variable is defined in a ladder program.

D task_usec_now

Use this variable to monitor the latest execution time (in

µ

s) of the current

program.
When this variable is defined in a ladder program. The execution time is

the real clock" time it took the program to run from start to finish. It inĆ

cludes the execution time for higher priority programs and interrupt serĆ

vice routines if they run while your program is running.

To reset these times, write a value of 0 into the variable.