Subtraction Of Clock Data - Mitsubishi Electric MELSEC Q Series Programming Manual

Structured text
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

5 MELSEC FUNCTIONS

5.20.4 Subtraction of clock data

The specified time data is subtracted from the specified time-of-day data.
Function definition
5- 110
DATEMINUS_M
BOOL DATEMINUS_M (BOOL EN, ANY16(3) S1, ANY16(3) S2, ANY16(3) D);
Argument Name
EN
S1
S2
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the time data specified in TimeData2 *)
(* is subtracted from the time-of-day data specified in TimeData1, and the
(* subtraction result is stored into Result.
DATEMINUS_M (X0, TimeData1, TimeData2, Result);
Corresponding MELSEC command
DATE- (Subtraction of clock data)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Time-of-day data from
which data will be
IN
subtracted (ARRAY [0..2]
OF ANY16)
Time data that will be
subtracted from data
IN
(ARRAY [0..2] OF
ANY16)
Subtraction result
time-of-day data
OUT
(ARRAY [0..2] OF
ANY16)
For the usable data type, refer to "3.2.2
About ANY type".
Description
S1 [0] Hour (0 to 23)
S1 [1] Minute (0 to 59)
S1 [2] Second (0 to 59)
S2 [0] Hour (0 to 23)
S2 [1] Minute (0 to 59)
S2 [2] Second (0 to 59)
D [0]
Hour (0 to 23)
D [1]
Minute (0 to 59)
D [2]
Second (0 to 59)
Description
*)
*)
5- 110

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents