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 #614 background imageLoading...
Page #614 background image
2 Instruction Descriptions
2-566
NJ-series Instructions Reference Manual (W502)
DT_TO_TOD
The DT_TO_TOD instruction extracts the time of day from a date and time.
The DT_TO_TOD instruction extracts the time of day from date and time In.
The following example is for when In is DT#1970-1-7-23:59:59.999999999.
Instruction Name FB/FUN Graphic expression ST expression
DT_TO_TOD Extract Time of Day
from Date and Time
FUN Out:=DT_TO_TOD(In);
Variables
Name Meaning I/O Description Valid range Unit Default
In Date and
time
Input Date and time Depends on data type. Year, month,
day, hour,
minutes, sec-
onds
DT#1970-
1-1-0:0:0
Out Time of day Output Time of day Depends on data type. Hour, min-
utes, seconds
---
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 OK
Out OK
Function
(@)DT_TO_TOD
EN ENO
In Out
abc:=DT_TO_TOD(DT#1970-1-7-23:59:59.999999999);
LD
ST
abc
DT#1970-1-7-23:59:59.999999999
DT_TO_TOD
EN ENO
In
DT#1970-1-7-23:59:59.999999999
TOD#23:59:59.999999999
In
Out=abc

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