9 Application Instructions API 150-199 API 157 Operands: S : Pulse output frequency D 1 : Pulse output device (please use transistor output module) D 2 : Output device for the signal of rotation direction Explanations: 1. See remarks for the setting range of S , D 1 and D 2 . 2. Flag: see remarks of API 155 ABSR and API 158 DDRVI for more details. 3. S is the designated pulse output frequency. The 16-bit instruction can designate its range 0 ~ +32,767Hz, 0 ~ -32,768Hz. The ranges designated by 32-bit instruction are 0 ~ +200,000Hz and 0 ~ -200,000Hz. “+/-” signs indicate forward/backward directions.
During the pulse output, the frequency can be changed, but not the frequencies of different directions. 4. D 1 is the pulse output device. EH series MPU can designate Y0 and Y2 and EH2/SV/EH3/SV2 series MPU can designate Y0, Y2, Y4 and Y6. 5. The operation of D 2 corresponds to the “+” or “-“ of S . When S is “+”, D 2 will be On; when S is “-“, D 2 will be Off. 6. PLSV instruction does not have settings for acceleration and deceleration. Please use API 67 RAMP for the 7. During the pulse output executed by PLSV instruction, the drive contact turning Off will result in the immediate acceleration and deceleration of pulse output frequency.
stop of the output without going through a deceleration. 8. When the absolute value of the input frequency during the execution of DPLSV is bigger than 200kHz, the output will operate at 200kHz. 9. For EH/EH2/SV/EH3/SV2 series MPU, D1222, D1223, D1383 and D1384 are the time differences sent between the direction setup signal and pulse output points of CH0, CH1, CH2 and CH3. 10. For EH/EH2/SV/EH3/SV2 series MPU, M1305, M1306, M1532 and M1533 are the flags of the direction signals of CH0, CH1, CH2 and CH3. When S is “+”, the output will operate towards a forward direction and the flag will go Off. When S is “-“, the output will operate towards a backward direction and the flag will go On.
Program Example: When M10 = On, Y0 will output pulses at 20kHz. Y5 = On indicates forward pulses. M10 DVP-PLC Application Manual 9-49 Mnemonic Operands Function D PLSV Adjustable Speed Pulse Output Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F PLSV: 7 steps DPLSV: 13 steps S * * * * * * * * * * * D 1 * D 2 * * * PULSE 16-bit 32-bit ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS SA SX SC EH3 ES EX SS SA SX SC EH3 EH SV EH SV SV2 SV2 PLSV K20000 Y0 Y5