Mitsubishi — Chapter 7 Application Instructions API 50-88

7 Application Instructions API 50-99 API 56 Operands: S 1 : External pulse input terminal S 2 : Pulse receiving time (ms) D : Detected result Explanations: 1. See the specifications of each model for their range of use. 2. Flag: M1100 (SPD instruction performs sampling for one time) 3. External pulse input terminals designated in S 1 for all series MPU : 4. For SA/SX (V1.4 and above) series MPU and SC (V1.2 and above) series MPU, the new X0 and X1 can be used together with A-B phase input points. When “A ahead of B” detection result is a positive value and “B ahead of A” detection result is a negative value, the multiplied frequency of the counter can be set by D1022. 5.

Input points on EH series are single-phase input. EH2/SV series support A-B phase input, and X0 has to be designated in the instruction as the speed detection point and X1 occupied. When B is ahead of A, the detection result will be positive value. If A is ahead of B, the detection result will be negative value. EH3/SV2 V1.86 (and above) can only detect the speed of one input (X0/X1, X1 ~ X3). EH3/SV2 V1.88 (and above) can detect the speeds of four inputs at most. If the X0, X4, X10, or X14 is selected, the speed of an A/B-pahse input will be detected.

If the input terminal slected is in the range of X1 ~ X3, X5 ~ X7, X11 ~ X13, or X15 ~ X17, the speed of a single-pahse input will be detected. 6. The received number of pulses of the input terminal designated in S 1 is calculated within the time (in ms) designated in S 2 . The result is stored in the register designated in D . 7. D will occupy 5 consecutive devices. D + 1 and D are the detected value obtained from the previous pulses; D +3 and D + 2 are the current accumulated number of values; D + 4 is the counting time remaining (max. 32,767ms).

DVP-PLC APPLICATION MANUAL 7-25 Mnemonic Operands Function SPD Speed Detection Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F SPD: 7 steps S 1 * S 2 * * * * * * * * * * * D * * * PULSE 16-bit 32-bit S SA SX SC EH SV EH3 SV2 EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX S ES EX SS SA SX SC EH SV SV2 MPU ES/EX/SS SA/SX/SC EH/EH2/SV EH3/SV2 Input (V5.7and above) Available input points X1, X2 X0 / X1, X1, X2 X0, X1, X2, X3 X0 / X1, X10 / X11, X4 / X5, X14 / X15, X1 ~ X3, X11 ~ X13, X5 ~ X7, X15 ~ X17