to fengying,i am in office so only using english. well.Creating the data area for the "Date/time PLC" area pointer in a data block in the controller (DB1)
In the controller you define a data area consisting of one "DATE_AND_TIME" tag and four tags of the "BYTE" type. For later configuration of the area pointer in the TP177A it is useful to organize this data area in a structure.
Cyclic transfer of the controller's system time to the data area defined
You transfer the controller's system time in a one-second cycle to the "DATE_AND_TIME" tag already defined. You can do this in a cyclic interrupt OB such as OB35 or OB32 using the system function SFC1 "READ_CLK".
Note:
Connection of a DB pointer, for example, to the "CDT" parameter is only symbolically possible.
Installing the "Date/time PLC" area pointer in WinCC flexible
Insert the "Date/time PLC" area pointer and then interconnect it with the structure created in the controller. Via the Acquisition Cycle you define the interval at which the system time in the TP177A is updated with the current system time of the S7 CPU. It is recommended to set an acquisition cycle of at least 10 seconds.