Chapter 6 Applied Instructions Symbol S 1 : Initial device for comparison S 2 : Counter number D : Comparison result n : Number of comparison groups 6_ Explanation 1. This instruction generates multiple pulses for a pair of counters. 2. The instruction compares the current value of S 2 with the setting value in S 1 . When the current value matches the in S 2 +1. setting value, the instruction resets the current value of S 2 to 0, and the stores the current comparison group number 3. After the comparison between the current values of S 2 and the n groups of values is complete, SM688 is ON for a scan cycle. 4.
When the conditional contact is not enabled, the value in S 2 is 0, the value in S 2 +1 is 0, D - D + n -1 are OFF, and SM688 is OFF. 5. When using on-line editing, Reset the conditional contact to initialize the instruction. 6. The value in n must be between 1 – 256. 6-195 API Instruction code Operand Function 0706 INCD S1, S2, n, D Incremental drum sequencer Device X Y M S T C HC D FR SM SR E K 16# “$” F S1 S2 D n BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1 S2 D n Pulse instruction 16-Bit instruction 32-Bit instruction - ES3 -