DVP- ES2/ EX2/ SS2/ SA2/ SX2/ SE&TP O pe r a t i on Ma nua l - Pr ogr am m i ng3- 136API Mnemonic Operands Function ControllersES2/EX2 SS2 SA2SESX256 SPD Speed DetectionTypeOPBit Devices Word devices Program StepsX Y M S K H KnX KnY KnM KnS T C D E F SPD: 7 stepsS1 *S2 * * * * * * * * * * *D * * *PULSE 16-bit 32-bitES2/EX2 SS2 SA2SE SX2 ES2/EX2 SS2 SA2SE SX2 ES2/EX2 SS2 SA2SE SX2Operands:S1: External pulse input S2: Pulse receiving time (ms) D: Detected result (5 consecutivedevices)Explanations:1. The instruction counts the number of pulses received at input terminal S1 during the time S2 (ms)and stores the result in the register D.2. ES2/EX2 before V0.92. External pulse input terminals designated in S1 :Availableinput points X0, X2 X1 (X0/X1) X6, X7Input mode1-phase input(Supports singlefrequency )AB-phase input(Supports quadruple frequency)1-phase input(Supports singlefrequency)Max frequency 100KHz 5KHz 10KHz3. ES2/EX2 V1.00 or later. External pulse input terminals designated in S1 :Availableinput points X0, X2 X1 (X0/X1), X3 (X2/X3)X5 (X4/X5), X7 (X6/X7) X4, X6Input mode1-phase input(Supports singlefrequency )AB-phase input(Supports quadruple frequency)1-phase input(Supports singlefrequency)Max frequency 100KHz 5KHz 10KHz4. SS2/SA2/SX2/SE. External pulse input terminals designated in S1 :Availableinput points X0, X2 X1 (X0/X1), X3 (X2/X3)X5 (X4/X5), X7 (X6/X7) X4, X6Input mode1-phase input(Supports singlefrequency )AB-phase input(Supports quadruple frequency)1-phase input(Supports singlefrequency)Max frequencySA2/SE/SX2:100kHzSS2: 20kHz5KHz.X1(X0/X1) of SA2/SE: 30kHz 10KHz5. D occupies 5 consecutive registers, D + 1 and D store the results of previous pulse detection; D+3 and D + 2 store the current accumulated number of pulses; D + 4 store the current timeremaining (max. 32,767ms).