7/14/2020 12:21 PM | |
Joined: 7/14/2020 Last visit: 11/14/2024 Posts: 4 Rating:
|
by using 1215C, I have a proportional valve work with 500Hz and according to signal duty cycle it control spool position. so i need to set frequency of PWM at 500 Hz Fixed frequency and control its Duty cycle. is it available to set frequency of PWM to 500Hz with controllable duty cycle?? if not, any other CPU can support this function?? |
Last edited by: MAdel924 at: 07/14/2020 12:23:36Last edited by: MAdel924 at: 07/14/2020 12:50:05 |
|
7/14/2020 2:54 PM | |
Joined: 7/7/2010 Last visit: 3/10/2025 Posts: 15721 Rating:
|
What you describe in words is pretty much the definition of Pulse Width Modulation. Establish the pulse frequency, and then vary the width (duty cycle) of those pulses. So yes, the s7-1200 can do that - provided you do not have a RLY output PLC.
|
science guy |
|
This contribution was helpful to
1 thankful Users |
7/14/2020 3:41 PM | |
Joined: 7/14/2020 Last visit: 11/14/2024 Posts: 4 Rating:
|
Thank U, to be more clear for me: - I must use 1215C DC/DC/DC - I can control duty cycle with a certain frequency (ex: 500 or 400Hz or ..... less than 100KHz) - to get variable frequencies; duty cycle will be 50% (fixed).
|
7/14/2020 4:31 PM | |
Joined: 3/30/2020 Last visit: 3/13/2025 Posts: 5050 Rating:
|
Do you want to control duty cycle or frequency? The hardware configuration is used to configure either PWM or PTO. Control in code is achieved by the instructions CTRL_PWM (Pulse width modulation) or CTRL_PTO (Pulse train output). See the instruction help in the software for details. Attached is a screenshot of a possible PWM configuration and some user manual pages of how to use the CTRL_PWM instruction. Getting hold of the System Manual is a very good idea. Attachmentpwm-hints.zip (234 Downloads) |
Last edited by: qwazee at: 07/14/2020 16:32:41Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
This contribution was helpful to
1 thankful Users |
7/15/2020 8:15 AM | |
Joined: 7/14/2020 Last visit: 11/14/2024 Posts: 4 Rating:
|
i just need to control duty cycle at fixed frequency 500 Hz?? |
7/15/2020 8:36 AM | |
Joined: 3/30/2020 Last visit: 3/13/2025 Posts: 5050 Rating:
|
Good. Then you have what you need from the material I have given you. |
Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
Follow us on