DVP-ES3 Series Programming Manual Example When the program is executed, the values in D0 and D2 are 1000 and 2000 respectively. When M0 is ON, the device Y0 outputs the pulses illustrated below. When M0 is OFF, Y0 is OFF. t=1000ms M0 _6 T=2000ms Additional remarks 1. The instruction counts by the scan cycle. Therefore, the maximum error is one scan cycle. Besides, S 1 , S 2 , and ( S 2 - S 1 ) should be larger than the scan cycle; otherwise, an error occurs when the GPWM instruction is executed. 2. If you use the instruction in a function block or an interrupt task, an inaccurate pulse output occurs. 3. If you declare the operand S 2 in ISPSoft, the data type is ARRAY [3] of WORD/INT. 6-618