【正文】
red to as the ladder ladder diagram is basically a representation of the program steps using relay contacts and ladder is drawn with contacts to the left side of the sheet and coils to the right.after the I/O update, the PLC moves to the first rung of ladder solves the contact configuration to determine if the coil is to be energized or then energizes or deenergizes the this is acplished, it moves to the left side of the next rung and repeats the continues until all rungs have been solved. When this procedure is plete with all rungs solved and all coils in the ladder set up according to the solution of each rung, the PLC proceeds to the next step of it39。s sequence, the I/O update.I/O updating occurs, each input point that is ON at that time will cause a 1 to be set at the bit address associated with that particular the input is off, a 0 will be set into the bit in today39。s PLC39。s is generally configured in 16 bit means that one word of memory can store the states of 16 discrete input points. Therefore, there may be a number of words of memory set aside as the input and output image I/O update, the status of the input image register is set according to the state of all discrete inputs and the status of the output image register is transferred to the output unit. This transfer of informationtypically only occurs at I/O may be forced to occur at other times in PLC39。s which have an Immediate I/O Update mand will force the PLC to update the I/O at other times although this would be a special case.At I/O update, the states of all coils which are designated as outputs are transferred from the output image register to the output unit and the states of all inputs are transferred to the input image that any input changes that occur during the solution of the ladder are ignored because they are only recorded at I/O update state of each coil is recorded to the output image register as each rung is solved. However, these states are not transferred to the output unit until I/O update time.Figure2 Scan CycleThis procedure of I/O update and solving the ladder diagram and I/O update is referred to as scanning and is represented in Figure . The period between one I/O update and the next is referred to as one amount of time it takes the PLC to get from one I/O update to the next is referred to as Scan time is typically measured in milliseconds and is related to the speed of the CPU and the length of the ladder diagram that has to be solved. The slower the processor or the longer the ladder diagram, the longer the scan time of the speed atwhich a PLC scans memory is referred to as Scan rate units are usually listed inmsec/K of memory being utilized for the program. As an example, if a particular PLC has a rated scan rate of 8 msec/K and the program occupies 6K of memory, it will take the PLC 48 msec to plete one scan of the program.譯文:系統(tǒng)框圖可編程控制器是一種專用的計算機。因為它是一臺計算機,它就應(yīng)該具有其它計算機的基本組成部分:中央處理單元,存儲器,輸入接口和輸出接口。一個典型的可編程控制器框圖如圖1所示中央處理器輸入連續(xù)離散寄存器開關(guān)、繼電接觸器等分壓器、反饋電壓等指輪開關(guān)、編碼器等輸出連續(xù)離散寄存器繼電器、燈等模擬顯示、控制電壓等數(shù)字顯示存儲器只讀存儲器隨機存儲器圖1可編程控制器 框圖中央處理單元(CPU)是PLC的控制部分。它解釋來自存儲器的程序指令并且按這些指令執(zhí)行操作?,F(xiàn)在PLC的中央處理單元是一個基于微處理器的系統(tǒng),被置于模塊化系統(tǒng)的處理器模塊中,系統(tǒng)存儲器大致分為兩類:只讀存儲器和隨機存儲器。只讀存儲器包含程序信息,通過這些程序信息,CPU可以解釋和執(zhí)行存儲在隨機存儲器中的梯形圖程序。隨機存儲器一般都有板上電源維持,這樣系統(tǒng)掉電時,梯形圖程序不會丟失。這種電源可以是標(biāo)準(zhǔn)的干電池或可充電的鎳鎘電池。新型的PLC存儲單元使用電可擦除可編程只讀存儲器(EEPROM),這就不需要專門的電源維持。內(nèi)存也設(shè)在模塊化系統(tǒng)中的處理器模塊內(nèi)。輸入單元有若干不同類型,所用類型根據(jù)前述輸入信號需求選擇。輸入部件可以接收多種不同電壓和電流等級的離散信號或模擬信號??删幊踢壿嬁刂破魃想姾螅溥\作包含兩個階段:(1)刷新輸入和輸出(2)解讀梯形圖。PLC開始運作時的首要操作就是刷新I/O。這就意味著通過輸入單元,所有的離散輸入狀態(tài)被記錄,而且所有將要輸出的離散狀態(tài)被轉(zhuǎn)移到輸出單元。通常有一些特定地址來寄存數(shù)據(jù),這些地址與輸入和輸出數(shù)據(jù)相關(guān),稱為輸入和輸出寄存器這些寄存器與輸入和輸出模塊相連并且通過離散數(shù)據(jù)來更新。由于這是輸入/輸出的更新,因而它被稱為I/O刷新。當(dāng)I/O刷新時,如果輸入點輸入的是“開”信號,那么與之相聯(lián)的位地址內(nèi)容被置“1”。如果輸入點輸入的是“關(guān)”信號,那么相應(yīng)的位地址內(nèi)容被置“0”?,F(xiàn)在,PLC存儲器字長大都是16位。這意味著,內(nèi)存的一個字可存儲16個離散輸入點的狀態(tài)信息。因而,內(nèi)存中可能會有一定數(shù)量的字被預(yù)留,作為輸入和輸出映像寄存器。在I/O刷新時,輸入映像寄存器的狀態(tài)根據(jù)所有離散輸入的狀態(tài)信息變化,輸出映像寄存器的狀態(tài)被送至輸出單元。這種狀態(tài)信息的轉(zhuǎn)變通常只發(fā)生在的I/O刷新階段。但是,在PLC工作的其它時段,當(dāng)有I/O立即刷新命令時,狀態(tài)信息的轉(zhuǎn)變也可以被強制進行。作為一種特殊情況,這條命令將會迫使PLC在其它任何時候刷新I/O。輸入輸出刷新完成后,PLC開始執(zhí)行編入的指令。這些指令通常稱為梯形圖,該梯形圖基本上使用繼電器觸點和線圈編程。輸入輸出刷新完畢后,PLC轉(zhuǎn)向梯形邏輯中的第一個階梯,處理接點元件,判定線圈將得電或失電,然后使線圈得電或失電。完成此操作后,PLC轉(zhuǎn)向下個階梯,重復(fù)前面步驟,這樣持續(xù)到所有階梯被處理完畢。當(dāng)處理所有階梯的過程完畢,并且梯形圖中所有的線圈都已根據(jù)處理的每個階梯設(shè)定,那么PLC就進入到其下一個階段──I/O刷新。I/O刷新階段,所有輸出線圈的狀態(tài)從輸出映像寄存器轉(zhuǎn)移到輸出單元,同時所有輸入狀態(tài)被轉(zhuǎn)移到輸入映像寄存器。注意,在處理梯形圖期間,輸入的任何變化 將被忽略,因為它們只有在I/O刷新階段才被記錄。在處理每一階梯時,每個線圈的狀態(tài)將被記錄至輸出映像寄存器。然而,這些狀態(tài)直到I/O刷新階段才被轉(zhuǎn)移至輸出單元。這種I/O刷新、處理梯形圖再到I/O刷新的過程稱為掃描。前一次I/O刷新和下次刷新之間的時段稱為一次掃描。PLC從前一次I/O刷新到下次刷新所用的時間稱為掃描時間。掃描時間通常以毫秒為單位來衡量,而且掃描時間與CPU的運行速度和所要處理的梯形圖的長度有關(guān)。PLC掃描存儲器的速度稱為掃描速度。掃描速度單位通常為毫秒/K,程序正在使用的內(nèi)存。例如,如果某一PLC掃描速度為8毫秒/K,程序占用8K的內(nèi)存 ,那么PLC將會用48毫秒完成一次程序掃描。圖2 循環(huán)掃描附錄C:參考文獻及內(nèi)容簡介【1】[M].北京:電子工業(yè)出版社,1996本文在已有的通用變頻器的基礎(chǔ)上,采用對電梯進行控制,通過合理的選擇和設(shè)計,提高了電梯的控制水平,改善了電梯運行的舒適感,使電梯達到較為理想的控制效果【2】唐勇奇,趙葵銀,[J] ..介紹了一種采用PLC和變頻器控制的電梯控制系統(tǒng),闡述了該系統(tǒng)中硬件和軟件設(shè)計方法,提高了電梯運行的可靠性、舒適性和效率。【3】[M].. 本書首先深入淺出地講解了電力拖動系統(tǒng)的工作要求、異步電動機的主要理論和交直、交變頻器的基本原理,而詳細講解了變頻器中各功能的含義,進步預(yù)置的依據(jù)和方法,變頻調(diào)速拖動的系統(tǒng)的設(shè)計、安裝,變頻器在水泵和風(fēng)機、起重機械和電梯、金屬切削機床和其他機械中的應(yīng)用,并對使用中一些問題進行了深入探討?!?】——運動控制系統(tǒng)[M]..本書包括直流拖動控制系統(tǒng)和交流拖動控制系統(tǒng)兩篇。應(yīng)用自動控制理論解決電力拖動控制系統(tǒng)的分析和設(shè)計問題,以控制規(guī)律為主線,由簡入繁、由低及高地循序深入,主要論述了系統(tǒng)的靜、動態(tài)性能,并發(fā)展了實用價值很高的工程設(shè)計方法。【5】,1996【6】汪曉平,可編程控制器系統(tǒng)開發(fā)實例導(dǎo)航[M].北京:人民郵電出版社,本書先向讀者介紹了PLC的基礎(chǔ)知識,包括PLC的產(chǎn)生、發(fā)展,常用PLC介紹及PLC通信的一些必備知識。然后介紹了PLC在工業(yè)控制領(lǐng)域中的一些應(yīng)用,包括定位自動控制系統(tǒng)、啤酒發(fā)酵自動控制系統(tǒng)、織機自動控制系統(tǒng)、鍋爐燃燒自動控制系統(tǒng)、水處理控制系統(tǒng)、小功率金鹵石英吹泡機控制系統(tǒng)、曳引式電梯單控系統(tǒng)等?!?】 .【8】 .【9】[M].北京:本書通過如何選型、配置硬件和軟件、組織生產(chǎn)控制網(wǎng)絡(luò)和計算機監(jiān)視網(wǎng)絡(luò),以及考慮到技術(shù)革新改造等因素,來介紹可編程序控制器系統(tǒng)的設(shè)計、軟件編程思維、現(xiàn)場安裝調(diào)試和生產(chǎn)運行與維護。并給現(xiàn)場工程技術(shù)人員一些建議,使得可編程序控制系統(tǒng)盡快地實現(xiàn)預(yù)期的效果。書中介紹了許多工程應(yīng)用集錦,推薦了成功的經(jīng)驗和分析了失敗的教訓(xùn)。本書將引導(dǎo)工程設(shè)計人員和大專院校師生更有效地應(yīng)用可編程序控制器,并掌握其在工程應(yīng)用中的