4

Examples and HHP Instructions

I1

"

Ladder Diagram

[R1± 5! R2]

[R3±R4 ! R5]

46133

 

Hand-held Programmer

 

START

 

I1

MATH

F2

R1

 

 

5

 

 

R2

OUT

F1

 

START

 

 

MATH

F2

R3

 

 

R4

OUT

 

R5

F1

 

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.

GFK-0804B

Chapter 4 The Micro PLC Instruction Set

4-25

Page 66
Image 66
GE GFK-0804B manual R1± 5! R2 R3±R4 ! R5