U 3EV53600 MainRoutine
U 3EV53600 MainRoutine
U 3EV53600 MainRoutine
Energize EP and EM
Wyeth Nutritional (China)
Version: 1.00
Created by: Charles Zha
Last updated date: 2009-09-01
Version:1.30
Updated by: Wilber Shou
Last updated date: 2009-10-20
Note:
Updated after Function FAT
---
0 NOP
Evaporator 1 Main
Sequence
JSR
1 Jump To Subroutine
Routine Name Main_Sequence
Start Evaporator
Phase
JSR
2 Jump To Subroutine
Routine Name EP_3EV53600STR
RSLogix 5000
MainRoutine - Ladder Diagram Page 2
WNC_PLC04:MainTask:U_3EV53600 10/22/2009 11:41:22
Total number of rungs in routine: 40 C:\Documents and Settings\cnshouw\Desktop\Suzhou Wyeth Project PLC\Ver16\WNC_PLC04_1_3_20091022_1113.ACD
Energize EP and EM
Stop Evaporator
Phase
JSR
3 Jump To Subroutine
Routine Name EP_3EV53600STP
Production to
Waterrun Phase
JSR
4 Jump To Subroutine
Routine Name EP_3EV53600P2W
Start Production
Phase
JSR
5 Jump To Subroutine
Routine Name EP_3EV53600W2P
CIP Phase
JSR
6 Jump To Subroutine
Routine Name EP_3EV53600CIP
RSLogix 5000
MainRoutine - Ladder Diagram Page 3
WNC_PLC04:MainTask:U_3EV53600 10/22/2009 11:41:27
Total number of rungs in routine: 40 C:\Documents and Settings\cnshouw\Desktop\Suzhou Wyeth Project PLC\Ver16\WNC_PLC04_1_3_20091022_1113.ACD
Energize EP and EM
CIP - Caustic
JSR
7 Jump To Subroutine
Routine Name CPCA
CIP - Intermediate
Rinse
JSR
8 Jump To Subroutine
Routine Name CPIR
CIP - Acid
JSR
9 Jump To Subroutine
Routine Name CPAC
RSLogix 5000
MainRoutine - Ladder Diagram Page 4
WNC_PLC04:MainTask:U_3EV53600 10/22/2009 11:41:32
Total number of rungs in routine: 40 C:\Documents and Settings\cnshouw\Desktop\Suzhou Wyeth Project PLC\Ver16\WNC_PLC04_1_3_20091022_1113.ACD
Energize EP and EM
SIP Phase
JSR
11 Jump To Subroutine
Routine Name EP_3EV53600SIP
Emergency Shutdown
Phase
JSR
12 Jump To Subroutine
Routine Name EP_3EV53600ESD
EM_3BK53601
[BT]
Water/product to
Balance Tank
JSR
13 Jump To Subroutine
Routine Name EM_3BK53601
EM_3CD53601
[COND]
Condensor
JSR
14 Jump To Subroutine
Routine Name EM_3CD53601
RSLogix 5000
MainRoutine - Ladder Diagram Page 5
WNC_PLC04:MainTask:U_3EV53600 10/22/2009 11:41:37
Total number of rungs in routine: 40 C:\Documents and Settings\cnshouw\Desktop\Suzhou Wyeth Project PLC\Ver16\WNC_PLC04_1_3_20091022_1113.ACD
Energize EP and EM
EM_3LL53601
[LLC]
Line Level Control
JSR
15 Jump To Subroutine
Routine Name EM_3LL53601
EM_3PU53601
[PRP]
Product pumps
JSR
16 Jump To Subroutine
Routine Name EM_3PU53601
EM_3PU53602
[CDP]
Condensate Pumps
JSR
17 Jump To Subroutine
Routine Name EM_3PU53602
EM_3PU53603
[VCP]
Vacuum Control
JSR
18 Jump To Subroutine
Routine Name EM_3PU53603
RSLogix 5000
MainRoutine - Ladder Diagram Page 6
WNC_PLC04:MainTask:U_3EV53600 10/22/2009 11:41:43
Total number of rungs in routine: 40 C:\Documents and Settings\cnshouw\Desktop\Suzhou Wyeth Project PLC\Ver16\WNC_PLC04_1_3_20091022_1113.ACD
Energize EP and EM
EM_3RT53601
[RUT]
Ramp up TVR
JSR
19 Jump To Subroutine
Routine Name EM_3RT53601
EM_3RW53601
[RW]
RO Water Supply
JSR
20 Jump To Subroutine
Routine Name EM_3RW53601
EM_3SN53601
[PSL]
Product Supply Line
JSR
21 Jump To Subroutine
Routine Name EM_3SN53601
EM_3SN53602
[CSL]
CIP Supply Line
JSR
22 Jump To Subroutine
Routine Name EM_3SN53602
RSLogix 5000
MainRoutine - Ladder Diagram Page 7
WNC_PLC04:MainTask:U_3EV53600 10/22/2009 11:41:48
Total number of rungs in routine: 40 C:\Documents and Settings\cnshouw\Desktop\Suzhou Wyeth Project PLC\Ver16\WNC_PLC04_1_3_20091022_1113.ACD
Energize EP and EM
EM_3SQ53601
[STCW]
Steam and cooling
watersupply
JSR
23 Jump To Subroutine
Routine Name EM_3SQ53601
EM_3SW53601
[SEAL]
Sealwater
JSR
24 Jump To Subroutine
Routine Name EM_3SW53601
EM_3VA53601
[CCVL]
Concentrate Valves
JSR
25 Jump To Subroutine
Routine Name EM_3VA53601
EM_3VA53604
[CPVL]
CIP Valves
JSR
26 Jump To Subroutine
Routine Name EM_3VA53604
RSLogix 5000
MainRoutine - Ladder Diagram Page 8
WNC_PLC04:MainTask:U_3EV53600 10/22/2009 11:41:53
Total number of rungs in routine: 40 C:\Documents and Settings\cnshouw\Desktop\Suzhou Wyeth Project PLC\Ver16\WNC_PLC04_1_3_20091022_1113.ACD
Energize EP and EM
EM_3WD53601
[WFD]
Wait for Density
JSR
27 Jump To Subroutine
Routine Name EM_3WD53601
SCADA Parameter
SCADA Parameter and
Timer Setting
JSR
30 Jump To Subroutine
Routine Name Parameter_Setting
RSLogix 5000
MainRoutine - Ladder Diagram Page 9
WNC_PLC04:MainTask:U_3EV53600 10/22/2009 11:41:58
Total number of rungs in routine: 40 C:\Documents and Settings\cnshouw\Desktop\Suzhou Wyeth Project PLC\Ver16\WNC_PLC04_1_3_20091022_1113.ACD
Energize EP and EM
*** Production Hours Counter ***
Start
Step Number Start Production
EM_3RT53601 Hours-Counter
EQU EVAP1_Product_Start
31 Equal L
Source A EM_3RT53601_StepN
Product Counter
0
Reset Oneshoot Product Timer
Source B 1
Product_Counter_ONS_In MOV
ONS Move
Source 0
Dest EVAP1_Product_Timer.ACC
0
Stop
EP_3EV53600P2W Phase Start Production
run step buffer Hours-Counter
EQU EVAP1_Product_Start
32 Equal U
Source A EP_3EV53600P2W.STS_SI
0
Source B 3
EP_3EV53600ESD Phase
run step buffer
EQU
Equal
Source A EP_3EV53600ESD.STS_SI
0
Source B 1
RSLogix 5000
MainRoutine - Ladder Diagram Page 10
WNC_PLC04:MainTask:U_3EV53600 10/22/2009 11:41:58
Total number of rungs in routine: 40 C:\Documents and Settings\cnshouw\Desktop\Suzhou Wyeth Project PLC\Ver16\WNC_PLC04_1_3_20091022_1113.ACD
Energize EP and EM
*** Production Hours Counter ***
Counter
Start Production
Hours-Counter Product Timer
EVAP1_Product_Start RTO
33 Retentive Timer On EN
Timer EVAP1_Product_Timer
Preset 1080000000 DN
Accum 0
Product Hours
DIV
Divide
Source A EVAP1_Product_Timer.ACC
0
Source B 3600000
Dest EVAP1_Product_Hour
0.42449638
RSLogix 5000
MainRoutine - Ladder Diagram Page 11
WNC_PLC04:MainTask:U_3EV53600 10/22/2009 11:41:58
Total number of rungs in routine: 40 C:\Documents and Settings\cnshouw\Desktop\Suzhou Wyeth Project PLC\Ver16\WNC_PLC04_1_3_20091022_1113.ACD
Energize EP and EM
*** Production Flow Counter ***
Start
Step Number
EM_3RT53601 Enable counting.
EQU Product_Counter_CounterEnable_In
34 Equal
Source A EM_3RT53601_StepN
Enable counting.
0
Product_Counter_CounterEnable_Out
Source B 1
Dest Product_Counter_CounterQuantity_In
2.9714227
Accumulated
quantity.
MOV
Move
Source 0
Dest Product_Counter_CounterQuantity_Out
1.5282704
RSLogix 5000
MainRoutine - Ladder Diagram Page 12
WNC_PLC04:MainTask:U_3EV53600 10/22/2009 11:41:58
Total number of rungs in routine: 40 C:\Documents and Settings\cnshouw\Desktop\Suzhou Wyeth Project PLC\Ver16\WNC_PLC04_1_3_20091022_1113.ACD
Energize EP and EM
Stop
EP_3EV53600P2W Phase
run step buffer Reset counting.
EQU Product_Counter_Reset_In
35 Equal
Source A EP_3EV53600P2W.STS_SI
Reset counting.
0
Product_Counter_Reset_Out
Source B 3
EP_3EV53600ESD Phase
run step buffer
EQU
Equal
Source A EP_3EV53600ESD.STS_SI
0
Source B 1
RSLogix 5000
MainRoutine - Ladder Diagram Page 13
WNC_PLC04:MainTask:U_3EV53600 10/22/2009 11:41:58
Total number of rungs in routine: 40 C:\Documents and Settings\cnshouw\Desktop\Suzhou Wyeth Project PLC\Ver16\WNC_PLC04_1_3_20091022_1113.ACD
Energize EP and EM
*** Production Flow Counter ***
Reset
Counter value from
Reset counting. CM.
Product_Counter_Reset_In MOV
36 Move
Source 0
Dest Product_Counter_CounterValue_In
0.0
Reset counting.
Product_Counter_Reset_In
U
Dest Product_Counter_CounterValue_Out
0.0
Reset counting.
Product_Counter_Reset_Out
U
RSLogix 5000
MainRoutine - Ladder Diagram Page 14
WNC_PLC04:MainTask:U_3EV53600 10/22/2009 11:41:58
Total number of rungs in routine: 40 C:\Documents and Settings\cnshouw\Desktop\Suzhou Wyeth Project PLC\Ver16\WNC_PLC04_1_3_20091022_1113.ACD
Energize EP and EM
PLC Scan Timer
PLC Scan Time Timer
TON
37 Timer On Delay EN
Timer PLCScanTimeTimer
Preset 1000000 DN
Accum 0
RSLogix 5000
MainRoutine - Ladder Diagram Page 15
WNC_PLC04:MainTask:U_3EV53600 10/22/2009 11:41:58
Total number of rungs in routine: 40 C:\Documents and Settings\cnshouw\Desktop\Suzhou Wyeth Project PLC\Ver16\WNC_PLC04_1_3_20091022_1113.ACD
Energize EP and EM
PLC Scan Timer
PLC Scan Time
(Seconds)
DIV
38 Divide
Source A PLCScanTimeMilliSeconds
54.0
Source B 1000
Dest PLCScanTimeSeconds
0.054
Dest PLCScanTimeMinutes
9.33333358e-004
Dest PLCScanTimeHours
1.55555554e-005
RSLogix 5000
MainRoutine - Ladder Diagram Page 16
WNC_PLC04:MainTask:U_3EV53600 10/22/2009 11:41:58
Total number of rungs in routine: 40 C:\Documents and Settings\cnshouw\Desktop\Suzhou Wyeth Project PLC\Ver16\WNC_PLC04_1_3_20091022_1113.ACD
Energize EP and EM
*** Production Flow Counter ***
Count if enable
Accumulated
quantity.
CPT
39 Compute
Dest Product_Counter_CounterQuantity_In
2.9714227
Expression Product_Counter_CounterQuantity_In+(Product_Counter_CounterValue_In*PLCScanTimeHours)
Accumulated
quantity.
CPT
Compute
Dest Product_Counter_CounterQuantity_Out
1.5282704
Expression Product_Counter_CounterQuantity_Out+(Product_Counter_CounterValue_Out*PLCScanTimeHours)
(End)
RSLogix 5000