Mitsubishi Electric MELSEC iQ-R C Programming Manual page 80

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

Advertisement

CCPU_GetLEDStatus
This function acquires the LED status of a C Controller module.
■Format
short CCPU_GetLEDStatus(long lLed, unsigned short* pusLedInfo, unsigned long ulBufSize)
■Argument
Argument
Name
lLed
Target LED
pusLedInfo
LED status storage destination
ulBufSize
LED status storage destination
size
■Description
• This function acquires the LED status of the C Controller module specified to the target LED (lLed), and stores it in the LED
status storage destination (pusLedInfo).
• It also acquires the information for the size specified to the LED status storage destination (ulBufSize).
• If the LED is not supported, '0' is set to the LED status.
• The LED status to be stored in the LED status storage destination (pusLedInfo) is as follows.
pusLedInfo
0
1
2
3
4
5
6
• When '-1' is specified to the target LED (lLed), the LED status stored in the LED status storage destination (pusLedInfo) is
as follows:
(When '0' to '6' is specified, the specified LED status is stored in pusLedInfo[0].)
pusLedInfo
pusLedInfo[0]
pusLedInfo[1]
pusLedInfo[2]
pusLedInfo[3]
pusLedInfo[4]
pusLedInfo[5]
pusLedInfo[6]
3 DETAILS OF FUNCTION
78
3.1 C Controller Module Dedicated Functions
Description
Specify the target LED.
(When 'Reserved' is specified, this function ends normally without processing.)
• 0: READY LED
• 1: ERROR LED
• 2: BUS RUN LED
• 3: CARD RDY LED
• 4: USER LED
• 5: USB RDY LED
• 6: RS SD/RD LED
• -1: All of the LEDs above
• Others: Reserved
Specify the storage destination of the LED status.
Specify the LED status storage destination size in word units.
(When '0' is specified, this function ends normally without processing.)
Description
OFF
ON (Red)
Flashing at low speed (Red)
Flashing at high speed (Red)
ON (Green)
Flashing at low speed (Green)
Flashing at high speed (Green)
Description
READY LED status
ERROR LED status
BUS RUN LED status
CARD RDY LED status
USER LED status
USB RDY LED status
RS SD/RD LED status
IN/OUT
IN
OUT
IN

Advertisement

Table of Contents
loading

Table of Contents