Dt_To_Tod - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions

DT_TO_TOD

The DT_TO_TOD instruction extracts the time of day from a date and time.
Instruction
DT_TO_TOD
Extract Time of Day
from Date and Time
Variables
Name
Meaning
In
Date and
time
Out
Time of day Output
Bit strings
In
Out
Function
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.
LD
DT#1970-1-7-23:59:59.999999999
In
DT#1970-1-7-23:59:59.999999999
Out=abc
TOD#23:59:59.999999999
2-616
Name
FB/FUN
FUN
I/O
Description
Input
Date and time
Time of day
DT_TO_TOD
EN
In
Graphic expression
(@)DT_TO_TOD
EN
ENO
In
Valid range
Depends on data type.
Depends on data type.
Integers
ST
abc:=DT_TO_TOD(DT#1970-1-7-23:59:59.999999999);
ENO
abc
NY-series Instructions Reference Manual (W560)
ST expression
Out:=DT_TO_TOD(In);
Out
Unit
Default
Year, month,
DT#1970-
day, hour,
1-1-0:0:0
minutes, sec-
onds
Hour, min-
---
utes, seconds
Times, durations, dates,
and text strings
OK
OK

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents