Digital Outputs and Relays

Similar documents
Wires & Connections Component Circuit Symbol Function of Component. Power Supplies Component Circuit Symbol Function of Component

Chapter 5. Components, Symbols, and Circuitry of Air-Conditioning Wiring Diagrams

DC Motor control Reversing

12S, 14S, 15S Series. Time Delay Relays and Sequencers. Time Delay Relays and Sequencers. Features and Benefits. Switch Actions and Configurations

Odyssey of the Mind Technology Fair. Simple Electronics

Relays High Capacity 50 Amp Mini Relays Standard Mini Relays Micro Relays Power Relays Connector Modules

Introduction to Process Control Actuators

38 Series - Relay interface modules A

38 Series - Relay interface modules A

GLOLAB Two Wire Stepper Motor Positioner

Solid-State Timer H3G

38 SERIES. Relay interface modules A. EMR Electromechanical Relays. Common features. SSR Solid State Relays. 6.

Application Note AN-1068 reva

40 Series - Miniature PCB/Plug-in relays A. Features

RT series Miniature Printed Circuit Board Relays, Sockets and Accessories

Short Range Wireless Switch System Handheld 8 Installation and Operations Guide

Unit 24: Applications of Pneumatics and Hydraulics

WWW. AUTOSHOP101.COM

Solid-State Relays (SSRs) vs Electromechanical Relays (EMRs)

EXPERIMENT 2 TRAFFIC LIGHT CONTROL SYSTEM FOR AN INTERSECTION USING S7-300 PLC

Basic DC Motor Circuits. Living with the Lab Gerald Recktenwald Portland State University

Basic DC Motor Circuits

The Secret of Hydraulic Schematics. BTPHydraulics

GLOLAB Universal Telephone Hold

Electronic, Digital and Mechanical Vibration Switches

General-purpose Relay

60 Series - General purpose relays 6-10 A. Features

34 Series - Slim electromechanical PCB relays 6 A. Features SERIES 34.51

Reversing starter circuit for single phase induction motors Updated 1 st September 2008

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

General Purpose, Interposing, Solid-State and Specialty Relays. Bulletin 700

Test Code: 8094 / Version 1

49 Series - Relay interface modules A. Features

Electrical Symbols and Line Diagrams

AZ420 MINIATURE GENERAL PURPOSE RELAY

Transformer circuit calculations

Figure 1 - Crydom 3RHP Three-phase Hybrid Solid State Contactor. Crydom Inc.

GenTech Practice Questions

SZR-LY Series. General Purpose Power Relay WARNING WARNING. Sensing and Control

ETZGAR CONVEYOR COMPANY Controls Section v12.05

3BASIC RELAY INSTRUCTIONS

Fig 3. PLC Relay Output

PRODUCT PRODUCT CODE TECHNICAL INSTRUCTIONS PAGE

THE INPUT/OUTPUT SYSTEM. Key Points

Modular I/O System Analog and Digital Interface Modules

E&I MAINTENANCE ENTRY TEST ENABLING OBJECTIVES. DESCRIBE hazards and precautions taken to avoid injury in the workplace.

0.8 U N /0.5 U N 0.8 U N /0.5 U N 0.8 U N /0.5 U N 0.2 U N /0.1 U N 0.2 U N /0.1 U N 0.2 U N /0.1 U N

Switch Actuator, 8-fold, 10 A, MDRC AT/S , GH Q R0111

Specifications for EM VDC 4 In/4 Out and EM VDC 4 In/4 Relay Out

Features. Applications. Truth Table. Close

SERVICE MANUAL FOR 12 VDC WALL THERMOSTAT AIR CONDITIONING SYSTEMS ROOF TOP UNITS ONLY

Oil and Coolant Circulating Heating System. Model - OCSM

RY2 miniature industrial relays

INSTALLATION AND OPERATING INSTRUCTIONS For Model GL1 Gate Locks

Signature and ISX CM870 Electronics

48 SERIES Relay interface modules 10 A

VCE Physics and VCE Systems Engineering: Table of electronic symbols

DCS Input/Output Relay Card Series

CHAPTER 11: Flip Flops

DIRECT CURRENT GENERATORS

MasterINTERFACE 39 Series - Relay interface modules

Electrical Systems - IQAN Digital Control System. IQAN Control System Components

REV. REL 1302 WEST BEARDSLEY AVENUE P.O. BOX 1127 ELKHART IN (574) FAX (574) ELKHART BRASS MFG. CO., INC.

