2 Instruction Descriptions
2-116
NJ-series Instructions Reference Manual (W502)
TON
The TON instruction outputs TRUE when the set time elapses after the timer starts.
* T#0ms to T#106751d_23h_47m_16s_854.775807ms
The TON instruction outputs TRUE when the set time elapses after the timer starts. Set the time in
nanoseconds (ns). The timing accuracy is 100 ns. The timer starts when timer input In changes to
TRUE. Elapsed time ET is incremented as time elapses. When ET reaches set time PT, timer output Q
changes to TRUE. ET is not incremented after that. The timer is reset when In changes to FALSE. ET
changes to 0 and Q changes to FALSE.
If the timer is started and then In changes to FALSE before ET reaches PT, the timer is reset.
Instruction Name FB/FUN Graphic expression ST expression
TON On-Delay Timer FB TON_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 from when timer starts
until Q changes to 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
TON
In Q
PT ET
TON_instance