Một số kỹ thuật lập trình

Tại sao lại chỉ lấy một sườn? Ta biết rằng, vòng quét của PLC sẽ được thực hiện li ên tục

các bước đọc ngõ vào, duyệt chương trình, xuất ngõ ra và việc này được thực hiện cứ mỗi

3-6ms tùy theo số lệnh trong ch ương trình(S7-200). Điều đó có nghĩa rằng cứ mỗi 3 -6ms,

I0.0 sẽ được kiểm tra một lần v à nếu trước đó Q0.5 = “1” thì lệnh reset thực hiện và

ngược lại. Việc này được thực hiện li ên tục như thế làm cho việc thực hiện lệnh của ta

không chính xác. Chính vì vậy, việc lấy sườn của một tín hiệu vào để chắc chắn rằng lệnh

chỉ được thực hiện một lần khi I0.0 được nhấn.

pdf27 trang | Chia sẻ: thienmai908 | Lượt xem: 1277 | Lượt tải: 0download
Bạn đang xem trước 20 trang nội dung tài liệu Một số kỹ thuật lập trình, để xem tài liệu hoàn chỉnh bạn click vào nút DOWNLOAD ở trên
ange of inductive proximity sensors based on what type of target metal? 3.An inductive proximity sensor has a spe cified range of 5mm. What is it’s range when sensing a brass target object? 4.Capacitive proximity sensors will sense metal objects as well a inductive proximity sensors. So why use inductive proximity sensors? 5.Why are ultrasonic proximity sensors not used to sense close-range objects? 6.When the beam of a thru-beam NPN dark-on optical sensor is interrupted by a target object, it’s output will be logically _____ (high or low). 7.State one disadvantage in using a thru -beam optical sensor. 8.What is the difference between a diffuse-reflective and retro-reflective optical sensor? 9.Why do retro-reflective optical sensors use polarizing light filters? 1.When a bi-metallic strip is heated, it bends in the direction of the side that has the _____ (high or low) coefficient of expansion. 2.What is the Seebeck voltage?. 3.What is chromel? What is alumel? 4.A 200 ohm platinum RTD measures 222 ohms. What is its temperature? 5.A N/O float switch closes when the liquid level is ___ (low or high). 6.A 100mm long metal rod is compressed and measures 97mm. What is the strain? 7.A 1k ohm strain gage is connected into a bridge circuit with the other three resistors R Auto books Thiết kế hệ thống điều khiển cơ bản với S7-200 No1 Copyright 2007 by AUTOMANVNpage 173 / 375 Tutorial Status: 18/08 Version 2.2 Tài liệu này được xây dựng để hỗ trợ sinh viên học tập, nghiên cứu. Ngoài đối tượng sinh viên, mọi sự sao chép, sử dụng thông tin tr ên tài liệu, đề nghị liên hệ : plcroomvn@yahoo.com hoặc số điện thoại 0974.858.101. = R = R = 1k ohms. The bridge is powered by a 10 volt DC 1 2 3 power supply. The strain gage has a gage factor k = 1.5. The bridge is balanced (Vout = 0 volts) when the strain = 0. What is the strain when Vout= +200 microvolts? 8.A 0 to +500psi pressure transducer has a calibration factor of 100 psi/volt. a) What is the pressure if the transducer out put is 1.96 volts? b) What is the full scale output voltage of the transducer? 9.Water is flowing at 10 mph in a square concrete drainage canal that is 3/sec? 10' wide. The water in the canal is 5' deep. What is the flow in ft 10.What is an advantage in using a thermal dispersion flow switch as opposed to other types of flow switches? 11.A slotted disk and opto-interrupter as shown in Figure 9 -27 outputs pulses at 620 Hz. What is the rotating speed of the disk in rpms? 12.A 3600 pulse incremental encode r is outputting a 2.5 kHz square wave. What is a) the resolution of the encoder, and b) the speed of rotation? 13.A 10-bit absolute optical encoder is outputting the octal number 137. What is its shaft position with respect to mechanical zero? 14.A 10 bit absolute optical encoder is outputting the gray code number 1000110111. What is its shaft position with respect to mechanical zero? 15.A 16 inch magnetostrictive sensor has a full scale output of 10 volts. When it is outputting 3.55 volts, how far is t he magnet from the sensor element head? 1. Decide whether each of these statements is True (T) or False (F). The instruction list: X401LD X402AND Y430OUT describes a ladder diagram rung for which there is an output when: (i) Input X401 is activated but X 402 is not. (ii) Input X401 and input X402 are both activated. A (i) T (ii) T B (i) T (ii) F C (i) F (ii) T D (i) F (ii) F Auto books Thiết kế hệ thống điều khiển cơ bản với S7-200 No1 Copyright 2007 by AUTOMANVNpage 174 / 375 Tutorial Status: 18/08 Version 2.2 Tài liệu này được xây dựng để hỗ trợ sinh viên học tập, nghiên cứu. Ngoài đối tượng sinh viên, mọi sự sao chép, sử dụng thông tin tr ên tài liệu, đề nghị liên hệ : plcroomvn@yahoo.com hoặc số điện thoại 0974.858.101. 2. Decide whether each of these statements is True (T) or False (F). The instruction list: X401LD X402OR Y430OUT describes a ladder diagram rung for which there is an output when: (i) Input X401 is activated but X402 is not. (ii) Input X402 is activated but X401 is not. A (i) T (ii) T B (i) T (ii) F C (i) F (ii) T D (i) F (ii) F 3. Decide whether each of these statements is True (T) or False (F). The instruction list: X401LD X402ANI Y430OUT describes a ladder diagram rung for which there is an output when: (i) Input X401 is activated but X402 is not. (ii) Input X401 and input X402 are both activated. A (i) T (ii) T B (i) T (ii) F C (i) F (ii) T D (i) F (ii) F 4. Decide whether each of these statements is True (T) or False (F). The instruction list: X401LDI X402ANI Y430OUT describes a ladder diagram rung for which there is an output when: (i) Input X401 is activated but X402 is not. (ii) Input X401 and input X402 are both activated. A (i) T (ii) T Auto books Thiết kế hệ thống điều khiển cơ bản với S7-200 No1 Copyright 2007 by AUTOMANVNpage 175 / 375 Tutorial Status: 18/08 Version 2.2 Tài liệu này được xây dựng để hỗ trợ sinh viên học tập, nghiên cứu. Ngoài đối tượng sinh viên, mọi sự sao chép, sử dụng thông tin tr ên tài liệu, đề nghị liên hệ : plcroomvn@yahoo.com hoặc số điện thoại 0974.858.101. B (i) T (ii) F C (i) F (ii) T D (i) F (ii) F 5. Decide whether each of these statements is True (T) or False (F). The instruction list: X401LD Y430OR X402ANI Y430OUT describes a ladder diagram rung for which there is: (i) An output when input X401 is momentarily activated. (ii) No output when X402 is activated. A (i) T (ii) T B (i) T (ii) F C (i) F (ii) T D (i) F (ii) F 6. Decide whether each of these statements is True (T) or False (F). The instruction list: I0.1A I0.2A Q2.0= describes a ladder diagram rung for which there is an output when: (i) Input I0.1 is activated but I0.2 is not. (ii) Input I0.1 and input I0.2 are both activ ated. A (i) T (ii) T B (i) T (ii) F C (i) F (ii) T D (i) F (ii) F 7. Decide whether each of these statements is True (T) or False (F). The instruction list: I0.1A Auto books Thiết kế hệ thống điều khiển cơ bản với S7-200 No1 Copyright 2007 by AUTOMANVNpage 176 / 375 Tutorial Status: 18/08 Version 2.2 Tài liệu này được xây dựng để hỗ trợ sinh viên học tập, nghiên cứu. Ngoài đối tượng sinh viên, mọi sự sao chép, sử dụng thông tin tr ên tài liệu, đề nghị liên hệ : plcroomvn@yahoo.com hoặc số điện thoại 0974.858.101. I0.2O Q2.0= describes a ladder diagram rung for which there is an output when: (i) Input I0.1 is activated but I0.2 is not. (ii) Input I0.2 is activated but I0.1 is not. A (i) T (ii) T B (i) T (ii) F C (i) F (ii) T D (i) F (ii) F 8. Decide whether each of these statements is True (T) or False (F). The instruction list: I0.1A I0.2AN Q2.0= describes a ladder diagram rung for which there is an output when: (i) Input I0.1 is activated but I0.2 is not. (ii) Input I0.1 and input I0.2 are both activated. A (i) T (ii) T B (i) T (ii) F C (i) F (ii) T D (i) F (ii) F 9. Decide whether each of these statements is True (T) or False (F). The instruction list: I0.1AN I0.2AN Q2.0= describes a ladder diagram rung for which there is an output when: (i) Input I0.1 is activated but I0.2 is not. (ii) Input I0.1 and input I0.2 are both activated. A (i) T (ii) T B (i) T (ii) F C (i) F (ii) T Auto books Thiết kế hệ thống điều khiển cơ bản với S7-200 No1 Copyright 2007 by AUTOMANVNpage 177 / 375 Tutorial Status: 18/08 Version 2.2 Tài liệu này được xây dựng để hỗ trợ sinh viên học tập, nghiên cứu. Ngoài đối tượng sinh viên, mọi sự sao chép, sử dụng thông tin tr ên tài liệu, đề nghị liên hệ : plcroomvn@yahoo.com hoặc số điện thoại 0974.858.101. D (i) F (ii) F 10Decide whether each of these statements is True (T) or False (F). The instruction list: I0.1A Q2.0O I0.2AN Q2.0= describes a ladder diagram rung for which there is: (i) An output when input I0.1 is momentarily activated. (ii) No output when I0.2 is activated. A (i) T (ii) T B (i) T (ii) F C (i) F (ii) T D (i) F (ii) F 11. Decide whether each of these statements is True (T) or False (F). For the sequential function chart shown in Figure 6.22: (i) State 1 is realised when the condition X1 is realised. (ii) Output 1 occurs when the condition X2 is realised. A (i) T (ii) T B (i) T (ii) F C (i) F (ii) T D (i) F (ii) F Figure 6.22 : Problem 11 12. Decide whether each of these statements is True (T) or False (F). Auto books Thiết kế hệ thống điều khiển cơ bản với S7-200 No1 Copyright 2007 by AUTOMANVNpage 178 / 375 Tutorial Status: 18/08 Version 2.2 Tài liệu này được xây dựng để hỗ trợ sinh viên học tập, nghiên cứu. Ngoài đối tượng sinh viên, mọi sự sao chép, sử dụng thông tin tr ên tài liệu, đề nghị liên hệ : plcroomvn@yahoo.com hoặc số điện thoại 0974.858.101. Figure 6.23 Problem 12 For the sequential function chart shown in Figure 6.23, if State 1 is active: (i) State 2 is realised when the condition X2 is realised. (ii) State 3 occurs when the condition X3 is realised. A (i) T (ii) T B (i) T (ii) F C (i) F (ii) T D (i) F (ii) F 13. For the ladder program described in Figure 6.24(a), which of the sequential function charts in Figure 6.24(b) will represent it? Figure 6.24 Problem 13 Auto books Thiết kế hệ thống điều khiển cơ bản với S7-200 No1 Copyright 2007 by AUTOMANVNpage 179 / 375 Tutorial Status: 18/08 Version 2.2 Tài liệu này được xây dựng để hỗ trợ sinh viên học tập, nghiên cứu. Ngoài đối tượng sinh viên, mọi sự sao chép, sử dụng thông tin tr ên tài liệu, đề nghị liên hệ : plcroomvn@yahoo.com hoặc số điện thoại 0974.858.101. Problems 14, 15 and 16 concern the sequential function chart shown in Figure 6.25. Figure 6.25 Problems 14, 15 and 16 14. Decide whether each of these statements is True (T) or False (F). For the sequential function chart shown in Figure 6.25, o utput Y2 will occur if output Y1 has been realised and: (i) Both X2 and X3 have been realised. (ii) Just X2 has been realised. A (i) T (ii) T B (i) T (ii) F C (i) F (ii) T D (i) F (ii) F 15. Decide whether each of these statements is True (T) or False (F). For the sequential function chart shown in Figure 6.25, output Y4 will occur if output Y2 has occurred and: (i) Output Y3 has occurred. (ii) X4 has been realised. A (i) T (ii) T B (i) T (ii) F C (i) F (ii) T D (i) F (ii) F Auto books Thiết kế hệ thống điều khiển cơ bản với S7-200 No1 Copyright 2007 by AUTOMANVNpage 180 / 375 Tutorial Status: 18/08 Version 2.2 Tài liệu này được xây dựng để hỗ trợ sinh viên học tập, nghiên cứu. Ngoài đối tượng sinh viên, mọi sự sao chép, sử dụng thông tin tr ên tài liệu, đề nghị liên hệ : plcroomvn@yahoo.com hoặc số điện thoại 0974.858.101. 16. Decide whether each of these statements is True (T) or False (F). For the sequential function chart shown in Figure 6.25, output Y5 will occur if: (i) Output Y4 has occurred and condition X6 is realised. (ii) Output Y3 has occurred and condition X5 is real ised. A (i) T (ii) T B (i) T (ii) F C (i) F (ii) T D (i) F (ii) F 17For the sequential function chart in Figure 6.26, which of the ladder programs in Figure 6.27 describes the same program? Figure 6.26 Problem 17 Auto books Thiết kế hệ thống điều khiển cơ bản với S7-200 No1 Copyright 2007 by AUTOMANVNpage 181 / 375 Tutorial Status: 18/08 Version 2.2 Tài liệu này được xây dựng để hỗ trợ sinh viên học tập, nghiên cứu. Ngoài đối tượng sinh viên, mọi sự sao chép, sử dụng thông tin tr ên tài liệu, đề nghị liên hệ : plcroomvn@yahoo.com hoặc số điện thoại 0974.858.101. Figure 6.27 Problem 17

Các file đính kèm theo tài liệu này:

  • pdfchuong_5_2.pdf
Tài liệu liên quan