Sectodt - Omron NY532-5400 Reference Manual

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

Advertisement

2 Instruction Descriptions

SecToDt

The SecToDt instruction converts the number of seconds from 00:00:00 on January 1, 1970 to a date
and time.
Instruction
SecToDt
Convert Seconds to
Date and Time
Variables
Name
Meaning
In
Seconds
Out
Date and
time
Bit strings
In
Out
Function
The SecToDt instruction converts the number of seconds from 00:00:00 on January 1, 1970 in In to a
date and time.
The following example is for when In is LINT#86400.
LD
LINT#86400
In
+
Out=abc
2-626
Name
FB/FUN
FUN
I/O
Description
Input
Number of seconds from
00:00:00 on January 1, 1970
Output
Date and time
SecToDt
EN
ENO
abc
In
DT#1970-1-1-0:0:0.000000000
LINT#86400
DT#1970-1-2-0:0:0.000000000
Graphic expression
(@)SecToDt
EN
ENO
In
Valid range
0 to 18446744073
Depends on data type.
Integers
OK
ST
abc:=SecToDt(LINT#86400);
s
[
NY-series Instructions Reference Manual (W560)
ST expression
Out:=SecToDt(In);
Out
Unit
Seconds
0
Year, month,
---
day, hour,
minutes, sec-
onds
Times, durations, dates,
and text strings
OK
Default

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents