Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 113

Controller module
Table of Contents

Advertisement

CCPU_GetPowerStatus
This function acquires the power status of C Controller module.
Format
short CCPU_GetPowerStatus(long* plStatusBuf, unsigned long ulBufSize)
Argument
Argument
Name
plStatusBuf
Power status storage destination
ulBufSize
Power status storage destination
size
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.
plStatusBuf
Description
Storage position
plStatusBuf[0]
bit31 to 16
bit15 to 0
Return value
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
Relevant function
• Page 105 CCPU_GetErrInfo
Description
Specify the storage destination of the power status.
Specify the power status storage destination size in double word units.
(When '0' is specified, this function ends normally without processing.)
Reserved
Number of detected momentary power failures
Status
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
3
IN/OUT
OUT
IN
111

Advertisement

Table of Contents
loading

Table of Contents