1. Disconnect the delay timer TOF
1. Disconnect the delay timer TOF
1.1. Instruction Description
When the input terminal is turned on, the timer bit (Tx) is turned on, and the current value (TVx) is set to 0. When the input terminal transitions from "on" to "off", the current value (TVx) starts timing from 0. When the current value (TVx) is greater than or equal to the preset time (SV), the timer bit (Tx) is "disconnected" and the timer stops counting, while the current value (TVx) remains. If the time for enabling the input terminal to "disconnect" is shorter than the preset value, the timer bit will still remain in the "on" state. If the input terminal is enabled and then 'turned on', the current timer value is still set to 0. Tx=T0 to T255, TVx=TV0 to TV255.
TON, TONR, and TOF timers have three resolutions. The resolution is determined by the timer number shown in the following figure. Each current value is a multiple of the time reference. For example, a count of 50 in a 10 millisecond timer represents 500 milliseconds.
| Timer number | Resolution | Maximum value |
|---|---|---|
| T0- T199 | 100ms | 3276.7 seconds |
| T200- T249 | 10ms | 327.67 seconds |
| T250-T255 | 1ms | 32.767 seconds |
1.1.1. Attention:
(1)TOF, TONR, and TON cannot share the same timer number. For example, there cannot be TONR TV32 D0 and TOF TV32 D0.
(2)You can use TOF to extend the time beyond shutdown (or false) conditions, such as cooling the motor after it is turned off.
(3)Performing a reset operation can reset the timer, that is, the timer position is 0, and the current value of the timer is set to 0.
(4)After resetting, the TOF timer requires the input terminal to switch from "on" to "off" in order to restart.
1.2. The valid operands of the instruction
| Input/Output | Data Type | operand | Description |
|---|---|---|---|
| TV | 16 bit integer | TV | Timer |
| SV | 16 bit unsigned integer | D/CV/TV/AI/AO/K/H/V/Z/FD, bit composite word (X/Y/M/C/T/S), local variable (LW) | preset value |
1.3. Example
Command table:
NETWORK 000
LD X000
TOF TV200 K1 // When the timer reaches K1, T200=1 (such as K1 indicating that the timer has reached 1); 10ms, K2 represents 2&# 42; 10ms, etc., can also be replaced with variables)
NETWORK 001
LD T200
OUT Y000
图1 TOF