pole, 8 A Safety relay. Screw terminal. 35 mm rail (EN 60715) mounting. 2 CO (DPDT) 8/15 250/400 2, /0.65/0.

Mini Breakout-Board. CNC Interface for LPT Port. Installation Manual Version 4

Combi B Alarm box. Mounting instructions

ABB i-bus KNX Fan Coil Actuator, MDRC FCA/S 1.1M, 2CDG R0011

EDI Distributor Control Interface Wiring and Setup Instructions

Lecture #21 April 2, 2004 Relays and Adder/Subtractors

SYSTEM 4C. C R H Electronics Design

Programming Logic controllers

General Purpose Relays Types K, R, N, and C

CIM Computer Integrated Manufacturing

DASHBOARD SOFTWARE Ver 1.2.2

Solid Core and Split Core Adjustable Current Status Switches CSS-O, CSS-C; CSP-O, CSP-C

Analog control unit for mobile robots

Circuit Breakers. NRC Series. NRC Series

Type: DILM115(RAC240) Article No.: Sales text Contactor,55kW/400V,AC operated. Ordering information

GROUND DETECTION CIRCUITS FOR STATIONARY APPLICATIONS (IN PLAIN DOWN TO EARTH LANGUAGE)

INSTRUMENTATION AND CONTROL TUTORIAL 3 SIGNAL PROCESSORS AND RECEIVERS

Model Number Structure

Glolab Talking Phone Dial Monitor

GENERATOR START CONTROL MODULE - MINI (2 Wire to 3 Wire)

1 pole, 16 A Screw terminal connection 35 mm rail (EN 60715) mounting. 2 pole, 8 A Screw terminal connection 35 mm rail (EN 60715) mounting

Build A Video Switcher. Reprinted with permission from Electronics Now Magazine September 1997 issue

MS41-22Ex0-R/24VDC MS41-22Ex0-R/115VAC MS41-22Ex0-R/230VAC

SECTION FIRE ALARM AND SMOKE DETECTION SYSTEMS

SBM Control & Transfer Switch Rotary switches for circuit breaker control, motor control or instrument transfer. Features and Benefits Applications

EET272 Worksheet Week 8

Lab 8: DC generators: shunt, series, and compounded.

Elektromotoren und Gerätebau Barleben GmbH

Digital I/O: OUTPUT: Basic, Count, Count+, Smart+

Ordering Information. Latching Relay G2AK. Model Number Legend Magnetic Latching Version of G2A Ideal for Sequence Control

CONSTRUCTING A VARIABLE POWER SUPPLY UNIT

Understanding Generator Ripple Waveforms

REPORT ON CANDIDATES WORK IN THE CARIBBEAN ADVANCED PROFICIENCY EXAMINATION MAY/JUNE 2008 ELECTRICAL AND ELECTRONIC TECHNOLOGY (TRINIDAD AND TOBAGO)

Instruction Manual. This Manual covers the use of: SmartSwitch Servo Kit. DCC Stationary Decoder PLEASE READ THESE INSTRUCTIONS FULLY BEFORE USE

Transcription:

Digital Outputs and Relays Many control tasks require only a binary type of output, i.e. turning on or off a switch, light, motor or other device. Examples would be turning on or off a conveyor, a gas valve to your furnace, a fan or pump. You can think of many more, I'm sure. Inherent in the control task is the idea of power amplification. The Analog outputs of the DAQ can only supply 5 ma. The Digital outputs can instead supply 32 ma, which is a little bit more but still not enough to control processes that may require large forces or power flows. Think about the positioning of the control surfaces for a commercial aircraft, or raising the landing gear for such a machine. Think about turning on or off a conveyor that transports steel slabs weighing 30 tons each. Your computer has the brains to do such jobs, but not the brawn. In this lab, we will see how to turn micro-level "thoughts" into macrolevel actions. Digital Outputs The DAQ board has 32 digital IO lines, of which 16 are configured as digital outputs, and 16 as digital inputs. The Matlab command line for digital output is called digital_out, and it takes two input argument, the channel, which can assume values from 1 to 16 and the value, which can be either 1 (High) or 0 (Low). Try help digital_out from the Matlab command line and look for yourself. The first 8 outputs are connected to both the relays and the red LEDs on the side. By giving 1 as a value to a certain channel (from 1 to 8), the LED lights up and current flows into the corresponding relay, therefore switching the relay on. But what does it exactly mean to switch a relay on?, Read on. Relays The digital outputs of the DAQ are capable of sourcing only about 32 ma each. Many digital outputs can provide even less current to drive external devices. That current is not enough to drive Lego motors, let alone turning your air conditioner on/off or controlling a conveyor in a robotic workcell. Last week we learned about using pneumatic and hydraulic valves to somehow amplify the power of the DAQ board. This week we will see how we can use a small amount of electric current to control magnetic switches called

