Mitsubishi Electric MELSEC iQ-R C Programming Manual page 83

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
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 chapter.
Page 174 ERROR CODE LIST
■Relevant function
• Page 75 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
IN/OUT
3
OUT
IN
81

Advertisement

Table of Contents
loading

Table of Contents