S7-300 SET TIME OF CPU

SIMATIC S7-200/300/400, Step7, PCS7, CFC, SFC, PDM, PLCSIM,
SCL, Graph, SPS-VISU S5/S7, IBHsoftec, LOGO ...
kouim92kostas
Posts: 2
Joined: Fri May 01, 2020 9:55 am

S7-300 SET TIME OF CPU

Post by kouim92kostas »

Hello...

I would like your help for settting the time for S7-300 CPU....

The set time instruction is :
CALL "SET_CLK"
PDT : =
RET_VAL:=

Lets say that I send the time from the HMI to PLC to DB10.DBW64. How i transfer it to SET_CLK? What i have to write to PDT and RET_VAL?
I have already variable of the data type DATE_AND_TIME, in which the time is stored (using the READ_CLK).

I read the manual but stil I can't understand the way it must be done! (If you want I can send screenshots if it helps)

I don't know anything about these instructions so I'm a bit confused!!

And somethimg else. In S7-200 the TODR and TODW are not working parallel... The same goes for the S7-300 too?

Thanks a lot....
Answers to FAQs
Faq & Info
Faq & Info
Posts: 179
Joined: Thu Oct 13, 2005 6:42 pm
Location: Frequently Asked Questions – Часто Задаваемые Вопросы

Re: S7-300 SET TIME OF CPU

Post by Answers to FAQs »

(sfaq) https://support.industry.siemens.com/cs ... t/26961516
How do you do the summer/winter time switchover with WinCC flexible (update to version V1.1)?
Use the "Set PLC Time" button to transfer the specified time to the PLC
Image
kouim92kostas
Posts: 2
Joined: Fri May 01, 2020 9:55 am

Re: S7-300 SET TIME OF CPU

Post by kouim92kostas »

Good morning.... Thanks for your reply...
But I'm not sure this is what i want to do...
The question remains.... How i transfer the time i send... To set_clk... And the parameters of this function what I write to them.?
Answers to FAQs
Faq & Info
Faq & Info
Posts: 179
Joined: Thu Oct 13, 2005 6:42 pm
Location: Frequently Asked Questions – Часто Задаваемые Вопросы

Re: S7-300 SET TIME OF CPU

Post by Answers to FAQs »

I use this FAQ in real PLC S7-300.
Press screen button and set new time of PLC
Image