3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
81
3
CCPU_GetPowerStatus
This function acquires the power status of C Controller module.
■
Format
short CCPU_GetPowerStatus(long* plStatusBuf, unsigned long ulBufSize)
■
Argument
■
Description
• This function acquires the power status of C Controller module and stores it in the power status storage destination
(plStatusBuf).
• It also acquires the information for the size specified to the power status storage destination size (ulBufSize).
• The information to be stored in the power status storage destination (plStatusBuf) is as follows.
■
Return value
■
Relevant function
Argument
Name
Description
IN/OUT
plStatusBuf
Power status storage destination
Specify the storage destination of the power status.
OUT
ulBufSize
Power status storage destination
size
Specify the power status storage destination size in double word units.
(When '0' is specified, this function ends normally without processing.)
IN
plStatusBuf
Description
Storage position
Status
plStatusBuf[0]
bit31 to 16
Reserved
bit15 to 0
Number of detected momentary power failures
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Summary of Contents for MELSEC iQ-R C
Page 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Page 2: ......
Page 201: ...I 199 MEMO ...
Page 203: ...I 201 MEMO ...
Page 207: ......