DVP-ES3 Series Programming Manual Symbol S 1 : Initial value of the ramp signal S 2 : Final value of the ramp signal D : Duration of the ramp signal _6 n : Number of scan cycles Explanation 1. This instruction gets the linear slope, which has an absolute relationship with the scan time. Therefore it is suggested that you set a fixed scan time or write this instruction in a timer interrupt task. 2. You write the initial value and final value of the ramp signal into S 1 and S 2 respectively in advance. When M0 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 (to the number of scan cycles), then 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 using on-line editing, Reset the conditional contact to initialize the instruction. 5. Refer to the ISPSoft User Manual for more information on setting a fixed scan time. 6. The value of n must be between 1–32767. When n is out of range, this instruction is not executed. 7. Only the 32-bit instructions can use the 32-bit counter, but not the device E .
6-186 API Instruction code Operand Function 0703 D RAMP S1, S2, D, n Cyclic ramp signal 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 ES3