9 Application Instructions API 150-199 API 198 Operands: S 1 : Target frequency of output S 2 : Target number of pulses S 3 : Gap time and gap frequency D : Pulse output device (EH2/SV2 supports Y0, Y2, Y4, and Y6.) (SX supports Y0.) Explanations: 1. The instruciton only supports EH2 V2.0, SX V3.0. and above. It also supports EH3 and SV2. 2. Max frequency for S 1 : 200kHz. (The maximum frequency that SX V3.0 and above support is 32767Hz.) Target frequency can be modified during the execution of instruction. When S 1 is modified, VSPO will ramp up/down to the target frequency according to the ramp-up gap time and gap frequency set in S 3. 3.
S 2 target number of pulses is valid only when the instruction is executed first time. S 2 can NOT be modified during the execution of instruction. S 2 can be a negative value. When target number of pulses are specified with 4. In an EH3/SV2 series PLC, S 3 occupies 2 consecutive 16-bit devices. S 3 +0 stores the gap frequency S 3 +1 0, PLC will perform continuous output. stores the gap time. Parameter setting can be modified during the execution of instruction. Set range for S 3 +0: 1Hz ~ 32767Hz; set range for S 3 +0: 1ms ~ 32767ms. If a setting value exceeds the available range, the PLC will take the maximum or the minimum value. 5.
In an SX series PLC, the gap frequency in S 3 +0 is in the range of 6Hz to 32767Hz, and the gap time in S 3 +1 is in the range of 1ms to 80ms. If a setting value exceeds the available range, the PLC will take the maximum or the minimum value. 6. D pulse output device supports Y0, Y2, Y4 and Y6. Y1, Y3, Y5 and Y7 are corresponding output direction. The positive direction is On. 7. Parameters set in S 3 can only be modified while modifying the value in S 1. When target frequency is set as 0, PLC will ramp down to stop according to parameters set in S 3 . When the output is stopped, PLC will enable the flags indicating pause status (CH0: M1538; CH1: M1539; CH2: M1540; CH3: M1541).
If target frequency other than 0 is specified again, pulse output will ramp up to target frequency and operates untill target number of pulses are completed. DVP-PLC Application Manual 9-140 Mnemonic Operands Function D VSPO Variable 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 DVSPO: 17 steps S 1 * S 2 * * * S 3 * * * D * PULSE 16-bit 32-bit SA SX SC EH SV EH3 SV2 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS SA SC EH3 ES EX SS SX EH SV SV2