一、定時器是干什么用的
定時器是一種用于定時和計時的機械或電子裝置,類似鬧鐘,發明于1876年,在此之前,人們通常會用沙漏或水漏進行定時或計時,那么定時器有什么用呢?
1、定時(shi)器(qi)的(de)作(zuo)(zuo)用主要是幫助(zhu)人們準確控制(zhi)時(shi)間(jian),也(ye)能起到備(bei)忘的(de)作(zuo)(zuo)用,通過定時(shi)器(qi)設定好時(shi)間(jian),以便提(ti)示(shi)自(zi)己(ji)在(zai)規定的(de)時(shi)間(jian)做某(mou)些事情(qing),并在(zai)適當時(shi)間(jian)轉(zhuan)換事宜,比如玩多久(jiu)手機就(jiu)去工(gong)作(zuo)(zuo)或學習等。
2、除(chu)此之外,隨(sui)著(zhu)技術(shu)的(de)(de)(de)進步(bu),定(ding)時器(qi)也廣泛應用于各種生活電(dian)(dian)器(qi),如(ru)開(kai)水機、熱水器(qi)的(de)(de)(de)定(ding)時控(kong)制,空調的(de)(de)(de)定(ding)時開(kai)關等,設置在電(dian)(dian)器(qi)上的(de)(de)(de)定(ding)時器(qi)能使(shi)電(dian)(dian)器(qi)定(ding)時開(kai)機、定(ding)時關機,實現節能、安全、健康的(de)(de)(de)使(shi)用。
3、定時器還能應(ying)用于軍事方面,比(bi)如定時炸彈、定時雷管等都是通過定時器來控(kong)制的。
二、定時器的種類有哪些
起初(chu)的(de)定時器(qi)是利用機(ji)械鐘帶動開(kai)關的(de),隨著定時器(qi)的(de)發展,也有了(le)許多不同(tong)的(de)種類,那么(me)定時器(qi)有哪些種類呢(ni)?根據不同(tong)的(de)原理和(he)工作類型,定時器(qi)可分為:
1、斷開延時型定時器
這種定(ding)(ding)時(shi)(shi)器是當輸入條件00000為ON時(shi)(shi)無延時(shi)(shi)作用(yong),只有在(zai)(zai)輸入條件00000為OFF時(shi)(shi)產生延時(shi)(shi)作用(yong)。它(ta)在(zai)(zai)SIEMENS的PLC中(zhong)又被稱為SF型定(ding)(ding)時(shi)(shi)器。
2、接通延時型定時器
接(jie)通延時(shi)(shi)型定時(shi)(shi)器是各種PLC中(zhong)(zhong)常見的基本的定時(shi)(shi)器,這種定時(shi)(shi)器在 SIEMENS的PLC中(zhong)(zhong),稱(cheng)為SD型定時(shi)(shi)器。
3、保持型接通延時定時器
這種定時(shi)(shi)器(qi)又(you)稱(cheng)SS型定時(shi)(shi)器(qi),是當輸(shu)入(ru)條(tiao)(tiao)件00000為ON后(hou),即(ji)產生(sheng)鎖(suo)存(cun)功能(neng),即(ji)使輸(shu)入(ru)條(tiao)(tiao)件00000又(you)變為OFF,仍視(shi)輸(shu)入(ru)條(tiao)(tiao)件為ON,當定時(shi)(shi)器(qi)的當前(qian)值(zhi)(zhi)等于設定值(zhi)(zhi)時(shi)(shi),定時(shi)(shi)器(qi)動(dong)作。
4、脈沖型定時器
這(zhe)(zhe)(zhe)種(zhong)定(ding)(ding)時(shi)(shi)(shi)(shi)(shi)器(qi)(qi)(qi)(qi)是當輸(shu)(shu)入(ru)(ru)條(tiao)件00000為(wei)ON后(hou),定(ding)(ding)時(shi)(shi)(shi)(shi)(shi)器(qi)(qi)(qi)(qi)即時(shi)(shi)(shi)(shi)(shi)動作,但(dan)經過(guo)定(ding)(ding)時(shi)(shi)(shi)(shi)(shi)器(qi)(qi)(qi)(qi)所設(she)定(ding)(ding)的(de)(de)時(shi)(shi)(shi)(shi)(shi)間(jian)后(hou),即使輸(shu)(shu)入(ru)(ru)條(tiao)件00000仍為(wei)ON,定(ding)(ding)時(shi)(shi)(shi)(shi)(shi)器(qi)(qi)(qi)(qi)卻變為(wei)OFF狀態。即這(zhe)(zhe)(zhe)種(zhong)定(ding)(ding)時(shi)(shi)(shi)(shi)(shi)器(qi)(qi)(qi)(qi)ON狀態的(de)(de)維(wei)持(chi)時(shi)(shi)(shi)(shi)(shi)間(jian)是由設(she)定(ding)(ding)值決定(ding)(ding)的(de)(de)。如果00000為(wei)ON的(de)(de)時(shi)(shi)(shi)(shi)(shi)續時(shi)(shi)(shi)(shi)(shi)間(jian)小于定(ding)(ding)時(shi)(shi)(shi)(shi)(shi)器(qi)(qi)(qi)(qi)的(de)(de)設(she)定(ding)(ding)值,定(ding)(ding)時(shi)(shi)(shi)(shi)(shi)器(qi)(qi)(qi)(qi)的(de)(de)ON狀態維(wei)持(chi)時(shi)(shi)(shi)(shi)(shi)間(jian)為(wei)輸(shu)(shu)入(ru)(ru)條(tiao)件00000為(wei)ON的(de)(de)持(chi)續時(shi)(shi)(shi)(shi)(shi)間(jian)。這(zhe)(zhe)(zhe)種(zhong)定(ding)(ding)時(shi)(shi)(shi)(shi)(shi)器(qi)(qi)(qi)(qi)在SIEMENS的(de)(de)PLC中(zhong),稱為(wei)SP型定(ding)(ding)時(shi)(shi)(shi)(shi)(shi)器(qi)(qi)(qi)(qi)。
5、擴張型脈沖定時器
這(zhe)種定(ding)時(shi)(shi)器與脈沖(chong)型(xing)定(ding)時(shi)(shi)器的(de)(de)區別(bie)是,只(zhi)要輸入條件00000出(chu)現了ON狀態(tai),不管其持續時(shi)(shi)間(jian)(jian)多長,均可使定(ding)時(shi)(shi)器為ON的(de)(de)維持的(de)(de)時(shi)(shi)間(jian)(jian)與定(ding)時(shi)(shi)器的(de)(de)設定(ding)值一致(zhi)。這(zhe)種定(ding)時(shi)(shi)器在(zai)SIEMENS的(de)(de)PLC中,稱為SE型(xing)定(ding)時(shi)(shi)器。