You are on page 1of 4

0 [Program Name : MAIN_PROGRAM]

0
[Section Name : Section1]

P_On P_1s
@++(590) Binary Increment
Always ON Flag 1.0 second clo...
D0 Word (binary)

T0001
TIM 100ms Timer (Timer) [BCD Type]
0000 Timer number

#3 Set value

@++(590) Binary Increment


D1 Word (binary)

T0000
TIM 100ms Timer (Timer) [BCD Type]
0001 Timer number

#1 Set value

1 DATA PRODUCTION
11
P_On
Always ON Flag *UL(423) Unsigned Long Binary Multiply
D10 INPUT_TIMER_HOUR
First multiplicand word

&3600 First multiplier word

D70 HOUR_TO_SECOND
First result word

*UL(423) Unsigned Long Binary Multiply


D15 INPUT_TIMER_MINUTE
First multiplicand word

&60 First multiplier word

D75 MINUTE_TO_SECOND
First result word

+(400) Signed Binary Add Without Carry


D70 HOUR_TO_SECOND
Augend word

D75 MINUTE_TO_SECOND
Addend word
D80 RESULT_TO_SECOND
Result word

2 DATA BACKWASH
15
P_On
Always ON Flag *UL(423) Unsigned Long Binary Multiply
D20 INPUT_TIMER_MINUTE
First multiplicand word

&60 First multiplier word

D84 Result_To_Second
First result word

3 DATA FLUSHING
17
P_On
Always ON Flag *UL(423) Unsigned Long Binary Multiply
D30 INPUT_TIMER_MINUTE
First multiplicand word

&60 First multiplier word

D88 RESULT_TO_SECOND FLUSHING


First result word

4 SWITCH AUTO
19
I: 0.00 I: 0.00 W10.00 W0.00
ON AUTO
Switch Auto Switch Auto ON MANUAL
W0.00
ON AUTO

5 SWITCH MANUAL
24
I: 0.01 I: 0.01 W0.00 W10.00
ON MANUAL
Switch Manual Switch Manual ON AUTO
&60 First multiplier word

D88 RESULT_TO_SECOND FLUSHING


First result word

4 SWITCH AUTO
19
I: 0.00 I: 0.00 W10.00 W0.00
ON AUTO
Switch Auto Switch Auto ON MANUAL
W0.00
ON AUTO

5 SWITCH MANUAL
24
I: 0.01 I: 0.01 W0.00 W10.00
ON MANUAL
Switch Manual Switch Manual ON AUTO
W10.00
ON MANUAL

6 P_On W0.00 W0.01


29
Always ON Flag ON AUTO

TKOF(821) Task Status Off


1 Task number

W0.00
TKON(820) Task Status On
ON AUTO
1 Task number

W10.00 W0.02
ON MANUAL

TKOF(821) Task Status Off


2 Task number

W10.00
ON MANUAL TKON(820) Task Status On
2 Task number

7 RESET AUTO PROSES


44
P_On W0.00
Always ON Flag ON AUTO RSET Reset
W10.00 Q: 101.01 PRODUCTION
Bit
ON MANUAL

RSET Reset
W100.09 Indicator Production
Bit

RSET Reset
W9.01 PRODUCTION TO BACK WASH_INDICATOR
Bit

RSET Reset
Q: 101.02 BACKWASH
Bit

RSET Reset
W100.10 Indicator Backwash 1
Bit

RSET Reset
W9.02 Bit

RSET Reset
Q: 101.03 FLUSHING
Bit

RSET Reset
W100.11 Indicator Flushing
Bit

RSET Reset
W9.03 Bit

MOVL(498) Long Move


&0 First source word

90 Compare Data Input Timer Production


First destination word

MOVL(498) Long Move


&0 First source word

94 Compare Data Input Timer Backwash


First destination word
RSET Reset
W9.03 Bit

MOVL(498) Long Move


&0 First source word

90 Compare Data Input Timer Production


First destination word

MOVL(498) Long Move


&0 First source word

94 Compare Data Input Timer Backwash


First destination word

MOVL(498) Long Move


&0 First source word

98 COMPARE DATE INPUT TIMER FLUSHING


First destination word

RSET Reset
W9.05 PRODUCTION
Bit

RSET Reset
W9.06 BACKWASH 1
Bit

RSET Reset
W9.07 FLUSHING 1
Bit

MOVL(498) Long Move


&0 First source word

W206 First destination word

MOVL(498) Long Move


&0 First source word

D206 First destination word

MOVL(498) Long Move


&0 First source word

D98 First destination word

8 OUTPUT
66
P_On W0.00 W9.06 Q: 100.00
BTV-001 A_NO
Always ON Flag ON AUTO BACKWASH 1
W10.00 W200.06
ON MANUAL BACKWASH 2
W0.00 W9.06 Q: 100.01
BTV-001 B
ON AUTO BACKWASH 1
W10.00
ON MANUAL
W0.00 W9.07 Q: 100.02
BTV-001 C
ON AUTO FLUSHING 1
W10.00
ON MANUAL
W0.00 W9.06 Q: 100.03
BTV-001 D
ON AUTO BACKWASH 1
W10.00
ON MANUAL
W0.00 W9.07 Q: 100.04
BTV-002 A_NO
ON AUTO FLUSHING 1
W10.00 W9.06
ON MANUAL BACKWASH 1
W200.06
BACKWASH 2
ON MANUAL
W0.00 W9.07 Q: 100.02
BTV-001 C
ON AUTO FLUSHING 1
W10.00
ON MANUAL
W0.00 W9.06 Q: 100.03
BTV-001 D
ON AUTO BACKWASH 1
W10.00
ON MANUAL
W0.00 W9.07 Q: 100.04
BTV-002 A_NO
ON AUTO FLUSHING 1
W10.00 W9.06
ON MANUAL BACKWASH 1
W200.06
BACKWASH 2
W0.00 W200.06 Q: 100.05
BTV-002 B
ON AUTO BACKWASH 2
W10.00
ON MANUAL
W0.00 W9.04 Q: 100.06
BTV-002 C
ON AUTO FLUSHING 2
W10.00
ON MANUAL
W0.00 W9.07 Q: 100.07
BTV-002 D_NO
ON AUTO FLUSHING 1
W10.00 W9.04
ON MANUAL FLUSHING 2
W9.06
BACKWASH 1
W200.06
BACKWASH 2
W0.00 W200.06 Q: 101.00
BTV-002 E
ON AUTO BACKWASH 2
W10.00
ON MANUAL

You might also like