Delta Electronics DVP15MC11T Operation Manual page 228

Table of Contents

Advertisement

Bit string to Time and Date
The Bit-string data can be converted to the Time or Date data. And some instructions are
shown below.
The rule for the conversion of Bit-string data into Time or Date data is the same as that for the
conversion of the Bit-string data into unsigned integer data.
The Bit-string data are converted into the Time and Date data as the following table shows.
Data type
In
BYTE
WORD
DWORD
LWORD
B YTE_TO_TIME
EN
ENO
In
Out
LWO RD_TO_ TOD
EN
ENO
In
Out
The value of In corresponds to the value of Out
Out
TIME
16#00~16#FF
DATE
16#00~16#FF
TOD
16#00~16#FF
DT
16#00~16#FF
TIME
16#0000~16#FFFF
DATE
16#0000~16#FFFF
TOD
16#0000~16#FFFF
DT
16#0000~16#FFFF
TIME
16#0000_0000~16#FFFF_FFFF
DATE
16#0000_0000~16#FFFF_FFFF D#1970-1-1~D#2016-2-7
16#0000_0000~16#0526_5BFF
16#0526_5C00~16#0A4C_B7FF
TOD
.......
16#FC57_9C00~16#FFFF_FFFF TOD#0:0:0~ TOD#17:2:47.295
DT
16#0000_0000~16#FFFF_FFFF
16#0000_0000_0000_0000~
TIME
16# FFFF_FFFF_FFFF_FFFF
16#****_****_0000_0000~
DATE
16#****_****_FFFF_FFFF
16#****_****_0000_0000~
16#****_****_0A4C_B7FF
16#****_****_0526_5C00~
16#****_****_0A4C_B7FF
TOD
......
16#****_****_0000_0000~
16#****_****_FFFF_FFFF
16#****_****_0000_0000~
DT
16#****_****_FFFF_FFFF
Chapter 8 Logic Instructions
B YTE_TO_DATE
EN
ENO
In
Out
LWO RD_TO_DT
EN
ENO
In
Out
In
T#0ns~T#255ns
D#1970-1-1
TOD#0:0:0~ TOD#0:0:0.255
DT#1970-1-1-0:0:0~
DT#1970-1-1-0:4:15
T#0ns~T#65us535ns
D#1970-1-1
TOD#0:0:0~ TOD#0:1:5.535
DT#1970-1-1-0:0:0~
DT#1970-1-1-18:12:15
T#0ns~
T#4s294ms967us295ns
TOD#0:0:0~
TOD#23:59:59.999
DT#1970-1-1-0:0:0~
DT#2016-2-7-6:28:15
T#213503d23h34m33s709ms5
51us615ns
D#1970-1-1~D#2016-2-7
TOD#0:0:0~
TOD#23:59:59.999
TOD#0:0:0~ TOD#17:2:47.295
DT#1970-1-1-0:0:0~
DT#2016-2-7-6:28:15
Out
8_
8-157

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents