Mitsubishi Electric MELSEC iQ-R Series Manual page 45

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

Advertisement

CITL_GetUnitStatus
This function acquires the operating status of a C intelligent function module.
■ Format
short CITL_GetUnitStatus(long* plStatusBuf, unsigned long ulBufSize)
■ Argument
Argument
Name
plStatusBuf
Operating status storage destination
ulBufSize
Operating status storage destination
size
■ Description
• This function acquires the operating status of a C intelligent function module, and stores it in the operating status storage
destination (plStatusBuf).
• It also acquires the information for the size specified to the operating status storage destination size (ulBufSize).
• The information to be stored in the operating status storage destination (plStatusBuf) is as follows.
(If information to be stored is not supported, '0' is set as its status.)
Storage position
plStatusBuf[0]
bit31 to 8
bit7 to 4
bit3 to 0
plStatusBuf[1]
bit31 to 16
bit15 to 9
bit8, 7
bit6, 5
bit4, 3
bit2
bit1
bit0
plStatusBuf[2]
bit31 to 0
■ Return value
Return value
Description
0 (0000H)
Normal
Other than 0 (0000H)
Error
For details on the error, refer to the following chapter.
Page 108 ERROR CODE LIST
■ Relevant function
Page 36 CITL_GetErrInfo
Description
Specify the storage destination of the operating status.
Specify the size of area reserved in the operating status storage destination
in double word units.
(When '0' is specified, this function ends normally without processing.)
Description
Reserved
Reserved
Time synchronization operating status
Reserved
SD memory card status
Reserved
Standard ROM shutdown status
Index value for number of the standard ROM write cycle
Status
• 0: Automatic synchronization
• 1: Stop
• 0: Inserted (mounted)
• 1: Inserted (unmounted)
• 2: Not inserted
• 0: Shutdown not performed
• 1: Shutdown completed
3 DETAILS OF FUNCTION
3.1 C Intelligent Function Module Dedicated Functions
IN/OUT
3
OUT
IN
43

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r c

Table of Contents