EasyManua.ls Logo

Omron NJ501-1500

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
Loading...
2 Instruction Descriptions
2-586
NJ-series Instructions Reference Manual (W502)
SecToTime
The SecToTime instruction converts seconds to a time.
The SecToTime instruction converts the number of seconds in In to a time.
The following example is for when In is LINT#90061.
[
Use the TimeToSec instruction (page 2-584) to convert a time to seconds.
Instruction Name FB/FUN Graphic expression ST expression
SecToTime Convert Seconds to
Time
FUN Out:=SecToTime(In);
Variables
Name Meaning I/O Description Valid range Unit Default
In Seconds Input Seconds 9223372036 to
9223372036
Seconds 0
Out Time Output Time Depends on data type. ns ---
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
Additional Information
(@)SecToTime
EN ENO
In Out
abc:=SecToTime(LINT#90061);
LINT#90061
LD ST
abc
SecToTime
EN ENO
In
Out=abc
In
Time
LINT#90061
s
T#1d1h1m1s

Table of Contents

Related product manuals