Beruflich Dokumente
Kultur Dokumente
OR
AND
!inally C"#s were added to ta e o$er the function of the logic circuits
%&' De$ices wired to buffer transistors Control decisions accomplished through programming
CPU
Relay Logic representation (or LD) was de$eloped to ma e program creation and maintenance easier
Computer based graphical representation of wiring diagrams that was easy to understand Reduced training and support cost
What is a Rung?
A rung of ladder diagram code can contain both input and output instructions
%nput instructions perform a comparison or test and set the rung state based on the outcome
(ormally left )ustified on the rung
'utput instructions e*amine the rung state and e*ecute some operation or function
%n some cases output instructions can set the rung state (ormally right )ustified on the rung
%nput %nstruction 'utput %nstruction
"aralleling outputs allows multiple operations to occur based on the same input criteria
A C A(D ,ranches D -
, 'R
Ri ht Power Rail
P
J
S
K
#onta*ts
(ormally 'pen Contact .3 3.
-nables the rung to the right of the instruction if the rung to the left is enabled and underlining bit is set (0)
Retenti,e #oils
The referenced bit is unchanged when processor power is cycled
Retenti$e coil .(7).
/ets a bit when the rung is true(0) and resets the bit when the rung is false (1)
Time $alues
Time base is 0msec (0&0111 of a sec) ?alues entered using duration literal format
Pump_Tmr TON IN ENO Q T#200ms PT ET Pump_Tmr_DN
178
"imer Operation
%( : Rung input condition 9 : Comparison output results
?aries with timer types
%" Pulse ("P "iming I! .
"T 3 1
All three count rung transitions Two possible $isuali@ations Depending on use of -(&-('
0st method reAuires e*tra programming if timer done status needs to be referenced on other rungs ;nd method sets a bit with 9 which can be referenced by other logic+ -(':-(
178
#ounter Operation
"arameters
C#&CD : Count up&Down 9&9#&9D : Comparison 'utput R : Reset to Bero LD : Load C? with "? "? : "reset ?alue C? : Count ?alue
I! .
"? #V 3 1
###
###
###
I! .
"? #V 3 1
###
###
###
LD
R LD
R-T . -*its a function and returns control bac to the calling routine
+,-
%-C places the input parameters on the outside of the instruction bloc $s the "LC2 where they are presented inside of the bloc
&
'' Rungs of Logi* '7 Instru*tions $ours to *ode and de6ug ' Rung of Logi* ' Instru*tion 5inutes to *ode and de6ug