L9_T1MS: One Millisecond Timer
(Original Document)
Naming
Name in LL984 Editor
Function Block Name
name of legacy 984 instruction
name in other tools and editors like:
  • Type Library Browser
  • Data Editor
  • Animation Tables
  • Search Results
Function Description
The L9_T1MS Timer function block measures time in 1 ms intervals. It can be used for timing an event or creating a delay.
L9_T1MS has 2 control inputs. The operation begins when the input to ENABLE pin is turned ON. The ACC_TIME value increments while the RUN input remains ON. When the RUN input turns OFF, the ACC_TIME value is reset to 0.
L9_T1MS can activate 1 of 2 node outputs. The EQT output turns ON if the ACC_TIME value equals the timer PRESET value. The LESSTH node turns ON if the RUN input turns OFF before the ACC_TIME value can increment to the timer PRESET value.
Representation
Parameters
Input Pin
Name
Data Type
Address Range
Meaning
Top
ENABLE
–
OFF to ON starts the timer when RUN also is ON.
Bottom
RUN
BOOL
–
OFF resets the counter to 0; ON lets the timer execute when ENABLE is also ON.
Node
Node Type
Name
Data Type
Address Range
Meaning
Top
IN
PRESET
%IW, %MW
The maximum number of 1 ms counts the timer can accumulate while counting. Can be displayed as an integer constant, or can be stored in a variable located in a %IW input word or a %MW memory word or an unlocated UINT word. Valid range: 1 to 65,535.
Middle
IN/OUT
ACC_TIME
UINT
%MW
The actual number of counts accumulated during counting. Increments up to the preset value by a value of 1 every second. A variable tied to this pin must be located in a %MW word or an unlocated UINT word.
Bottom
IN
CONST
UINT
1
Not used.
Position
Name
Data Type
Address Range
Meaning
Top
EQT
BOOL
–
ON indicates the ACC_TIME value equals the PRESET value.
Bottom
LESSTH
BOOL
–
ON indicates the ACC_TIME value is less than the PRESET value.