freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于單片機的多功能定時器設(shè)計完整論文-資料下載頁

2024-12-06 01:17本頁面

【導(dǎo)讀】近年來隨著科技的飛速發(fā)展,“定時器”總的來說有兩種類型。另一種是基于數(shù)字技術(shù)的新一代產(chǎn)品,這種產(chǎn)品功能強,是前者的替代之。本設(shè)計開發(fā)了一種基于單片機的多用途定時器。它造價低,功能全,整體功。能性價比高,可適應(yīng)各種場合的定時預(yù)警之用。計功能、單片機的中斷使用方法及LED顯示等技術(shù)??梢詫崿F(xiàn)任意時間和日期的。的閃爍的提示功能。本設(shè)計的硬件電路主要包括:STC89S52單片機、DS18B20溫度傳感器。顯示程序的設(shè)計,最終完成本設(shè)計。根據(jù)美國儀器學(xué)會的調(diào)查,是1821年由德國物理學(xué)家賽貝發(fā)明的,這就是后來的熱電偶傳感器。后,另一位德國人西門子發(fā)明了鉑電阻溫度計。溫度傳感器使用范圍廣數(shù)量多,居各種傳感器之首。這種測溫方法精度比較高,并可測量物體內(nèi)部的溫度分布。最新推出TS-18B20的數(shù)字溫度傳感器,采用美國DALLAS公司生產(chǎn)可組網(wǎng)數(shù)。適用于各種狹小空間設(shè)備數(shù)字測溫和控制領(lǐng)域。接控制打印監(jiān)測數(shù)據(jù)。但其中所采用的溫度傳感器直接輸出為模擬電壓信號,該信號在傳輸過程中

  

