Monday, 31 May 2010

PLC Basic

HISTORY
Introduced in late 1960's Bedford associates proposed something called a modular digital controller (modicon) to a US car manufacturer.
The MODICON 084 brought the world's first PLC into Commercial production.
Disadvantages of Relay based logic
o Relays are electromechanical devices and so have a limited life.
o Requires strict adhesion to maintenance schedules.
o The size of a complicated relay based system could be mind boggling.
o Complicated internal wiring of so many individual devices.
o No diagnostics and fault finding very difficult.
o Changes in the logic very cumbersome to implement.
Standards
IEC 1131-3: Merging of PLC programming languages under one international standard.
What's inside the box?
The PLC mainly consists of CPU, memory area, and appropriate circuits to receive input/output data. We can consider it to be a box full of hundreds or thousands of separate relays, counters, timers and data storage.
What does each part do?
Internal Relays:
These are connected to the outside world. They physically exist and receive signals from switches, sensors etc. Typically they are not relays but rather they are solid state transistors.
Counters:
These again do not physically exist. They are simulated counters and they can be programmed to count pulses. Typically these counters can count up, down or both up and down.
Timers:
They also do not physically exist. They come in many varieties and increments. The most common types are on-delay and off- delay. Increments vary from 1ms to 1 second.
Output Relays:
These are connected to the outside world. They physically exist and send on-off signals to solenoids, lights etc. They can be transistors, triacs, or relays depending upon the model chosen.
Data Storage:
Typically there are registers assigned to simply store data. They are usually used as temporary storage for math or data manipulation. They can also be used to store data when power is removed from the PLC.
How does a PLC work?
A PLC works by continually scanning a program. We can think of this scan cycle as consisting of three important steps.


Step 1 - Check Input Status First the PLC checks at each input to determine whether it is on or off. It records this data into its memory to be used during the next step.
Step 2 - Execute Program Next the PLC executes the program one instruction at a time. May be the program said that if the first input was on then it should turn off the first output. Since it already knows which inputs are on-off from the previous step it will be able to decide whether the first output should be turned on based on the state of the first input. It will store the execution results for use later during the next step.
Step 3 - Update Output Status Finally the PLC updates the status of the outputs. It updates the outputs based on which inputs were on during the first step and the results of program execution during the second step.
After the third step the PLC goes back to step one and repeats the steps continuously. One scan time is defined as the time it takes to execute the three steps listed above.
The total response time is defined as:
Total Response Time = I/P response Time + Program execution Time + O/P Response Time
Case Study (Level application)
Purpose: Control of lubricating oil being dispensed from the tank. Instrumentation: 2 sensors (One near the bottom & one near the top), PLC Sensor not immersed in liquid they will be ON. When they are immersed they will be OFF.
Logic: Fill motor to pump lubricating oil into the tank until the high level sensor turns on. At that point we want to turn off the motor. It should start only after level falls below the low level
Sensor: We need three I/O's (Inputs & Outputs), 2 are inputs (the sensors) and 1 is an output (the fill motor). Both the inputs will be normally close (NC). We will give each input and output device an address.


Initially the tank is empty so both the sensors for high and low level are not immersed. So they are ON (True). So input 0000 is true and input 0001 is also true. Gradually the tank fills because fill motor (500) is on. After 100 scans the oil level rises above the low level sensor and it becomes open (False).
Notice that even the low level sensor is false there is still a path of true logic from left to right. This is why we used an internal relay. Relay 1000 is latching the output (500) on. It will stay this way until there is no true logic path from left to right. (ie when 0001 becomes false).
After 1000 scans the oil level rises above the high level sensor as it becomes open (ie false). Since there is no more true logic path, output 500 is no longer energized (true) and therefore the motor turns off. After 1050 scans the oil level falls below the high level sensor and it will become true again.
Notice that even though the high level sensor became true there still is NO continuous true logic path and therefore coil 1000 remains false.
After 2000 scans the oil level falls below the low level sensor and it will also become true again.
Specifications
Specifications for Discrete Modules ( General I/O )
Operating Temperature: 0 0 C to 60 0 C
Storage Temperature: -40 0 C to 85 0 C
Operating Humidity: 5% to 95% (non condensing)
Noise Immunity: NEMA standard ICS 2-230
Vibration (Operating): Displacement: 0.015 in peak at 5 to 57 Hz
Acceleration: 2.5 Gs at 57 to 2000 Hz
Shock (Operating): 30Gs (all modules except relay contact)
Isolation: 1500 V
Agency Certification: UL listed
                               CSA certified
                               CE compliant
