Mitsubishi Electric MELSEC iQ-R C Programming Manual page 106

Melsec iq-r series programmable controller
Hide thumbs Also See for MELSEC iQ-R C:
Table of Contents

Advertisement

CCPU_StartWDT
This function sets and starts the user WDT of a C Controller module.
■Format
short CCPU_StartWDT(short sType, short sInterval)
■Argument
Argument
Name
sType
WDT type
sInterval
WDT interval
■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
Return value
0 (0000H)
Other than 0
■Relevant functions
• Page 94 CCPU_ResetWDT
• Page 105 CCPU_StopWDT
• Page 66 CCPU_EntryWDTInt
3 DETAILS OF FUNCTION
104
3.1 C Controller Module Dedicated Functions
Description
Specify the WDT type.
(If reserve is specified, an error is returned.)
• 0: User WDT
• Others: Reserved
Specify the interval of WDT by 10 milliseconds.
(Available range is between 10 to 1000 (100 to 10000 [ms]).)
Description
Normal
Error
For details on the error, refer to the following chapter.
Page 174 ERROR CODE LIST
IN/OUT
IN
IN

Advertisement

Table of Contents
loading

Table of Contents