Write 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.2 Write of clock data

The clock data "year, month, day, hour, minute, second, day of week" are written to the clock element of the
QCPU/LCPU.
Function definition
5- 108
DATEWR_MD
BOOL DATEWR_MD (BOOL EN, ANY16(7) S);
Argument Name
EN
S
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the clock data stored in TimeData are *)
(* written to the clock element of the QCPU/LCPU.
DATEWR_MD (X0, TimeData);
Corresponding MELSEC command
DATEWR (Write of clock data)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Clock data to be
written
IN
(ARRAY [0..6]
OF ANY16)
For the usable data type, refer to "3.2.2
About ANY type".
Description
S [0]
Year (1980 to 2079)
S [1]
Month (1 to 12)
S [2]
Day (1 to 31)
S [3]
Hour (0 to 23)
S [4]
Minute (0 to 59)
S [5]
Second (0 to 59)
S [6]
Day of week (0 to 6)
Description
*)
5- 108

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents