Timer
TON (On Delay Timer) Instruction : Variable configuration
Variable Name | I/O | Type | Device |
FLAG | Input | Bit | Operating bit for ON Delay Timer |
OFFSET | Input | Word | Write Index register number (0~15) |
SETTING | Input | Word | Write Timer set value (TS) (According to PLC parameter, 100ms / 10ms) |
OUTPUT | Output | Bit | It will be turned ON, if FLAG bit is remained ON in Setting time. |
SETTING : If it is 100ms and you write 30, it will be 3second.
TON (On Delay Timer) Instruction : Function Block scan program
Before using Index register, save OFFSET value in Index register (R device).
Set OFFSET variable value into R0
On Delay Timer is turned ON, Timer will be turned ON.
If it remains ON until assigned time at SETTING, OUTPUT will be turned ON.
Timer in Scan program
If you use Timer in Function Block, F10(Application Instruction) is recommended to check ON Delay or OFF Delay. For example, if M00 bit is remained ON for 3 seconds (in case of 100ms timer), M10 bit will be turned ON.
Monitoring
After a Function Block is downloaded to CPU and it is turned to RUN mode, the function block appears monitoring mode as below. Even though the function block is running, Timer will not work if M00 is OFF.
M00 is turned ON and after 3 seconds (in case of 100ms), OUTPUT(M10) will be turned ON as below.
The Timer device value is shown as below.