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

Controller module
Table of Contents

Advertisement

CCPU_MountMemoryCard
This function mounts the SD memory card inserted to a C Controller module.
Format
short CCPU_MountMemoryCard (short sDrive)
Argument
Argument
Name
sDrive
Target drive
Description
• This function mounts the drive specified to the target drive (sDrive).
• The CARD RDY LED keeps flashing during the mount processing, and it turns ON once the mount processing is
completed.
• This function can be executed when the status of an SD memory card is "Inserted (unmounted)".
(The status can be checked with the CCPU_GetCpuStatus function.)
• When an SD memory card has already been mounted, this function ends normally without processing.
Use this function to access an SD memory card again without removing it after unmounting the SD memory
card with the CCPU_UnmountMemoryCard function while the power is ON.
This function does not need to be executed since an SD memory card is automatically mounted when it is
replaced.
Precautions
The USB Mass Storage Class-compliant device cannot be mounted using this function.
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 functions
• Page 145 CCPU_UnmountMemoryCard
• Page 101 CCPU_GetCpuStatus
Description
Specify a target drive.
(When 'Reserved' is specified, this function ends normally without processing.)
• 1: SD memory card
• Others: Reserved
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
3
IN/OUT
IN
119

Advertisement

Table of Contents
loading

Table of Contents