Int_To_Time - Omron NX-SL series Instruction & Reference Manual

Nx series machine automation controller safety control unit
Hide thumbs Also See for NX-SL series:
Table of Contents

Advertisement

INT_TO_TIME

This function converts an INT variable to a TIME variable.
Instruction
INT_TO_TIME
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 INT data In to TIME data Out.
Example When Value of In Is INT#10500
• The value of Out is 10 s 500 ms (T#10s500ms).
Additional Information
To convert TIME data to INT data, refer to TIME_TO_INT.
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.
• If the input value is not INT#0 to INT#32767, a cast error will occur and the program will stop.
NX-series Safety Control Unit Instructions Reference Manual (Z931)
Name
FB/FUN
Convert INT to
FUN
TIME
I/O
Description
Input
Data to con-
vert
Output
Duration
Bit strings
2 Standard Functions
Graphic expression
INT_TO_TIME
Valid range
INT#0 to 32767
INT#0
T#0ms to T#32s767ms
T#0ms
Integers
OK
OK
2
Default
Durations
OK
OK
2 - 43

Advertisement

Table of Contents
loading

Table of Contents