Hazardous Area Classification: Class I, Division 2 Hazardous Environment

Specifications for Input Modules
Voltage Category 24 V ac/dc or 125 V dc
Number of Inputs 16
Points per Common 16 / individually isolated
Operating Voltage Ac 10 to 30 V ac
                           Dc: 10 to 30 V dc
Backplane Current Consumption 0.085 A
Signal Delay (max) on = 9 ms, off = 9 ms
Off State Voltage (max) 20.0 V dc
Off State Current (max) 0.8 mA
Nominal Input Current Ac: 8 mA at 24 V ac
                                  Dc: 8 mA at 24 V dc
Inrush Current (max) 0.02 A
Typical wiring Schematics for Analog Input Devices
2 Wire Transmitters


3 Wire Transmitters

4 Wire Transmitters



Start-up Procedures
This, of course, assumes that you have already debugged the program to be certain it is working as you intended it to. If not, it is probably a good time to do so by using a simulator/emulator or perhaps by breaking the program into blocks for piece checking.
  • Verify power is off to the PLC.
  • Open all E-stops so the machine will not run until we want it to.
  • Disconnect output wiring terminals from output modules to
  • Disable the outputs until we are ready for them.
  • Generally you should check and re-check equipment installation to make sure all is well. Are the sensors adjusted? Are all bolts properly torque? Belts are tight? etc.
  • Check to verify that all PLC modules have been inserted into the Base properly.
  • Check that all wires are fully inserted into their proper Connection points.
  • Check to make sure all communication cables are connected. If the PLC requires dip-switches to be set for communications, verify that this has been done.
  • Verify that the proper power is connected to the PLC. Does it require 110VAC or 24VDC or... whatever it is; make sure the connections are proper.
  • Verify the PLC will NOT be powered up in run mode.
  • Power-on PLC.
  • Check CPU LEDs. Are any on? Any error lights on? Power down and correct the fault if necessary and then repeat from the beginning.
  •  Check input module LEDs. Are any on? Should any be?
If all is well, let's power down and move on to checking the inputs!
Input Checking Procedures
  • Verify power is off to the PLC.
  • Open all E-stops so the machine will not run until we want it to.
  • Make sure all outputs are disconnected from the PLC.
  • Verify all body parts are out of the way and don't test the inputs with ANY body parts. Use a safe device (like a test rod) to test them.
  • Power-on PLC.
  • Activate input devices one-by-one and verify the appropriate LED on the input module turns on. If it doesn't, check the devices wiring.
  • If the wiring is ok, verify the device is working and when in doubt, try another input point on that module. If it still doesn't work, try connecting it to another module. If it works now, probably there is a fault with the original module, so replace it and begin again.
  • Continue on until all input devices and module input points have passed the tests. If all is well, let's power down and move on to checking the outputs!
Output Checking Procedures
  • Verify all body parts are out of the way
  • Verify power is off to the PLC.
  • Open all E-stops so the machine will not run until we want it to.
  • Use a simple debug program to test your outputs. Generally we won't use the original program. Create a simple debug rung like this:
Input output
-| |---( )--
Let 'input' be a simple toggle switch connected to an unused input or use an internal relay when available. Output will be the address of actual output we are testing.
If you're really lucky, your PLC will have a force function available for your debugging use. In that case, we can manually force each output on in succession to test them.
o Regardless of which method we're using, energize each output via the PLC program one at a time. Each time, ensure the safety of the surrounding people and the machine itself.
o If the output device does not turn on, verify that the appropriate output LED does indeed turn on. If the LED is on, check the wiring to the output device. If the wiring is ok, check the device itself to verify it is working as we believe it should. If the LED does not turn on, verify that the address is correct within your program.

