RECIPEEXAMPLE LAD 2 --- Total Rungs in File = 15
When the select Recipe 0 button is pushed on the HMI set Recipe number to 0 Select Recipe 0 Button on HMI HMI_PICK_RECIPE_0 B3:0 0000 0 Number of Selected Recipe RECIPE_NUMBER MOV Move Source Dest
0 0< N7:0 0<
When the Select Recipe 1 button is pushed on the HMI set Recipe number to 1 Select Recipe 1 Button on HMI HMI_PICK_RECIPE_1 B3:0 0001 1 Number of Selected Recipe RECIPE_NUMBER MOV Move Source Dest
1 1< N7:0 0<
When the Select Recipe 2 button is pushed on the HMI set Recipe number to 2 Select Recipe 2 Button on HMI HMI_PICK_RECIPE_2 B3:0 0002 2 Number of Selected Recipe RECIPE_NUMBER MOV Move Source Dest
2 2< N7:0 0<
When the select Recipe 3 button is pushed on the HMI set Recipe number to 3 Select Recipe 3 Button on HMI HMI_PICK_RECIPE_3 B3:0 0003 3 Number of Selected Recipe RECIPE_NUMBER MOV Move Source Dest
3 3< N7:0 0<
Page 1
Friday, May 13, 2011 - 18:26:46
RECIPEEXAMPLE LAD 2 --- Total Rungs in File = 15
When the select Recipe 4 button is pushed on the HMI set Recipe number to 4
Only the first five selections are shown - you get the idea. Alternatively you can have the operator enter a number on the HMI to pick a recipe instead of pressing a button. If that is the case then range check the operator entry and then move it to the Recipe Number (N7:0 in this example) Select Recipe 4 Button on HMI HMI_PICK_RECIPE_4 B3:0 0004 4 Number of Selected Recipe RECIPE_NUMBER MOV Move Source Dest
4 4< N7:0 0<
0005
Check that the recipe number is in range so that we don't indirect address past the end of the file and fault the processor. Number of Selected Recipe RECIPE_NUMBER LIM Limit Test Low Lim 0 0< Test N7:0 0< High Lim 19 19< Move the setpoint of the selected recipe to the temperature setpoint A valid Recipe Has been selected VALID B3:0
A valid Recipe Has been selected VALID B3:0 5
0006 5
Temperature Setpoint SETPOINT MOV Move Source N12:[N7:0] 0< Dest N7:10 0<
Move the dwell time of the selected recipe to the dwell timer preset A valid Recipe Has been selected VALID B3:0 0007 5
DWELL_TIME MOV Move Source N13:[N7:0] 0< Dest T4:0.PRE 0<
Set Auto/Manual according to selected recipe A valid Recipe Has been selected VALID B14:[RECIPE_NUMBER]/0 B3:0 B14:[N7:0] 0008 5 0
AUTO_MANUAL B3:1 0
Page 2
Friday, May 13, 2011 - 18:26:46
RECIPEEXAMPLE LAD 2 --- Total Rungs in File = 15
Set Air Knife ON/OFF according to selected recipe A valid Recipe Has been selected VALID B14:[RECIPE_NUMBER]/1 B3:0 B14:[N7:0] 0009 5 1
AIR_KNIFE_ON B3:1 1
Page 3
Friday, May 13, 2011 - 18:26:46
RECIPEEXAMPLE LAD 2 --- Total Rungs in File = 15
***********EDIT RECIPES************ Move selected recipe values to pv display for data edit N7:1 Data Pointer for Recipe Edit N9:0=Temperature set point N9:1=Dwell time N7:1 is the data pointer for recipe edit B16:0/0= Auto/Manual B16:0/1=ON/OFF Recipe Edit PB B3:0 0010 6 Screen change 0=enable screen edit 2=edit recipe screen MOV Move Source Dest
2 2< N10:0 2<
Tempertaure entry from pv MOV Move Source N12:[N7:1] 0< Dest N9:0 0< Dwell time entry from pv MOV Move Source N13:[N7:1] 0< Dest N9:1 0< MOV Move Source B14:[N7:1] 0000000000000000< Dest B16:0 0000000000000000< Screen change 0=enable screen edit 2=edit recipe screen EQU Equal Source A N10:0 2< Source B N10:1 0< Screen change 0=enable screen edit 2=edit recipe screen MOV Move Source Dest
0011
B15:0 OSR 0
0 0< N10:0 2<
Page 4
Friday, May 13, 2011 - 18:26:46
RECIPEEXAMPLE LAD 2 --- Total Rungs in File = 15
************Recipe Save************** Save Recipe B3:0 0012 7 Recipe edit number MOV Move Source N9:0 0< Dest N12:[N7:1] 0< MOV Move Source Dest
N9:1 0< N13:[N7:1] 0<
MOV Move Source B16:0 0000000000000000< Dest B14:[N7:1] 0000000000000000<
Page 5
Friday, May 13, 2011 - 18:26:46
RECIPEEXAMPLE LAD 2 --- Total Rungs in File = 15
********PV input************ B16:0 0013 0 0014 1 0 END B16:0 dummy B17:0
Page 6
Friday, May 13, 2011 - 18:26:46