Delta AH500 — 6.8.2 Explanation of Convenience Instructions

AH500 Programming Manual API 0703 Symbol: S 1 : Initial value of the ramp signal Word S 2 : Final value of the ramp signal Word D : Duration of the ramp signal Word n : Number of scan cycles Word 1. The instruction is used to get the slope. The slope is linear, and has an absolute relationship with the scan time. 2. The initial value of the ramp signal and the final value of the ramp signal are written into S 1 and S 2 respectively in advance. When X0.0 is ON, D increases from the setting value in S 1 to the setting value in S 2 . The number of scan cycles is stored in D+1.

When the value in D is equal to that in S 2 , or when the value in D+1 is equal to n , reached to the scan cycles, SM687 is ON. 3. When the conditional contact is not enabled, the value in D, and D+1 are both 0, and SM687 is OFF. 4. When the on-line editing is used, please reset the conditional contact to initialize the instruction. 5. Please refer to ISPSoft User Manual for more information related to the fixing of the scan time. 6. The operand n should be within the range between 1 and 32767. Explanation: Example: When the instruction is used with the analog signal output, the action of cushioning the start/stop can be executed. 1. Suppose the instruction is being executed.

When X0.0 is switched OFF, the execution of the instruction stops. When X0.0 is ON again, SM687 is OFF, D12 is reset to the setting value in D10, D13 is reset to 0, and the calculation is restarted. 2. When SM686 is OFF, SM687 is ON, D12 is reset to the setting value in D10, and D13 is reset to 0. 6-162 Instruction code Operand Function RAMP S , S , D, n 1 2 Ramp signal 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 - AH500 -