Clock Data Format Conversion (Hour, Minute, Second Second); Clock Data Format Conversion (Second Hour, Minute, Second) - 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.5 Clock data format conversion (hour, minute, second
The specified time data is converted into second.
Function definition
5.20.6 Clock data format conversion (second
The specified data in second is converted into hour, minute, second.
Function definition
5- 111
BOOL SECOND_M (BOOL EN, ANY16(3) S, ANY32 D);
Argument Name
EN
S
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the time data specified in TimeData
(* is converted into second, and the result is stored into Result.
SECOND_M (X0, TimeData, Result);
Corresponding MELSEC command
SECOND (Clock data format conversion)
BOOL HOUR_M (BOOL EN, ANY32 S1, ANY16(3) D);
Argument Name
EN
S1
D
Return Value
BOOL
Execution condition
Example of use
(* When execution condition X0 turns ON, the data in second specified in dData *)
(* is converted into hour, day, second, and the result is stored into Result.
HOUR_M (X0, dData, TimeData);
Corresponding MELSEC command
HOUR (Clock data format conversion)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
Clock data to be
IN
converted (ARRAY
[0..2] OF ANY16)
OUT
Conversion result clock data (second) (BIN 32-bit data)
hour, minute, second)
IN/OUT
Execution condition (Function is executed only when the
IN
result is TRUE)
IN
Clock data to be converted (second) (BIN 32-bit data)
Conversion result
OUT
clock data (ARRAY
[0..2] OF ANY16)
For the usable data type, refer to "3.2.2
About ANY type".
second)
SECOND_M
Description
S [0]
Hour (0 to 23)
S [1]
Minute (0 to 59)
S [2]
Second (0 to 59)
Description
HOUR_M
Description
D [0]
Hour (0 to 23)
D [1]
Minute (0 to 59)
D [2]
Second (0 to 59)
Description
*)
*)
*)
5- 111

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents