GE GFK-0804B Universal Remote User Manual


 
4
4-25GFK-0804B Chapter 4 The Micro PLC Instruction Set
Examples and HHP Instructions
Ladder Diagram Hand-held Programmer
I1
START
MATH
OUT
START
MATH
OUT
F2
F1
F2
F1
I1
R1
5
R2
R3
R4
R5
"
[R1– 5! R2]
[R3–R4 ! R5]
46133
In the first rung of the example above, the Positive Transition contact I1 is used as
conditional logic to the Subtraction function. When I1 transitions on, 5 is subtracted from
the current value in register R1. The result is placed in register R2.
In the second rung of the example, there is no contact placed before the Subtraction
function. That means it is executed unconditionally. Each program scan, the value in R4
is subtracted from the value in R3. The result is placed in R5.