Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

zero cross detection

HVAC and Pumping Forum

Support Forum for HVAC and pumping machines, Modicon M17x and EcoStruxure Machine Expert HVAC software for chillers, AHU, CRAC units for datacenters or process chillers applications - from design, implementation to troubleshooting and more, by Schneider Electric.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • Industrial Automation
  • HVAC and Pumping Forum
  • zero cross detection
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
FedericoM
Commander FedericoM Commander
74
Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
50
LeTomas
Lt. Commander LeTomas Lt. Commander
14
View All
Related Products
product field
Schneider Electric
EcoStruxure™ Machine Expert - HVAC

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to HVAC and Pumping Forum
Solved
otrotabi
Commander otrotabi
Commander

Posted: ‎2023-01-30 06:05 AM

0 Likes
4
1701
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-01-30 06:05 AM

zero cross detection

I would like to use an M171/M172 to fire a SSR to implement phase angle speed control for a small fan. We have been using something similar for a long time and most of the external rotor fans available on the market can be driven this way to control fan speed. The SSR part of the circuit is something like this:

 

ssr.jpg

The controller we use has a microcontroller to do this job and I would like to replace it´s functionality with the PLC.

 

This article here explains how to do it and claims that it is possible. Rather than using the mains I could generate an input signal to the PLC based on a 220 to 24 V transformer which we normally use to power the PLC.

 

Has anyone tried something like this ? Any comments on what to look for in the setup will be appreciated.

 

Labels
  • Labels:
  • HVAC
  • Tags:
  • ecostruxure
  • english
  • hvac
  • TM171
  • TM172
Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
DVarnerMinn
Ensign DVarnerMinn
Ensign

Posted: ‎2023-03-03 07:50 AM

0 Likes
1
1638
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-03-03 07:50 AM

I work with many different PLCs so it may help with a few screen shots on how I would go about this.

 

In the Project window under tasks right click Timed and select select Task Configuration.

 

The Default Timed scan time is 100ms.

 

Screenshot 2023-03-03 085819.png

Change Set Period from No to Yes and enter a time period. Let's say 0.1ms for now.

Screenshot 2023-03-03 090010.png

Click OK and you see that the minimum task time is 20ms.

Screenshot 2023-03-03 090018.png

This means you might need to use the Low Priority Background task which means you might not hit zero crossing every time if we can get inputs and outputs to be fast enough.

 

 

It looks like the M172 PLCs have 2 Fast Digital Inputs DI1 and DI2.

Screenshot 2023-03-03 091148.png

 

I am assuming that you would use an M172 model with 2 SSR outputs. Will these work for you? I don't see more details listed in the specs after a quick look.

 

So, if you can get something to give you the zero crossing pulse, the inputs should be able to handle it.

 

I background task MIGHT be fast enough BUT since it is low priority there may be several things that can delay it. 

 

Timers have a resolution of 1ms. This means you would need another way to time your delays assuming everything else is fast enough.

 

 

My opinion right now is that you would need to find someone with more inner knowledge of the M172 than I have to determine if it is possible.

 

The M172 was most likely designed for applications that did not require such speeds.

 

There are other models of PLCs that might be better suited for this application but at a higher cost.

 

See Answer In Context

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

Replies 4
DVarnerMinn
Ensign DVarnerMinn
Ensign

Posted: ‎2023-03-02 12:51 PM

0 Likes
1
1659
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-03-02 12:51 PM

How much of a delay time can you afford from zero crossing, to detecting it in the PLC, to acting upon it?

 

Micro Processors are typically much faster to react to inputs depending on how it is programmed.

 

PLC's you may have delays due to filtering the input, PLC scan time, and updating the outputs.

 

You would need to detect the zero crossing and then use a Fast Trigger event in the PLC.

 

Does this help at all?

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

otrotabi
Commander otrotabi
Commander

Posted: ‎2023-03-03 03:55 AM

In response to DVarnerMinn
0 Likes
0
1646
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-03-03 03:55 AM

Thanks for your feedback. 

 

For our frequency (50 hz), a complete half cycle is 10 msec. From my experiences with microprocessors, if I fire the triac gate once the curve starts going down (lets´s say when RMS voltage is 50% or less) the motor may start to stall (depending on the fan we are using). I try to avoid RMS voltages less than 120V usually (as read on a standard digital meter, I have not tried reading the actual voltage or current curve with a scope).

 

So my complete window would be 5 msec from detecting the zero cross to firing the triac gate in a usefull way), prefererably less than that.

 

What do you think ? Would it be possible ? What is a fast trigger event ?

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

DVarnerMinn
Ensign DVarnerMinn
Ensign

Posted: ‎2023-03-03 07:50 AM

0 Likes
1
1639
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-03-03 07:50 AM

I work with many different PLCs so it may help with a few screen shots on how I would go about this.

 

In the Project window under tasks right click Timed and select select Task Configuration.

 

The Default Timed scan time is 100ms.

 

Screenshot 2023-03-03 085819.png

Change Set Period from No to Yes and enter a time period. Let's say 0.1ms for now.

Screenshot 2023-03-03 090010.png

Click OK and you see that the minimum task time is 20ms.

Screenshot 2023-03-03 090018.png

This means you might need to use the Low Priority Background task which means you might not hit zero crossing every time if we can get inputs and outputs to be fast enough.

 

 

It looks like the M172 PLCs have 2 Fast Digital Inputs DI1 and DI2.

Screenshot 2023-03-03 091148.png

 

I am assuming that you would use an M172 model with 2 SSR outputs. Will these work for you? I don't see more details listed in the specs after a quick look.

 

So, if you can get something to give you the zero crossing pulse, the inputs should be able to handle it.

 

I background task MIGHT be fast enough BUT since it is low priority there may be several things that can delay it. 

 

Timers have a resolution of 1ms. This means you would need another way to time your delays assuming everything else is fast enough.

 

 

My opinion right now is that you would need to find someone with more inner knowledge of the M172 than I have to determine if it is possible.

 

The M172 was most likely designed for applications that did not require such speeds.

 

There are other models of PLCs that might be better suited for this application but at a higher cost.

 

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

otrotabi
Commander otrotabi
Commander

Posted: ‎2023-03-03 08:22 AM

In response to DVarnerMinn
0 Likes
0
1635
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2023-03-03 08:22 AM

Thank you for your very detailed information. Yes, it looks like timing issues will be hard to overcome with this PLC. A higher cost PLC is not something we are considering. I figure we can modify our original microprocessor PCB to let the PLC handle the sensor reading and PID strategy and let the microprocessor handle zero cross and convert an analog output from the PLC to a delay to fire the triac.

 

Once again, I appreciate your very in-depth analysis. Regards.

Reply
Contact Support

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of