Dttodatestruct - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions

DtToDateStruct

The DtToDateStruct instruction converts a date and time to the year, month, day, hour, minutes, sec-
onds, and nanoseconds.
Instruction
DtToDateStruct
Break Down Date
and Time
Variables
Name
Meaning
In
Date and
time
Out
Return
value
DateStruct
Date and
time
Bit strings
In
Out
OK
DateStruct
Function
The DtToDateStruct instruction converts the date and time in In to the year, month, day, hour, minutes,
seconds, and nanoseconds. The data in the broken down date and time in Out is the structure _sDT.
The meanings of the members are as follows:
Name
Meaning
Out
Date and time
2-646
Name
FB/FUN
FUN
I/O
Description
Input
Date and time
Always TRUE
Output
Date and time as a year,
month, day, hour, minutes,
seconds, and nanoseconds
Refer to Function for details on the structure _sDT.
Content
Date and time as a year,
month, day, hour, minutes,
seconds, and nanosec-
onds
Graphic expression
(@)DtToDateStruct
EN
ENO
In
DateStruct
Valid range
Depends on data type.
TRUE only
---
Integers
Data type
Valid range
_sDT
---
NY-series Instructions Reference Manual (W560)
ST expression
Out:=DtToDateStruct(In,
DateStruct);
Out
Unit
Default
Year, month,
DT#197
day, hour,
0-1-1-
minutes, sec-
0:0:0
onds
---
---
Times, durations, dates,
and text strings
OK
Unit
Default
---
---

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents