EasyManuals Logo

Omron NJ501-1500 User Manual

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #647 background imageLoading...
Page #647 background image
2-599
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
Time and Time of Day Instructions
2
DateStructToDt
DateStructToDt
The DateStructToDt instruction joins a year, month, day, hour, minutes, seconds, and nanoseconds into
a date and time.
The DateStructToDt instruction joins the year, month, day, hour, minutes, seconds, and nanoseconds in
In into a date and time. The data type of In is structure _sDT. The meanings of the members are as fol-
lows:
Instruction Name FB/FUN Graphic expression ST expression
DateStructToDt Join Time FUN Out:=DateStructToDt(In);
Variables
Name Meaning I/O Description Valid range Unit Default
In Date and
time
Input Date and time as a year,
month, day, hour, minutes,
seconds, and nanoseconds
--- --- ---
Out Date and
time
Output Date and time Depends on data type. Year, month,
day, hour,
minutes, sec-
onds
---
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
In Refer to Function for details on the structure _sDT.
Out OK
Function
Name Meaning Content Data type Valid range Unit Default
In Date and time Date and time as a year,
month, day, hour, minutes,
seconds, and nanoseconds
_sDT --- --- ---
Year Year Year UINT 1970 to 2554 Year 1970
Month Month Month USINT 1 to 12 Month 1
Day Day Day USINT 1 to 31 Day
Hour Hour Hour USINT 0 to 23 Hour
0
Min Minutes Minutes USINT 0 to 59 Minutes
Sec Seconds Seconds USINT 0 to 59 Seconds
Nsec Nanoseconds Nanoseconds ULINT 0 to 999999999 Nanoseconds
(@)DateStructToDt
EN ENO
In Out

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals