2 Standard Functions
TIME_TO_DINT
This function converts a TIME variable to a DINT variable.
Instruction
TIME_TO_DINT
Variables
Name
In
Data to con-
vert
Out
Conversion
result
If you omit an input or output parameter, a building error will occur.
Boolean
In
Out
Function
This function converts TIME data In to DINT data Out.
Example When Value of In Is 1 day 1 h 1 min 30 s 90 ms (T#1d1h1m30s090ms)
• The value of Out will be DINT#90090090.
Additional Information
To convert DINT data to TIME data, refer to DINT_TO_TIME.
Precautions for Correct Use
• The input condition depends on whether the output is safety data or standard data. If the condition is
not met, a building error will occur.
• If you set a safety data type variable for the output terminal, set a safety data type variable for the
input terminal as well.
• If you set a standard data type variable for the output terminal, you can set either a safety data type
variable or a standard data type variable for the input terminal.
2 - 48
Name
FB/FUN
Convert TIME to
FUN
DINT
I/O
Description
Input
Duration
Output
Integer
Bit strings
NX-series Safety Control Unit Instructions Reference Manual (Z931)
Graphic expression
TIME_TO_DINT
Valid range
T#0ms to
T#0ms
T#49d17h2m47s295ms
DINT#0 to 2147483647
DINT#0
Integers
OK
Default
Durations
OK
OK
OK
Need help?
Do you have a question about the NX-SL series and is the answer not in the manual?
Questions and answers