【正文】 其使用方便、可靠性高、能適應(yīng)惡劣工作環(huán)境等突出優(yōu)點 ,在各個工業(yè)部門獲得極其廣泛的應(yīng)用 .PLC 與機器人 CAD/CAM 一起 ,被稱為現(xiàn)代工業(yè)自動化的三大支柱 . 從單機自動化、生產(chǎn)自動流水線到數(shù)控系統(tǒng) CNC 、計算機集成制造系統(tǒng) CIMS 和智能制造系統(tǒng) IMS ,都可看到 PLC的應(yīng)用 .在 PLC控制的工業(yè)自動化系統(tǒng)中 ,常常用定時器控制過程時間的長短 ,以確定受控物理的大小 .文〔 1,2〕闡述終端時間控制在節(jié)能控制系統(tǒng)中的意義和應(yīng)用 。文〔 3〕則研究利用定 時器參數(shù)的校正 ,補償電壓波動對電加熱系統(tǒng)控制精度造成的不良影響 .這些 ,都表明物理過程的時間是控制系統(tǒng)的一個極為重要的物理量 .作為 PLC 定時器的應(yīng)用 ,有兩個問題必須研究 . 1 定時器參數(shù) ,如何根據(jù)生產(chǎn)現(xiàn)場的實際情況進行設(shè)定 ,在設(shè)定中可能存在什么問題 ,文獻〔 4,5〕對此有深入的討論 . 2 受定時器控制的物理過程的實際時間長短和定時器的設(shè)定值比較 ,有多大誤差 ,這就是本文要討論的內(nèi)容 .由于 PLC 采用循環(huán)掃描的工作方式 ,而 PLC 內(nèi)的定時器是獨立于循環(huán)掃描之外的計時裝置 ,故在應(yīng)用定時器時可能造成誤差 .在討論 PLC 中 定時器的工作過程時 ,將指出造成誤差的兩種原因 ,給出誤差的范圍 ,并提出減少誤差的方法 . 1 定時器動作條件及其造成的誤差 圖 1為定時器動作的實驗程序 .定時器 TIMOO動作時 ,其常開觸點閉合發(fā)出脈沖 ,計數(shù)器 CNT46和 CNT47對這脈沖計數(shù) T46和 CNT47設(shè)定值相同 ,這 2個計數(shù)器中任 1 個即時值減至零 ,定時器的線圈電路即被切斷 .在 PLC 上電后 ,當循環(huán)掃描至 TIMOO 線圈電路 ,定時器開始計時 .如考慮循環(huán)掃描時間 ,定時器什么時候動作 ,可根據(jù)文〔 6〕認為其即時值減至零時 ,定時器便動作 .對于圖 1 的電路 ,設(shè)定時器TIMOO 即時值減至零時 ,循環(huán)掃描處在梯形圖的 A 點以前或 D 點以后 .由于 TIMOO動作,當循環(huán)掃描過 A 點時 ,CNT46 將計到 TIMOO 的脈沖 .接著 ,當循環(huán)掃描到定時器的線圈電路 ,TIMOO 的常閉觸點斷開 ,則線圈沒電 ,定時器復(fù)位 .這將導(dǎo)致CNT47 沒有計數(shù)到 TIMOO 的脈沖〔 6〕 .也就是說 ,CNT46 和 CNT47 計數(shù)值將不同 .實驗表明 ,無論 CNT46 和 CNT47 設(shè)定值為多少 兩個計數(shù)器設(shè)定值相同 ,由程序長短決定的掃描周期如何改變 ,TIMOO 即時值減至零時循環(huán)掃描落在程序的哪一點 ,都可得兩個計數(shù)器的讀數(shù)總是相同的 .它們同時減到零 ,這說明定時器動作的條件 ,除了其即時值減至零以外 ,還要求循環(huán)掃描到定時器的線圈電路 .從定時器即時值減至零 ,到循環(huán)掃描到定時器的線圈電路 ,這段時間就是誤差時間 .定時器即時值減至零 ,如果循環(huán)掃描正到 B點 ,這段誤差最小 。而如果循環(huán)掃描正到 C點 ,則誤差最大 ,此誤差值等于一個掃描周期 ,到底循環(huán)掃描正在 哪一點 ,決定于定時器的設(shè)定值和循環(huán)掃描周期 .這很難確定 ,故這種誤差是不可避免的 . 程序越長誤差最大值越大 .從相對誤差的角度考慮 ,定時器的時間設(shè)定值越小 ,相對誤差越大 。 當應(yīng)用高速 定時器指令 TIMH FUN15 ,而設(shè)定值又很小 如 時 ,相對誤差可達 100%,設(shè)計時應(yīng)予注意 . 2 定時器工作過程指令次序造成的誤差 在定時器工作過程中 ,指令先后和指令順序不當各造成定時器的誤差 ,分別如圖 2,3 所示 . 循環(huán)掃描使程序執(zhí)行有先有后 .定時器線圈通電條件滿足時 ,并不立即計時 ,而是等到掃描到線圈電路時才開始計時 .另外 ,定時器動作后 ,其觸點控制的電路也得等到掃描至該電路時才工作 .在圖 2 梯形圖中 ,從 0002“ ON ”到 0500 有輸出之間的時間 ,比定時器 TIMOO 的設(shè)定值長 ,差值的一部分是 由本文上面提到的定時器動作條件產(chǎn)生的 ,另一部分為循環(huán)掃描從指令 LD0002 到OUT0500 的時間 .這種誤差和指令順序及位置安排關(guān)系密切 .當把圖 2 中三段程序緊靠在一起 ,中間沒有插入其它程序 ,則誤差最小 .當指令順序安排不當 ,此誤差可達 TS 的 2 倍 . 這種情況發(fā)生在圖 3 所示的梯形圖程序中。 Programmable controller in the timer precision analysis Set puter technology, automatic control technology and modern munications technology integration in the PLC, because its convenience, high reliability, and can adapt to bad work environment in all industrial advantage, the department to get extremely extensive application. PLC and robot, CAD/AMC, called the modern industrial automation of the three pillars. From single automation, producing automatic assembly line to the numerical control system C , puter integrated CN manufacturing system C and intelligent IMS manufacturing system IM , can see SPLCPLC. In the industrial automation control system, often use timer control process to determine the length of time, the physical size. Wen controlled 1 this time in saving energy control terminals, the significance and the application of control system, Wen [3] is studied using the parameters calibration, timer pensation voltage fluctuation on electrical heating system control precision of adverse effects. These are that the physical process of time is a very important control system of quantities as PLC timer. The application, there are two problems must study. 1 the timer parameters, according to the actual situation of production site set in the Settings may exist, what problem, literature [4] It has further discussion. 2 under the timer control of physical process of actual length and timer value, how much is this, the error due to discuss the content of PLC. By the way, work cycle scanning and PLC within the timer is independent of cycle time outside of the scanning device, the application in the timer can lead to errors in PLC. In the working process of the timer, will cause error of two kinds of reasons, the scope of error, and puts forward the method of reduce error. One the timer moves and errors Figure 1 for the experimental procedure. Timer moves timer TIMOO action, it often open contacts closed a pulse, counter CNT46 and 47 of the CNT pulse count. CNT46 and CNT47 set identical, this two counter for a duration reduced to zero, namely the coil timer circuits which was cut off. In the PLC electricity, when circulation scanning to TIMOO coil timer circuits, timing starts. If considering scanning time cycle timer, when action, can according to article [6] think its duration reduced to zero, the timer is then moves to figure 1. The circuit, set the timer TIMOO namely duration reduced to zero, the circulation of A scan in ladderdiagram before or after DTIM. Because, when the cycle OO scan A point, CNT46 will plan to TIMOO pulse. Then, when the cycle of coil timer circuits scanned, TIMOOoften closed contacts disconnected, coil, timer reset. This will cause CNT47. Not counting to TIMOO pulse 6 . In other words, CNT46 and 47 plan CNT numerical experiments show that different whether CNT46 and 47 value of CNT how much the same value two counter, the length of the scanning process decision to change cycle, TIMOO namely duration reduced to zero in the circular scanning procedure, can have two counter readings will always be the same. They also reduced to zero, the timer moves, except for its duration reduced to zero, which is required to coil timer circular scanning circuit from the timer namely duration reduced. Zero to cycle the scanning to the coil timer circuits, this paragraph of time is error. The timer is reduced to zero, if cycle as scanning is to B, the minimum error, But if cycle is to scan C, error, this error is a scan cycle timer namely duration for TS. Circulation, exactly zero point is, decided to scan the value and circulation in the timer. It is very difficult to determine the scanning period, this error is inevitable. The imum error of the program longer. From the relative error of the view of value, the smaller the timer time, the relative error, When the application of highspeed timer instruction T IM H FUN15 , and setting and small such as s , the relative error can reach 100%, design sho
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1