92
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
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.
• 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.
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 manual.
MELSEC iQ-R C Controller Module User's Manual (Application)
• 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
■
Relevant functions
• Page 110 CCPU_UnmountMemoryCard
• Page 102 CCPU_ShutdownRom
File access destination
Description
Program memory
Close a user file.
SD memory card, USB Mass Storage
Class-compliant device
Close a user file, and unmount an SD memory card and a USB Mass Storage Class-compliant device.
Host CPU
Description
Bus master CPU (CPU No.1)
"Enable" is set to "Remote Reset" in the bus master CPU (CPU No.1). (Unset: 16523H)
The operating status of the bus master CPU (CPU No.1) is in the STOP state. (RUN/PAUSE state: -222H)
CPUs other than the bus master (CPU
No.1)
The bus master CPU (CPU No.1) is a CPU module: (C Controller module: -222H)
"Enable" is set to "Remote Reset" in the bus master CPU (CPU No.1). (Unset: -222H)
The operating status of the bus master CPU (CPU No.1) is in the STOP state. (RUN/PAUSE state: -222H)
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Содержание MELSEC iQ-R C
Страница 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Страница 2: ......
Страница 201: ...I 199 MEMO ...
Страница 203: ...I 201 MEMO ...
Страница 207: ......