Professional Documents
Culture Documents
Programming PLC PDF
Programming PLC PDF
Programming
2. Programming a PLC
3. Application Example
4. Hands-On Lab
GM needed
d d the
th flexibility
fl ibilit off ““solid
lid state”;
t t ” a controller
t ll th thatt could
ld bbe
programmed and maintained by plant engineers; and was rugged
enough to withstand the factory environment and provided easy
troubleshooting...
troubleshooting
Allen
Allen--Bradley PLC
Inputs
Control
Program
Outputs
Copyright © 2010 Rockwell Automation, Inc. All rights reserved. 4
Two types of I/O (Inputs & Outputs)
• Digital • Analog
• Also called Discrete • Has many possible states between two
• Has two possible states values
values.
• Represented by “1” or “0” • Example: Temperature sensor.
• Electrically: • Range of values between two limits. For
• “0” is usuallyy 0 Volts ((AC or DC)) example:
• “1” is a fixed voltage value such as • 0°F represented by “0”
5VDC, 24VDC, 120VAC, etc. • 100°F represented by “4095” (example)
• Technology: Relays, Triac, Transistor, • Electrically: 4-20mA, 0-5VDC, -10 to 10VDC
MOSFET TTL
MOSFET,
4095
1
0
0
• Program
– Instructions used to process inputs and set outputs
• Primarily written as (Relay) Ladder Diagram:
Start_Button Light
2. Programming a PLC
3. Application Example
4. Hands-On Lab
• Sequencing
• Data Manipulation
Startt_Button
Sta utto Light
g t
Often, a descriptive name of the device connected to the I/O point is used
in addition to,, or in place
p of the I/O variable which describes the physical
p y
location on the controller.
Example of
user-defined
name
Start Button Light
_IO_Embedded_Digital_Input_0
g p _IO_Embedded_Digital_Output_0
g p
Example of
system-defined
I/O variable
12
RAS1
Connected Components Workbench Software
• Easy to Acquire/Install
– Free Internet download
• Easy to Configure
– Single software for component
class products
– Graphical
G hi l Device
D i Configuration
C fi ti
• Easy to Program
– Extensive use of Microsoft
and IEC-61131 standards
– Symbolic Programming
– Rockwell Automation and
user-defined function blocks
• Easy to Update
–S
Software
ft updates
d t available
il bl
via Internet
Slide 13
• Graphical Micro800
controller configuration
• IEC 61131-3 editors
– Ladder Diagram, Function
Block, Structured Text
– User-defined function blocks
– Run-time program download
• Extensive Standard
Instruction Set
– IEC 61131-3 base
instructions with Rockwell
Automation extensions
Slide 14
2. Programming a PLC
3. Application Example
4. Hands-On Lab
2. Programming a PLC
3. Application Example
4. Hands-On Lab
Now let’s take a look at a modern traffic light application. With sensors to
determine the presence of a car at the various parts of the intersection, the
traffic light controller must determine the lighting sequencing and timing to
allow traffic to flow in a orderly fashion. In your lab, you will learn to
program a Micro800 to control a traffic light and use it and our PanelView
C
Component operator iinterface
f to test the
h program.