7 Application Instructions API 50-99 API Mnemonic PWM 58 Operands: S 1 : Pulse output width S 2 : Pulse output period D : Pulse output device (please use transistor output module) Explanations: 1. S 1 ≤ S 2 . 2. See the specifications of each model for their range of use. 3. In ES/EX/SS series MPU, PWM instruction can only be used once in the program. 4. Flags: See remarks for more details. 5. Range of S 1 : (t) 0 ~ 32,767ms. 6. Range of S 2 : (T) 1 ~ 32,767ms (but S 1 ≤ S 2 ). 7. D for all series MPU: 8. When PWM instruction is used in the program, its outputs cannot be the same as those of API 57 PLSY and API 59 PLSR. 9.
PWM instruction designates the pulse output width in S 1 and pulse output period in S 2 and outputs from output device D . 10. For SA/SX/SC series MPU, When, S 1 ≤ 0 or S 2 ≤ 0 or S 1 > S 2 , there will be operational errors (M1067 and M1068 will not be On), and there will be no output from the pulse output device. When S 1 = S 2 , the pulse output device will keep being On. 11. For EH/EH2/SV/EH3/SV2 series MPU, When, S 1 S 2 ≤ 0 or S 1 > S 2 , there will be operational errors (M1067 and M1068 will be On), and there will be no output from the pulse output device. When S 1 = 0, M1067 and M1068 will not be On and there will be no output from the pulse output device.
When S 1 = S 2 , the the pulse output device will keep being On. 12. S 1 and S 2 can be changed when PWM instruction is being executed. 13. For SA/EH series MPU, there is no limitation on the times using this instruction in the program. However, for EH series MPU, two instructions are allowed to be executed at the same time; for EH2/SV/EH3/SV2 series MPU, four instructions are allowed to be executed at the same time. DVP-PLC APPLICATION MANUAL 7-35 Operands Function Pulse Width Modulation Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F PWM:
7 steps S 1 * * * * * * * * * * * S 2 * * * * * * * * * * * D * PULSE 16-bit 32-bit SA SX SC EH SV EH3 SV2 EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS ES EX SS SA SX SC EH SV SV2 MPU ES/EX/SS/SA/SX/SC EH EH2/SV/EH3/SV2 Output point Y1 Y0, Y2 Y0, Y2, Y4, Y6