Final Verification Procedures
  • Verify all body parts are out of the way
  • Verify power is off to the PLC.
  • Open all E-stops so the machine will not run until we want it to.
  • Reconnect everything that needs to be connected.
  • Clear the PLC memory. Generally, we can do this via our PLC programming software.
  • Download the final working version of our PLC program.
  • Verify once again that everything is connected and safe. Then, run the program.
  • Troubleshoot the machine when and as necessary to ensure all is working as needed.
  • When you are happy with the performance, make a last backup copy of the program and store it in a safe place. It will be needed again when you least expect it. Yes, you will need it and someday you'll be extremely happy to have that backup. And don't forget to create backup copies of the documentation...

Sunday, 30 May 2010

Chemical Hazard Labels


  • A chemical hazard label is a pictogram applied to containers of dangerous chemical compounds to indicate the specific risk, and thus the required precautions.
  • There are several systems of labels.
  • The U.S. based NFPA has a standard NFPA 704 using

  • A diamond
  • With four colored sections
  • Each with a number indicating Severity 0 - 4
  • 0 (zero) for NO hazard,
  • 4 indicate a severe hazard.
  • The RED section denotes flammability.
  • The BLUE section denotes health risks.
  • Yellow represents reactivity (tendency to explode).
  • The WHITE section denotes special hazard information.
o   This label is used primarily in the USA.

NFPA Labeling System
  • White – Special
  • W:  reacts with Water in an unusual or dangerous manner (e.g., cesium, sodium)
  • OX or OXY: Oxidizer (e.g., potassium per chlorate, ammonium nitrate)
  • COR: Corrosive; strong acid or base (e.g. sulfuric acid, potassium hydroxide)
  • ACID and ALK to be more specific.
  • BIO: Biological hazard (e.g., smallpox virus)
  • POI: Poisonous (e.g. Spider Venom),
  • The Radioactive trefoil {      } is radioactive (e.g., plutonium, uranium)
  • CRY or CRYO: Cryogenic (e.g. Liquid Nitrogen)
  • Only W and OX/OXY are officially part of the NFPA 704 standard,
  • But other self-explanatory symbols are occasionally used in an unofficial manner.
  • The use of non-standard symbols or text may be permitted, required or disallowed by the authority having jurisdiction


UN Classifications
o   Class 1    Explosives
o   Class 2    Gases
o   Class 3    Flammable Liquids
o   Class 4    Solids
o   Class 5    Oxidizing Substances
o   Class 6    Toxic and Infectious Substances
o   Class 7    Radioactive Substances
o   Class 8    Corrosives
o   Class 9    Miscellaneous Substances

Explosives – Label





















Compressed Gases
























Flammable liquids -  


















Flammable solids













Oxidizing substances












Toxic substances
















Radioactive substances


















Class label – Corrosives

















o   White Over Black background
o   Test tube over hand / metal symbol on top.
o   Number 8 on bottom
o   “CORROSIVE” wording

Saturday, 29 May 2010

Hazard Communication


OBJECTIVE
  • Requirements of the standard.
  • To know how and where to find specific hazard information.
  • Inform employees about Hazards of chemicals.
  • Precautions and protective measures when using, handling and contacting chemicals.
HAZARD COMMUNICATION
  • Also known as HAZCOM.
  • Everyone working with Hazardous materials has the “RIGHT TO KNOW” about Hazardous materials used or produced in their work area.



DEFINITIONS

