S7400 programming question

Cundalini

Member
Join Date
Oct 2005
Location
Frankston Soth
Posts
6
Hi folks,
I wonder if anyone can help me with a programming problem.
I am using an S7400 and what I'd like to do is use the day of the week (Sunday) to perform a particular reset. Is such a thing possible and how would I go about it?
Specifically, each Sunday I want to store a portion of a data block in another memory area using SFC20 (Block move).
Thanks all
Cundalini
 
Cundalini,

What you want to do is very much possible.

You can use SFC1 to read the real time clock and extract the day of the week from that or you can use the local data from OB1 (OB1_DATE_TIME).

The date_time format is 8 bytes long. The day of the week is store in the 4 LSB of the 8th byte.

If you search this forum for the key words SFC1 or DATE_TIME you should get plenty of hits that explain how to read the informtion you require.

Paul
 

Similar Topics

Hi guys, I'm having problems converting WinAC (WinLC RTF F application) to S7 300 project based on CPU 319F-3PN or S7 400/416F-3PN. The problem is...
Replies
0
Views
615
Hello All I hope you are well and safe. I have a problem that I could use your appreciated input for: SW: SIMATIC MANAGER v5.5 SP3 HW1...
Replies
2
Views
1,223
Hello, does anyone know the best connection method between an S71500R/H profinet MRP ring (2 x S7 1500R controllers in redundant profinet ring)...
Replies
12
Views
2,860
Hi all, I have PCS7 project where I need to link Zebra scanners. The Zebra scanners are equiped with serial->ethernet converters also from the...
Replies
7
Views
3,139
Hi All, Long time gap between visits again, but this is the only place to come for PLC advice. So I am here. I have come up against a problem...
Replies
11
Views
3,872
Back
Top Bottom