134
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
CCPU_RegistEventLog_ISR
This function registers an event log in the event history of a C Controller module.
■
Format
short CCPU_RegistEventLog_ISR (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.
Do not execute this function in a routine other than an interrupt routine.
■
WARNING
• If any function in which an invalid argument is specified is executed, an error such as hardware failure (3C02H) may occur
on C Controller module.
• This function does not check the specified argument.
When creating a program, note the following:
Detailed information which is out of the range is not specified.
■
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_ISR 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.
Summary of Contents for MELSEC iQ-R C
Page 1: ...MELSEC iQ R C Controller Module Programming Manual ...
Page 2: ......
Page 201: ...I 199 MEMO ...
Page 203: ...I 201 MEMO ...
Page 207: ......