plc.myforum.ro Forum Index plc.myforum.ro
PLCs users www.plc.myforum.ro!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Switching between summer time and winter time HMI Comfort

 
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> ROSIEMENS SIMATIC HMI
View previous topic :: View next topic  
Author Message
maersk
Member 3
Member 3
maersk

Joined: 17 Aug 2014
Posts: 891

PostPosted: 22/04/2016 21:25    Post subject: Switching between summer time and winter time HMI Comfort Reply with quote

How do you implement automatic switching between summer time and winter time with SIMATIC HMI Comfort Panels and TIA Portal?

A plant-wide uniform time base is necessary to ensure that messages and alarms are displayed with the correct time stamp and sent by e-mail as required. Problems with the time base consistency might occur when switching between summer time and winter time.

The SIMATIC HMI Comfort Panels have a system function for switching between the time zones ("SetDaylightSavingTime"), but it has to be triggered. There are several ways of doing this, for example, by configuring the panel as a time slave of an S7-1200/1500 PLC. The triggering of the switchover is then done automatically at the correct time.

Configuration
Establish a connection between the Comfort Panel and the PLC. In the table area of the Connection view, for "HMI time synchronization mode" you select the value "Slave" from the drop-down list box.
Switching between summer time and winter time HMI Comfort Switching between summer time and winter time HMI Comfort

In the PLC you configure reading of the local time using the system block "RD_LOC_T". Bit %X1 of the return value of the block contains a flag that is set when summer time is currently valid. If Bit %x15 of the return value is set, the local time could not be read out.
Switching between summer time and winter time HMI Comfort Switching between summer time and winter time HMI Comfort

Map this flag to an HMI tag for which you have set the Acquisition mode to "Cyclic continuous".
Switching between summer time and winter time HMI Comfort Switching between summer time and winter time HMI Comfort


For the HMI tag you link the "Value change" event to the system function "SetDaylightSavingTime". Assign the HMI tag itself as "Daylight saving time" parameter for the system function "SetDaylightSavingTime".
Switching between summer time and winter time HMI Comfort Switching between summer time and winter time HMI Comfort

Note that the "Change value" event is not recognized correctly if it occurs when the panel is powered down. To ensure correct display even in this case you have two other options for calling the system function "SetDaylightSavingTime":

Link it to a change in value of the PLC time or
Create a task in the scheduler with a trigger of "1 minute" in which you call the system function.

The system function "SetDaylightSavingTime" can also be called via a corresponding script.
https://support.industry.siemens.com/cs/attachments/109482675/TimeSyn_Project_V13_SP1.zip
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    plc.myforum.ro Forum Index -> ROSIEMENS SIMATIC HMI All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro