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

Controller module
Table of Contents

Advertisement

CCPU_SetLEDStatus
This function sets the LED status of a C Controller module.
Format
short CCPU_SetLEDStatus(long lLed, unsigned short usLedInfo)
Argument
Argument
Name
lLed
Target LED
usLedInfo
LED status information
The specification method for the LED status information (usLedInfo) is as follows:
usLedInfo
Description
0
OFF
1
ON (Red)
2
Flashing at low speed (Red)
3
Flashing at high speed (Red)
4
ON (Green)
5
Flashing at low speed (Green)
6
Flashing at high speed (Green)
Description
This function controls the USER LED of C Controller module to the status specified to the LED status information (usLedInfo).
Return value
Return value
Description
0 (0000H)
Normal
Other than 0
Error
For details on the error, refer to the following:
Page 225 ERROR CODE LIST
Relevant function
• Page 108 CCPU_GetLEDStatus
Description
Specify the target LED.
(When 'Reserved' is specified, this function ends normally without processing.)
• 0: USER LED
• Others: Reserved
Specify the LED status information.
3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
3
IN/OUT
IN
IN
133

Advertisement

Table of Contents
loading

Table of Contents