Delta Electronics — 6.11.2 Explanation of Timer and Counter Instructions

Chapter 6 Applied Instructions Symbol S 1 : Number of the input point S 2 : Unit of measurement D 1 : Pulse width detection time (32-bit value) D 2 : Update flag 6_ Explanation 1. S 1 supports the following 8 inputs, X0.0/X0.1/X0.2/X0.3/X0.4/X0.6/X0.8/X0.10, but S 1 cannot share the same inputs with the high speed counter. 2. S 2 is the unit of measurement. The instruction is not executed if the setting value of S 2 is not a valid S 2 code from the following table.

6-287 API Instruction code Operand Function 1009 PWD S , S , D 1 2 Detecting pulse width Device X Y M S T C HC D FR SM SR E K 16# “$” F S 1  S 2     D 1  D 2    BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S 1  S 2   D 1   D 2  Pulse instruction 16-bit instruction 32-bit instruction - AS - S code 2 Measurement Unit Detection range Frequency range Remark 0 1us Duty-on 1Hz - 10kHz 1 1ms 0.02Hz - 100Hz 2 10ns 10Hz - 1MHz Not supported by X0.1 and X0.3. 4 1us Cycle time 1Hz - 10kHz 5 1ms 0.02Hz - 100Hz Other values The instruction is not executed.