Mul_Time(_E) - Mitsubishi Electric MELSEC FX Series Structured Programming Manual

Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
(Application Functions)
5.9.3

MUL_TIME(_E)

Outline
This function performs multiplication of time data.
1. Format
Function name
MUL_TIME
MUL_TIME_E
*1.
Output variable
2. Set data
Variable
EN
Input
_IN1 (
variable
_IN2 (
ENO
Output
variable
*1
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function performs multiplication(
, and outputs the operation result expressed as time data to devices specified in
s2
Cautions
1) Use the function having "_E" in its name to connect a bus.
2) When handling 32-bit data in structured programs, you cannot specify 16-bit devices directly, different
from simple projects. Use labels when handling 32-bit data.
You can specify 32-bit counters directly, however, because they are 32-bit devices.
Use global labels when specifying labels.
3) Even if underflow or overflow occurs in the operation result, it is not regarded as an operation error.
However, note that the accurate operation result cannot be obtained in this case.
("MUL_TIME_E" outputs "TRUE" from ENO.)
202
FX
3U(C)
Expression in each language
Structured ladder
MUL_TIME
Label 1
_IN1
Label 2
_IN2
MUL_TIME_E
X000
EN
Label 1
_IN1
Label 2
_IN2
Execution condition
Head word device which stores time data to get multiplication
)
s1
Multiplication data, or head word device which stores such data
)
s2
Execution status
Head word device which will store the operation result
(
)
d
s1
FX
3G
FX
2N(C)
FX
MUL_TIME(_IN1,_IN2);
Example:
*1
Label 3
Label 3:=
MUL_TIME(Label 1,Label 2);
MUL_TIME_E(EN,_IN1,_IN2,
Output label);
Example:
ENO
MUL_TIME_E(X000,Label 1,
*1
Label 3
Label 2,Label 3);
Description
×
) using time data stored in devices specified in
s2
5.9 Functions Of Time Data Types
1N(C)
FX
1S
FX
U
/FX
2C
ST
Bit
Time
ANY_NUM
Bit
Time
.
d
FX
0N
FX
0(S)
Data type
and
s1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx-kp-ok-e09r927

Table of Contents