Date & Time in S7 300 & Ifix 3.5

Trerank_101

Member
Join Date
Sep 2005
Location
Cornwall
Posts
6
I am using a S7 300 CPU on an ethernet network. Intellusion Ifix is used as the scada.
The PLC code deals with some batch times and dates.
The SCADA reads the times and dates as number into its data base.
I am trying to convert the numbers to display as times and dates again.

I believe I read somewhere the siemens date starts on 01-01-2001.
I do not know the format of the time.

Can you guide me to any information on this subject.

regards Trerank
 
The Siemens DATE_AND_TIME format comprises 8 Bytes. The Bytes are used as follows:

Byte Contents
0 Year
1 Month
2 Date
3 Hours
4 Minutes
5 Seconds
6 The two most significant digits of the ms count
7 Bits 4 - 7 The least signicant digit of the ms count
7 Bits 0 - 3 Day of the week 1 = Sunday, 2 = Monday, etc.

Valid entrie lie between 01.01.1990-0:00 and 31.12.2089-23:59:59:999 (If I remember correctly)

By the way I'm not sure as I don't have the documentation on this PC, but I believe the values are BCD coded, no doubt somebody else can confirm this.
 

Similar Topics

Hey I have a big problem.. i have to synronice time and date from my Ifix into my siemens S7-300... how do i do that Henrik
Replies
1
Views
3,354
I set the Date and Time of the S7 300 PLC equal to that of my PG. But after a few days I found that the date and time were not what they should...
Replies
0
Views
1,917
Hi Guys. Is it possible to read out the automatic calculated PN update time in a S7-300? In most cases we use the "automatic calculated update...
Replies
0
Views
1,258
Ok then guys after a lot of looking around for an answer on this subject i feel very dizzy and amazed it appears so hard to be able to create a...
Replies
18
Views
14,982
Dear All, i want to know how we Date and Time set and Change from HMI MP277 use Wincc Flexible.PLC is S7 300 CPU 315 2-DP.i use SFC0,SFC1 but...
Replies
4
Views
5,717
Back
Top Bottom