3 DETAILS OF FUNCTION
3.1 C Controller Module Dedicated Functions
131
3
CCPU_GetDotMatrixLED_ISR
This function acquires the value displayed on the dot matrix LED of a C Controller module, and stores it to the LED data
storage destination (pcData).
■
Format
short CCPU_GetDotMatrixLED_ISR (char* pcData, unsigned long ulDataSize)
■
Argument
■
Description
• This function acquires the value displayed on the dot matrix LED, and stores it in the LED data storage destination
(pcData).
• It also acquires the information for the size specified to the LED data storage destination size (ulDataSize).
• The value displayed on the dot matrix LED is stored in the LED data storage destination (pcData) as shown below.
pcData[0] to pcData[19]: Data of the dot matrix LED (7
20)
The value displayed in the following format is acquired.
Data format for each column: Bit pattern in which '0' is for the upper one bit, and '1' (when LED is ON) or '0' (when LED is
OFF) is for lower seven bits
Ex.
The bit pattern shown below is displayed on the dot matrix LED:
1st column: 0000 0111b = 07H
→
pcData[0] = 0x07
2nd column: 0000 1100b = 0cH
→
pcData[1] = 0x0c
3rd column: 0001 0100b = 14H
→
pcData[2] = 0x14
4th column: 0010 0100b = 24H
→
pcData[3] = 0x24
5th column: 0111 1111b = 7fH
→
pcData[4] = 0x7f
6th column to 20th column: 0000 0000b = 00H
→
pcData[5] to pcData[19] = 0x00
Do not execute this function in a routine other than an interrupt routine.
Argument
Name
Description
IN/OUT
pcData
LED data storage destination
Specify the storage destination of LED data.
OUT
ulDataSize
LED data storage destination size
Specify the LED data storage destination size in byte units.
IN
Dot matrix LED
1st column
2nd column
5th column
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: ......