104
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
CCPU_StartWDT
This function sets and starts the user WDT of a C Controller module.
■
Format
short CCPU_StartWDT(short sType, short sInterval)
■
Argument
■
Description
• The user WDT is the timer for detecting a hardware failure or program error.
• This function sets an interval of the WDT to the WDT interval (sInterval)
10 ms and starts the user WDT.
• If the user WDT is not reset periodically within the set time (by execution of the CCPU_ResetWDT function), a user WDT
error will occur. When a user WDT error occurs, a C Controller module will be in the stop error state. (The BUS RUN LED
turns OFF, and the ERROR LED starts flashing.)
• When this function is executed while the WDT is running, an error will be returned.
■
Return value
■
Relevant functions
• Page 94 CCPU_ResetWDT
• Page 105 CCPU_StopWDT
• Page 66 CCPU_EntryWDTInt
Argument
Name
Description
IN/OUT
sType
WDT type
Specify the WDT type.
(If reserve is specified, an error is returned.)
• 0: User WDT
• Others: Reserved
IN
sInterval
WDT interval
Specify the interval of WDT by 10 milliseconds.
(Available range is between 10 to 1000 (100 to 10000 [ms]).)
IN
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Summary of Contents for MELSEC iQ-R C
Page 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Page 2: ......
Page 201: ...I 199 MEMO ...
Page 203: ...I 201 MEMO ...
Page 207: ......