omron — TIMER real-valued function

TIMER real-valued function TIMER real-valued function Syntax TIMER (timer_number) Function Return the current time value of the specified system timer. Usage Considerations The accuracy and resolution of the timers vary according to which timer is selected. DOUBLE variables should be used to achieve maximum resolution. See the Details section below. Parameter timer_number Real value, variable, or expression (interpreted as an integer) that specifies the number of the timer to be read. The value must be in the range -4 to 15. eV+Language Reference Guide, v2.x, 18319-000 Rev A Page 537 Value Description 1-15 Timers with a resolution of one millisecond and a maximum count of > 2.E+009.

They can be used to measure an interval of up to 596 hours from when they were set by the TIMER instruction. 0 Returns the number of seconds since the eV+ system was started, with a resolution of 1 millisecond and a maximum count of about 2.E+009. It is valid only during the first 596 hours of system operation and should generally not be used. -1 Returns the low 24 bits of the time since the eV+ system was started, in counts of 16 milliseconds. It can be used to compute time intervals of up to 74 hours. For additional information, see the Details section below. -2 Returns the low 24 bits of the time since the eV+ system was started, in counts of 1