172

The branching structure of this diagram is important in order to ensure that

00200, 00201, and 00202 are controlled properly as the timer counts down. Be-

cause all of the comparisons here use to the timer’s PV as reference, the other

operand for each CMP(20) must be in 4-digit BCD.

#2000
CMP(20)
TIM 010
#3000
CMP(20)
TIM 010
CMP(20)
TIM 010
#4000
00201
00204
00202
00000
00200
25507
00200
25507
00201
25507
TIM 010
500.0 s
Output at
100 s.
Output at
200 s.
Output at
300 s.
Output at
500 s.
TIM 010
#5000
Address Instruction Operands Address Instruction Operands
00000 LD 00000
00001 TIM 010
# 5000
00002 CMP(20)
TIM 010
# 4000
00003 AND 25507
00004 OUT 00200
00005 LD 00200
00006 CMP(20)
TIM 010
# 3000
00007 AND 25507
00008 OUT 00201
00009 LD 00201
00010 CMP(20)
TIM 010
# 2000
00011 AND 25507
00012 OUT 00202
00013 LD TIM 010
00014 OUT 00204
5-17-3 DOUBLE COMPARE – CMPL(60)

Cp2: First word of second compare word pair

IR, SR, AR, DM, HR, TC, LR

Cp1: First word of first compare word pair

IR, SR, AR, DM, HR, TC, TR

Ladder Symbols Operand Data Areas

CMPL(60)

Cp1

Cp2

___

Data Comparison Section 5-17