Posted 11 Sep 2023 Hello everybody peeps, Todays challenge is to get this PWM going on Y0. I know that we can do this 2 ways. I am wanting to do it via Parameters and the HIOEN function. but despite following the PWM guide I cannot get it going on simulation, Y0 is not turning on at all. I have set parameters as per attached, and did the same code is on the guide, but still nothing. the code in the guide goes in error at the moment. Let me know your thoughts. Many thanks. Share this post Link to post Share on other sites
Posted 11 Sep 2023 sorted! well it appears you cannot simulate PWM. not sure why...... if you have an output turning on off (pulses) you can control the on and the total duration of the cycle using PWM, so you can control directly DC motor speed or solenoid valves using this instruction. dont need HIOEN, just the instruction PWM, that's it. but you need hardware as the software will not simulate it. Share this post Link to post Share on other sites