Справочник Пользователя для Mitsubishi Electronics Mitsubishi Digital Electronics Welding System FXCPU

Скачать
Страница из 236
5.9 Functions Of Time Data Types
200
FXCPU Structured Programming Manual
(Application Functions)
5.9.2
SUB_TIME(_E)
Outline
This function performs subtraction of time data.
1. Format
*1.
Output variable
2. Set data
In explanation of functions, I/O variables inside ( ) are described.
Explanation of function and operation
This function performs subtraction (
-
) of time data stored in devices specified in 
 and 
, and
outputs the operation result expressed as time data to devices specified in 
.
FX
3U(C)
FX
3G
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(S)
Function name
Expression in each language
Structured ladder
ST
SUB_TIME
SUB_TIME(_IN1,_IN2);
Example:
Label 3:=
SUB_TIME(Label 1,Label 2);
SUB_TIME_E
SUB_TIME_E(EN,_IN1,_IN2,
Output label);
Example:
SUB_TIME_E(X000,Label 1,
Label 2,Label 3);
Variable
Description
Data type
Input
variable
EN
Execution condition
Bit
_IN1 (
)
Head word device which stores time data to get subtraction
Time
_IN2 (
)
Head word device which stores subtraction data
Time
Output
variable
ENO
Execution status
Bit
*1
(
)
Head word device which will store the operation result
Time
SUB_TIME
*1
Label 3
Label 1
_IN1
Label 2
_IN2
SUB_TIME_E
EN
ENO
*1
Label 3
X000
Label 1
_IN1
Label 2
_IN2
s1
s2
d
s1
s2
s1
s2
d