Mitsubishi Electric MELSEC iQ-R Series Manual page 41

Intelligent function module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

CITL_GetLEDStatus
This function acquires the LED status of a C intelligent function module.
■ Format
short CITL_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 intelligent function 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 size (ulBufSize).
• The LED status to be stored in the LED status storage destination (pusLedInfo) is as follows.
Stored information
LED status
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)
• 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].)
Storage position
Description
pusLedInfo[0]
RUN LED status
pusLedInfo[1]
ERR LED status
pusLedInfo[2]
CARD RDY LED status
pusLedInfo[3]
USER LED status
pusLedInfo[4]
Reserved
pusLedInfo[5]
pusLedInfo[6]
■ Return value
Return value
Description
0 (0000H)
Normal
Other than 0 (0000H)
Error
For details on the error, refer to the following chapter.
Page 108 ERROR CODE LIST
■ Relevant function
Page 36 CITL_GetErrInfo
Description
Specify the target LED.
(When 'Reserved' is specified, this function ends normally without
processing.)
• 0: RUN LED
• 1: ERR LED
• 2: CARD RDY LED
• 3: USER LED
• 4 to 6: Reserved
• -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.)
3.1 C Intelligent Function Module Dedicated Functions
IN/OUT
IN
OUT
IN
3 DETAILS OF FUNCTION
3
39

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r c

Table of Contents