AH500 Programming Manual API 0705 Symbol: S 1 : Initial device in the comparison Word/Double word S 2 : Comparison value Word/Double word D : Comparison result Bit n : Number of comparison groups Word Explanation: 1. The instruction ABSD is used to generate multiple pulses corresponding to the current values of the counter. 2. Only the instruction DABSD can use the 32-Bit counter. 3. When the instruction ABSD is used, n should be within the range between 1 and 256. When the instruction DABSD is used, n should be within the range between 1 and 128. Example 1: 1. Before the instruction ABSD is executed, the instruction MOV is used to write the setting values in D100~D107.
The values in the even devices are minimum values, and the values in the odd devices are maximum values. 2. When X0.0 is ON, the current value of the counter C10 is compared with the maximum values and the minimum values in D100~D107, and the comparison results are stored in M10~M13. 3. When X0.0 is OFF, the original states of M10~M13 are unchanged. 6-166 Instruction code Operand Function D ABSD S , S , D, n 1 2 Absolute drum sequencer Device X Y M S T C HC D L SM SR E PR K 16# “$” DF S 1 S 2 D n Pulse instruction 16-Bit instruction (9 steps) 32-Bit instruction (9 steps) - AH500 AH500