TON ¸í·É¾î´Â ¿Â µô·¹ÀÌ Å¸ÀÌ¸Ó ÀÌ´Ù.
À§ ·¹´õ À̹ÌÁö¸¦ ¼³¸í ÇÏÀÚ¸é XIC I:1/0 ºñÆ®°¡ ON µÇ¸é T4:0 ŸÀ̸Ӱ¡ µ¿ÀÛ Çϱ⠽ÃÀÛ ÇÑ´Ù.
ÇöÀç ¼³Á¤Ä¡(ACC)´Â 0.1ÃÊ Å¸À̸ӿ¡-0.5Ãʸ¦ ¼³Á¤ÇÑ °ÍÀÌ´Ù.
XIC I:1/0 ÀÌ ON µÇ¸é¼ ŸÀÌ¸Ó T4:0/EN ÀÌ ON µÇ°í T4:/0 ÀÌ 0.5ÃÊ°¡ µÇ¸é T4:0/DN ÀÌ
µ¿ÀÛ ÇÑ´Ù.
¸¸ÀÏ I:1/0 ÀÌ T4:0/EN µ¿ÀÛ ÇϱâÀü¿¡ I:1/0 ÀÌ OFF µÇ¸é T4:0 ¿¡ ÁøÇàÁßÀÌ´ø(ACC)
µ¥ÀÌÅÍ´Â ÀÚµ¿À¸·Î Å©¸®¾î µÈ´Ù. Áï ZERO·Î µÇ´Â°ÍÀÌ´Ù.
ÇöÀç ÁøÇàÁßÀÌ´ø ŸÀÓ µ¥ÀÌÅ͸¦ ÃʱâÈ ÇÏ°í ½ÍÀ¸¸é RES ¸í·É¾î¸¦
»ç¿ëÇÏ¸é µÈ´Ù.
[-¿øº»±Û-] Use the TON instruction to turn an output on or off after the timer has been on for a preset time interval. The TON instruction begins to count timebase intervals when the rung conditions become TRUE. As long as rung conditions remain true, the timer adjusts its accumulated value (ACC) each evaluation until it reaches the preset value (PRE). The accumulated value is reset when rung conditions go FALSE, regardless of whether the timer has timed out.
The TON command is used as an output on a rung which, unlike the TOF command, is only active (counting) when the rung conditions are TRUE. The Enable bit work the same as the TOF command, the Enable bit is set only when the rung conditions are TRUE and remains set until the rung goes FALSE. Although the Enable bit works the same way, don't forget that the counter works opposite the TOF, it counts when the Enable bit is ON, and stops when the accumulated value is reached or when the Enable bit is OFF. The Done bit gets set when the Accumulated value is equal to or is greater than the Preset value.
There are four fields of the TON command, the first being the address of the counter (Timer field), for example T4:x (where x is the Timer number). Second is the Time Base, this is preset between two values, 1.0 second or 0.01 second for counting. The third field, Preset is the time you want to count (be sure to match the Preset time units with the Time Base time units). The last field is the Accumulated value, this is the time that passed during the TRUE rung condition. Usually this is set to 0, however it can be set to other values to increase, or reduce the time to reach the Preset value. Because the Preset and Accumulator bits are addressable, the values can be changed within the program (based on other rung instructions).
Develop a ladder rung that will energize an output for x amount of time. In this example, a time of 5 seconds will be used.
In this example, a timer would be used. By using the TON instruction, the user can input a time to keep an output on for for. This value would be entered into the time preset field on the TON instruction. The time base would have to be changed to 1. In this is example, an XIC is being used. A switch or button would have to be closed for this example to work properly.
|