Siemens S7/TIA v18: When the PLC's unplugged, will it retain wall clock time...?

Mas01

Member
Join Date
Oct 2020
Location
Leicester, England
Posts
1,109
The PLC in question is a S7-1212C.

The PLC will be transportable on a wheeled trolley and used wherever it's needed in the factory.

I've been told that when it's not being used, it will be unplugged and kept in a store room until needed. Typically 3-4 months.

QUESTION: Will the PLC retain wall-clock time after that period of time?

Maybe I should just allow the operator to set the time when it's next powered up.

Thanks
 
I wouldn't have thought so. There are batteries available to maintain the clock, but I don't if it would last for months.

You can set the time via HMI relatively easily, although setting the date is quite a frustrating process.

Could always set the time via NTP and just tell them to plug it into a network on start up.
 
Just checked the manual, the battery board (BB 1297) should last for a year. It specifies a CR1025 battery though, which aren't rechargeable.
 
I don't know what the default values the clock will revert to, but I would check if the year has reverted to the default value (i.e. 1995 or whatever) and in that case prompt the operator to set the clock via the HMI.
 
I don't know what the default values the clock will revert to, but I would check if the year has reverted to the default value (i.e. 1995 or whatever) and in that case prompt the operator to set the clock via the HMI.

I like it - that's not a bad idea.

Default year is 1990 - so that could be used to prompt the operator.
 
There is two different situations you need to take account, time accuracy and backup time, both are sayed on manual.



Time of day clock
The CPU supports a time-of-day clock. A super-capacitor supplies the energy required to keep the
clock running during times when the CPU is powered down. The super-capacitor charges while
the CPU has power. After the CPU has been powered up at least 24 hours, then the super-
capacitor has sufficient charge to keep the clock running for typically 20 days.


20 days typ./12 days min. at 40 °C (maintenance-free Super Capacitor)





Real time clock accuracy
+/- 60 seconds/month. ;)




Even whit external battery or powered on clock can have several minuts difference after couple months.
 
Last edited:
That's when it's powered 24/7?
If so, that's really poor.


I would say "eh it's the 1200" but, honestly, the 1500 is similar.


I was going to say the built in cap that keeps the clock going lasts more than a day but less than a month, and that tracks with the 480hr (20 days) in the spec.


I did a couple projects where the time really mattered (had to calculate the position of the sun for solar trackers) and we used GPS clocks to sync to out in the middle of where ever. I doubt that complexity is worth it for a an infrequently used skid.


The battery SB seems like the best idea if you aren't already using the SB slot, but make sure you change them proactively. Otherwise, the fallback of "make the operator type it in when you roll it out" isn't the worst, but I'm not sure what you need the time for anyway. Most of the time I want good time for the alarms, and only care on general principles otherwise. Is there an HMI that can keep the time for you, and then you don't need to care about the PLC as much?
 
Last edited:
Is there an HMI that can keep the time for you, and then you don't need to care about the PLC as much?
Siemens HMIs can be the master of the PLC clock.
But the HMI clock is just as 'accurate' as the PLC clock.


The bit triggered alarms on the HMI uses the HMI clock.
The diagnostics buffer in the PLC uses the PLC clock.
If the clocks must match, then it could make sense to sync them.
 

Similar Topics

Context: PLC= S7-1212C, HMI=KTP1200 Basic. Hi again, When the "REPORT" button is pressed (on a different screen), it takes the operator to the...
Replies
7
Views
667
Context: PLC= S7-1212C, HMI=KTP1200 Basic. Hi, The operator has reported that, from time-to-time, when he presses the "Generate Report" button...
Replies
5
Views
465
General Question: The PLC and HMI that I've been working on (a laser measurement system) is soon to be transported to the site where it will be...
Replies
2
Views
701
Hi, I'm not sure how to do this... Basically, I want to restrict the user input values for this tag to be in the range 20.001 to 25.0. I...
Replies
17
Views
1,636
Can someone help me with this? I'm no good at SCL - virtually everything I've done so far has been ladder logic. The return value from the...
Replies
13
Views
1,109
Back
Top Bottom