Mitsubishi Electric MELSEC iQ-R Series Manual page 44

Intelligent function module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

CITL_GetTime
This function acquires the clock data (local time) of a C intelligent function module.
■ Format
short CITL_GetTime(short* psGetData, unsigned long ulBufSize)
■ Argument
Argument
psGetData
ulBufSize
■ Description
• This function acquires the clock data (local time) of a C intelligent function module, and stores it in the clock data storage
destination (psGetData).
• It also acquires the information for the size specified to the clock data storage destination size (ulBufSize).
• The information to be stored in the clock data storage destination (psGetData) is as follows.
(Available range: January 1, 1980 to December 31, 2079)
Storage position
psGetData[0]
psGetData[1]
psGetData[2]
psGetData[3]
psGetData[4]
psGetData[5]
psGetData[6]
■ Return value
Return value
0 (0000H)
Other than 0 (0000H)
3 DETAILS OF FUNCTION
42
3.1 C Intelligent Function Module Dedicated Functions
Name
Clock data storage destination
Clock data storage destination size
Description
Year data (1980 to 2079)
Month data (1 to 12)
Day data (1 to 31)
Hour data (0 to 23)
Minute data (0 to 59)
Second data (0 to 59)
Day data (0 to 6)
(0: Sunday, 1: Monday, 2: Tuesday, 3: Wednesday, 4: Thursday, 5: Friday, 6: Saturday)
Description
Normal
Error
For details on the error, refer to the following chapter.
Page 108 ERROR CODE LIST
Description
Specify the storage destination of the clock data.
Specify the clock data storage destination size in word units.
(When '0' is specified, this function ends normally without processing.)
IN/OUT
OUT
IN

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r c

Table of Contents