Dt_To_Date - Omron NJ501-1500 Reference Manual

Machine automation controller nj-series
Hide thumbs Also See for NJ501-1500:
Table of Contents

Advertisement

2 Instruction Descriptions

DT_TO_DATE

The DT_TO_DATE instruction extracts the date from a date and time.
Instruction
DT_TO_DATE
Extract Date from
Date and Time
Variables
Name
Meaning
In
Date and
time
Out
Date
Bit strings
In
Out
Function
The DT_TO_DATE instruction extracts the date from date and time In.
The following example is for when In is DT#1970-1-7-23:59:59.999999999.
LD
DT#1970-1-7-23:59:59.999999999
In
DT#1970-1-7-23:59:59.999999999
Out=abc
D#1970-1-7
2-568
Name
FB/FUN
FUN
I/O
Description
Input
Date and time
Output
Date
DT_TO_DATE
EN
In
Graphic expression
(@)DT_TO_DATE
EN
ENO
In
Valid range
Depends on data type.
Depends on data type.
Integers
ST
abc:=DT_TO_DATE(DT#1970-1-7-23:59:59.999999999);
ENO
abc
NJ-series Instructions Reference Manual (W502)
ST expression
Out:=DT_TO_DATE(In);
Out
Unit
Default
Year, month,
DT#197
day, hour,
0-1-1-
minutes, sec-
0:0:0
onds
Year, month,
---
day
Times, durations,
dates, and text strings
OK
OK

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Nj501-1300Nj501-1400

Table of Contents