Mitsubishi Electric MELSEC iQ-R Series Manual page 55

Intelligent function module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

CITL_StartWDT
This function sets and starts the user WDT of a C intelligent function module.
■ Format
short CITL_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 sInterval10 ms and starts the user WDT.
• When the WDT is not reset periodically within the set time (by execution of the CITL_ResetWDT function), the user WDT
error will occur. When the user WDT error occurs, the C intelligent function module will be in the moderate error status. (The
RUN LED turns ON, and the ERR LED starts flashing.)
• When CITL_StartWDT function is executed while the WDT is running, an error will be returned.
■ Return value
Return value
Description
0 (0000H)
Normal
Other than 0 (0000H)
Error
For details on the error, refer to the following chapter.
Page 108 ERROR CODE LIST
■ Relevant function
Page 29 CITL_EntryWDTInt
Page 46 CITL_ResetWDT
Page 55 CITL_StopWDT
Description
Specify the WDT type.
(When 'Reserved' is specified, an error is returned.)
• 0: User WDT
• Others: Reserved
Specify the interval of WDT in 10 ms units.
(Available range is between 10 to 1000 (100 to 10000 [ms])).
3.1 C Intelligent Function Module Dedicated Functions
IN/OUT
IN
IN
3 DETAILS OF FUNCTION
3
53

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r c

Table of Contents