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 12 inputs, X0~X13, 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-293 API Instruction code Operand Function 1009 PWD S1, S2, D Detecting pulse width Device X Y M S T C HC D FR SM SR E K 16# “$” F S1 S2 D1 D2 BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1 S2 D1 D2 Pulse instruction 16-bit instruction 32-bit instruction - ES3 - S2 code Measurement Unit Detection range Frequency range Remark 0 1us Duty-on 1Hz - 10kHz 1 1ms 0.02Hz - 100Hz 2 10ns 10Hz - 1MHz Odd-numbered inputs are NOT supported. 4 1us Cycle time 1Hz - 10kHz 5 1ms 0.02Hz - 100Hz Other values The instruction is not executed.