Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 73

Vxworks
Hide thumbs Also See for MELIPC MI5000 Series:
Table of Contents

Advertisement

CCPU_StartWDT
Sets the user WDT of the VxWorks part and starts the user WDT.
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.
• Sets an interval of the WDT of the VxWorks part to the WDT interval (sInterval) ×10 ms and starts the user WDT.
• If the user WDT is not reset periodically (by execution of the CCPU_ResetWDT function) within the time set for the WDT
interval (sInterval), a user WDT error will occur. When a user WDT error occurs, the MELIPC enters a stop error state. (The
MAIN ERR LED flashes.)
• When this function is executed while the user WDT is running, an error is returned.
Return value
Return value
0(0000H)
-211(FF2DH)
-220(FF24H)
-28158(9202H)
-28630(902AH)
For details on error codes, refer to the following section.
Page 116 Function error codes
Relevant function
Page 35 CCPU_EntryWDTInt
Page 60 CCPU_ResetWDT
Page 72 CCPU_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 from 10 to 1,000 (100 to 10,000 ms).) )
Description
Normal
Time setting error
WDT type error
WDT error
WDT startup error
3 DETAILS OF FUNCTIONS
3.1 C Controller Module Dedicated Functions
3
IN/OUT
IN
IN
71

Advertisement

Table of Contents
loading

Table of Contents