Name :Generate a turn-on delay

Symbol:TON

Illustrate:

        You can use the "Generate on-delay" command to set the time PT for the setting delay of the Q output. The command is started when the result of the logic operation (RLO) of the input IN changes from "0" to "1" (the rising edge of the signal). When the command is activated, the preset time PT starts the timer. After the time PT is exceeded, the signal status of the output Q will change to "1". As long as the boot input remains "1", the output Q remains set. When the signal status of the startup input changes from "1" to "0", the output Q is reset. When the startup input detects a new rising edge of the signal, the timer function starts again.
        You can query the current time value in the ET output. This timer value starts at T#0s and ends when the duration value PT is reached. As soon as the signal status of the input IN changes to "0", the output ET is reset.

Image:

Parameter:

Parameter | Statement | Type | Description
--- | --- | --- | ---
IN | Input | BOOL |
    Initiation input
PT | Input | TIME |
    For the duration of the turn-on delay, the value of the PT parameter must be positive
Q | Output | BOOL |
    The output of the set when the time PT is exceeded
ET | Output | TIME |
    The current time value

Pulse timing diagram：

Example:

LD:

ST:

TON_inst1(IN := TagStart, PT := TagPresetTime, Q => TagStatus, ET => TagElepsedTime);

Interpretation:

Parameter | operand | value
--- | --- | ---
IN | TagStart | Signal transitions“0”=>“1”
PT | TagPresetTime | T#10s
Q | TagStatus | FALSE；After 10 seconds, it becomesTRUE
ET | TagElapsedTime | T#0s => T#10s

        When the signal status of the "TagStart" operand changes from "0" to "1", the time preset by the PT parameter starts to be timed. After this time period has passed, the signal status of the operand "TagStatus" will be set to "1". As long as the signal status of the operand TagStart is "1", the operand TagStatus will remain set to "1". The current-time value is stored in the TagElapsedTime operand. When the signal status of the TagStart operand changes from "1" to "0", the operand TagStatus is reset.