




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、This chapter continues from the previous chapters on programming and introduces internal relays. A variety of other terms are often used to describe these elements, such as auxiliary relays, markers, flags, coils, and bit storage. These are one of the elements included among the special built-in fun
2、ctions with PLCs and are very widely used in programming. A small PLC might have a hundred or more internal relays, some of them battery backed so that they can be used in situations where it is necessary to ensure safe shutdown of a plant in the event of power failure. Later chapters consider other
3、 common built-in elements.7.1 Internal RelaysIn PLCs there are elements that are used to hold data, that is, bits, and behave like relays,being able to be switched on or off and to switch other devices on or off. Hence the term internal relay. Such internal relays do not exist as real-world switchin
4、g devices but are merely bits in the storage memory that behave in the same way as relays. For programming, they can be treated in the same way as an external relay output and input. Thus inputs to external switches can be used to give an output from an internal relay. This then results in the inter
5、nal relay contacts being used, in conjunction with other external input switches, to give an output, such as activating a motor. Thus we might have (Figure 7.1)On one rung of the program: Inputs to external inputs activate the internal relay output.On a later rung of the program: As a consequence of
6、 the internal relay output, internal relay contacts are activated and so control some output.In using an internal relay, it has to be activated on one rung of a program and then its output used to operate switching contacts on another rung, or rungs, of the program. Internal relays can be programmed
7、 with as many sets of associated contacts as desired.To distinguish internal relay outputs from external relay outputs, they are given different types of addresses. Different manufacturers tend to use different terms for internal relays and have different ways of expressing their addresses. For exam
8、ple, Mitsubishi uses the term auxiliary relay or marker and the notation M100, M101, and so on. Siemens uses the term flag and the notation F0.0, F0.1, and so on. Telemecanique uses the term bit and the notation B0, B1, and so on. Toshiba uses the term internal relay and the notation R000, R001, and
9、 so on. Allen-Bradley uses the term bit storage and notation in the PLC-5 of the form B3/001,B3/002, and so on.7.2 Ladder ProgramsWith ladder programs, an internal relay output is represented using the symbol for an output device, namely , with an address that indicates that it is an internal relay.
10、 Thus, with a Mitsubishi PLC, we might have the address M100, the M indicating that it is an internal relay or marker rather than an external device. The internal relay switching contacts are designated with the symbol for an input device, namely , and given the same address as the internal relay ou
11、tput, such as M100.7.2.1 Programs with Multiple Input ConditionsAs an illustration of the use that can be made of internal relays, consider the following situation. A system is to be activated when two different sets of input conditions are realized.We might just program this as an AND logic gate sy
12、stem; however, if a number of inputs have to be checked in order that each of the input conditions can be realized, it may be simpler to use an internal relay. The first input conditions then are used to give an output to an internal relay. This relay has associated contacts that then become part of
13、 the input conditions with the second inputFigure 7.2 shows a ladder program for such a task. For the first rung, when input In 1 or input In 3 is closed and input In 2 closed, internal relay IR 1 is activated. This results in the contacts for IR 1 closing. If input In 4 is then activated, there is
14、an output from output Out 1. Such a task might be involved in the automatic lifting of a barrier when someone approaches from either side. Input In 1 and input In 3 are inputs from photoelectric sensors that detect the presence of a person approaching or leaving from either side of the barrier, inpu
15、t In 1 being activated from one side of it and input In 3 from the other. Input In 2 is an enabling switch to enable the system to be closed down. Thus when input In 1 or input In 3, and input In 2, are activated, there is an output from internal relay 1. This will close the internal relay contacts.
16、 If input In 4, perhaps a limit switch,detects that the barrier is closed, then it is activated and closes. The result is then an output fromOut 1, a motor that lifts the barrier. If the limit switch detects that the barrier is already open, the person having passed through it, then it opens and so
17、output Out 1 is no longer energized and a counterweight might then close the barrier. The internal relay has enabled two parts of the program to be linked, one part being the detection of the presence of a person and the second part the detection of whether the barrier is already up or down. Figure
18、7.3a shows how Figure 7.2 would appear in Mitsubishi notation and Figure 7.3b shows how it would appear in Siemens notation.Figure 7.4 is another example of a ladder program involving internal relays. Output 1 is controlled by two input arrangements. The first rung shows the internal relay IR 1, whi
19、ch is energized if input In 1 or In 2 is activated and closed. The second rung shows internal relay IR 2, which is energized if inputs In 3 and In 4 are both energized. The third rung shows that output Out 1 is energized if internal relay IR 1 or IR 2 is activated. Thus there is an output from the s
20、ystem if either of two sets of input conditions is realized.7.2.2 Latching ProgramsAnother use of internal relays is for resetting a latch circuit. Figure 7.5 shows an example of such a ladder program. When the input In 1 contacts are momentarily closed, there is an output at Out 1. This closes the
21、contacts for Out 1 and so maintains the output, even when input In 1 opens. When input In 2 is closed, the internal relay IR 1 is energized and so opens the IR 1 contacts, which are normally closed. Thus the output Out 1 is switched off and so the output is unlatched.Consider a situation requiring l
22、atch circuits where there is an automatic machine that can be started or stopped using push-button switches. A latch circuit is used to start and stop the power being applied to the machine. The machine has several outputs that can be turned on if the power has been turned on and are off if the powe
23、r is off. It would be possible to devise a ladder diagram that has individually latched controls for each such output. However, a simpler method is to use an internal relay. Figure 7.6 shows such a ladder diagram. The first rung has the latch for keeping the internal relay IR 1 on when the start swi
24、tch gives a momentary input. The second rung will then switch the power on. The third rung will also switch on and give output Out 2 if the input 2 contacts are closed. The third rung will also switch on and give output Out 3 if the input 3 contacts are closed. Thus all the outputs can be switched o
25、n when the start push button is activated. All the outputs will be switched off if the stop switch is opened. Thus all the outputs are latched by IR 1.7.2.3 Response TimeThe time taken between an input occurring and an output changing depends on such factors as the electrical response time of the in
26、put circuit, the mechanical response of the output device, and the scan time of the program. A ladder program is read from left to right and from top to bottom. Thus if an output device, such as an internal relay, is set in one scan cycle and the output has to be fed back to earlier in the program,
27、it will require a second scan of the program before it can be activated. Figure 7.7 illustrates this concept.7.3 Battery-Backed RelaysIf the power supply is cut off from a PLC while it is being used, all the output relays and internal relays will be turned off. Thus when the power is restored, all t
28、he contacts associated with those relays will be set differently from when the power was on. Therefore, if the PLC was in the middle of some sequence of control actions, it would resume at a different point in the sequence. To overcome this problem, some internal relays have battery backup so that t
29、hey can be used in circuits to ensure a safe shutdown of a plant in the event of a power failure and so enable it to restart in an appropriate manner. Such battery-backed relays retain their state of activation, even when the power supply is off. The relay is said to have been made retentive.The ter
30、m retentive memory coil is frequently used for such elements. Figure 7.8a shows the IEC 1131-3 standard symbol for such elements. With Mitsubishi PLCs, battery-backed internal relay circuits use M300 to M377 as addresses for such relays. Other manufacturers use different addresses and methods of ach
31、ieving retentive memory. The Allen-Bradley PLC-5 uses latch and unlatch rungs. If the relay is latched, it remains latched if power is lost and is unlatched when the unlatch relay is activated. (See Section 7.5 for a discussion of such relays in the context of set and reset coils.)As an example of t
32、he use of such a relay, Figure 7.8b shows a ladder diagram for a system designed to cope with a power failure. IR 1 is a battery-backed internal relay. When input In 1 contacts close, output IR 1 is energized. This closes the IR 1 contacts, latching so that IR 1 remains on even if input In 1 opens.
33、The result is an output from Out 1. If there is a power failure, IR 1 still remains energized and so the IR 1 contacts remain closed and there is an output from Out 1.7.4 One-Shot OperationOne of the functions provided by some PLC manufacturers is the ability to program an internal relay so that its
34、 contacts are activated for just one cycle, that is, one scan through the ladder program. Hence when operated, the internal relay provides a fixed duration pulse at its contacts. This function is often termed one-shot. Though some PLCs have such a function as part of their programs, such a function
35、can also easily be developed with just two rungs of a ladder program. Figure 7.9 shows such a pair of rungs.For Figure 7.9a, when the trigger input occurs, it gives a trigger output in rung 1. In rung 2 it gives a cycle control output on an internal relay. Because rung 2 occurs after rung 1, the eff
36、ect of the cycle control is not felt until the next cycle of the PLC program, when it opens the cycle control contacts in rung 1 and stops the trigger output. The trigger output then remains off, despite there being a trigger input. The trigger output can only occur again when the trigger output is
37、switched off and then switched on again.Figures 7.9b and 7.9c show the built-in facilities with Allen-Bradley and Mitsubishi PLCs.With the Mitsubishi PLC (Figure 7.9c), the output internal relaysay, M100is activated when the trigger inputsay, X400contacts close. Under normal circumstances, M100 woul
38、d remain on for as long as the X400 contacts were closed. However, if M100 has been programmed for pulse operation, M100 only remains on for a fixed period of timeone program cycle. It then goes off, regardless of X400 being on. The programming instructions that would be used are LD X400, PLS M100.
39、The preceding represents pulse operation when the input goes from off to on, that is, is positive-going. If, in Figure 7.9c, the trigger input is made normally closed rather than normally open, the pulse occurs when the input goes from on to offin other words, is negative-going.The IEC 1131-3 gives
40、standards for the symbols for positive transition-sensing and negative transition-sensing coils (Figure 7.10).With the positive transition-sensing coil, if the power flow to it changes from off to on, the output is set on for one ladder rung evaluation. With the negative transition-sensing coil, if
41、the power to it changes from off to on, the output is set on for one ladder rung evaluation. Thus, for the ladder rung of Figure 7.11, with the input off there is no output. When the input switches on, there is an output from the coil. However, the next and successive cycles of the program do not gi
42、ve outputs from the coil even though the switch remains on. The coil only gives an output the first time the switch is on.7.5 Set and ResetAnother function that is often available is the ability to set and reset an internal relay. The set instruction causes the relay to self-hold, that is, latch. It
43、 then remains in that condition until the reset instruction is received. The term flip-flop is often used. Figure 7.12 shows the IEC 1131-3 standards for such coils. The SET coil is switched on when power is supplied to it and remains set until it is RESET. The RESET coil is reset to the off state w
44、hen power is supplied to it and remains off until it is SET.Figure 7.13 shows an example of a ladder diagram involving such a function. Activation of the first input, X400, causes the output Y430 to be turned on and set, that is, latched. Thus if the first input is turned off, the output remains on.
45、 Activation of the second input, X401,causes the output Y430 to be reset, that is, turned off and latched off. Thus the output Y430 is on for the time between X400 being momentarily switched on and X401 being momentarily switched on. Between the two rungs indicated for the set and reset operations,
46、there could be other rungs for other activities to be carried out, with the set rung switching on an output at the beginning of the sequence and off at the end.The programming instructions for the ladder rungs in the program for Figure 7.13 are: LD X400 S Y430Other program rungs are: LD X401 R Y430W
47、ith a Telemecanique PLC, the ladder diagram would be as shown in Figure 7.14 and theprogramming instructions would be: L I0,0 S O0,0 L I0,1 R O0,0 With an Allen-Bradley PLC, the terms latch and unlatch are used. Figure 7.15 shows the ladder diagram.The SET and RESET coil symbols are often combined i
48、n a single box symbol. Figure 7.16 shows the equivalent ladder diagram for the set-reset function in the preceding figures with a Siemens PLC. The term memory box is used by them for the SET/RESET box, and the box shown is termed an SR or reset priority memory function in that reset has priority.Wit
49、h set priority (RS memory box), the arrangement is as shown in Figure 7.17.The programming instructions (F indicates an internal relay) for reset priority are: A I0.0 S F0.0 A I0.1 R F0.0 A F0.0 14 Q2.0Toshiba uses the term flip-flop, and Figure 7.18 shows the ladder diagram.Figure 7.19 shows how th
50、e set-reset function can be used to build the pulse (one-shot)function described in the previous section. Figure 7.19a shows it for a Siemens PLC(F indicates internal relay) and Figure 7.19b for a Telemecanique PLC (B indicates internal relay). In Figures 7.19a and 7.19b, an input (I0.0, I0,0) cause
51、s the internal relay (B0, F0.0)in the first rung to be activated. This results in the second rung, in the set/reset internal relay being set. This setting action results in the internal relay (F0.1, B1) in the first rung opening,and so, despite there being an input in the first rung, the internal re
52、lay (BO, F0.0) opens.However, because the rungs are scanned in sequence from top to bottom, a full cycle mustelapse before the internal relay in the first rung opens. A pulse of duration one cycle has thus been produced. The system is reset when the input (I0.0, I0,0) ceases.7.5.1 Program ExamplesAn
53、 example of the basic elements of a simple program for use with a fire alarm system is shown in Figure 7.20. Fire sensors provide inputs to a SET/RESET function block so that if one of the sensors is activated, the alarm is set and remains set until it is cleared by being reset. When set it sets off
54、 the alarm.Another program showing the basic elements of a program is shown in Figure 7.21. This could be used with a system designed to detect when a workpiece has been loaded into the correct position for some further operation. When the start contacts are closed, the output causes the workpiece t
55、o move. This continues until a light beam is interrupted and resets,causing the output to cease. A stop button is available to stop the movement at any time. 7.6 Master Control RelayWhen large numbers of outputs have to be controlled, it is sometimes necessary for whole sections of ladder diagrams t
56、o be turned on or off when certain criteria are realized. This could be achieved by including the contacts of the same internal relay in each of the rungs so that its operation affects all of them. An alternative is to use a master control relay.Figure 7.22 illustrates the use of such a relay to con
57、trol a section of a ladder program.With no input to input In 1, the output internal relay MC 1 is not energized, and so its contacts are open. This means that all the rungs between where it is designated to operate and the rung on which its reset MCR or another master control relay is located are switched off
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 淺析新課標下高中化學探究性教學新思路
- 中西醫(yī)結(jié)合腫瘤病學知到課后答案智慧樹章節(jié)測試答案2025年春湖南中醫(yī)藥大學
- 注漿小導管施工方案
- 站臺門設備故障現(xiàn)場處置方案演練腳本
- 財務會計:財務會計的基本理論-習題與答案
- 財務比率分析習題與答案
- 物理(湖北卷)(參考答案)
- 河北省唐山市豐南區(qū)2024-2025學年八年級上學期期末考試物理試題(原卷版+解析版)
- 稅收籌劃在科技型上市母子公司間的應用及風險探究
- 廈門水務集團自來水收費系統(tǒng)的設計與實現(xiàn)
- 化工行業(yè)員工職業(yè)發(fā)展規(guī)劃
- DL∕T 1881-2018 智能變電站智能控制柜技術(shù)規(guī)范
- 新版高中物理必做實驗目錄及器材-(電子版)
- 2023北京順義區(qū)招錄鄉(xiāng)村振興協(xié)理員及考察筆試歷年典型考題及考點剖析附答案帶詳解
- 中國慢性冠脈綜合征患者診斷及管理指南2024版解讀
- 超全讀書筆記-2萬字
- 思政課課題國內(nèi)外研究現(xiàn)狀
- 泌尿外科管道護理規(guī)范
- 醫(yī)院保安服務投標技術(shù)方案(技術(shù)標)
- 2024年新關(guān)稅法解讀課件
- 2024廣東省高中美術(shù)學業(yè)水平考試試題庫及答案
評論
0/150
提交評論