8/6/2018 4:54 PM | |
Joined: 9/26/2017 Last visit: 7/20/2020 Posts: 7 Rating:
|
Hello, I'm trying to analyze an incoming PWM signal on DQa.3 of a S7-1214C DC/DC/DC. The signal comes from a Teknik clearpath motor and represents the actual speed, or actual torque of the motor. I configured HSC_1 to Period, single phase. And use the first example of this Siemens example. It works well, but it seems that the HSC calculates the time from rising to rising edge. The teknik motor feedbacks on a steady 45Hz. And that's exactly what I see. But what I would like to know is the time the HSC calculates from rising to falling edge, in that way I could determine the speed/torque of the motor. It would be greatly appreciated if someone could give me some pointers :-) Thanks, Rob. |
Last edited by: Jen_Moderator at: 8/7/2018 8:29:15 AMOptimized link. |
|
8/6/2018 6:04 PM | |
Joined: 7/7/2010 Last visit: 3/20/2025 Posts: 15739 Rating:
|
Along with what #dP already suggested, if I understand correctly, you have a single pulse every 22.2222msec with the pulse width varying as motor speed / torque vary. You want to determine how wide each pulse is within that 22.222msec pulse train. Do you know the min and max pulse widths? Obviously they _can_ be 0 and 100%, but that is difficult to tell isn't an error or system failure. But it would make sense they limit the range to say 10 and 90% where 10% is 0% speed and 90% pulse width = 100% speed.
|
science guy |
|
This contribution was helpful to
1 thankful Users |
Follow us on