Mitsubishi Electric MELSEC iQ-R C Programming Manual page 93

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

Advertisement

CCPU_RegistEventLog
This function registers an event log in the event history of a C Controller module.
■Format
short CCPU_RegistEventLog (long lEventCode, char* pcEventMsg)
■Argument
Argument
Name
lEventCode
Detailed code
pcEventMsg
Detailed information
■Description
This function registers an event log in the event history of a C Controller module.
The contents to be registered on the event history screen of CW Configurator are as follows:
Item
Occurrence Date
Event Type
Status
Event Code
Overview
Source
Start I/O No.
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 CW Configurator.
Note that data is deleted in order from older data if the specified file size is exceeded.
• An error occurs if the character string data specified to the detailed information (pcEventMsg) is 201 bytes or bigger.
■Return value
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Page 174 ERROR CODE LIST
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. When 'NULL' is specified, the detailed information is not registered.)
Description
Event registered date and time
Operation (fixed)
Information (fixed)
25000 (fixed)
Registration from the user program (fixed)
R12CCPU-V (fixed)
Input/output number of the C Controller module that executed the CCPU_RegistEventLog function.
Detailed code (hexadecimal) specified to the detailed code (lEventCode)
Detailed information specified to the detailed information (pcEventMsg)
The event history was registered from the C Controller module detailed function. (Fixed)
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
IN/OUT
3
IN
IN
91

Advertisement

Table of Contents
loading

Table of Contents