Delta DVP — 5.4 Auto Lock up System in the Supermarket (FOR ~ NEXT)

5. Loop Instruction Design Examples 5.4 Auto Lock up system in the Supermarket (FOR ~ NEXT) X0 TOTAL: Yuan 88.00 12.00 : CHANGE Yuan : 33.2 CHANGE Yuan Y0~Y17 Y20~Y37 Y40~ Y57 Control Purpose: z Once fire or robbery happened in the supermarket, locking up all cash drawers until the alarm situation is cleared. Devices: Device Function X0 X0 = ON when the alarm is activated. D0 The number of cash drawers D10 Start address of destination register Control Program: M1000 M1002 D0 X0 D10F1 X0 D10F1 NEXT DVP-PLC Application Examples 5-7 TTOOTTAALL: D41 : .421 Y.2u Yanuan CCHHAANNGGEE : 8: 8.8.8Y uYaunan TTOOTTAALL: D41 : .421 Y.2u Yanuan CCHHAANNGGEE : 8:

8.8.8Y uYaunan RST F1 MOV K3 FOR D0 MOV HFFFF INC F1 MOV H0 INC F1