FRANK RUIZ Posted September 11, 2023 Report Posted September 11, 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. Quote
FRANK RUIZ Posted September 11, 2023 Author Report Posted September 11, 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.