3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
91
3
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
■
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:
• 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
Argument
Name
Description
IN/OUT
lEventCode
Detailed code
Specify a detailed event code to be registered in the event history.
IN
pcEventMsg
Detailed information
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.)
IN
Item
Description
Occurrence Date
Event registered date and time
Event Type
Operation (fixed)
Status
Information (fixed)
Event Code
25000 (fixed)
Overview
Registration from the user program (fixed)
Source
R12CCPU-V (fixed)
Start I/O No.
Input/output number of the C Controller module that executed the CCPU_RegistEventLog function.
Detailed event code information
Detailed code (hexadecimal) specified to the detailed code (lEventCode)
Detailed event log information
Detailed information specified to the detailed information (pcEventMsg)
Cause
The event history was registered from the C Controller module detailed function. (Fixed)
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following chapter.
Содержание MELSEC iQ-R C
Страница 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Страница 2: ......
Страница 201: ...I 199 MEMO ...
Страница 203: ...I 201 MEMO ...
Страница 207: ......