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

Controller module
Table of Contents

Advertisement

CCPU_Reset
This function resets the bus master CPU (CPU No.1).
Format
short CCPU_Reset (void)
Argument
None
Description
• This function resets the bus master CPU (CPU No.1).
• Use this function only to reset the bus master CPU due to an error or others.
• Do not execute this function while a file in the program memory, SD memory card, and USB Mass Storage Class-compliant
device is being accessed. Doing so may result in data corruption or file system failure.
• Perform the following before executing this function while a file is being accessed.
File access destination
Program memory
SD memory card, USB Mass Storage
Class-compliant device
• This function can be executed only when all the following conditions are satisfied.
If the condition is not satisfied, the error codes indicated in the brackets below will be returned.
Host CPU
Bus master CPU (CPU No.1)
CPUs other than the bus master (CPU
No.1)
Precautions
• When the remote STOP is performed to the bus master CPU (CPU No.1) from other peripheral devices (such as GX
Works3), the bus master CPU (CPU No.1) cannot be reset with the CCPU_Reset function.
For the remote operation and the operating status of a C Controller module, refer to the following:
MELSEC iQ-R C Controller Module User's Manual
• When this function is executed, no value is returned because a C Controller module is restarted from an operating system.
(All programs are forcibly terminated.)
Return value
Return value
0 (0000H)
Other than 0
Relevant functions
• Page 145 CCPU_UnmountMemoryCard
• Page 136 CCPU_ShutdownRom
3 DETAILS OF FUNCTION
126
3.1 C Controller Module Dedicated Functions
Description
Close a user file.
Close a user file, and unmount an SD memory card and a USB Mass Storage Class-compliant device.
Description
"Enable" is set to "Remote Reset" in the bus master CPU (CPU No.1). (Unset: 16523)
The operating status of the bus master CPU (CPU No.1) is in the STOP state. (RUN/PAUSE state: 16400)
The bus master CPU (CPU No.1) is a CPU module: (C Controller module: -222)
"Enable" is set to "Remote Reset" in the bus master CPU (CPU No.1). (Unset: -222)
The operating status of the bus master CPU (CPU No.1) is in the STOP state. (RUN/PAUSE state: -222)
Description
Normal
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST

Advertisement

Table of Contents
loading

Table of Contents