Delta Electronics — 6.26.2 Explanation of High-speed Output Instructions

Chapter 6 Applied Instructions Symbol S 1 : Pulse output width S 2 : Pulse output cycle D : Pulse output device Explanation 6_ 1. This instruction specifies the pulse output width. The 16-bit instruction uses 100 us as the output unit, while the 32-bit instruction uses 1 us as the output unit. 2. S 1 (pulse output width--Duty ON) is defined as t, S 2 ( pulse output cycle time--Cycle time) is T as shown below. It is recommended that S 1 ≦ S 2 . 3. D only allows Y0.0–Y0.11 as the pulse output device.

6-791 API Instruction Operand Description 2702 D PWM S1,S2,D Pulse width modulation Device X Y M S T C HC D FR SM SR E K 16# “$” F S1           S2           D  BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1      S2      D  Pulse Instruction 16-bit instruction 32-bit instruction - AS AS Output instruction PWM DPWM Range of pulse output width S1 0–30000 0–60000 Range of pulse output cycle S2 0–30000 0–60000 t T