Ask our Experts
Didn't find what you are looking for? Ask our experts!
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.
Search in
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-08-20 04:20 AM
I need to set up time controlled operations in a new program using the M172 PLC. We use Ewon Netbiter to give our clients an online system where they can set the date and time for when these operations are carried out; I need to compare their input values to the system clock of the PLC, and run the operation between the start and end times.
I have used the M221 previously to do this, and it was pretty straight forward to do, but for the M172 I cant find a way to compare the values for the month, date, day, hour, and minute of the clock. I mapped it out in FB but I think I may need to use ST instead. When using the M221 I had to refence each value individually, but if I could compare a full date and time format, I think that would be a lot easier.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-09-11 10:58 PM
Hi,
I prepared a simple block for your request. You can download by link . Block is open you can change according to the your request.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-08-21 01:50 AM
Hi,
Date and Time of TM172P is inside a structured target variable sysClock
So the way to access to every field is sysclock.seconds, sysclock.minutes, ect..
But take in account also to use the FB YearlyEvent (inside library application in the regul and control folder) to decide when an event occurs
There is also FB WeekSchedule for event with week cycle.
Best regards
Marco Cervati
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-09-10 09:11 AM
Thanks Marco,
is there any way to get FB YearlyEvent to work with minutes? that will work perfectly for us if we can program times between the full hour.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-09-10 09:29 AM
Thanks. That looks quite complex, but I will see if I can figure it out.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-09-11 10:58 PM
Hi,
I prepared a simple block for your request. You can download by link . Block is open you can change according to the your request.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2025-09-19 02:24 AM
Thanks. I have it working now, but i will take a look at this as it looks a bit cleaner than what i ended up doing.
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
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.