Hazard is defined as a physical or chemical characteristic of chemicals that has the potential for causing harm to people, the environment or property.
Chemicals: - Any element, chemical compound, or mixture of elements and /or compound.
Hazardous substance: - Any chemical / product / catalyst or waste classified as such by applicable national / local legislation and chemical/substance/material identified by organization as harmful to people, property and the environment.
Hazardous chemical - means any chemical which is a physical hazard or a health hazard.
Physical hazard - means a chemical for which there is scientifically valid evidence that it is a combustible liquid, a compressed gas, explosive, an organic peroxide, an oxidizer, pyrophoric, unstable (reactive) or water-reactive.
Health Hazard – The term health hazard includes chemicals which are carcinogens, toxic or highly toxic agents, irritants, reproductive toxins, corrosives, sensitizes which acts on hematopoietic (blood forming) system and agents which damage lung, skin, eye or mucous membranes.
Hazard Warning – Any word, picture, symbol or combination thereof appearing on the label or other appropriate form of warning which convey the hazards of the chemical of the container.     
Container- Any bag, barrel, bottle, vessel. Storage tank or the like that contains hazardous chemical.
  1. Develop and implement management system that accomplishes the requirement of this sub element.
  2. Responsibility to ensure compliance of this Sub-element in accordance with SHEM-00.01: Management Commitment, Accountability and Responsibilities.
  3. Roles, Responsibilities of all other positions that are responsible for implementation of this programme shall be clearly identified, documented and communicated.
  4. Each department will keep and provide the ISD with an accurate list of all hazardous chemicals used, produced, and / or stored at each process or operation.
  5. Written Hazard Communication Program
    • Each department will Develop, Implement, and Maintain at each workplace, a written hazard communication program which at least includes


    1. List of chemicals,
    2. Labels and other forms of warning methodology,
    3. Material safety data sheets, and
    4. Employee information and training.

    • Multi-employer workplaces: Where Contractor Employees may be exposed, The Hazard Communication Program shall ensure
           Method to provide information to onsite Contractors –
    1. On each hazardous chemical the contractor employee might exposed.
    2. Precautionary Measures
    3. Labeling system used in the work place.

    • The written Hazard Communication programme shall be made available to all the Employees, Contractors and Auditors upon request.
  6. Hazard communication for Manufacturer / Importer – Label
    • Any chemical containers that leave Company must be labeled, which convey the hazard information of the substance they contain.
               The label must identify the following:
    1. The contents of the container,
    2. The name and address of the chemical manufacturer or importer, as well as the emergency telephone number.
    3. The physical and health hazards associated with the chemical.

    • Exception -   Signs, placards, process sheets, batch tickets, operating procedures, or other such written materials may be used in lieu of labeling of containers, provided:
    1. The containers can be readily identified
    2. The alternative warnings must contain the information required for labels and be readily accessible to employees at all times.
    • An employee who transfers a quantity of a hazardous chemical from a labeled container into a portable container for his immediate use shall not be required to label the portable container.
    • Existing labels on incoming containers of hazardous chemicals shall not be removed, covered up, or defaced unless the container is immediately marked with the required labeling information.
    • Labels or other forms of warning shall be legible, and prominently displayed on the container, or readily available in the work area throughout each work shift.
    • The department receiving a shipment shall inspect incoming containers to ensure adequate and appropriate labeling of hazardous chemicals / materials.
    • Each operating organization shall ensure appropriate and adequate labeling of hazardous chemical storage containers under their jurisdiction.
  7. Hazard communication for Employer-  MSDS
    • Company shall obtain or develop Material Safety Data Sheets (MSDS) for all hazardous chemicals used in the workplace.
    • Industrial Hygienist shall maintain a master copy of all MSDS(s) prepared or received for hazardous chemicals produced or used by Yansab.
    • MSDS shall have minimum information as given in definition under SHEM 12.3  (American National Standards Institute (ANSI) has proposed a 16 section format MSDS presented in ANSI Z400.1 – 2004)
  8. Employee Information & Training
    • Training on all Hazardous Chemicals –
    1. Upon initial assignment of employee exposed to the hazardous chemicals, and
    2. Whenever any new hazardous chemicals are introduced into the work area.
    • Employee shall be informed of
    1. The requirements of the Hazard Communication Standard.
    2. Operations in the work area where hazardous chemicals are present.
    3. The location and availability of the written hazard communication program, The list of hazardous chemicals in the work area and the MSDS(s) or hazardous chemicals in the work area
    • Employees shall be trained on:
    1. The methods and observation that may be used to detect the presence or release of a hazardous chemical in the work area.
    2. The physical health hazards of the chemicals at the work area.
    3. The measures employees can take to protect themselves from these hazards. (Appropriate work practices, engineering and administrative controls, Existing labeling system and personal protective equipment).
    4. Details of the Hazcom Program, including An explanation of the labeling system, MSDS and how employee can obtained and use this information.
    5. The hazards of non-routine tasks and unlabeled piping systems.
    6. That the employee and the employee's physician has a right to receive information regarding hazardous chemicals to which the employee may potentially be exposed.
  9. Records – All training records shall be maintained for entire employment period of the employee.
  10. Verification –The position(s) that are assigned the responsibility to ensure compliance to this Sub-element shall conduct Self-Assessment in accordance with SHEM-00.06: Compliance Audit & Evaluation.
 

Popular