Addition 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.3 Addition of clock data

The specified time data is added to the specified time-of-day data.
Function definition
5- 109
DATEPLUS_M
BOOL DATEPLUS_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 added to the time-of-day data specified in TimeData1, and the addition
(* result is stored into Result.
DATEPLUS_M (X0, TimeData1, TimeData2, Result);
Corresponding MELSEC command
DATE+ (Addition of clock data)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Time-of-day data to
IN
which data will be added
(ARRAY [0..2] OF ANY16) S1 [2] Second (0 to 59)
Time data that will be
IN
added to data (ARRAY
[0..2] OF ANY16)
Addition result time-of-
OUT
day data (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)
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- 109

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents