Step 7 Time synchonization

WinCC project > Connections > For Each Connection > Date/time > Link this to the PLC variables you want to hold the current date/time.
PLC > Use SFC0 with the variable which holds the date/time.

Take care not to scan SFC0 cyclicly, for it'll screw up your clock.
Make it run daily or weekly or even hourly if you really want to.
 
Hi again.

I didn't succeed with this.
In win cc connections - area pointers - for each connection, I connected Date/Time to DB10.DBW166.

In the PLC program, i call SFC0 (activated by a pushbutton in the HMI), and connect P#DB10.DBX166.0 to the PDT input. DB10.DBW166 is defined as a DATE_AND_TIME variable (this seem to fit with PDT input in SFC0).

However, the PLC does not seem to change the clock (date and time) when I activate the pushbutton on the HMI. Could i be something with the variable type? I'll attached a file with som pictures of my configuration... Appreciate any help... :p
 

Similar Topics

I am having a step7 v5.4 program where the blocks are encrypted and locked. And the manufacturer is stopped the support. Is there any ways to...
Replies
2
Views
177
Good Morning, Hoping someone with some Siemens experience can give me a hand with this one. Customer has a S7-200 cpu, which has a 6GK7...
Replies
0
Views
248
HI! HOW COULD I OBTAIN THE NAMES OF THE STEPS OF A ROUTINE IN SFC LANGUAGE IN STUDIO5000? Or is there a system variable that gives me those...
Replies
0
Views
339
I'm just trying to figure out the right method of adding a DO card to an existing rack. It's not the *next* open slot, but I have to move the AO...
Replies
5
Views
547
Hi Siemens Experts, I am hoping someone can shed some light on my issue. I have uploaded the code from a S7-300 (317-2PN/DP) using Step 7...
Replies
9
Views
675
Back
Top Bottom