* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download 6. Typical discrete input and output devices
Power inverter wikipedia , lookup
Stray voltage wikipedia , lookup
Electromagnetic compatibility wikipedia , lookup
Current source wikipedia , lookup
Voltage optimisation wikipedia , lookup
Ground loop (electricity) wikipedia , lookup
Alternating current wikipedia , lookup
Flip-flop (electronics) wikipedia , lookup
Dynamic range compression wikipedia , lookup
Immunity-aware programming wikipedia , lookup
Voltage regulator wikipedia , lookup
Regenerative circuit wikipedia , lookup
Mains electricity wikipedia , lookup
Oscilloscope history wikipedia , lookup
Pulse-width modulation wikipedia , lookup
Rotary encoder wikipedia , lookup
Resistive opto-isolator wikipedia , lookup
Analog-to-digital converter wikipedia , lookup
Schmitt trigger wikipedia , lookup
Power electronics wikipedia , lookup
Buck converter wikipedia , lookup
6. Typical discrete input and output devices 6.1 Discrete input devices Manual switches and push buttons. They are used to initiate or select process operations or input values by the system operator. They can have single or multiple contacts. The contacts in multiple contact switches (eg. thumbwheels) or multiple contact push buttons (eg. keyboards) operate simultaneously. If connected to a PLC, each contact occupies one PLC input! A keypad with conductive rubber contacts: each pushbutton, when depressed, produces the signal state 1 in the two output lines representing its row and column in the matrix. A push button with one metal contact. EEET2204 Industrial Automation by Dr Peter Graszkiewicz 1 Limit switches lever pushed down by contact with a moving object to close the switch PLC input Proximity switches A metallic object placed close to an inductive proximity switch changes the inductance of the device sensing coil. An object, which can be nonconductive, placed close to a capacitive proximity switch changes the capacitance of the device sensor. The change is detected by the electronic circuit of the device and results in the operation of the electronic switch EEET2204 Industrial Automation by Dr Peter Graszkiewicz 2 1 Two-wire proximity switches are available, where the device internal circuit is supplied through the switched circuit. PLC Proximity switch DC supply source The PLC input current of a few mA is sufficient to supply power to the proximity switch. Equivalent cct. Photoelectric switches Light beam (photoelectric barrier) Photodetector (LED) PLC input PLC input Object Object EEET2204 Industrial Automation by Dr Peter Graszkiewicz 3 EEET2204 Industrial Automation by Dr Peter Graszkiewicz 4 Encoders 2 Incremental encoders LED Photodetector to PLC input (standard or special) The number of the photodetector pulses (eg. counted by a PLC) is a measure of the angle through which the disc has rotated. This type of encoder is used for speed and distance measurement. Incremental encoders often supply a second signal (B) that is offset by ¼ of a cycle from signal A. It is used to determine the direction of rotation and also increase the resolution. Signal Z is a once-per-revolution index (zeromark) pulse. Encoder output waveforms EEET2204 Industrial Automation by Dr Peter Graszkiewicz 5 Absolute encoders 000 111 Photodetectors 110 101 To PLC inputs (standard or special) This type of encoder is used for position measurement. The number of tracks in the binary code pattern on the disc determines the angular resolution. In the example shown: 3 tracks→3 bits →23=8 discrete positions →angular resolution= 360o/8 = 45o Binary code The actual disc of an 8-bit absolute encoder (Grey code) Output waveforms from a 6-bit absolute encoder (Binary code) EEET2204 Industrial Automation by Dr Peter Graszkiewicz 6 3 Applications of encoders The encoder determines the position of a work table through a ball screw The encoder measures the distance travelled for a cut-to-length operation The encoder determines the relative position, direction and speed of travel in a bi-directional conveyor belt The encoder measures the position and velocity of the rack and pinion. EEET2204 Industrial Automation by Dr Peter Graszkiewicz 7 Application of encoders - Design example An encoder is to be selected for the cut-to-length system shown in the previous slide. The material travels at a speed of 12 m/min. The circumference of the friction wheel is 0.25 m. The measurement of the distance travelled by the material requires a resolution of 0.1 mm. The encoder is to be connected to a PLC. The maximum frequency of the input signal acceptable by the PLC is 10 kHz. 1. Determine the type of the encoder and the signals needed for the measurement? 2. Find the number of pulses per turn the encoder is required to provide. 3. Check, if the PLC is suitable for processing the encoder signals. Answer: 1. Only signal ‘A’ from an incremental encoder is needed. 2. Number of pulses per turn: N = 0.25/(0.1 x 10-3) = 2500 pulse/turn 3. Signal ‘A’ frequency: f = (12 x 2500)/(0.25 x 60) = 2000 Hz < 10 kHz EEET2204 Industrial Automation by Dr Peter Graszkiewicz 8 4 Other switches In this category, there are mechanical and electronic switches that close/open in response to changes in such process variables as temperature, pressure,flow rate, liquid level, etc. Many of these switches can be of a simple mechanical design (eg. bimetallic temperature switches, liquid level switches with a float, flow switches, etc.) PLC PLC PLC PLC to p ‘float’ ‘vane’ Fluid level switch Flow switch Temperature switch Pressure switch EEET2204 Industrial Automation by Dr Peter Graszkiewicz 9 6.2 Discrete output devices to power supply terminals (eg. 3 - phase) Contactors to PLC output to load terminals (eg. motor, inverter, resistor) Solenoid valves piston in cylinder NO current spool Spring pulls back to the left Fluid out (no pressure) A B A B solenoid energised magnetic core solenoid coil Fluid in (pressure) EEET2204 Industrial Automation by Dr Peter Graszkiewicz I Fluid in (pressure) 10 5 Solenoid valves are used to control the flow direction of pressurised air or oil in order to control the operation of a mechanical device, such as a piston moving in a cylinder. The movement of the piston can be utilised rise/lower parts of a machine, clamp objects, push items off a conveyor belt, etc. Example B A B A Pressure port P A B P T P T P vent Graphical symbol of the hydraulic solenoid valve shown on the previous slide. The connections are always shown for the state when the solenoid is not energised (normal state). If this type of cylinder is used, only one s. valve is required P P Pneumatic valves When no solenoid is energised, the barrier stays in the acquired position. EEET2204 Industrial Automation by Dr Peter Graszkiewicz 11 7. Digital input and output modules 7.1 Input modules The digital (discrete) input signals of a PLC can come from various field devices containing mechanical or electronic switches (see Section 3). These signals can be either DC or AC and have nominal values ranging from 5V to 240 V. In general, they have to be properly interfaced with the CPU, as it operates at a low DC voltage level and is sensitive to interference. A typical PLC input module: provides electric (galvanic) isolation between the field input circuits and the CPU; converts the voltage level of the input field device signal to the level at which the CPU operates; protects the CPU from abnormally high voltages in the input circuit due to switching transients (voltage spikes) or faulty conditions; limits the interference that may affect the input signal (ground loops broken by the isolation barrier, filters). EEET2204 Industrial Automation by Dr Peter Graszkiewicz 12 6 Field Input Device LED Signal Indicator +Vcc + Input cct DC power supply R1 R2 To CPU Optocoupler Galvanic isolation between circuits Buffer PLC Input Module (DC) PLC DC input circuit 1. 2. 3. If the contact of the field input device is closed (SS=1), the indicator LED and the LED of the optocoupler (optoisolator) are lit. As a result, the phototransistor of the optocupler is saturated (in ON state) and its collector voltage is low (SS=0). The signal from the optocupler is inverted in the buffer so that the CPU receives the same signal state as the input of the module. EEET2204 Industrial Automation by Dr Peter Graszkiewicz Field Input Device +Vcc R1 Neon lamp signal indicator R3 R2 1. 2. 3. Buffer To CPU V1 C Optocoupler Input cct AC power supply 13 PLC Input Module (AC) PLC AC input circuit If the contact of the field input device is closed (SS=1), the indicator neon lamp is lit. The optocoupler LED is lit by a rectified sinusoidal current from the diode bridge. Consequently, the optocoupler phototransistor remains in saturation most of the time. Its collector voltage stays low continuously, due to the filter formed by R2 and C . The signal from the optocupler is inverted in the buffer, so that the CPU receives the same signal state as the input of the module. EEET2204 Industrial Automation by Dr Peter Graszkiewicz 14 7 7.2 Output modules The output field devices connected to a PLC operate at different voltage levels, usually higher then that of the CPU. The output connections from the PLC can carry inference back to the CPU. For these reasons, a typical PLC output module: provides electric (galvanic) isolation between the field output circuit and the CPU; converts the voltage level required by the output field device to the level of the CPU output sinal; protects the CPU from abnormally high voltages across its output terminals due to switching transients (voltage spikes) or faulty conditions in the output circuit ; limits the interference that may affect the CPU. EEET2204 Industrial Automation by Dr Peter Graszkiewicz 15 +Vcc R2 V2 Output cct DC power supply + V4 From CPU R1 V1 V3 R3 PLC Output Module (DC) Field Output Device Output Indicator PLC DC output circuit 1. 2. If the CPU output signal state is 1, transistor V1 and the phototransistor of optocoupler V2 are on. Transistor V3 is also on, as the emitter current of the phototransistor drives the base of transistor V3. It now acts as a closed switch in the output load circuit. Zener diode V4 acts as a free-wheeling diode, if the field output device is inductive. It also protects transistor V3 from inverse polarity or excessive value of the voltage across the output terminals. EEET2204 Industrial Automation by Dr Peter Graszkiewicz 16 8 +Vcc R3 R2 Output cct AC power supply V3 From CPU V2 R1 V1 Output Indicator PLC Output Module (AC) Field Output Device PLC AC output circuit 1. 2. If the CPU output signal state is 1, transistor V1 and the phototransistor of optocoupler V2 are on. The phototransistor conducts a dc current rectified by the diode bridge and limited by resistor R3. The current on the AC side of the diode bridge flows through the gate of TRIAC V3. This current triggers the TRIAC every half period of the voltage in the load circuit. V3 acts now as a closed switch. EEET2204 Industrial Automation by Dr Peter Graszkiewicz 17 Output cct power supply (DC or AC) +Vcc V2 From CPU R1 V1 PLC Output Module Field Output Device PLC AC output circuit with relay switching 1. 2. If the CPU output signal state is 1, transistor V1 conducts the current that energises the coil of the miniature electromechanical relay. The state of the N/O contact of the relay is the same as the SS of the CPU signal. The field power supply in the output circuit can be DC or AC. The frequency of the output switching is low. EEET2204 Industrial Automation by Dr Peter Graszkiewicz 18 9 8. Analog signals in PLC systems 8.1 Types of analog signals An electric analog signal is either voltage or current that varies within a predetermined (nominal) range of values. Typical nominal ranges are: 0 – 10 V 4 – 20 mA a voltage signal v(t) = 0 – 5V a current signal i(t) = -10 V - +10 V 0 – 20 mA Using current to transmit analog signals has the following advantages: Current signals are more immune to interference than voltage signals, since its value is unaffected by voltage drops in the conductors, stray thermocouples, contact resistance, and noise voltage due to capacitive and inductive coupling. The offset of 4 mA (in the case of 4 – 20 mA signal) provides a distinction between zero signal represented by 4 mA and no information due to an open circuit. EEET2204 Industrial Automation by Dr Peter Graszkiewicz 19 The source of the signal (an electronic system) can receive power supply via the 4 mA component that is not needed for information transfer. Current-to-voltage conversion can be done simply by passing the current signal through a resistor and utilising the voltage drop across the resistor as the converted voltage signal. Reversed conversion requires a voltage-to-current converter. vinterference = vcap. coupl + vind. coupl. + v contacts + i Rline +… is + i Vs - Vs ≠ Vin + Vin - Current s. source Voltage signal source Zline R1 Rn + Several loads can be connected in series Vcs - Vcs = is (R1 +…+ Rn) < Vcsmax Isolated V/I converter Analog signal transmission circuit with voltage-to-current conversion EEET2204 Industrial Automation by Dr Peter Graszkiewicz 20 10 8.2 Interference considerations Vn Ccn in Vs Interference source R Signal source Signal load (equivalent cct.) Capacitive coupling between two circuits Ccn is the equivalent coupling capacitance between the signal circuit and the circuit which is the source of interference. R is the input resistance of the system receiving the signal. The interference voltage (electrostatic pickup, capacitively coupled noise), which is added to the signal voltage, is, therefore, R in. The electrostatic pickup can be reduced by proper orientation and separation of the coupled conductors (it decreases the value of Ccn and, subsequently, in ) or by shielding. The shield is placed around the signal conductors and must be connected to ground. If a shield is employed, current in flows into the shield, instead of the signal conductor, and is drained to the ground without affecting the signal circuit. EEET2204 Industrial Automation by Dr Peter Graszkiewicz 21 Vn = dΦcn/dt Vs Signal source Φcn Vs in Interference source circuit The current in the interference source circuit in generates a magnetic flux. A part of that flux, Φcn , is linked with the signal circuit and induces in it an interference voltage (inductive pickup, inductively coupled noise), the value of which is dΦcn/dt . Separating the coupled circuits and minimising their loop areas reduces the inductive pickup (Φcn ↓) . Shielding against inductive pickup is ineffective, as magnetic fields penetrate deep into metals at low frequencies. A twisted pair of conductors is widely used for signal wiring to reduce inductive pickup. It minimises the loop area in the signal circuit and provides a cancelling effect of voltages induced along the circuit. EEET2204 Industrial Automation by Dr Peter Graszkiewicz 22 11