programming a plc

Upload: sagar-pranith-t

Post on 03-Jun-2018

259 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 Programming a PLC

    1/40

    Day 3Programming a

    ProgrammableController

  • 8/12/2019 Programming a PLC

    2/40

    Objectives Describe the available options for programming a PLC.

    Explain what online is in comparison to offline.

    List the advantages of software programming with a

    personal computer over a hand-held programming

    terminal.

    Explain the differences when interfacing a notebook

    personal computer to a PLC.

    Discuss open or soft PLC programming.

    Provide an overview of the IEC 1131-3 standard.

  • 8/12/2019 Programming a PLC

    3/40

    PLC Run Mode (1 of 2)

    The PLC can do nothing without someone developing a

    program and loading it into the PLC processors memory.

    Once the program has been loaded into PLC memory, the

    processor is put into run mode.

    While in run mode, the processor is solving the ladder

    program.

  • 8/12/2019 Programming a PLC

    4/40

    PLC Run Mode (2 of 2)

    While in run mode, the processor reads field device input

    signals and stores them in memory.

    There is one memory location for each input screw

    terminals ON or OFF state.

    Field device status information is stored in the input status

    table.

  • 8/12/2019 Programming a PLC

    5/40

    PLC Programming

    The oldest programming method is the hand-held

    programmer.

    Most popular programming method is IBM-compatible

    personal computer using either DOS or Windows software.

    Higher-end PLCs can only be programmed using software.

  • 8/12/2019 Programming a PLC

    6/40

    Allen-Bradley SLC 500Programming Options

    Image courtesy of Allen-Bradley, a Rockwell Automation business

  • 8/12/2019 Programming a PLC

    7/40

    Allen-Bradley SLC 500

    Hand-held Terminal (HHT)

    Image courtesy of Allen-Bradley, a Rockwell Automation business

  • 8/12/2019 Programming a PLC

    8/40

    Hand-held Programmer andSLC 500 Modular Processors

    Hand-held are used only on fixed SLC 500, 5/01, and 5/02 processors.

    5/03, 5/04, and 5/05 modular processors allow software programmingonly.

    MicroLogix 1000 PLC has own hand-held programmer.

  • 8/12/2019 Programming a PLC

    9/40

    Smart Hand-held ProgrammingTerminal Advantages

    Compact size

    Easy to use and learn, no software required

    Low cost; cheaper than notebook computer

    Easy to transport a program to the field

    Easy to transfer PLC program to HHT for editing or

    troubleshooting

  • 8/12/2019 Programming a PLC

    10/40

    Smart Hand-held Programming TerminalDisadvantages

    Holds one program at a time

    Newer more complex processors do not support

    Limited capability to display ladder rungs

    Documentation not displayed

    Many keystrokes needed to program or edit ladder program

    Dead battery means program lost

  • 8/12/2019 Programming a PLC

    11/40

    Software ProgrammingUsing PC Advantages Newer software Windows-based

    View or monitor multiple ladder rungs

    Documentation displayed

    Easy to scroll through rungs for troubleshooting

    Programs stored on computers hard drive

    Programs transferred to floppy or CD-ROM

    Easy editing and programming, drag and drop, cut andpaste, etc.

  • 8/12/2019 Programming a PLC

    12/40

    Software ProgrammingDisadvantages

    Maintenance personnel must learn Windows programming software.

    Notebook computers are expensive.

    Interface cards are expensive.

    Personal computers are not designed for factory use.

    There are frequent software upgrades.

  • 8/12/2019 Programming a PLC

    13/40

    Allen Bradley 1747-PIC Interface

    1747-PIC communication box used to communicate from aPCs serial port to a SLC 500 family data highway 485 PLC

    Connects to any PC with a serial port

    Communicates with fixed SLC 500, and 5/01, 5/02, and

    5/03 modular processors

  • 8/12/2019 Programming a PLC

    14/40

    AB 1747-PIC InterfaceConverter Interface

    Image courtesy of Allen-Bradley, a Rockwell Automation business

  • 8/12/2019 Programming a PLC

    15/40

    Connecting a GE RS-422/RS-485to a RS-232 to a PC (1 of 2)

    Image courtesy of GE Fanuc Automation

  • 8/12/2019 Programming a PLC

    16/40

    Connecting a GE RS-422/RS-485to a RS-232 to a PC (2 of 2)

    Easy connection between personal computer and Series 90-30 or 90-70

    PLC

    Connects to computer serial port

    Connects up to 50 feet away

  • 8/12/2019 Programming a PLC

    17/40

    Desktop or IndustrialComputer Interface to PLC

    Allen Bradley 1784-KTX interface card

    PC ISA expansion slot card

    Connects to data highway plus or data highway 485 processors

    Set up RSLinx software drivers to communicate

  • 8/12/2019 Programming a PLC

    18/40

    Allen-Bradleys1784-KTX Interface Card

    Image courtesy of Allen-Bradley, a Rockwell Automation business

  • 8/12/2019 Programming a PLC

    19/40

    1784-KTX Card andNetwork Interface

    Easy network connectivity between personal computer and up to 64

    data highway plus PLC 5 or SLC 5/04 processors (nodes) on DH+

    network

    Up to 32 data highway-485 SLC 500 family processors on network

  • 8/12/2019 Programming a PLC

    20/40

    Node Addresses

    Each device on the network will require a unique identifiercalled a node or station address.

    Data highway plus network will support up to 64 nodes,

    using octal addresses.

    Data highway-485 network will support up to 32 nodes,

    using decimal addresses.

  • 8/12/2019 Programming a PLC

    21/40

    Communicating to

    Multiple SLC 500s

    Image courtesy of Allen-Bradley, a Rockwell Automation business

  • 8/12/2019 Programming a PLC

    22/40

    Notebook PC Interface to PLC

    Direct serial connection

    Hardware interface device such as 1747-PIC

    PCMCIA card

  • 8/12/2019 Programming a PLC

    23/40

    PCMCIA Interface Card

    Notebook PCs do not have expansion slots for installationof KTX card.

    PCMCIA card is a credit-card sized plug-in interface card.

    Allen-Bradleys PCMCIA card is called the 1784 PCMK card.

    1784 PCMK card serves as an interface between a PLC and

    a PC used as a programming terminal.

  • 8/12/2019 Programming a PLC

    24/40

    1784 PCMK Card Installation

    Interface between notebook PC and either DH+ or DH-485

    Interface PLC 5 or SLC 500 family processors

    Insert card into notebook computer PCMCIA slot

  • 8/12/2019 Programming a PLC

    25/40

    PCMK Card Insertion

    into a PCs PCMCIA Slot

    Image courtesy of Allen-Bradley, a Rockwell Automation business

  • 8/12/2019 Programming a PLC

    26/40

    Interface Cable Attachment

    to PCMK Card (1 of 2)

    Image courtesy of Allen-Bradley, a Rockwell Automation business

  • 8/12/2019 Programming a PLC

    27/40

    Interface Cable Attachmentto PCMK Card (2 of 2)

    One cable to communicate to SLC 500,

    DH-485 processors

    One cable to communicate to SLC 5/04, DH+processor

    Same DH+ cable will communicate to PLC 5 processors

  • 8/12/2019 Programming a PLC

    28/40

    Interface Cable fromPCMK Card to PLC Processors

    Image courtesy of Allen-Bradley, a Rockwell Automation business

  • 8/12/2019 Programming a PLC

    29/40

    Industrial Computers

    Notebook and desktop personal computers were notdesigned for continuous use in the manufacturing

    environment.

  • 8/12/2019 Programming a PLC

    30/40

    Industrial Computers

    Are Designed to Withstand:

    Dirt

    Shock

    Vibration

    High temperatures

    Wash downs

  • 8/12/2019 Programming a PLC

    31/40

    Industrial Computer Features

    Shock-mounted hard drives

    Air filters with air intake fans

    Hazardous environment rating

    NEMA 12, 4, and 4X ratings

    Integrated mouse on front panel

    Air-conditioned enclosure not required

    Modular for easy repair

  • 8/12/2019 Programming a PLC

    32/40

    Two Styles of Industrial Computers

    Panel-mount

    Computer and monitor built into one integrated unit

    Rack-mount

    Computer either separate component mounted in standard

    19-inch rack or embedded inside enclosure

    Separate monitor or touchscreen display

  • 8/12/2019 Programming a PLC

    33/40

    Rockwell Automations RAC 6181

    Computer Connections

    Image courtesy of Allen-Bradley, a Rockwell Automation business

  • 8/12/2019 Programming a PLC

    34/40

    Connecting Industrial Mouse and Keyboardto the RAC 6181

    Image courtesy of Allen-Bradley, a Rockwell Automation business

  • 8/12/2019 Programming a PLC

    35/40

  • 8/12/2019 Programming a PLC

    36/40

    IEC 1131-3Programming Standard

    Defines a consistent set of programming languages for PLCs:

    Ladder diagram

    Function block diagram

    Instruction list

    Structured text

    Sequential function block

  • 8/12/2019 Programming a PLC

    37/40

  • 8/12/2019 Programming a PLC

    38/40

    Sequential Function Chart (2 of 2)

  • 8/12/2019 Programming a PLC

    39/40

    Sequential Function

    Chart OR Logic

  • 8/12/2019 Programming a PLC

    40/40

    Sequential Function ChartIllustrating a Simultaneous Branch