Installation manual
Publication 1747-RM001G-EN-P - November 2008
Application Example Programs G-13
The following rung will keep a running total of how many inches of paper have been drilled with the current drill
bit. Every time a hole is drilled, add the thickness (in ¼"s) to the running total (kept in ¼"s). The same OSR is
necessary because the ADD will execute every scan that the rung is true, and the drill body would actuate
the
DRILL DEPTH limit switch for more than 1 program scan. Integer N7:12 is the integer-converted value of the
BCD thumbwheel on inputs I:3/11 - I:3/14.
0006
I:1
4
1746-IA16
Drill Depth
Limit Switch
OSR
B3:1
8
ADD
Add
Source A N7:12
0<
Source B N7:10
0<
Dest N7:10
0<
The following rung will keep track of the number of counts that are past 1,000.
0007
GEQ
Grtr Than or Eql (A>=B)
Source A N7:10
0<
Source B 1000
1000 <
GEQ SUB
Subtract
Source A N7:10
0<
Source B 1000
1000 <
Dest N7:20
0<
SUB
ADD
Add
Source A 1
1<
Source B N7:11
0<
Dest N7:11
0<
MOV
Move
Source N7:20
0<
Dest N7:10
0<
0008
END