发布于 2010-01-06 16:40:30
1楼
其实你这个问题,在西门子帮助里面写的非常清楚,还有例程供参考。
1.Date_and_time的形式需要8个byte的长度,
定义规范如下:DT#1990-1-1-0:0:0.0 to DT#2089-12-31-23:59:59.999
2.读取出来的8个byte各有各的意义,可以按要求分别处理:
Byte0:Year;
Byte1:Month;
Byte2:Day;
Byte3:Hour;
Byte4:Minute;
Byte5:Second;
Byte6:Two most significant digits of MSEC;
Byte7:(4MSB)Two least significant digits of MSEC;
(4LSB)Day of week。
You are beautiful It's true