5- 108 5- 108
5 MELSEC FUNCTIONS
5.20.2 Write of clock data DATEWR_MD
The clock data "year, month, day, hour, minute, second, day of week" are written to the clock element of the
QCPU/LCPU.
Function definition
BOOL DATEWR_MD (BOOL EN, ANY16(7) S);
Argument Name
IN/OUT
Description
EN IN
Execution condition (Function is executed only when the
result is TRUE)
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 IN
Clock data to be
written
(ARRAY [0..6]
OF ANY16)
S [6] Day of week (0 to 6)
Return Value
Description
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)
For the usable data type, refer to "3.2.2
About ANY type".
Содержание MELSEC L series
Страница 1: ...Programming Manual Structured Text ...
Страница 2: ......
Страница 73: ...4 33 4 33 4 ST PROGRAM EXPRESSIONS MEMO ...
Страница 297: ......