2 Instruction Descriptions
2-560
NJ-series Instructions Reference Manual (W502)
MULTIME
The MULTIME instruction multiplies a time by a specified number.
* If you omit the input parameter, the default value is not applied. A building error will occur.
The MULTIME instruction multiplies a time In1 by multiplier In2. The result of multiplication in Out is also
a time.
The following example is for when In1 is T#1d2h3m30s and In2 is INT#2.
Instruction Name FB/FUN Graphic expression ST expression
MULTIME Multiply Time FUN Out:=MULTIME(In1, In2);
Variables
Name Meaning I/O Description Valid range Unit Default
In1 Original
time
Input
Original time
Depends on data type.
ns T#0s
In2 Multiplier Multiplier
--- *
Out Resulting
time
Output Resulting 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
In1 OK
In2 OKOKOKOKOKOKOKOKOKOK
Out OK
Function
(@)MULTIME
EN ENO
In1 Out
In2
abc:=MULTIME(T#1d2h3m30s, INT#2);
LD
ST
abc
T#1d2h3m30s
INT#2
MULTIME
EN ENO
In1
In2
In1
In2
Out=abc
T#1d2h3m30s
INT#2
T#2d4h7m
×