4. Index Registers E, F Design Examples 4.2 Parameter Setting for Product Recipe Control Purpose: z For one product, there are 3 models which correspond to 3 sets of recipes. Each recipe includes 10 parameters. The program executes the set parameters according to the selected recipe switch. Devices: Control Program:
DVP-PLC Application Examples 4-3 Device Function X0 Switch of the first recipe X1 Switch of the second recipe X2 Switch of the third recipe D500 ~ D509 Parameters of the first group D510 ~ D519 Parameters of the second group D520 ~ D529 Parameters of the third group D100 ~ D109 The present parameters X0 MOV K500 E1 X1 MOV K510 E1 X2 MOV K520 E1 X0 RST M0 X1 X2 M0 RST F1 FOR K10 M0 MOV D0E1 D100F1 INC E1 INC F1 NEXT LD>= F1 K10 SET M0 LD>= F1 K10 SET M0 MOV K500 E1 MOV K510 E1 MOV K520 E1 RST M0 RST F1 FOR K10 MOV D0E1 D100F1 INC E1 INC F1