15. Handy Instruction Design Examples M103 Y12 Horizontal green light ON M104 M1013 M105 Y11 Horizontal yellow light ON Y10 M100 M101 Horizontal red light ON M102 Program Description: z “Incremental Drum Sequencer” is a concept performing repetitive step-by-step process. In this program, when present value in counter C0 reaches the set value in D 500~D505, the corresponding output devices M100~M105 will be ON and counter C0 will be reset for executing next step. z In order to simplify the program, INCD (Incremental Drum Sequencer) instruction is used here to control the traffic lights.
z Before the execution of INCD instruction, use MOV instruction to write all the set values into D500 ~ D505 in advance. DVP-PLC Application Examples 15-8 Set value Output device Set value Output device D500 = 52 M100 D503 = 52 M103 D501 = 5 M101 D504 = 5 M104 D502 = 3 M102 D505 = 3 M105