Mitsubishi Electric MELIPC MI5000 Series Programming Manual page 59

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

Advertisement

CCPU_RegistEventLog
Registers event logs in the event history of a MELIPC.
Format
short CCPU_RegistEventLog(long lEventCode, char* pcEventMsg)
Argument
Argument
Name
lEventCode
Detailed code
pcEventMsg
Detailed information
Description
• Registers event logs in the event history of a MELIPC.
• The registration information is as follows.
Item
Occurrence Date
Event Type
Status
Event Code
Overview
Source function
Detailed event code information
Detailed event log information
Cause
• The event history can be stored for the size of the event history file specified with MI Configurator.
Note that data is deleted starting from older data if the specified file size is exceeded.
• An error occurs if the character string data specified for the detailed information (pcEventMsg) is 201 bytes or bigger.
Return value
Return value
0(0000H)
-237(FF13H)
-238(FF12H)
For details on error codes, refer to the following section.
Page 116 Function error codes
Description
Specify a detailed event code to be registered in the event history.
Specify detailed information character string data of an event to be
registered in the event history.
(The detailed information character string data of an event can be specified
up to 200 bytes by Shift JIS. When 'NULL' is specified, the detailed
information is not registered. )
Description
Normal
Source/event information character string specification error
Event log registration error
Description
Event registered date and time
Operation (fixed)
Information (fixed)
25000 (fixed)
Registration from the user program (fixed)
Basic function (fixed)
Detailed code (hexadecimal) specified to the detailed code (lEventCode)
Detailed information specified to the detailed information (pcEventMsg)
An event history was registered with the C Controller module dedicated
function. (Fixed)
3.1 C Controller Module Dedicated Functions
IN/OUT
IN
IN
3 DETAILS OF FUNCTIONS
3
57

Advertisement

Table of Contents
loading

Table of Contents