relays. Relays can take a small signal from a computer and use it to control electrical machinery of virtually any size. A relay is an electrical switch that opens and closes under control of another electrical circuit. In the original form, the switch is operated by an electromagnet to open or close one or many sets of contacts. Joseph Henry invented it in 1835. Relays operate much like an ordinary mechanical switch. The only difference is that instead of throwing the switch by hand a relay uses an electrical signal to operate the switching. Relays come in a variety of sizes, shapes and operating principles. The traditional old electromechanical relays are the easiest to understand. Figure 1 Electromechanical relay schematic In electromechanical relays, when a current flows through the coil, the resulting magnetic field attracts an armature that is mechanically linked to a moving contact. The movement either makes or breaks a connection with a fixed contact. When the current to the coil is switched off, the armature is returned by a force that is half as strong as the magnetic force to its relaxed position. Usually this force is supplied by a spring, but gravity is also used commonly in industrial motor starters. The relay schematic in Figure L4.1 is one of the simplest; it has only four terminals and is called Normally Open (NO), Single Pole Single Throw (SPST). The term Pole stands for Switching Circuit, which in this case is only one.

Single Throw means that the internal switch has only one contact on one side of the common pole. In General, the contacts of the switching circuit can be either Normally Open (NO), Normally Closed (NC), or change-over: Normally-open contacts connect the circuit when the relay is activated; the circuit is disconnected when the relay is inactive. It is also called Form A contact or "make" contact. Form A contact is ideal for applications that require to switch a high-current power source from a remote device. Normally-closed contacts disconnect the circuit when the relay is activated; the circuit is connected when the relay is inactive. It is also called Form B contact or "break" contact. Form B contact is ideal for applications that require the circuit to remain closed until the relay is activated. Change-over contacts control two circuits: one normally-open contact and one normally-closed contact with a common terminal. It is also called Form C contact. Regarding the number of poles and throws, relays (as well as switches in general), can be of the following types, as described in the next figure: SPST - Single Pole Single Throw. These have two terminals which can be switched on/off. In total, four terminals when the coil is also included. SPDT - Single Pole Double Throw. These have one row of three terminals. One terminal (common) switches between the other two poles. It is the same as a single change-over switch. In total, five terminals when the coil is also included. DPST - Double Pole Single Throw. These have two pairs of terminals. Equivalent to two SPST switches or relays actuated by a single coil. In total, six terminals when the coil is also included. This configuration may also be referred to as DPNO. DPDT - Double Pole Double Throw. These have two rows of change-over terminals. Equivalent to two SPDT switches or relays actuated by a single coil. In total, eight terminals when the coil is also included. QPDT - Quadruple Pole Double Throw. Often referred to as Quad Pole Double Throw, or 4PDT. These have four rows of change-over terminals. Equivalent to four SPDT switches or relays actuated by a single coil or two DPDT relays. In total, fourteen terminals when the coil is also included.

Common NC NO Coil Coil SPST SPDT NC NO NC Coil NO DPST DPDT Coil Figure 2: Various relay configurations shown as electrical diagram symbols. The relay in the next figure is an electromechanical double pole, double throw relay. All the contacts (Eight) can be connected to a separate device in each position. The contacts of this relay can carry up to 30 Amps of current and can switch a 2 hp motor on and off. The coil operates on 12 VDC and requires only a few tenths of an Amp to operate.

Figure 3 Electromechanical relay in its socket The following Figure shows the inside of the above electromechanical relay: Figure 4: Parts of a Double Pole, Double Throw electromechanical relay. This relay is shown in the Normally Closed (NC) position, i.e. there is no current supplied to the relay coil. A separate power source connected to the Common (C) terminal would supply power to a load connected to the NC terminal. If a small current is sent through the coil, it creates an electromagnet, which attracts the common terminal down, connecting (C) with Normally Open (NO). Power would then be removed from the load on the NC terminal and

