Date post: | 07-Jul-2018 |
Category: |
Documents |
Upload: | hendra-suherman |
View: | 225 times |
Download: | 0 times |
of 19
8/18/2019 2 Basic Ladder Instructions R1.1
1/19
© 2013 Eaton Corporation. All rights reserved.
PLC Programming Basics
8/18/2019 2 Basic Ladder Instructions R1.1
2/19
2© 2013 Eaton Corporation. All rights reserved.
PLC Programming Basics
Basic Ladder Logic “Bit” Instructions
Set Reset One-shot Rising orFalling
8/18/2019 2 Basic Ladder Instructions R1.1
3/19
3© 2013 Eaton Corporation. All rights reserved.
PLC Programming Basics
Instruction Addressing
• Input and output bit instructions are
addressed ith either actual !ph"sical#digital I$O addresses or internal storage
bit addresses%
• &hese addresses are de'ned b" the PLC
8/18/2019 2 Basic Ladder Instructions R1.1
4/19
4© 2012 Eaton Corporation. All rights reserved.
PLC Programming Basics
Instruction Addressing
• eas"()) controllers use “*ar+ers” ,orinternal addresses such as *). *)(.
/
• eas"()) controllers use Ixx ,or actual!ph"sical# Input addresses and Q00 ,or
Output addresses% 10ample2 I01, I08 areInputs and 3). 3)4 are Outputs
8/18/2019 2 Basic Ladder Instructions R1.1
5/19
5© 2012 Eaton Corporation. All rights reserved.
PLC Programming Basics
Instruction Addressing
• *ar+er addresses !*00# are internal
storage addresses de'ned b" thecontroller% &he" are used as internal
rela"s
• Real-orld Input and Output addressesmust correspond to the actual !ph"sical#
input terminal as de'ned b" the
controller
8/18/2019 2 Basic Ladder Instructions R1.1
6/19
6© 2012 Eaton Corporation. All rights reserved.
PLC Programming Basics
Read real worldinputs
Evaluate
ladder
Write real worldoutputs
8/18/2019 2 Basic Ladder Instructions R1.1
7/197© 2012 Eaton Corporation. All rights reserved.
PLC Programming Basics
Inputs
• Input instructions change state hen
poer is applied to the input terminal
ith the corresponding address
• It5s common to call the ,olloing
instruction “&rue” rather than “Closed”
hen poer is applied to the terminal its
addressed to
8/18/2019 2 Basic Ladder Instructions R1.1
8/198© 2012 Eaton Corporation. All rights reserved.
PLC Programming Basics
Inputs
• It5s also common to call the ,olloing
instruction “False” rather than “Open”
hen poer is applied to the input
terminal it5s addressed to
8/18/2019 2 Basic Ladder Instructions R1.1
9/199© 2012 Eaton Corporation. All rights reserved.
PLC Programming Basics
Outputs
• Outputs “energi6e” hen rung
conditions preceding them are “&rue”
• 7hen Input is &rue. Output is
energi6ed
8/18/2019 2 Basic Ladder Instructions R1.1
10/1910© 2012 Eaton Corporation. All rights reserved.
PLC Programming Basics
Set$Reset
• A Set instruction remains &rue e8en
a,ter the rung conditions that made it
&rue become False
• A Set instruction must be accompanied
b" a Reset instruction addressed ith
the same address in order to reset thebit. based on "our logic
8/18/2019 2 Basic Ladder Instructions R1.1
11/1911© 2012 Eaton Corporation. All rights reserved.
PLC Programming Basics
Set$Reset 10ample
Input sets Output and Input 9 resetsOutput !Inputs : 9 must not be &rue atthe same time#
8/18/2019 2 Basic Ladder Instructions R1.1
12/1912© 2012 Eaton Corporation. All rights reserved.
PLC Programming Basics
In 1
Ladder is e8aluated !scanned#starting ,rom the top rung. le,t toright. ,olloed b" the ne0t rung.and so on. until the bottom is
reached% &hen starts again at theto %
Timer 1
Out 1
In 2 Out 2
Timer 1
8/18/2019 2 Basic Ladder Instructions R1.1
13/1913© 2012 Eaton Corporation. All rights reserved.
PLC Programming Basics
Logical A/;$OR Operations
I, Input A AND Input Bare &rue. the Output ill
energi6e
I, Input A OR Input Bis true. the Output illenergi6e
8/18/2019 2 Basic Ladder Instructions R1.1
14/1914© 2012 Eaton Corporation. All rights reserved.
PLC Programming Basics
A/;$OR Combination Logic
Output < is energi6ed i, A AND !B OR C#are &rue
8/18/2019 2 Basic Ladder Instructions R1.1
15/19
15© 2012 Eaton Corporation. All rights reserved.
PLC Programming Basics - &imers
• &imers
• &o basic t"pes o, timers in PLCs2
% On-dela" timers
9% O=-dela" timers
8/18/2019 2 Basic Ladder Instructions R1.1
16/19
16© 2012 Eaton Corporation. All rights reserved.
PLC Programming Basics - &imers
• On-dela" timers
7hen an On-dela" timer is energi6ed
!&rue# it delays turning On the timer5s
output bit until the timer5s preset time8alue is reached% &he output bit is
o,ten called the timer5s “;one” bit and
it indicates the timer has attained itspreset time%
8/18/2019 2 Basic Ladder Instructions R1.1
17/19
17© 2012 Eaton Corporation. All rights reserved.
PLC Programming Basics - &imers
• O=-dela" timers
7hen an O=-dela" timer is energi6ed
!&rue# it immediatel" turns On its
output !;one# bit% &he timer then
delays turning Of the output !;one#
bit ,or the timer5s preset time. a,ter the
timer is de-energi6ed !False#%O=-dela" timers are less common than
On-dela" timers%
8/18/2019 2 Basic Ladder Instructions R1.1
18/19
18© 2013 Eaton Corporation. All rights reserved.
Questions?
8/18/2019 2 Basic Ladder Instructions R1.1
19/19
© 2013 Eaton Corporation. All rights reserved.