Jump to content

Recommended Posts

Posted

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.

pwm1.png

pwm2.png

Posted

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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...