7 Application Instructions API 50-99 API 63 Operands: S 1 : Start device in the data table S 2 : No. of counter D : Start No. of the devices for the comparison results n : Number of data for comparison Explanations: 1. When S 1 designates KnX, KnY, KnM and KnS, it has to designate K4. 2. In the 16-bit instruction, S 2 has to designate C0 ~ C198 and will occupy 2 consecutive No. of counters. 3. Range of n : 1 ~ 64 4. See the specifications of each model for their range of use. 5. Flag: M1029 (instruciton execution completed) 6. INCD instruction is for the relative control of the multiple output pulses generated by the present value in the counter. 7.
The present value in S 2 is compared with S 1 . S 2 will be reset to 0 whenever a comparison is completed. The current number of data processed in temporarily stored in S 2 + 1. 8. When n data have been processed, M1029 will be On for one scan period. Program Example: 1. Before the execution of INCD instruction, use MOV instruction to write all the set values into D100 ~ D104 in advance. D100 = 15, D101 = 30, D102 = 10, D103 = 40, D104 = 25. 2. The present value in C10 is compared against the set values in D100 ~ D104. The present value will be reset to 0 whenever a comparison is completed. 3. The current number of data having been processed is temporarily stored in C11. 4.
The number of times of reset is temporarily stored in C11. 5. Whenever the content in C11 pluses 1, M10 ~ M14 will also correspondingly change. See the timing diagram below. 6. After the 5 groups of data have been compared, M1029 will be On for one scan period. 7. When X0 goes from On to Off, C10 and C11 will both be reset to 0 and M10 ~ M14 will all be Off. When X0 is On again, the instruction will start its execution again from the beginning. DVP-PLC APPLICATION MANUAL 7-53 Mnemonic Operands Function INCD Incremental Drum Sequencer Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F INCD:
9 steps S 1 * * * * * * * S 2 * D * * * n * * PULSE 16-bit 32-bit SA S X SC EH SV EH3 SV2 ES EX SS EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS SA SX SC EH SV SV2