Mitsubishi Electric MELSEC iQ-R C Series Programming Manual page 176

Controller module
Table of Contents

Advertisement

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
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.
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
Return value
0 (0000H)
Other than 0
3 DETAILS OF FUNCTION
174
3.2 C Controller module dedicated functions for ISR
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_ISR 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)
Description
Normal
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
IN/OUT
IN
IN

Advertisement

Table of Contents
loading

Table of Contents