2-123
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Timer Instructions
2
TP
TP
The TP instruction outputs TRUE while the set time elapses after the timer starts.
* T#0ms to T#106751d_23h_47m_16s_854.775807ms
The TP instruction outputs TRUE while the set time elapses after the timer starts. Set the time in nano-
seconds (ns). The timing accuracy is 100 ns. The timer starts when timer input In changes to TRUE and
timer output Q changes to TRUE. Elapsed time ET is incremented as time elapses. When ET reaches
set time PT, timer output Q changes to FALSE. ET is not incremented after that. The timer is reset when
In changes to FALSE. ET changes to 0. The timer is not reset even if In changes to FALSE after the
timer starts but before ET reaches PT.
Instruction Name FB/FUN Graphic expression ST expression
TP Timer Pulse FB TP_instance (In, PT, Q,
ET);
Variables
Name Meaning I/O Description Valid range Unit Default
In Timer input
Input
TRUE: Timer start signal
FALSE: Timer reset signal
Depends on data type. --- FALSE
PT Set time Time that Q remains at
TRUE
*ms0
QTimer
output
Output
TRUE: Timer output ON
FALSE: Timer output OFF
Depends on data type. ---
---
ET Elapsed
time
Elapsed time since timer
started
*ms
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In OK
PT OK
QOK
ET OK
Function
TP
In Q
PT ET
TP_instance