Date and time not working. (Help)

Avatar_41

Member
Join Date
Aug 2019
Location
Istanbul
Posts
96
Hello guys, I want to use the project in the link. (https://support.industry.siemens.com/cs/document/*1***0*6/how-can-you-read-out-the-date-and-time-with-sfc1-(read_clk)-and-set-them -with-sfc0-(set_clk)-?dti=0&lc=en-WW).
The time and date reading part of the project works, so I can see the values, but when I want to change the time, it does not respond. I am sharing my project below, can you help me please? Good work.
 
Last edited:
You need to understand how to use function blocks and their instance data. When you call an FB, the value of the input is copied to the instance DB - so it does not make sense to use the instance data itself as the passed parameter - similarly for the output data.


The reason your date setting does not work is because the edge detection storage bit is declared as an input - it needs to be a STAT.
 

Similar Topics

Hello All, I am facing a wierd problem on S7-400 PLC. I am trying to extract date using following simple logic & using PLCSIM to test it. SFC1...
Replies
6
Views
2,871
So we have a few associates that like to write the date in the file name when saving the program to back it up. We back up the programs every...
Replies
5
Views
23
Hello Everyone, I want to upgrade the firmware of Powerflex 40 from 5.001 to 6.002 can anyone tell me how can I do that?
Replies
0
Views
71
Hello, I'm hoping someone can help me with understanding how to set/change these data types. We recently swapped from Invertek to AB drives...
Replies
1
Views
135
From the Red Lion website, after some customer enquiries in the last week or so... Rev. March 25, 2024 [18:30] Just thought it might help a...
Replies
9
Views
312
Back
Top Bottom