Pulse width modulation PWM example

angela133155

Member
Join Date
Dec 2013
Location
Singapore
Posts
6
Hi, I am trying to write a ladder logic using PWM and INI instructions to actuate a fast switching solenoid valve at a range of frequencies. I have tried looking around for examples but just can't find any except for the very basic example from the manual.
Wonder if anyone has any examples to show the application or would care to draw one simple ladder logic using PWM and INI?
Just more information: I am using CP1E PLC from Omron.
Thanks!
 
with plc impossible to make PWM unless you have special output.

How do you come by that statement shooter ?

You most certainly can, with the correct programming, make an output turn on and off with a variable pulse width, and fixed cycle time : a.k.a. "Pulse Width Modulation"
 
You can make a PWM output in ladder, but the performance will be limited. Special output cards allow PWM frequencies starting at about 5kHz and going on up. You will never get that by turning on and off outputs in ladder. So the answer depends on what you need.
 
..... to actuate a fast switching solenoid valve at a range of frequencies.....

I doubt you'll be able to go above 15 to 20 Hz - obviously depending on the vale used.

What frequency do you want to go up to ?

And since you'll be operating a mechanical device, I don't think your PWM output needs to be super accurate.
 
I will be seeking help from Omron, so perhaps I can get some questions answered.
My solenoid valve has a max switching frequency of 500hz so I guess it should be able to give me the range of frequencies that I need (yup Daba, it doesnt need to be super accurate). I will ask about the amplifier card too.

Will update here when I get the issue resolved :)
 
I found a solution to achieve on off actuation via the use of two timers. Actually this is similar to flip flop if I am not wrong. Basically, I have one timer (TMHH(540)) acting as OFF timer and another timer acting as ON timer, which will be run when the OFF timer runs out. I can adjust the on off frequency through the Set Value of the timers.
 

Similar Topics

Hey guys, I have a client that has a v-notch chlorinator that doesn't run off a 4-20mA loop, it instead has two discrete inputs that drive the...
Replies
6
Views
1,871
Help me. I want to create a PLC program Pulse width modulation (PWM) with Simatic PLC s7300. using SFB49. but I have never made it. is there who...
Replies
0
Views
2,574
how can I change an analog output just with the program not using a digital input? also I need to ramp up and ramp down the analog output please...
Replies
5
Views
4,182
Hi, is anyone familiar with the pulse width modulation output on the SIMATIC s7-300 series? I've set up the count module in HW Config, and want to...
Replies
3
Views
5,725
Hi, I have Siemens PlC and I am trying to write program in SCL or other language. This program shut regulate temperature using pulse width...
Replies
4
Views
10,314
Back
Top Bottom