applied to the NO terminal. The contacts of this relay can carry up to 30 Amps of current and can switch a 2 hp motor on and off. The coil operates on 12 VDC and requires only a few tenths of an Amp to operate. When the coil current is removed, the spring on top of the relay pulls the common conductor back up so the connection between C and NC is re-established. 4 5 3 6 2 7 1 8 Numbers on relay socket indicate which pin the screw connects to, and correspond to the numbers on the schematic at left. Figures 5: Schematic of relay connection. Figure 5 is a schematic diagram of the relay connections. The pin numbers are as seen from the bottom of the relay and are marked on the base of the relay. The socket (right) has numbers by each of the screw terminals that correspond to the relay pin numbers, making connections easy for those with eyes good enough to see the tiny little buggers. Note that the relay is "keyed" so it only fits in the socket one way. Terminal 1 on the relay socket is connected to the little circle marked 1 on the relay schematic above the common terminal for pole 1. Screw terminal 4 is connected to the NC terminal of pole 1 and screw terminal 3 is connected to the NO terminal of pole 1. Screw terminals 2 and 7 connect to the relay coil. Putting 12V across pins 2 and 7 causes the relay to switch from the NC to the NO position, i.e. pin 1 is now connected to pin 3 and pin 8 is now connected to pin 6. Even though they are shown backwards here, both poles switch at the same time. A solid-state relay (SSR) is a solid-state electronic component that provides a similar function to an electromechanical relay but does not have any moving components, increasing long-term reliability. As transistors improved, SSR's, capable of handling 100 to 1,200 amps, have become commercially available.

The Solid State relays in the following pictures are SPST Normally Open relays as you can tell by the fact that they have 4 terminals. Figure 6: Solid State Relays Figure 7: Internal circuitry of a Solid State Relay You are not expected to understand the above circuit, but note that the two sides of the relay are actually separated from each other, and the switching happens whenever the light emitted by a diode on the left side hits the phototransistor on the other side. Both diode and phototransistor are inside the element TIL 111. To choose a relay for a particular application, one needs to know/specify the following basic parameters: 1. What will the control voltage and current be? Relays typically come with coil voltages of 5V, 6V, 12V, 24V, or 48V DC or 115VAC. The coil current required depends on how massive the contacts and springs are. Big

relays may require 250 ma of coil current or more. Smaller ones and Solid State Relays may only require 10 to 30 ma. 2. What "contact rating" is needed? The contact rating is the amount of current and/or power that can be handled by the high-power side of the relay. Contact ratings are most often printed on the cover of the relay. The contact rating always includes a current rating, which may be from one Amp up to thousands of Amps. The rating may also include a voltage and may or may not specify a "horsepower" rating for the largest motor that can be served. The voltage and horsepower ratings are determined by the ability of the relay contacts to resist arc welding them together when a load is switched off. 3. What configuration of "poles" and "throws" is needed? The diagrams below explain the idea of poles and throws. 4. Other minor factors like the mounting configuration or "form factor". Pull one of your relays out of the plastic socket and you will see a circle with pins sticking out of it that fit into the socket. Other form factors have flat contacts arranged in rows, or solder terminals or screw connections. The relays we will use is called ODC 5A (Figure L4.8). It has the following features: Load Voltage: 0 to 200V Load Current Max: 1 Amp Max Power Dissipation: 1.5 W/Amp Blocking Voltage: 360 VDC Turn On Time: 75uS Turn Off Time: 750uS Off Leakage Current: 10 ua On Voltage Drop: 1.6VDC Logic Supply Current: 11mA Figure 8: ODC5A Solid State Relay

The relay is connected to the project board so that the output side is accessible trough the screw terminals, and that the input switch is activated by the Matlab command digital_out (channel,1), where channel is a number from 1 to 8. Motor (Forward On/Off Only): Try connecting a motor to the relay so that you can turn it on and off using the digital_out command. Follow the scheme in Figure 9 Figure 9: Forward On/Off Motor Connection Motor (On/Off and Forward/Reverse): A DC motor can run forward or backward by changing the direction of current flow through the motor. You can connect two digital output terminals on the Project Board to a DPDT relay to effect motor on/off and direction control. You will need two digital outputs to control the system. One output will choose on/off and one will choose forward/reverse. Figure 10 is a schematic of how can connect the relays and motor together.

Figure 10: Forward On/Off Motor Connection Construct this system. Trace the connections so you can completely understand how the logic works.